@texonom/cli 1.3.1 → 1.4.1
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/build/.tsbuildinfo +1 -1
- package/build/src/main.d.ts +4 -34
- package/build/src/main.js +20 -20
- package/build/src/main.js.map +1 -1
- package/build/src/notion/export.d.ts +5 -29
- package/build/src/notion/export.d.ts.map +1 -1
- package/build/src/notion/export.test.d.ts +2 -0
- package/build/src/notion/export.test.d.ts.map +1 -0
- package/build/src/notion/index.d.ts +58 -3
- package/build/src/notion/index.d.ts.map +1 -1
- package/build/src/treemap.d.ts +2 -0
- package/build/src/treemap.d.ts.map +1 -0
- package/package.json +6 -6
- package/readme.md +26 -4
- package/build/src/notion.d.ts +0 -25
- package/build/src/notion.d.ts.map +0 -1
package/build/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/types.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/predicates/cascadingpredicates.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/predicates/typepredicates.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/predicates/helperpredicates.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/tools.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/index.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/core.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/format.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/errors.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/utils.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/cli.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/command.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/definitions.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/help.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/version.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/index.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/array.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/boolean.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/counter.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/proxy.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/rest.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/string.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/index.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/index.d.ts","../package.json","../../../node_modules/.pnpm/@types+jsonstream@0.8.33/node_modules/@types/jsonstream/index.d.ts","../../../node_modules/.pnpm/@types+graceful-fs@4.1.9/node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/.pnpm/prettier@3.2.4/node_modules/prettier/doc.d.ts","../../../node_modules/.pnpm/prettier@3.2.4/node_modules/prettier/index.d.ts","../../ntypes/build/core.d.ts","../../ntypes/build/block.d.ts","../../ntypes/build/formula.d.ts","../../ntypes/build/user.d.ts","../../ntypes/build/collection.d.ts","../../ntypes/build/collection-view.d.ts","../../ntypes/build/space.d.ts","../../ntypes/build/maps.d.ts","../../ntypes/build/api.d.ts","../../ntypes/build/index.d.ts","../../nclient/build/index.d.ts","../../../node_modules/.pnpm/is-url-superb@6.1.0/node_modules/is-url-superb/index.d.ts","../../nutils/build/index.d.ts","../src/notion/index.ts","../src/notion/export.ts","../src/main.ts","../src/types.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.13.0/node_modules/clipanion/lib/advanced/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"7fe869c60b17b972a0eb9423e8a50bd9796508be7cc7181758ecd649be30f56c","bad1f77bb946699281dc049ae841bc65231029b17ca2bf54fcb3c6afcbf06ec5","d06898a1601eb860aae768ffd0c288ff715bd4e1ed098bd29745308f4338b6d4","471117e5a4f7fc1a539b98a7c5107ce5ed44ca71583cec36418bda91e75e0a60","9b4b572caf9a82cd34b62baacdf31ff030c6fa307f174810240216d9cfcf8580","647ddde02a14904825d0f92904254c98f3cfa6946a61f1f519b1f9aa3595ce33","efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"e2eb1ce13a9c0fa7ab62c63909d81973ef4b707292667c64f1e25e6e53fa7afa","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","1b282e90846fada1e96dc1cf5111647d6ab5985c8d7b5c542642f1ea2739406d","bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true},"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","f1ace2d2f98429e007d017c7a445efad2aaebf8233135abdb2c88b8c0fef91ab","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true},{"version":"0666f4c99b8688c7be5956df8fecf5d1779d3b22f8f2a88258ae7072c7b6026f","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","7424817d5eb498771e6d1808d726ec38f75d2eaf3fa359edd5c0c540c52725c1","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","8013f6c4d1632da8f1c4d3d702ae559acccd0f1be05360c31755f272587199c9",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","056e650abd76f4f163b63d28caa4a21ce6b8ac69d8717987a7861724499fa66a","8eb83d1ad044634c54c3de70ac76e596ae48ec0ed0800797211fbfe7d9bc94de","df0e93ded7e580b27eb3bfea87dffc49a823ea74ef6c625938cb8f5298e1bd57","c44308d3424b3d85a342c7f59eee52a7d2807859692c0e89e4373e88d5895743","7fdfb1d630e3baa80e994518127a8a60f298a0dd783824f50797e3d88213af94","bf78879e6f7417cc8b3ba859dbe762d9f1f64fead4183a85c8a998e156377bcb","079bf77582cfa769546f060b373cbe4bac74627c240bcf07f0b571c29c1c7269","dcd687115f7836cab01c44b1a3678422533adb6e8e255d046850a9b998ca953d","95046f08a9e3860e531bae878947f04cf91aade9ca8dae60f962aff85b892eeb","7ea8ac0a5b4461e346fe937ff19841c66bcf3121205de8d1b2a5d0a31f3b28eb","d9b36f58f094c4095818a4b5cf8dc8b6f3ac7d38fc3bafc871494e3c4d586551","5af4f0c77e82183dc512690283cc80a2b59370083a60ed75174a516b921452fc","5581450c9bfffa56208fa69ce62ea33c8671fa34cfdc1eeb262ec7ebf0b5cbf7","977997bf4efd7fc8d5b4a78f9474395315189d8d9d92a8280cb35babe0885534","dc9f4778bd2d16df16c101704eee59112818857cf58ecb59417633abca828ff0","fca70e3e8f1b91b6462c3d22546de7f79acd9fd7eee9b638f7f4bd348c851bd2","fb4113fc41b555bb1aa01fb17c66da9be37b734c5b4c4e244f70d7ecb0b7e5c0","cec053867ca5fba9e8e966de9bb9e7ad077a9f018175e20de473bf81cdc0b8ff",{"version":"aac3287a4c244546e612ca308b8531e5c2533b0483887d4a77ebb83f26de1e23","signature":"80929751b3512388f49be15d8d4e2c64e6cbb2c0377112ea354a6f328bab4c4c"},"0bd34b5fcc75a9759fcc84590bd53d051538f2e4ec74b2bbbb528cd99bbcc4a9","afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5","2f848b4e660b568651a6350565afc8ac5b0644853a2a863862807602cf244a05","e7049308a11ff36ca7eee4ff33df35106eb108018ea4cd4cdb00efe8e9711ce0","d5a33c52d381fc00f5842490ffcf406e0f5b9dd801b016fadcb232bb4d347fdf","8ae7855cf16c0a899ad0bdbf0675480766197e05467a249b5ddf7dcf9ace7a56","57aa4c028ae9d74d0908fd24563ccf6ce4ad3ec4b836fcbd69974adce60eb895","d979abc48001c25784feecb34dba191ed2c33f8944f7bd7b077b464285586c12","b5a33c11d9bca76dad214b1f8cf8571ef5a0fc60eecbbfa8f6cf0b73c1183d20","b4e975657af1b37e99cac0753713e6425a16a7725790542838e9d48b0dd836b4","85334ca199cff2ab0bcec4f106a3e8350f71cf04b485f87e794dc7872ccd6db8","b5b0854bf636f74f63c1b714ee52e39b76f1fb7ccd29ac23894f004fca185f96","287324565a84f2c5b77f0ba62cf8aa8967e76ffe13aa4f05f56e8ed2a025c268","da90b2dfbb04735ed503d67065160c0f48cfe3ea26090093281b334f61b2cc88","5c714824a33c5f9a4762aee21fa55ef450b84d0811d8ee30da663913de7a922d","a87e5902fd92d16a80e0020ac03d6477bc2e7a6f5b0407a73aff6b7aa9e01d55","62beb46c2f89284fb22f743d01964f965e37c175d7a077844c16403098b3b6e6",{"version":"e97b049516897082aa5afc2a169ddedc8926546f1522f133272ab8eafd7bb705","signature":"8554ab2500a235502c77a76adbd47ad77483d372e325f2bdf32ecfe9467b57b1"},{"version":"a9d6cc3152d834d799b9caacf22535ca87bb0325f6ac50b804b3f968a432dad1","signature":"b9ca17a1bf7a856b8ec77c7d51ff089af47a73a7c77e702e65f8a450843596d2"},{"version":"85d8c15e12f05164606168b9d9bb56f664ca6c0a207beaebcc00b3e56b4d6342","signature":"16dec6f85a3dc618c0e71238018cea74558f197ef532887b8af0a66cdf642714"},{"version":"a89777b4f82b0de08d19a2a80466647806f26599b652bb27c8f1b5e1f8218ce1","signature":"9a3a299acf95f53de27435585bcf863e20b2a5946bcee929eaf8d8beb3845198"}],"root":[[193,196]],"options":{"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":false,"target":2,"tsBuildInfoFile":"./.tsbuildinfo"},"fileIdsList":[[120,156],[156],[71],[106],[107,112,140],[108,119,120,127,137,148],[108,109,119,127],[110,149],[111,112,120,128],[112,137,145],[113,115,119,127],[106,114],[115,116],[119],[117,119],[106,119],[119,120,121,137,148],[119,120,121,134,137,140],[104,107,153],[115,119,122,127,137,148],[119,120,122,123,127,137,145,148],[122,124,137,145,148],[71,72,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,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],[119,125],[126,148,153],[115,119,127,137],[128],[129],[106,130],[131,147,153],[132],[133],[119,134,135],[134,136,149,151],[107,119,137,138,139,140],[107,137,139],[137,138],[140],[141],[106,137],[119,143,144],[143,144],[112,127,137,145],[146],[127,147],[107,122,133,148],[112,149],[137,150],[126,151],[152],[107,112,119,121,130,137,148,151,153],[137,154],[162],[163,164,165],[137,156,157,158,160,162],[70,160,161],[158,159,161,162,166,173],[70,160],[160],[160,167,168,169,170,171,172],[70,157,159,161],[178],[65,66,67,68,69],[65],[81,85,148],[81,137,148],[76],[78,81,145,148],[127,145],[76,156],[78,81,127,148],[73,74,77,80,107,119,137,148],[73,79],[77,81,107,140,148,156],[107,156],[97,107,156],[75,76,156],[81],[75,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,93,94,95,96,98,99,100,101,102,103],[81,88,89],[79,81,89,90],[80],[73,76,81],[81,85,89,90],[85],[79,81,84,148],[73,78,79,81,85,88],[107,137],[76,81,97,107,153,156],[174,175,194],[121,129,137,149,174,176,177,179,189,190,192,193],[174],[189],[187],[180],[180,182],[180,181,182,183,184,185,186,187,188],[180,181,183,184,185,186],[189,191],[194],[189,190,192,193],[197]],"referencedMap":[[177,1],[176,2],[71,3],[72,3],[106,4],[107,5],[108,6],[109,7],[110,8],[111,9],[112,10],[113,11],[114,12],[115,13],[116,13],[118,14],[117,15],[119,16],[120,17],[121,18],[105,19],[122,20],[123,21],[124,22],[156,23],[125,24],[126,25],[127,26],[128,27],[129,28],[130,29],[131,30],[132,31],[133,32],[134,33],[135,33],[136,34],[137,35],[139,36],[138,37],[140,38],[141,39],[142,40],[143,41],[144,42],[145,43],[146,44],[147,45],[148,46],[149,47],[150,48],[151,49],[152,50],[153,51],[154,52],[163,53],[164,53],[166,54],[165,53],[161,55],[162,56],[174,57],[167,58],[168,59],[169,59],[173,60],[172,58],[160,61],[179,62],[70,63],[66,64],[68,64],[67,64],[69,64],[88,65],[95,66],[87,65],[102,67],[79,68],[78,69],[101,2],[96,70],[99,71],[81,72],[80,73],[76,74],[75,75],[98,76],[77,77],[82,78],[86,78],[104,79],[103,78],[90,80],[91,81],[93,82],[89,83],[92,84],[97,2],[84,85],[85,86],[94,87],[74,88],[100,89],[195,90],[194,91],[193,92],[190,93],[188,94],[181,95],[185,95],[184,96],[182,95],[189,97],[187,98],[186,95],[183,95],[192,99]],"exportedModulesMap":[[177,1],[176,2],[71,3],[72,3],[106,4],[107,5],[108,6],[109,7],[110,8],[111,9],[112,10],[113,11],[114,12],[115,13],[116,13],[118,14],[117,15],[119,16],[120,17],[121,18],[105,19],[122,20],[123,21],[124,22],[156,23],[125,24],[126,25],[127,26],[128,27],[129,28],[130,29],[131,30],[132,31],[133,32],[134,33],[135,33],[136,34],[137,35],[139,36],[138,37],[140,38],[141,39],[142,40],[143,41],[144,42],[145,43],[146,44],[147,45],[148,46],[149,47],[150,48],[151,49],[152,50],[153,51],[154,52],[163,53],[164,53],[166,54],[165,53],[161,55],[162,56],[174,57],[167,58],[168,59],[169,59],[173,60],[172,58],[160,61],[179,62],[70,63],[66,64],[68,64],[67,64],[69,64],[88,65],[95,66],[87,65],[102,67],[79,68],[78,69],[101,2],[96,70],[99,71],[81,72],[80,73],[76,74],[75,75],[98,76],[77,77],[82,78],[86,78],[104,79],[103,78],[90,80],[91,81],[93,82],[89,83],[92,84],[97,2],[84,85],[85,86],[94,87],[74,88],[100,89],[195,100],[194,101],[193,102],[190,93],[188,94],[181,95],[185,95],[184,96],[182,95],[189,97],[187,98],[186,95],[183,95],[192,99]],"semanticDiagnosticsPerFile":[177,176,71,72,106,107,108,109,110,111,112,113,114,115,116,118,117,119,120,121,105,155,122,123,124,156,125,126,127,128,129,130,131,132,133,134,135,136,137,139,138,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,163,164,166,165,161,162,174,167,168,169,173,170,171,172,160,157,159,158,191,178,179,70,66,68,67,69,65,63,64,12,14,13,2,15,16,17,18,19,20,21,22,3,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,53,54,57,55,56,58,59,10,1,11,62,61,60,88,95,87,102,79,78,101,96,99,81,80,76,75,98,77,82,83,86,73,104,103,90,91,93,89,92,97,84,85,94,74,100,175,195,194,193,196,190,188,181,185,184,180,182,189,187,186,183,192]},"version":"5.3.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/types.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/predicates/cascadingpredicates.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/predicates/typepredicates.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/predicates/helperpredicates.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/tools.d.ts","../../../node_modules/.pnpm/typanion@3.14.0/node_modules/typanion/lib/index.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/core.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/format.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/errors.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/utils.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/cli.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/command.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/definitions.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/help.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/version.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/builtins/index.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/array.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/boolean.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/counter.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/proxy.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/rest.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/string.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/options/index.d.ts","../../../node_modules/.pnpm/clipanion@3.2.1_typanion@3.14.0/node_modules/clipanion/lib/advanced/index.d.ts","../package.json","../../ntypes/build/core.d.ts","../../ntypes/build/block.d.ts","../../ntypes/build/formula.d.ts","../../ntypes/build/user.d.ts","../../ntypes/build/collection.d.ts","../../ntypes/build/collection-view.d.ts","../../ntypes/build/space.d.ts","../../ntypes/build/maps.d.ts","../../ntypes/build/api.d.ts","../../ntypes/build/index.d.ts","../../nclient/build/index.d.ts","../../../node_modules/.pnpm/is-url-superb@6.1.0/node_modules/is-url-superb/index.d.ts","../../nutils/build/index.d.ts","../../../node_modules/.pnpm/@types+jsonstream@0.8.33/node_modules/@types/jsonstream/index.d.ts","../../../node_modules/.pnpm/@types+graceful-fs@4.1.9/node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/.pnpm/prettier@3.3.3/node_modules/prettier/doc.d.ts","../../../node_modules/.pnpm/prettier@3.3.3/node_modules/prettier/index.d.ts","../src/notion/index.ts","../src/notion/export.ts","../src/main.ts","../src/treemap.ts","../src/types.ts","../../../node_modules/.pnpm/@vitest+pretty-format@2.1.5/node_modules/@vitest/pretty-format/dist/index.d.ts","../../../node_modules/.pnpm/@vitest+utils@2.1.5/node_modules/@vitest/utils/dist/types.d.ts","../../../node_modules/.pnpm/@vitest+utils@2.1.5/node_modules/@vitest/utils/dist/helpers.d.ts","../../../node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/index-c1cfc5e9.d.ts","../../../node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.d.ts","../../../node_modules/.pnpm/@vitest+utils@2.1.5/node_modules/@vitest/utils/dist/index.d.ts","../../../node_modules/.pnpm/@vitest+runner@2.1.5/node_modules/@vitest/runner/dist/tasks-3znpj1lr.d.ts","../../../node_modules/.pnpm/@vitest+utils@2.1.5/node_modules/@vitest/utils/dist/types-bxe-2udy.d.ts","../../../node_modules/.pnpm/@vitest+utils@2.1.5/node_modules/@vitest/utils/dist/diff.d.ts","../../../node_modules/.pnpm/@vitest+runner@2.1.5/node_modules/@vitest/runner/dist/types.d.ts","../../../node_modules/.pnpm/@vitest+utils@2.1.5/node_modules/@vitest/utils/dist/error.d.ts","../../../node_modules/.pnpm/@vitest+runner@2.1.5/node_modules/@vitest/runner/dist/index.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/environment.looobwuu.d.ts","../../../node_modules/.pnpm/@types+estree@1.0.6/node_modules/@types/estree/index.d.ts","../../../node_modules/.pnpm/rollup@4.27.3/node_modules/rollup/dist/rollup.d.ts","../../../node_modules/.pnpm/rollup@4.27.3/node_modules/rollup/dist/parseast.d.ts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/types/hmrpayload.d.ts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/types/customevent.d.ts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/types/hot.d.ts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/types.d-agj9qkwt.d.ts","../../../node_modules/.pnpm/esbuild@0.21.5/node_modules/esbuild/lib/main.d.ts","../../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/previous-map.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/input.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/css-syntax-error.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/declaration.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/root.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/warning.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/lazy-result.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/no-work-result.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/processor.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/result.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/document.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/rule.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/node.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/comment.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/container.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/at-rule.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/list.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/postcss.d.ts","../../../node_modules/.pnpm/postcss@8.4.47/node_modules/postcss/lib/postcss.d.mts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/runtime.d.ts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/types/importglob.d.ts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/types/metadata.d.ts","../../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/index.d.ts","../../../node_modules/.pnpm/@vitest+snapshot@2.1.5/node_modules/@vitest/snapshot/dist/environment-ddx0edty.d.ts","../../../node_modules/.pnpm/@vitest+snapshot@2.1.5/node_modules/@vitest/snapshot/dist/rawsnapshot-cpnkto81.d.ts","../../../node_modules/.pnpm/@vitest+snapshot@2.1.5/node_modules/@vitest/snapshot/dist/index.d.ts","../../../node_modules/.pnpm/@vitest+snapshot@2.1.5/node_modules/@vitest/snapshot/dist/environment.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/config.cy0c388z.d.ts","../../../node_modules/.pnpm/vite-node@2.1.5_@types+node@22.9.1/node_modules/vite-node/dist/trace-mapping.d-dlvdeqop.d.ts","../../../node_modules/.pnpm/vite-node@2.1.5_@types+node@22.9.1/node_modules/vite-node/dist/index-z0r8hvru.d.ts","../../../node_modules/.pnpm/vite-node@2.1.5_@types+node@22.9.1/node_modules/vite-node/dist/index.d.ts","../../../node_modules/.pnpm/@vitest+utils@2.1.5/node_modules/@vitest/utils/dist/source-map.d.ts","../../../node_modules/.pnpm/vite-node@2.1.5_@types+node@22.9.1/node_modules/vite-node/dist/client.d.ts","../../../node_modules/.pnpm/vite-node@2.1.5_@types+node@22.9.1/node_modules/vite-node/dist/server.d.ts","../../../node_modules/.pnpm/@vitest+runner@2.1.5/node_modules/@vitest/runner/dist/utils.d.ts","../../../node_modules/.pnpm/tinybench@2.9.0/node_modules/tinybench/dist/index.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/benchmark.geerunq4.d.ts","../../../node_modules/.pnpm/@vitest+snapshot@2.1.5/node_modules/@vitest/snapshot/dist/manager.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/reporters.d7jzd9gs.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/worker.tn5kgiih.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/worker.b9fxpcac.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/vite.c-n5bbze.d.ts","../../../node_modules/.pnpm/@vitest+expect@2.1.5/node_modules/@vitest/expect/dist/chai.d.cts","../../../node_modules/.pnpm/@vitest+expect@2.1.5/node_modules/@vitest/expect/dist/index.d.ts","../../../node_modules/.pnpm/@vitest+expect@2.1.5/node_modules/@vitest/expect/index.d.ts","../../../node_modules/.pnpm/@vitest+spy@2.1.5/node_modules/@vitest/spy/dist/index.d.ts","../../../node_modules/.pnpm/@vitest+mocker@2.1.5_vite@5.4.11_@types+node@22.9.1_/node_modules/@vitest/mocker/dist/types-dzoqtgin.d.ts","../../../node_modules/.pnpm/@vitest+mocker@2.1.5_vite@5.4.11_@types+node@22.9.1_/node_modules/@vitest/mocker/dist/index.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/mocker.crtm890j.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/chunks/suite.b2jumifp.d.ts","../../../node_modules/.pnpm/expect-type@1.1.0/node_modules/expect-type/dist/utils.d.ts","../../../node_modules/.pnpm/expect-type@1.1.0/node_modules/expect-type/dist/overloads.d.ts","../../../node_modules/.pnpm/expect-type@1.1.0/node_modules/expect-type/dist/branding.d.ts","../../../node_modules/.pnpm/expect-type@1.1.0/node_modules/expect-type/dist/messages.d.ts","../../../node_modules/.pnpm/expect-type@1.1.0/node_modules/expect-type/dist/index.d.ts","../../../node_modules/.pnpm/vitest@2.1.5_@types+node@22.9.1/node_modules/vitest/dist/index.d.ts","../src/notion/export.test.ts"],"fileIdsList":[[89,131],[89,131,144,181],[89,131,181],[89,128,131],[89,130,131],[131],[89,131,136,166],[89,131,132,137,143,144,151,163,174],[89,131,132,133,143,151],[84,85,86,89,131],[89,131,134,175],[89,131,135,136,144,152],[89,131,136,163,171],[89,131,137,139,143,151],[89,130,131,138],[89,131,139,140],[89,131,143],[89,131,141,143],[89,130,131,143],[89,131,143,144,145,163,174],[89,131,143,144,145,158,163,166],[89,126,131,179],[89,126,131,139,143,146,151,163,174],[89,131,143,144,146,147,151,163,171,174],[89,131,146,148,163,171,174],[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],[89,131,143,149],[89,131,150,174,179],[89,131,139,143,151,163],[89,131,152],[89,131,153],[89,130,131,154],[89,128,129,130,131,132,133,134,135,136,137,138,139,140,141,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],[89,131,156],[89,131,157],[89,131,143,158,159],[89,131,158,160,175,177],[89,131,143,163,164,165,166],[89,131,163,165],[89,131,163,164],[89,131,166],[89,131,167],[89,128,131,163],[89,131,143,169,170],[89,131,169,170],[89,131,136,151,163,171],[89,131,172],[89,131,151,173],[89,131,146,157,174],[89,131,136,175],[89,131,163,176],[89,131,150,177],[89,131,178],[89,131,136,143,145,154,163,174,177,179],[89,131,163,180],[89,131,227,228,231],[89,131,288],[89,131,291],[89,131,228,229,231,232,233],[89,131,228],[89,131,228,229,231],[89,131,228,229],[89,131,268],[89,131,223,268,269],[89,131,223,268],[89,131,223,230],[89,131,224],[89,131,223,224,225,227],[89,131,223],[89,131,187],[89,131,188,189,190],[89,131,163,181,182,183,185,187],[83,89,131,185,186],[89,131,183,184,186,187,191,198],[83,89,131,185],[89,131,185],[89,131,185,192,193,194,195,196,197],[83,89,131,182,184,186],[89,131,295,296],[89,131,295,296,297,298],[89,131,295,297],[89,131,295],[89,131,259],[89,131,257,259],[89,131,248,256,257,258,260],[89,131,246],[89,131,249,254,259,262],[89,131,245,262],[89,131,249,250,253,254,255,262],[89,131,249,250,251,253,254,262],[89,131,246,247,248,249,250,254,255,256,258,259,260,262],[89,131,262],[89,131,244,246,247,248,249,250,251,253,254,255,256,257,258,259,260,261],[89,131,244,262],[89,131,249,251,252,254,255,262],[89,131,253,262],[89,131,254,255,259,262],[89,131,247,257],[89,131,216],[89,131,237,266],[89,131,236,237],[89,131,226],[78,79,80,81,82,89,131],[78,89,131],[89,98,102,131,174],[89,98,131,163,174],[89,93,131],[89,95,98,131,171,174],[89,131,151,171],[89,93,131,181],[89,95,98,131,151,174],[89,90,91,94,97,131,143,163,174],[89,98,105,131],[89,90,96,131],[89,98,119,120,131],[89,94,98,131,166,174,181],[89,119,131,181],[89,92,93,131,181],[89,98,131],[89,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,131],[89,98,113,131],[89,98,105,106,131],[89,96,98,106,107,131],[89,97,131],[89,90,93,98,131],[89,98,102,106,107,131],[89,102,131],[89,96,98,101,131,174],[89,90,95,98,105,131],[89,131,163],[89,93,98,119,131,179,181],[89,131,273,274],[89,131,273],[89,131,267,273,274,286],[89,131,143,144,146,147,148,151,163,171,174,180,181,237,238,239,240,241,242,243,263,264,265,266],[89,131,239,240,241,242],[89,131,239,240,241],[89,131,239],[89,131,240],[89,131,237],[89,131,234,279,280,300],[89,131,223,234,270,271,300],[89,131,292],[89,131,144,163,223,228,234,235,267,270,272,275,276,277,278,281,282,286,287,300],[89,131,234,279,280,281,300],[89,131,267,283],[89,131,179,284],[89,131,234,235,270,272,275,300],[89,131,144,163,179,223,228,231,234,235,267,270,271,272,275,276,277,278,279,280,281,282,283,284,285,286,287,289,290,292,293,294,299,300],[89,131,199,200,219],[89,131,213,218,300],[89,131,199,218],[89,131,145,153,163,175,210,211,213,214,215,217],[89,131,144,175,210,213,218],[89,131,210],[89,131,208],[89,131,201],[89,131,201,203],[89,131,201,202,203,204,205,206,207,208,209],[89,131,201,202,204,205,206,207],[89,131,210,212]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","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":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","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":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","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":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","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":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","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":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7fe869c60b17b972a0eb9423e8a50bd9796508be7cc7181758ecd649be30f56c","impliedFormat":1},{"version":"bad1f77bb946699281dc049ae841bc65231029b17ca2bf54fcb3c6afcbf06ec5","impliedFormat":1},{"version":"d06898a1601eb860aae768ffd0c288ff715bd4e1ed098bd29745308f4338b6d4","impliedFormat":1},{"version":"471117e5a4f7fc1a539b98a7c5107ce5ed44ca71583cec36418bda91e75e0a60","impliedFormat":1},{"version":"9b4b572caf9a82cd34b62baacdf31ff030c6fa307f174810240216d9cfcf8580","impliedFormat":1},{"version":"647ddde02a14904825d0f92904254c98f3cfa6946a61f1f519b1f9aa3595ce33","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fd06258805d26c72f5997e07a23155d322d5f05387adb3744a791fe6a0b042d","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","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":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","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":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"81184fe8e67d78ac4e5374650f0892d547d665d77da2b2f544b5d84729c4a15d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f52e8dacc97d71dcc96af29e49584353f9c54cb916d132e3e768d8b8129c928d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"a76037255d4e7af8b20d191a4d3ad13236fba352239d3d9d54868a98dbb222f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"875928df2f3e9a3aed4019539a15d04ff6140a06df6cd1b2feb836d22a81eaca","affectsGlobalScope":true,"impliedFormat":1},{"version":"e9ad08a376ac84948fcca0013d6f1d4ae4f9522e26b91f87945b97c99d7cc30b","impliedFormat":1},{"version":"f65eecc63138013d13fefea9092e83c3043cb52a5e351d22ea194e81021c1cd5","impliedFormat":1},{"version":"4617299caf33afef24b5e074e6d20ce8f510dd212cebd75884ef27c64457a77b","impliedFormat":1},{"version":"fa56be9b96f747e93b895d8dc2aa4fb9f0816743e6e2abb9d60705e88d4743a2","impliedFormat":1},{"version":"8257c55ff6bff6169142a35fce6811b511d857b4ae4f522cdb6ce20fd2116b2c","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"5990bd8b9bc91f6e90269685ff5a154eeda52c18238f89f0101fb4d08cd80476","affectsGlobalScope":true,"impliedFormat":1},{"version":"94c4187083503a74f4544503b5a30e2bd7af0032dc739b0c9a7ce87f8bddc7b9","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"3eb62baae4df08c9173e6903d3ca45942ccec8c3659b0565684a75f3292cffbb","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"a8f06c2382a30b7cb89ad2dfc48fc3b2b490f3dafcd839dadc008e4e5d57031d","impliedFormat":1},{"version":"553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"918d3b03a75858dcd5dbb275f19448b6b9a222aa8fc8471aca38c28a32ecb40f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bd91a2a356600dee28eb0438082d0799a18a974a6537c4410a796bab749813c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a5c09990a37469b0311a92ce8feeb8682e83918723aedbd445bd7a0f510eaaa3","impliedFormat":1},{"version":"ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"89332fc3cc945c8df2bc0aead55230430a0dabd3277c39a43315e00330de97a6","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"056e650abd76f4f163b63d28caa4a21ce6b8ac69d8717987a7861724499fa66a","impliedFormat":1},{"version":"8eb83d1ad044634c54c3de70ac76e596ae48ec0ed0800797211fbfe7d9bc94de","impliedFormat":1},{"version":"df0e93ded7e580b27eb3bfea87dffc49a823ea74ef6c625938cb8f5298e1bd57","impliedFormat":1},{"version":"c44308d3424b3d85a342c7f59eee52a7d2807859692c0e89e4373e88d5895743","impliedFormat":1},{"version":"7fdfb1d630e3baa80e994518127a8a60f298a0dd783824f50797e3d88213af94","impliedFormat":1},{"version":"bf78879e6f7417cc8b3ba859dbe762d9f1f64fead4183a85c8a998e156377bcb","impliedFormat":1},{"version":"079bf77582cfa769546f060b373cbe4bac74627c240bcf07f0b571c29c1c7269","impliedFormat":1},{"version":"dcd687115f7836cab01c44b1a3678422533adb6e8e255d046850a9b998ca953d","impliedFormat":1},{"version":"95046f08a9e3860e531bae878947f04cf91aade9ca8dae60f962aff85b892eeb","impliedFormat":1},{"version":"7ea8ac0a5b4461e346fe937ff19841c66bcf3121205de8d1b2a5d0a31f3b28eb","impliedFormat":1},{"version":"d9b36f58f094c4095818a4b5cf8dc8b6f3ac7d38fc3bafc871494e3c4d586551","impliedFormat":1},{"version":"5af4f0c77e82183dc512690283cc80a2b59370083a60ed75174a516b921452fc","impliedFormat":1},{"version":"5581450c9bfffa56208fa69ce62ea33c8671fa34cfdc1eeb262ec7ebf0b5cbf7","impliedFormat":1},{"version":"977997bf4efd7fc8d5b4a78f9474395315189d8d9d92a8280cb35babe0885534","impliedFormat":1},{"version":"dc9f4778bd2d16df16c101704eee59112818857cf58ecb59417633abca828ff0","impliedFormat":1},{"version":"fca70e3e8f1b91b6462c3d22546de7f79acd9fd7eee9b638f7f4bd348c851bd2","impliedFormat":1},{"version":"fb4113fc41b555bb1aa01fb17c66da9be37b734c5b4c4e244f70d7ecb0b7e5c0","impliedFormat":1},{"version":"cec053867ca5fba9e8e966de9bb9e7ad077a9f018175e20de473bf81cdc0b8ff","impliedFormat":1},{"version":"26583a037729c41918ffccc49e37160053851f9a9c8fade416c6ea142e066ed1","signature":"80929751b3512388f49be15d8d4e2c64e6cbb2c0377112ea354a6f328bab4c4c"},"d5a33c52d381fc00f5842490ffcf406e0f5b9dd801b016fadcb232bb4d347fdf","8ae7855cf16c0a899ad0bdbf0675480766197e05467a249b5ddf7dcf9ace7a56","57aa4c028ae9d74d0908fd24563ccf6ce4ad3ec4b836fcbd69974adce60eb895","d979abc48001c25784feecb34dba191ed2c33f8944f7bd7b077b464285586c12","b5a33c11d9bca76dad214b1f8cf8571ef5a0fc60eecbbfa8f6cf0b73c1183d20","b4e975657af1b37e99cac0753713e6425a16a7725790542838e9d48b0dd836b4","85334ca199cff2ab0bcec4f106a3e8350f71cf04b485f87e794dc7872ccd6db8","b5b0854bf636f74f63c1b714ee52e39b76f1fb7ccd29ac23894f004fca185f96","c8181c1b97d29f99d42b0a06110fdfd8fce4453cf9c6527eec52dcc255d4303a","da90b2dfbb04735ed503d67065160c0f48cfe3ea26090093281b334f61b2cc88","bc3b0259a1ad25737fb2eb2797f2f7f66a8995d1282d0edfc0490a2f68d25a13",{"version":"a87e5902fd92d16a80e0020ac03d6477bc2e7a6f5b0407a73aff6b7aa9e01d55","impliedFormat":99},"6186b1939d2e3160843b31672f6dae9dadac94c40d94f7ead8e2bd579ce5a3c6",{"version":"0bd34b5fcc75a9759fcc84590bd53d051538f2e4ec74b2bbbb528cd99bbcc4a9","impliedFormat":1},{"version":"afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5","impliedFormat":1},{"version":"2f848b4e660b568651a6350565afc8ac5b0644853a2a863862807602cf244a05","impliedFormat":1},{"version":"6ac85cb2c23dcb52445b268258a7ea36d620054e7db53874d890bb64981ddc13","impliedFormat":1},{"version":"074fe6d4e2d9ea186fa46fb11e27aaa03edddb53c8febf2cf4c8725e9e0b293a","signature":"2491ba1b69d291e9619169afb41ca49aeca462f667b23f6e147db1ecfebf2d5f"},{"version":"946664d1b89821843d3a1425b9b21e65c8f9178be6e5f83f74d13d8be079b257","signature":"ce35a540a51f763623eb40ed7e79f3b1484c4a1f3aa298774a810570ab2c2e9d"},{"version":"85d8c15e12f05164606168b9d9bb56f664ca6c0a207beaebcc00b3e56b4d6342","signature":"16dec6f85a3dc618c0e71238018cea74558f197ef532887b8af0a66cdf642714"},{"version":"a83fadac43a7bbfac71b35da5f46404a93f92fe74792e997119db016ce6de2db","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"a89777b4f82b0de08d19a2a80466647806f26599b652bb27c8f1b5e1f8218ce1","signature":"9a3a299acf95f53de27435585bcf863e20b2a5946bcee929eaf8d8beb3845198"},{"version":"d2e64a6f25013b099e83bfadb2c388d7bef3e8f3fdb25528225bbc841e7e7e3a","impliedFormat":99},{"version":"369ba5259e66ca8c7d35e3234f7a2a0863a770fdb8266505747c65cf346a0804","impliedFormat":99},{"version":"64d984f55025daf604f670b7dfd090ea765f2098aee871174ef2ee3e94479098","impliedFormat":99},{"version":"f147b6710441cf3ec3234adf63b0593ce5e8c9b692959d21d3babc8454bcf743","impliedFormat":99},{"version":"e96d5373a66c2cfbbc7e6642cf274055aa2c7ff6bd37be7480c66faf9804db6d","impliedFormat":99},{"version":"02bcdd7a76c5c1c485cbf05626d24c86ac8f9a1d8dc31f8924108bbaa4cf3ba9","impliedFormat":99},{"version":"c874ab6feac6e0fdf9142727c9a876065777a5392f14b0bbcf869b1e69eb46b5","impliedFormat":99},{"version":"7c553fc9e34773ddbaabe0fa1367d4b109101d0868a008f11042bee24b5a925d","impliedFormat":99},{"version":"9962ce696fbdce2421d883ca4b062a54f982496625437ae4d3633376c5ad4a80","impliedFormat":99},{"version":"e3ea467c4a7f743f3548c9ed61300591965b1d12c08c8bb9aaff8a002ba95fce","impliedFormat":99},{"version":"4c17183a07a63bea2653fbfc0a942b027160ddbee823024789a415f9589de327","impliedFormat":99},{"version":"3e2203c892297ea44b87470fde51b3d48cfe3eeb6901995de429539462894464","impliedFormat":99},{"version":"c84bf7a4abc5e7fdf45971a71b25b0e0d34ccd5e720a866dd78bb71d60d41a3f","impliedFormat":99},{"version":"785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","impliedFormat":1},{"version":"207bee54c60bfe26feca8ef79922f66fd091092a9d24aa12daea1b340fa7e0ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"a660aa95476042d3fdcc1343cf6bb8fdf24772d31712b1db321c5a4dcc325434","impliedFormat":1},{"version":"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","impliedFormat":1},{"version":"6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","impliedFormat":1},{"version":"cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","impliedFormat":1},{"version":"8b96046bf5fb0a815cba6b0880d9f97b7f3a93cf187e8dcfe8e2792e97f38f87","impliedFormat":99},{"version":"bacf2c84cf448b2cd02c717ad46c3d7fd530e0c91282888c923ad64810a4d511","affectsGlobalScope":true,"impliedFormat":1},{"version":"402e5c534fb2b85fa771170595db3ac0dd532112c8fa44fc23f233bc6967488b","impliedFormat":1},{"version":"8885cf05f3e2abf117590bbb951dcf6359e3e5ac462af1c901cfd24c6a6472e2","impliedFormat":1},{"version":"4d979e3c12ffb6497d2b1dc5613130196d986fff764c4526360c0716a162e7e7","impliedFormat":1},{"version":"e61df3640a38d535fd4bc9f4a53aef17c296b58dc4b6394fd576b808dd2fe5e6","impliedFormat":1},{"version":"80781460eca408fe8d2937d9fdbbb780d6aac35f549621e6200c9bee1da5b8fe","impliedFormat":1},{"version":"4719c209b9c00b579553859407a7e5dcfaa1c472994bd62aa5dd3cc0757eb077","impliedFormat":1},{"version":"7ec359bbc29b69d4063fe7dad0baaf35f1856f914db16b3f4f6e3e1bca4099fa","impliedFormat":1},{"version":"b9261ac3e9944d3d72c5ee4cf888ad35d9743a5563405c6963c4e43ee3708ca4","impliedFormat":1},{"version":"c84fd54e8400def0d1ef1569cafd02e9f39a622df9fa69b57ccc82128856b916","impliedFormat":1},{"version":"a022503e75d6953d0e82c2c564508a5c7f8556fad5d7f971372d2d40479e4034","impliedFormat":1},{"version":"2ed6489ef46eb61442d067c08e87e3db501c0bfb2837eee4041a27bf3e792bb0","impliedFormat":1},{"version":"644491cde678bd462bb922c1d0cfab8f17d626b195ccb7f008612dc31f445d2d","impliedFormat":1},{"version":"d60fe6d59d4e19ecc65359490b8535e359ca4b760d2cdb56897ca75d09d41ba3","impliedFormat":1},{"version":"f45a2a8b1777ecb50ed65e1a04bb899d4b676529b7921bd5d69b08573a00c832","impliedFormat":1},{"version":"774b783046ba3d473948132d28a69f52a295b2f378f2939304118ba571b1355e","impliedFormat":1},{"version":"b5734e05c787a40e4f9efe71f16683c5f7dc3bdb0de7c04440c855bd000f8fa7","impliedFormat":1},{"version":"14ba97f0907144771331e1349fdccb5a13526eba0647e6b447e572376d811b6f","impliedFormat":1},{"version":"2a771d907aebf9391ac1f50e4ad37952943515eeea0dcc7e78aa08f508294668","impliedFormat":1},{"version":"7165050eddaed878c2d2cd3cafcaf171072ac39e586a048c0603712b5555f536","impliedFormat":1},{"version":"26e629be9bbd94ea1d465af83ce5a3306890520695f07be6eb016f8d734d02be","impliedFormat":99},{"version":"82e687ebd99518bc63ea04b0c3810fb6e50aa6942decd0ca6f7a56d9b9a212a6","impliedFormat":99},{"version":"7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea","impliedFormat":1},{"version":"8f07f2b6514744ac96e51d7cb8518c0f4de319471237ea10cf688b8d0e9d0225","impliedFormat":1},{"version":"9ae0ca65717af0d3b554a26fd333ad9c78ad3910ad4b22140ff02acb63076927","impliedFormat":99},{"version":"e01ea380015ed698c3c0e2ccd0db72f3fc3ef1abc4519f122aa1c1a8d419a505","impliedFormat":99},{"version":"5ada1f8a9580c0f7478fe03ae3e07e958f0b79bdfb9dd50eeb98c1324f40011b","impliedFormat":99},{"version":"a8301dc90b4bd9fba333226ee0f1681aeeff1bd90233a8f647e687cb4b7d3521","impliedFormat":99},{"version":"e3225dc0bec183183509d290f641786245e6652bc3dce755f7ef404060693c35","impliedFormat":99},{"version":"09a03870ed8c55d7453bc9ad684df88965f2f770f987481ca71b8a09be5205bc","impliedFormat":99},{"version":"e6233e1c976265e85aa8ad76c3881febe6264cb06ae3136f0257e1eab4a6cc5a","impliedFormat":99},{"version":"2cdd50ddc49e2d608ee848fc4ab0db9a2716624fabb4209c7c683d87e54d79c5","impliedFormat":99},{"version":"e431d664338b8470abb1750d699c7dfcebb1a25434559ef85bb96f1e82de5972","impliedFormat":99},{"version":"2c4254139d037c3caca66ce291c1308c1b5092cfcb151eb25980db932dd3b01a","impliedFormat":99},{"version":"970ae00ed018cb96352dc3f37355ef9c2d9f8aa94d7174ccd6d0ed855e462097","impliedFormat":99},{"version":"d2f8dee457ef7660b604226d471d55d927c3051766bdd80353553837492635c3","impliedFormat":99},{"version":"110a503289a2ef76141ffff3ffceb9a1c3662c32748eb9f6777a2bd0866d6fb1","impliedFormat":99},{"version":"69bf2422313487956e4dacf049f30cb91b34968912058d244cb19e4baa24da97","impliedFormat":99},{"version":"310e6b62c493ce991624169a1c1904015769d947be88dc67e00adc7ebebcfa87","impliedFormat":99},{"version":"62fefda288160bf6e435b21cc03d3fbac11193d8d3bd0e82d86623cca7691c29","impliedFormat":99},{"version":"4f40c8f34ff420c9a4eff580b2503856efb722cb4a4956cee9044ef5ee3b9939","impliedFormat":99},{"version":"0309a01650023994ed96edbd675ea4fdc3779a823ce716ad876cc77afb792b62","impliedFormat":99},{"version":"f13d7beeea58e219daef3a40e0dc4f2bd7d9581ac04cedec236102a12dfd2090","impliedFormat":99},{"version":"34bd231cdbfcaed4a33638fa67333b17457f410a25b221ed841b8c3ada3ea1a9","impliedFormat":99},{"version":"48c411efce1848d1ed55de41d7deb93cbf7c04080912fd87aa517ed25ef42639","affectsGlobalScope":true,"impliedFormat":1},{"version":"a094636c05f3e75cb072684dd42cd25a4c1324bec4a866706c85c04cecd49613","affectsGlobalScope":true,"impliedFormat":99},{"version":"fe2d63fcfdde197391b6b70daf7be8c02a60afa90754a5f4a04bdc367f62793d","impliedFormat":99},{"version":"9a3e2c85ec1ab7a0874a19814cc73c691b716282cb727914093089c5a8475955","impliedFormat":99},{"version":"cbdc781d2429935c9c42acd680f2a53a9f633e8de03290ec6ea818e4f7bff19a","impliedFormat":99},{"version":"9f6d9f5dd710922f82f69abf9a324e28122b5f31ae6f6ce78427716db30a377e","impliedFormat":99},{"version":"ac2414a284bdecfd6ab7b87578744ab056cd04dd574b17853cd76830ef5b72f2","impliedFormat":99},{"version":"c3f921bbc9d2e65bd503a56fbc66da910e68467baedb0b9db0cc939e1876c0d7","impliedFormat":99},{"version":"2330087dfe056bbfd0f5590a99d1912ce6b4b6a65cca94466cdd142d55503e84","impliedFormat":1},{"version":"72422d0bac4076912385d0c10911b82e4694fc106e2d70added091f88f0824ba","impliedFormat":1},{"version":"da251b82c25bee1d93f9fd80c5a61d945da4f708ca21285541d7aff83ecb8200","impliedFormat":1},{"version":"4c8ca51077f382498f47074cf304d654aba5d362416d4f809dfdd5d4f6b3aaca","impliedFormat":1},{"version":"bcc1a744205fcd40c6c5c5fac042307fac6f9d6055a4f4e9b96f80599b9cd4cc","impliedFormat":1},{"version":"bdb83c76f2c2961c45d90f66f0cebeccee91704dfce8e4f7c7d298e94e2673d1","affectsGlobalScope":true,"impliedFormat":99},{"version":"582a39d3ee86cdfb7316d8ec51da53510b1824b896963cb4955d21f49b0570aa","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"}],"root":[[218,222],301],"options":{"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":false,"target":2,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[236,1],[215,2],[214,3],[128,4],[129,4],[130,5],[89,6],[131,7],[132,8],[133,9],[84,1],[87,10],[85,1],[86,1],[134,11],[135,12],[136,13],[137,14],[138,15],[139,16],[140,16],[142,17],[141,18],[143,19],[144,20],[145,21],[127,22],[88,1],[146,23],[147,24],[148,25],[181,26],[149,27],[150,28],[151,29],[152,30],[153,31],[154,32],[155,33],[156,34],[157,35],[158,36],[159,36],[160,37],[161,1],[162,1],[163,38],[165,39],[164,40],[166,41],[167,42],[168,43],[169,44],[170,45],[171,46],[172,47],[173,48],[174,49],[175,50],[176,51],[177,52],[178,53],[179,54],[180,55],[287,1],[288,56],[289,57],[292,58],[291,1],[223,1],[234,59],[229,60],[232,61],[279,62],[268,1],[271,63],[270,64],[282,64],[269,65],[290,1],[231,66],[233,66],[225,67],[228,68],[276,67],[230,69],[224,1],[188,70],[189,70],[191,71],[190,70],[186,72],[187,73],[199,74],[192,75],[193,76],[194,76],[198,77],[195,1],[196,1],[197,75],[185,78],[182,1],[184,1],[183,1],[243,1],[297,79],[299,80],[298,81],[296,82],[295,1],[212,1],[260,83],[258,84],[259,85],[247,86],[248,84],[255,87],[246,88],[251,89],[261,1],[252,90],[257,91],[263,92],[262,93],[245,94],[253,95],[254,96],[249,97],[256,83],[250,98],[216,1],[217,99],[238,100],[237,101],[244,1],[280,1],[226,1],[227,102],[83,103],[79,104],[81,104],[80,104],[82,104],[78,1],[76,1],[77,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[24,1],[25,1],[4,1],[26,1],[30,1],[27,1],[28,1],[29,1],[31,1],[32,1],[33,1],[5,1],[34,1],[35,1],[36,1],[37,1],[6,1],[41,1],[38,1],[39,1],[40,1],[42,1],[7,1],[43,1],[48,1],[49,1],[44,1],[45,1],[46,1],[47,1],[8,1],[53,1],[50,1],[51,1],[52,1],[54,1],[9,1],[55,1],[56,1],[57,1],[59,1],[58,1],[60,1],[61,1],[10,1],[62,1],[63,1],[64,1],[11,1],[65,1],[66,1],[67,1],[68,1],[69,1],[1,1],[70,1],[71,1],[12,1],[74,1],[73,1],[72,1],[75,1],[105,105],[115,106],[104,105],[125,107],[96,108],[95,109],[124,3],[118,110],[123,111],[98,112],[112,113],[97,114],[121,115],[93,116],[92,3],[122,117],[94,118],[99,119],[100,1],[103,119],[90,1],[126,120],[116,121],[107,122],[108,123],[110,124],[106,125],[109,126],[119,3],[101,127],[102,128],[111,129],[91,130],[114,121],[113,119],[117,1],[120,131],[277,132],[274,133],[275,132],[278,134],[273,1],[267,135],[264,136],[242,137],[240,138],[239,1],[241,139],[265,1],[266,140],[281,141],[272,142],[235,1],[293,143],[283,144],[294,145],[286,146],[285,147],[284,148],[300,149],[200,1],[220,150],[301,151],[219,152],[218,153],[221,154],[222,1],[211,155],[209,156],[202,157],[206,157],[205,158],[201,1],[203,157],[210,159],[208,160],[207,157],[204,157],[213,161]],"version":"5.7.2"}
|
package/build/src/main.d.ts
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
import * as _texonom_ntypes from '@texonom/ntypes';
|
|
2
|
-
import { ExtendedRecordMap, PageMap, Block, CollectionViewBlock, Decoration } from '@texonom/ntypes';
|
|
3
|
-
import { NotionAPI } from '@texonom/nclient';
|
|
4
1
|
import { Command } from 'clipanion';
|
|
5
|
-
import { PageTree } from '@texonom/nutils';
|
|
6
2
|
|
|
7
|
-
declare
|
|
8
|
-
token: string;
|
|
9
|
-
execute(): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare class NotionExportCommand extends NotionCommand {
|
|
3
|
+
declare class NotionExportCommand extends Command {
|
|
13
4
|
static paths: string[][];
|
|
14
|
-
notion: NotionAPI;
|
|
15
|
-
recordMap: ExtendedRecordMap;
|
|
16
|
-
pageTree: PageTree;
|
|
17
|
-
pageMap: PageMap;
|
|
18
|
-
promises: Promise<unknown>[];
|
|
19
5
|
folder: string;
|
|
6
|
+
md: string;
|
|
7
|
+
domain: string;
|
|
20
8
|
validation: boolean;
|
|
21
9
|
update: boolean;
|
|
22
10
|
page: string;
|
|
@@ -25,26 +13,8 @@ declare class NotionExportCommand extends NotionCommand {
|
|
|
25
13
|
load: boolean;
|
|
26
14
|
raw: boolean;
|
|
27
15
|
dataset: boolean;
|
|
28
|
-
|
|
29
|
-
constructor();
|
|
16
|
+
token: string;
|
|
30
17
|
execute(): Promise<void>;
|
|
31
|
-
loadRaw(): Promise<void>;
|
|
32
|
-
fetchRawSpace(startPage: string): Promise<void>;
|
|
33
|
-
saveRawSpace(): Promise<void>;
|
|
34
|
-
saveRawPage(id: string): Promise<void>;
|
|
35
|
-
exportMd(id: string, folder: string): Promise<void>;
|
|
36
|
-
pageToMarkdown(id: string, recordMap: ExtendedRecordMap, folder: string): Promise<string>;
|
|
37
|
-
getBlock(id: string, recordMap: ExtendedRecordMap, message?: string): Promise<Block>;
|
|
38
|
-
getUser(id: string, recordMap: ExtendedRecordMap): Promise<_texonom_ntypes.User>;
|
|
39
|
-
getSpace(id: string, recordMap: ExtendedRecordMap): Promise<_texonom_ntypes.Space>;
|
|
40
|
-
getCollection(collectionViewBlock: CollectionViewBlock, recordMap: ExtendedRecordMap, message?: string): Promise<_texonom_ntypes.Collection>;
|
|
41
|
-
getCollectionView(collectionId: string, viewId: string, recordMap: ExtendedRecordMap, message?: string): Promise<{
|
|
42
|
-
type: string;
|
|
43
|
-
blockIds: string[];
|
|
44
|
-
hasMore: boolean;
|
|
45
|
-
}>;
|
|
46
|
-
childrenToMd(parentBlock: Block, recordMap: ExtendedRecordMap, prefix: string, folder: string, page: Block): Promise<string>;
|
|
47
|
-
decorationsToMarkdown(decos: Decoration[], recordMap: ExtendedRecordMap, prefix?: string): Promise<string>;
|
|
48
18
|
}
|
|
49
19
|
|
|
50
20
|
export { NotionExportCommand };
|
package/build/src/main.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import{Cli as
|
|
2
|
-
|
|
3
|
-
`;a+=`
|
|
4
|
-
|
|
5
|
-
`:
|
|
6
|
-
|
|
7
|
-
`
|
|
8
|
-
|
|
9
|
-
`,a
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
${
|
|
13
|
-
|
|
14
|
-
${t.trim()}> `)+`
|
|
1
|
+
import{Cli as X,Builtins as Y}from"clipanion";var A="Notion CLI",W="1.4.1";import{Option as T,Command as ne}from"clipanion";import{NotionAPI as N}from"@texonom/nclient";import{getBlockTitle as E,getCanonicalPageId as L,parsePageId as H,formatDate as z,getTextContent as C,getBlockParent as I,defaultMapImageUrl as ee,getAllInSpace as te,getPageTitle as U}from"@texonom/nutils";import{join as b}from"path";import{mkdir as O,readFile as R}from"fs/promises";import Q from"JSONStream";import V from"graceful-fs";import{promisify as oe}from"util";import ae from"stream";import{format as ie}from"prettier";import{isCollection as G,isSpace as se}from"@texonom/ntypes";var K=oe(V.writeFile),q=(_,t,e="https://texonom.com")=>`${e}/${L(_,t)}`,J=class{constructor(t){this.promises=[];this.folder="texonom-raw";this.md="texonom-md";this.domain="https://texonom.com";this.validation=!1;this.update=!1;this.recursive=!1;this.prefetch=!1;this.load=!1;this.raw=!1;this.dataset=!1;this.page=H(t.page,{uuid:!1}),this.folder=t.folder??this.folder,this.domain=t.domain??this.domain,this.md=t.md??this.md,this.validation=t.validation??this.validation,this.update=t.update??this.update,this.recursive=t.recursive??this.recursive,this.prefetch=t.prefetch??this.prefetch,this.load=t.load??this.load,this.raw=t.raw??this.raw,this.dataset=t.dataset??this.dataset,this.token=t.token,this.notion=new N({authToken:this.token}),this.validation&&(K=async()=>{})}async execute(){let t=H(this.page);this.load&&(console.time("Load raw data"),await this.loadRaw(),console.timeEnd("Load raw data")),this.prefetch&&(console.time("Fetch raw data"),await this.fetchRawSpace(t),console.timeEnd("Fetch raw data")),this.raw?(console.time("Export raw files"),this.recursive?await this.saveRawSpace():await this.saveRawPage(t),console.timeEnd("Export raw files")):(console.time("Extract markdown"),await this.exportMd(t),console.timeEnd("Extract markdown")),await Promise.all(this.promises),this.update&&(this.recursive?await this.saveRawSpace():await this.saveRawPage(t))}async loadRaw(){let{recordMap:t,pageTree:e,pageMap:o}=await re(this.folder);this.recordMap=t,this.pageTree=e,this.pageMap=o,console.timeEnd("load prefetch file")}async fetchRawSpace(t){let{recordMap:e,pageTree:o,pageMap:i}=await te(t,this.notion.getPage.bind(this.notion),this.notion.getBlocks.bind(this.notion),this.notion.fetchCollections.bind(this.notion),{startRecordMap:this.recordMap,collectionConcurrency:100,concurrency:100,fetchOption:{timeout:1e4}});this.pageMap=i,this.recordMap=e,this.pageTree=o}async saveRawSpace(){if(this.validation)return;await O(this.folder,{recursive:!0});let t="json",e=[];await O(b(this.folder,"recordMap"),{recursive:!0});for(let a in this.recordMap)e.push(this.writeFile(`${b(this.folder,"recordMap",a)}.${t}`,JSON.stringify(this.recordMap[a])));let o=V.createWriteStream(`${b(this.folder,"pageMap")}.${t}`),i=Q.stringifyObject();i.pipe(o);for(let a in this.pageMap)i.write([a,this.pageMap[a]]);i.end(),e.push(this.writeFile(`${b(this.folder,"pageTree")}.${t}`,JSON.stringify(this.pageTree))),await Promise.all(e)}async saveRawPage(t){if(this.validation)return;await O(this.folder,{recursive:!0});let e=await this.notion.getPage(t),o=`${L(t,e)}`,i=JSON.stringify(e),a="json";i=await ie(i,{parser:"json"}),await this.writeFile(`${b(this.folder,o)}.${a}`,i)}async writeFile(t,e){if(this.folder)await K(t,e);else return}async exportMd(t){await O(this.md,{recursive:!0});try{let e=this.pageMap?this.pageMap[t]:await this.notion.getPage(t);this.recursive||(this.recordMap=e);try{e||(e=await this.notion.getPage(t))}catch{return}if(!["page","collection_view_page"].includes(e.block[t].value.type))throw new Error("Not a page");let o=await this.pageToMarkdown(t,e),i=b(this.md,`${L(t,e)}`);this.promises.push(this.writeFile(`${i}.md`,o))}catch(e){console.error(t,e)}}async pageToMarkdown(t,e){var h,l;let o=e.block[t].value,i=`---
|
|
2
|
+
`;i+=`Title: ${await this.decorationsToMarkdown((h=o.properties)!=null&&h.title?o.properties.title:[["Untitled"]],e)}
|
|
3
|
+
`;let a=I(o,e);if(se(a)?i+=`Parent: ${a.name}
|
|
4
|
+
`:G(a)?i+=`Parent: ${C(a.name)}
|
|
5
|
+
`:a&&(i+=`Parent: ${E(a,e)}
|
|
6
|
+
`),G(a)){let c=a!=null&&a.schema?Object.keys(a.schema):[];c.splice(c.indexOf("title"),1);for(let d of c){let m=a.schema[d].name,p=a.schema[d].type,n="";switch(p){case"text":n=(l=o==null?void 0:o.properties)!=null&&l[d]?await this.decorationsToMarkdown(o.properties[d],e):"";break;case"created_by":{let w=await this.getUser(o.created_by_id,e);n=w?w.name:"Unknown";break}case"last_edited_by":{let w=await this.getUser(o.last_edited_by_id,e);n=w?w.name:"Unknown";break}case"created_time":n=z(o.created_time);break;case"last_edited_time":n=z(o.last_edited_time);break;default:n=""}i+=`${m}: ${n}
|
|
7
|
+
`}}return i+=`---
|
|
8
|
+
`,i+await this.childrenToMd(o,e,`
|
|
9
|
+
`,o)}async childrenToMd(t,e,o,i){var l,c,d,m,p,n,w,f,$,v,g,y,S;let a="",h=1;for(let x of t.content?t.content:[]){let s=await this.getBlock(x,e,`${x} from ${E(i,e)}`);if(!s)continue;let u=(l=s==null?void 0:s.properties)==null?void 0:l.title;switch(s.type){case"header":a+=`${o}# ${await this.decorationsToMarkdown(u,e)}`;break;case"sub_header":a+=`${o}## ${await this.decorationsToMarkdown(u,e)}`;break;case"sub_sub_header":a+=`${o}### ${await this.decorationsToMarkdown(u,e)}`;break;case"text":a+=`${o}${await this.decorationsToMarkdown(u,e)}`;break;case"bulleted_list":a+=`${o}- ${await this.decorationsToMarkdown(u,e)}`;break;case"numbered_list":a+=`${o}${h++}. ${await this.decorationsToMarkdown(u,e)}`;break;case"to_do":a+=`${o}- [ ] ${await this.decorationsToMarkdown(u,e)}`;break;case"toggle":a+=`${o}<details><summary>${o}${o}${await this.decorationsToMarkdown(u,e)}</summary>
|
|
10
|
+
`;break;case"quote":a+=await this.decorationsToMarkdown(u,e,`
|
|
11
|
+
${o.trim()}> `)+`
|
|
12
|
+
`;break;case"code":a+=`${o}\`\`\`type${await this.decorationsToMarkdown(u,e)}\`\`\``;break;case"equation":a+=`${o}$$${await this.decorationsToMarkdown(u,e)}$$`;break;case"callout":{a+=await this.decorationsToMarkdown(u,e,`
|
|
13
|
+
${o.trim()}> `)+`
|
|
15
14
|
`;break}case"bookmark":{let r=`
|
|
16
|
-
${
|
|
17
|
-
`;break}case"external_object_instance":try{let r=
|
|
18
|
-
|:-:|`;let
|
|
19
|
-
${
|
|
20
|
-
`)}
|
|
21
|
-
`).map(
|
|
15
|
+
${o.trim()}> `;a+=`${r}[${C((c=s.properties)!=null&&c.title?s.properties.title:[["Untitled"]])}](${C(s.properties.link)})
|
|
16
|
+
`;break}case"external_object_instance":try{let r=s.format.original_url,k=s.format.attributes?(m=(d=s.format.attributes.filter(j=>j.id==="title")[0])==null?void 0:d.values)==null?void 0:m[0]:r;if(!r)break;a+=`${o}${o}[${k}](${r})${o}`;break}catch(r){console.error(r,s.id);break}case"collection_view_page":case"collection_view":{let r=await this.getCollection(s,e,`${s.id} from ${U(e)}`);if(!r)continue;a+=`${o}### ${await this.decorationsToMarkdown(r.name,e)}`,a+=`${o}|Title|
|
|
17
|
+
|:-:|`;let k=s.view_ids.map(M=>{var P;return e.collection_view[M]||console.debug(`Missing view ${M} from ${r.name}`),(P=e.collection_view[M])==null?void 0:P.value}).filter(Boolean),j=[];for(let M of k){let P=await this.getCollectionView(r.id,M.id,e,`${r.name} ${M.name}`);if(P)for(let Z of P.blockIds)j.push(Z);else break}for(let M of j){let P=(p=e.block[M])==null?void 0:p.value;P||console.debug(`no ${M} in ${r.name[0]}`),a+=`${o}|[${E(P,e)}](${q(M,e)})|`}if(this.recursive&&j.length)for(let M of j)this.promises.push(this.exportMd(M));break}case"page":{a+=`${o}${o}[${E(s,e)}](${q(s.id,e)})${o}`,this.recursive&&this.promises.push(this.exportMd(s.id));break}case"alias":{let r=(f=e.block[(w=(n=s.format)==null?void 0:n.alias_pointer)==null?void 0:w.id])==null?void 0:f.value;if(!r){console.debug(`Missing alias ${(v=($=s.format)==null?void 0:$.alias_pointer)==null?void 0:v.id} from ${E(i,e)} ${i.id}`);continue}a+=`${o}${o}[${E(r,e)}](${q(r.id,e)})${o}`;break}case"image":{let r=s.properties.caption?C(s.properties.caption):"";a+=`${o}==null?void 0:g.display_source,s)})`;break}case"video":a+=`${o}<video src="${s.format.display_source} />`;break;case"file":a+=`${o}[File](${(y=s.format)==null?void 0:y.display_source})`;break;case"pdf":a+=`${o}<iframe src="${(S=s.format)==null?void 0:S.display_source}"/>`;break;case"divider":a+=`${o}---`;break;case"column_list":break;case"column":break;default:a+=`${o}`}if(s.content&&s.type!=="page"&&s.type!=="collection_view_page"){let r=["toggle","transclusion_container","transclusion_reference","column_list"].includes(s.type)?o:`
|
|
18
|
+
${o.trim()}> `;a+=await this.childrenToMd(s,e,r,i),s.type==="column"&&(a+=`
|
|
19
|
+
`)}s.type==="toggle"&&(a+=`${o}</details>${o}`)}return a}async decorationsToMarkdown(t,e,o=""){var l,c,d;if(!t)return"";let i="";for(let m of t){let p="",[n,w]=m;if(!w)i+=n;else{let f=n;for(let v of w)switch(v[0]){case"p":{let g=v[1],y=await this.getBlock(g,e,`"p" ${U(e)}`);if(!y)break;let S=E(y,e),x=q(g,e);f=`[${S}](${x})`;break}case"a":{let g=v[1];f=`[${n}](${g})`;break}case"i":p+="*";break;case"b":p+="**";break;case"h":p+="";break;case"c":p+="`";break;case"s":p+="~~";break;case"e":p+="$",f=v[1];break;case"eoi":try{let g=v[1],y=await this.getBlock(g,e,`"eoi" ${U(e)}`);if(!y)break;let S=y.format.uri,x=y.format.attributes?(d=(c=(l=y.format.attributes)==null?void 0:l.filter(s=>s.id==="title")[0])==null?void 0:c.values)==null?void 0:d[0]:S;if(!S)break;f=`[${x}](${S})`;break}catch(g){console.error(g,m);break}case"u":{let g=await this.getUser(v[1],e);if(!g)break;f=`[@${g.name}](mailto:${g.email})`;break}}let $=f;w.find(v=>v[0]==="_")&&($=`<u>${f}</u>`),$=p+$+p.split("").reverse().join(""),i+=$}}return i.split(`
|
|
20
|
+
`).map(m=>o+m).join("")}async getBlock(t,e,o=""){var a,h,l,c,d;let i=(a=e.block[t])==null?void 0:a.value;!i&&this.recordMap&&(i=(h=this.recordMap.block[t])==null?void 0:h.value);try{!i&&this.token&&(i=(d=(c=(l=(await new N({authToken:this.token}).getBlocks([t])).recordMap)==null?void 0:l.block)==null?void 0:c[t])==null?void 0:d.value)}catch{i||console.debug(`${o} Missing block ${t}`)}return i&&(e.block[t]={value:i,role:"reader"},this.recordMap&&(this.recordMap.block[t]={value:i,role:"reader"})),i}async getUser(t,e){var i,a,h,l,c;let o=(i=e.notion_user[t])==null?void 0:i.value;!o&&this.recordMap&&(o=(a=this.recordMap.notion_user[t])==null?void 0:a.value);try{!o&&this.token&&(o=(c=(l=(h=(await new N({authToken:this.token}).getUsers([t])).recordMapWithRoles)==null?void 0:h.notion_user)==null?void 0:l[t])==null?void 0:c.value)}catch{o||console.debug(`Missing user ${t}`)}return o&&(e.notion_user[t]={value:o,role:"reader"},this.recordMap&&(this.recordMap.notion_user[t]={value:o,role:"reader"})),o}async getCollection(t,e,o=""){var h,l,c,d,m;let i=t.collection_id,a=(h=e.collection[t.collection_id])==null?void 0:h.value;if(!a&&this.recordMap&&(a=(l=this.recordMap.collection[i])==null?void 0:l.value,a)){e.collection[i]=(c=this.recordMap.collection)==null?void 0:c[i];for(let p of t.view_ids)e.collection_view[p]=(d=this.recordMap.collection_view)==null?void 0:d[p]}try{if(!a&&this.token){let n=await new N({authToken:this.token}).getPageRaw(t.id);a=(m=n.recordMap.collection[i])==null?void 0:m.value,a&&(e.collection_view={...e.collection_view,...n.recordMap.collection_view},e.collection={...e.collection,...n.recordMap.collection},e.block={...e.block,...n.recordMap.block},this.recordMap.collection_view={...this.recordMap.collection_view,...n.recordMap.collection_view},this.recordMap.collection={...this.recordMap.collection,...n.recordMap.collection},this.recordMap.block={...this.recordMap.block,...n.recordMap.block})}}catch{a||console.debug(`${o} Missing collection block ${t.id}`)}return await this.getCollectionView(i,t.view_ids[0],e,o),a}async getCollectionView(t,e,o,i=""){var h,l,c,d,m,p,n,w,f,$,v,g,y,S,x;let a=(c=(l=(h=o.collection_query)==null?void 0:h[t])==null?void 0:l[e])==null?void 0:c.collection_group_results;!a&&this.recordMap&&(a=(p=(m=(d=this.recordMap.collection_query)==null?void 0:d[t])==null?void 0:m[e])==null?void 0:p.collection_group_results,a&&(o.collection_query[t]={...o.collection_query[t],[e]:(w=(n=this.recordMap.collection_query)==null?void 0:n[t])==null?void 0:w[e]},o.collection[t]={...o.collection[t],[e]:($=(f=this.recordMap.collection)==null?void 0:f[t])==null?void 0:$[e]}));try{if(!a&&this.token){let u=await new N({authToken:this.token}).getCollectionData(t,e,(v=o.collection_view[e])==null?void 0:v.value);if(a=(y=(g=u.result)==null?void 0:g.reducerResults)==null?void 0:y.collection_group_results,a){o.collection_query[t]={...o.collection_query[t],[e]:(S=u.result)==null?void 0:S.reducerResults},this.recordMap&&(this.recordMap.collection_query[t]={...this.recordMap.collection_query[t],[e]:(x=u.result)==null?void 0:x.reducerResults});for(let r in u.recordMap.block){let k=u.recordMap.block[r].value;k&&(o.block[r]={value:k,role:"reader"},this.recordMap&&(this.recordMap.block[r]={value:k,role:"reader"}))}for(let r in u.recordMap.collection){let k=u.recordMap.collection[r].value;k&&(o.collection[r]={value:k,role:"reader"},this.recordMap&&(this.recordMap.collection[r]={value:k,role:"reader"}))}for(let r in u.recordMap.collection_view){let k=u.recordMap.collection_view[r].value;k&&(o.collection_view[r]={value:k,role:"reader"},this.recordMap&&(this.recordMap.collection_view[r]={value:k,role:"reader"}))}}}}catch{a||console.debug(`${i} Missing collection view ${e}`)}return a}async getSpace(t,e){var i,a,h,l,c;let o=(i=e.space[t])==null?void 0:i.value;!o&&this.recordMap&&(o=(a=this.recordMap.space[t])==null?void 0:a.value);try{!o&&this.token&&(o=(c=(l=(h=(await new N({authToken:this.token}).getSpaces([t])).recordMapWithRoles)==null?void 0:h.space)==null?void 0:l[t])==null?void 0:c.value,o&&(e.space[t]={value:o,role:"reader"},this.recordMap&&(this.recordMap.space[t]={value:o,role:"reader"})))}catch{o||console.debug(`Missing space ${t}`)}return o}};async function re(_){console.time("load prefetch file");let t=[];t.push(R(b(_,"recordMap","block.json"),"utf8").then(JSON.parse)),t.push(R(b(_,"recordMap","collection.json"),"utf8").then(JSON.parse)),t.push(R(b(_,"recordMap","notion_user.json"),"utf8").then(JSON.parse)),t.push(R(b(_,"recordMap","space.json"),"utf8").then(JSON.parse)),t.push(R(b(_,"recordMap","collection_view.json"),"utf8").then(JSON.parse)),t.push(R(b(_,"recordMap","collection_query.json"),"utf8").then(JSON.parse)),t.push(R(b(_,"recordMap","signed_urls.json"),"utf8").then(JSON.parse)),t.push(R(b(_,"pageTree.json"),"utf8").then(JSON.parse));let[e,o,i,a,h,l,c,d]=await Promise.all(t),m={},p=V.createReadStream(b(_,"pageMap.json")),n=Q.parse("*");return p.pipe(n),n.on("data",f=>{let $=Object.keys(f.block)[0];m[$]=f}),await new Promise(f=>ae.finished(n,$=>f($))),{recordMap:{block:e,collection:o,notion_user:i,space:a,collection_query:l,collection_view:h,signed_urls:c},pageTree:d,pageMap:m}}var B=class extends ne{constructor(){super(...arguments);this.folder=T.String("-o,--output","texonom-raw",{description:"Target root folder to export folder"});this.md=T.String("-m,--md","texonom-md",{description:"Target folder to export markdown"});this.domain=T.String("-d,--domain","https://texonom.com",{description:"Domain to fill in the link"});this.validation=T.Boolean("-v,--validation",{description:"Validation exported data only"});this.update=T.Boolean("-u,--update",{description:"Update exported data and resave to the --root"});this.page=T.String("-p,--page",{required:!0,description:"Target page to export"});this.recursive=T.Boolean("-r,--recursive",{description:"Recursively export children"});this.prefetch=T.Boolean("-f, --prefetch",{description:"Prefetch all space for faster export (recommended for exporting all pages in a space)"});this.load=T.Boolean("-l, --load",{description:"Load data from exported cache folder --root"});this.raw=T.Boolean("--raw",{description:`Export raw recordMap JSON data
|
|
21
|
+
Markdown format do not preserve all information`});this.dataset=T.Boolean("-d, --dataset",{description:"Export as dataset for LLM learning"});this.token=T.String("-t,--token",{description:"Notion Access Token"})}async execute(){await new J({folder:this.folder,validation:this.validation,update:this.update,page:this.page,recursive:this.recursive,prefetch:this.prefetch,load:this.load,raw:this.raw,dataset:this.dataset,token:this.token}).execute()}};B.paths=[["export"]];var F=new X({binaryName:"notion",binaryLabel:A,binaryVersion:W});F.register(B);F.register(Y.HelpCommand);F.register(Y.VersionCommand);F.runExit(process.argv.slice(2),X.defaultContext);export{B as NotionExportCommand};
|
|
22
22
|
//# sourceMappingURL=main.js.map
|
package/build/src/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/main.ts","../../package.json","../../src/notion/export.ts","../../src/notion/index.ts"],"sourcesContent":["import { Cli, Builtins } from 'clipanion'\n\nimport { version, displayName } from '../package.json'\nimport { NotionExportCommand } from './notion/export'\n\nconst cli = new Cli({\n binaryName: 'notion',\n binaryLabel: displayName,\n binaryVersion: version\n})\n\ncli.register(NotionExportCommand)\ncli.register(Builtins.HelpCommand)\ncli.register(Builtins.VersionCommand)\ncli.runExit(process.argv.slice(2), Cli.defaultContext)\n\nexport * from './notion/export'\n","{\n \"name\": \"@texonom/cli\",\n \"displayName\": \"Notion CLI\",\n \"version\": \"1.3.1\",\n \"type\": \"module\",\n \"description\": \"Texonom CLI which has ability to export data from Notion.so\",\n \"repository\": \"texonom/notion-node\",\n \"author\": \"Seonglae Cho <sungle3737@gmail.com>\",\n \"license\": \"MIT\",\n \"main\": \"./build/src/main.js\",\n \"module\": \"./build/src/main.js\",\n \"types\": \"./build/src/main.d.ts\",\n \"sideEffects\": false,\n \"files\": [\n \"build\"\n ],\n \"engines\": {\n \"node\": \">=20.11.0\"\n },\n \"bin\": {\n \"notion\": \"./build/src/main.js\"\n },\n \"scripts\": {\n \"build\": \"tsc && tsup\",\n \"watch\": \"tsup --watch --silent --onSuccess 'echo build successful'\",\n \"test\": \"vitest --run\",\n \"prerelease\": \"standard-version --skip.changelog --prerelease\",\n \"release\": \"standard-version --release-as\",\n \"pu\": \"pnpm publish\"\n },\n \"dependencies\": {\n \"@texonom/nclient\": \"workspace:^\",\n \"@texonom/ntypes\": \"workspace:^\",\n \"@texonom/nutils\": \"workspace:^\",\n \"JSONStream\": \"^1.3.5\",\n \"clipanion\": \"^3.2.1\",\n \"graceful-fs\": \"^4.2.11\",\n \"prettier\": \"^3.2.4\"\n },\n \"standard-version\": {\n \"skip\": {\n \"commit\": true,\n \"tag\": true\n }\n },\n \"devDependencies\": {\n \"@types/graceful-fs\": \"^4.1.9\",\n \"@types/jsonstream\": \"^0.8.33\"\n }\n}\n","import { join } from 'path'\nimport { mkdir, readFile } from 'fs/promises'\nimport JSONStream from 'JSONStream'\nimport fs from 'graceful-fs'\nimport { promisify } from 'util'\nimport stream from 'stream'\n\nimport prettier from 'prettier'\n\nimport { Option } from 'clipanion'\nimport { NotionAPI } from '@texonom/nclient'\nimport {\n getBlockTitle,\n getCanonicalPageId,\n parsePageId,\n formatDate,\n getTextContent,\n getBlockParent,\n defaultMapImageUrl,\n getAllInSpace,\n getPageTitle\n} from '@texonom/nutils'\nimport { isCollection, isSpace } from '@texonom/ntypes'\n\nimport { NotionCommand } from '.'\n\nimport type { PageTree } from '@texonom/nutils'\nimport type { ExtendedRecordMap, Decoration, PageBlock, Block, PageMap, CollectionViewBlock } from '@texonom/ntypes'\n\nlet writeFile = promisify(fs.writeFile)\n\nexport class NotionExportCommand extends NotionCommand {\n static paths = [['export']]\n notion: NotionAPI\n recordMap: ExtendedRecordMap\n pageTree: PageTree\n pageMap: PageMap\n promises: Promise<unknown>[] = []\n\n folder = Option.String('-o,--output', 'data', {\n description: 'Export folder'\n })\n validation = Option.Boolean('-v,--validation', {\n description: 'Validation exported data only'\n })\n update = Option.Boolean('-u,--update', {\n description: 'Update exported data and resave to --folder'\n })\n page = Option.String('-p,--page', {\n required: true,\n description: 'Target page to export'\n })\n recursive = Option.Boolean('-r,--recursive', {\n description: 'Recursively export children'\n })\n prefetch = Option.Boolean('-f, --prefetch', {\n description: 'Prefetch all space for faster export (recommended for exporting all pages in a space)'\n })\n load = Option.Boolean('-l, --load', {\n description: 'Load datas from exported cache folder --folder'\n })\n raw = Option.Boolean('--raw', {\n description: 'Export raw recordMap JSON data \\n Markdown format do not preserve all information'\n })\n dataset = Option.Boolean('-d, --dataset', {\n description: 'Export as dataset for LLM learning'\n })\n list: string[]\n constructor() {\n super()\n }\n\n // Main execution function\n async execute() {\n await super.execute()\n const id = parsePageId(this.page)\n this.notion = new NotionAPI()\n if (this.validation) writeFile = async () => {}\n\n // Load\n if (this.load) await this.loadRaw()\n if (this.prefetch) await this.fetchRawSpace(id)\n\n console.time('time spent')\n // Save\n if (this.raw)\n if (this.recursive) await this.saveRawSpace()\n else await this.saveRawPage(id)\n // Export\n else await this.exportMd(id, this.folder)\n await Promise.all(this.promises)\n console.timeEnd('time spent')\n // Update\n if (this.update)\n if (this.recursive) await this.saveRawSpace()\n else await this.saveRawPage(id)\n }\n\n async loadRaw() {\n console.time('load prefetch file')\n const promises = []\n promises.push(readFile(join(this.folder, 'recordMap', 'block.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(this.folder, 'recordMap', 'collection.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(this.folder, 'recordMap', 'notion_user.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(this.folder, 'recordMap', 'space.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(this.folder, 'recordMap', 'collection_view.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(this.folder, 'recordMap', 'collection_query.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(this.folder, 'recordMap', 'signed_urls.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(this.folder, 'pageTree.json'), 'utf8').then(JSON.parse))\n\n const [block, collection, notion_user, space, collection_view, collection_query, signed_urls, pageTree] =\n await Promise.all(promises)\n\n const pageMap = {}\n const inputStream = fs.createReadStream(join(this.folder, 'pageMap.json'))\n const parseStream = JSONStream.parse('*')\n inputStream.pipe(parseStream)\n parseStream.on('data', (recordMap: ExtendedRecordMap) => {\n const key = Object.keys(recordMap.block)[0]\n pageMap[key] = recordMap\n })\n await new Promise(res => stream.finished(parseStream, err => res(err)))\n this.pageMap = pageMap\n this.pageTree = pageTree\n this.recordMap = { block, collection, notion_user, space, collection_query, collection_view, signed_urls }\n console.timeEnd('load prefetch file')\n }\n\n async fetchRawSpace(startPage: string) {\n const { recordMap, pageTree, pageMap } = await getAllInSpace(\n startPage,\n this.notion.getPage.bind(this.notion),\n this.notion.getBlocks.bind(this.notion),\n this.notion.fetchCollections.bind(this.notion),\n { startRecordMap: this.recordMap, collectionConcurrency: 100, concurrency: 100, fetchOption: { timeout: 10000 } }\n )\n this.pageMap = pageMap\n this.recordMap = recordMap\n this.pageTree = pageTree\n }\n\n async saveRawSpace() {\n if (this.validation) return\n await mkdir(this.folder, { recursive: true })\n const ext = 'json'\n console.time('write file')\n const promises = []\n await mkdir(join(this.folder, 'recordMap'), { recursive: true })\n for (const table in this.recordMap)\n promises.push(writeFile(`${join(this.folder, 'recordMap', table)}.${ext}`, JSON.stringify(this.recordMap[table])))\n\n const outputStream = fs.createWriteStream(`${join(this.folder, 'pageMap')}.${ext}`)\n const transformStream = JSONStream.stringifyObject()\n transformStream.pipe(outputStream)\n // @ts-ignore\n for (const key in this.pageMap) transformStream.write([key, this.pageMap[key]])\n transformStream.end()\n\n promises.push(writeFile(`${join(this.folder, 'pageTree')}.${ext}`, JSON.stringify(this.pageTree)))\n\n await Promise.all(promises)\n console.timeEnd('write file')\n }\n\n async saveRawPage(id: string) {\n if (this.validation) return\n await mkdir(this.folder, { recursive: true })\n const recordMap = await this.notion.getPage(id)\n const filename = `${getCanonicalPageId(id, recordMap)}`\n let target = JSON.stringify(recordMap)\n const ext = 'json'\n target = await prettier.format(target, { parser: 'json' })\n await writeFile(`${join(this.folder, filename)}.${ext}`, target)\n }\n\n async exportMd(id: string, folder: string) {\n try {\n let recordMap = this.pageMap ? this.pageMap[id] : await this.notion.getPage(id)\n if (!this.recursive) this.recordMap = recordMap\n try {\n if (!recordMap) recordMap = await this.notion.getPage(id)\n } catch {\n return\n }\n if (!['page', 'collection_view_page'].includes(recordMap.block[id].value.type)) throw new Error('Not a page')\n const target = await this.pageToMarkdown(id, recordMap, folder)\n const path = join(folder, `${getCanonicalPageId(id, recordMap)}`)\n this.promises.push(writeFile(`${path}.md`, target))\n } catch (e) {\n console.error(id, e)\n }\n }\n\n async pageToMarkdown(id: string, recordMap: ExtendedRecordMap, folder: string) {\n const page = recordMap.block[id].value as PageBlock\n\n // Metadata\n let md = `---\\n`\n md += `Title: ${await this.decorationsToMarkdown(\n page.properties?.title ? page.properties.title : [['Untitled']],\n recordMap\n )}\\n`\n const parent = getBlockParent(page, recordMap)\n if (isSpace(parent)) md += `Parent: ${parent.name}\\n`\n else if (isCollection(parent)) md += `Parent: ${getTextContent(parent.name)}\\n`\n else if (parent) md += `Parent: ${getBlockTitle(parent, recordMap)}\\n`\n\n // Collection Attributes\n if (isCollection(parent)) {\n const properties = parent?.schema ? Object.keys(parent.schema) : []\n properties.splice(properties.indexOf('title'), 1)\n for (const property of properties) {\n const propName = parent.schema[property].name\n const propType = parent.schema[property].type\n let value = String()\n switch (propType) {\n case 'text':\n value = page?.properties?.[property]\n ? await this.decorationsToMarkdown(page.properties[property], recordMap)\n : ''\n break\n case 'created_by': {\n const user = await this.getUser(page.created_by_id, recordMap)\n value = user ? user.name : 'Unknown'\n break\n }\n case 'last_edited_by': {\n const user = await this.getUser(page.last_edited_by_id, recordMap)\n value = user ? user.name : 'Unknown'\n break\n }\n case 'created_time':\n value = formatDate(page.created_time)\n break\n case 'last_edited_time':\n value = formatDate(page.last_edited_time)\n break\n default:\n value = ''\n }\n md += `${propName}: ${value}\\n`\n }\n }\n md += '---\\n'\n\n return md + (await this.childrenToMd(page, recordMap, '\\n', folder, page))\n }\n\n async getBlock(id: string, recordMap: ExtendedRecordMap, message = '') {\n let block = recordMap.block[id]?.value\n if (!block && this.recordMap) block = this.recordMap.block[id]?.value\n try {\n if (!block && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getBlocks([id])\n block = response.recordMap?.block?.[id]?.value\n }\n } catch {\n if (!block) console.debug(`${message} Missing block ${id}`)\n }\n if (block) {\n recordMap.block[id] = { value: block, role: 'reader' }\n if (this.recordMap) this.recordMap.block[id] = { value: block, role: 'reader' }\n }\n return block\n }\n\n async getUser(id: string, recordMap: ExtendedRecordMap) {\n let user = recordMap.notion_user[id]?.value\n if (!user && this.recordMap) user = this.recordMap.notion_user[id]?.value\n try {\n if (!user && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getUsers([id])\n user = response.recordMapWithRoles?.notion_user?.[id]?.value\n }\n } catch {\n if (!user) console.debug(`Missing user ${id}`)\n }\n if (user) {\n recordMap.notion_user[id] = { value: user, role: 'reader' }\n if (this.recordMap) this.recordMap.notion_user[id] = { value: user, role: 'reader' }\n }\n return user\n }\n\n async getSpace(id: string, recordMap: ExtendedRecordMap) {\n let space = recordMap.space[id]?.value\n if (!space && this.recordMap) space = this.recordMap.space[id]?.value\n try {\n if (!space && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getSpaces([id])\n space = response.recordMapWithRoles?.space?.[id]?.value\n if (space) {\n recordMap.space[id] = { value: space, role: 'reader' }\n if (this.recordMap) this.recordMap.space[id] = { value: space, role: 'reader' }\n }\n }\n } catch {\n if (!space) console.debug(`Missing space ${id}`)\n }\n return space\n }\n\n async getCollection(collectionViewBlock: CollectionViewBlock, recordMap: ExtendedRecordMap, message = '') {\n const collectionId = collectionViewBlock.collection_id\n let collection = recordMap.collection[collectionViewBlock.collection_id]?.value\n if (!collection && this.recordMap) {\n collection = this.recordMap.collection[collectionId]?.value\n if (collection) {\n recordMap.collection[collectionId] = this.recordMap.collection?.[collectionId]\n for (const viewId of collectionViewBlock.view_ids)\n recordMap.collection_view[viewId] = this.recordMap.collection_view?.[viewId]\n }\n }\n try {\n if (!collection && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getPageRaw(collectionViewBlock.id)\n collection = response.recordMap.collection[collectionId]?.value\n if (collection) {\n recordMap.collection_view = { ...recordMap.collection_view, ...response.recordMap.collection_view }\n recordMap.collection = { ...recordMap.collection, ...response.recordMap.collection }\n recordMap.block = { ...recordMap.block, ...response.recordMap.block }\n this.recordMap.collection_view = { ...this.recordMap.collection_view, ...response.recordMap.collection_view }\n this.recordMap.collection = { ...this.recordMap.collection, ...response.recordMap.collection }\n this.recordMap.block = { ...this.recordMap.block, ...response.recordMap.block }\n }\n }\n } catch {\n if (!collection) console.debug(`${message} Missing collection block ${collectionViewBlock.id}`)\n }\n await this.getCollectionView(collectionId, collectionViewBlock.view_ids[0], recordMap, message)\n return collection\n }\n\n async getCollectionView(collectionId: string, viewId: string, recordMap: ExtendedRecordMap, message = '') {\n let results = recordMap.collection_query?.[collectionId]?.[viewId]?.collection_group_results\n if (!results && this.recordMap) {\n results = this.recordMap.collection_query?.[collectionId]?.[viewId]?.collection_group_results\n if (results) {\n recordMap.collection_query![collectionId] = {\n ...recordMap.collection_query![collectionId],\n [viewId]: this.recordMap.collection_query?.[collectionId]?.[viewId]\n }\n recordMap.collection![collectionId] = {\n ...recordMap.collection![collectionId],\n [viewId]: this.recordMap.collection?.[collectionId]?.[viewId]\n }\n }\n }\n try {\n if (!results && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getCollectionData(collectionId, viewId, recordMap.collection_view[viewId]?.value)\n results = response.result?.reducerResults?.collection_group_results\n if (results) {\n recordMap.collection_query![collectionId] = {\n ...recordMap.collection_query![collectionId],\n [viewId]: response.result?.reducerResults\n }\n if (this.recordMap)\n this.recordMap.collection_query![collectionId] = {\n ...this.recordMap.collection_query![collectionId],\n [viewId]: response.result?.reducerResults\n }\n for (const blockId in response.recordMap.block) {\n const block = response.recordMap.block[blockId].value\n if (block) {\n recordMap.block[blockId] = { value: block, role: 'reader' }\n if (this.recordMap) this.recordMap.block[blockId] = { value: block, role: 'reader' }\n }\n }\n for (const collection in response.recordMap.collection) {\n const collectionValue = response.recordMap.collection[collection].value\n if (collectionValue) {\n recordMap.collection[collection] = { value: collectionValue, role: 'reader' }\n if (this.recordMap) this.recordMap.collection[collection] = { value: collectionValue, role: 'reader' }\n }\n }\n for (const collectionView in response.recordMap.collection_view) {\n const collectionViewValue = response.recordMap.collection_view[collectionView].value\n if (collectionViewValue) {\n recordMap.collection_view[collectionView] = { value: collectionViewValue, role: 'reader' }\n if (this.recordMap)\n this.recordMap.collection_view[collectionView] = { value: collectionViewValue, role: 'reader' }\n }\n }\n }\n }\n } catch {\n if (!results) console.debug(`${message} Missing collection view ${viewId}`)\n }\n return results\n }\n\n async childrenToMd(parentBlock: Block, recordMap: ExtendedRecordMap, prefix: string, folder: string, page: Block) {\n let md = String()\n let numbering = 1\n for (const child of parentBlock.content ? parentBlock.content : []) {\n const childBlock = await this.getBlock(child, recordMap, `${child} from ${getBlockTitle(page, recordMap)}`)\n if (!childBlock) continue\n\n const title = childBlock?.properties?.title\n switch (childBlock.type) {\n case 'header':\n md += `${prefix}# ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'sub_header':\n md += `${prefix}## ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'sub_sub_header':\n md += `${prefix}### ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'text':\n md += `${prefix}${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'bulleted_list':\n md += `${prefix}- ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'numbered_list':\n md += `${prefix}${numbering++}. ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'to_do':\n md += `${prefix}- [ ] ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'toggle':\n md += `${prefix}<details><summary>${prefix}${prefix}${await this.decorationsToMarkdown(\n title,\n recordMap\n )}</summary>\\n`\n break\n case 'quote':\n md += (await this.decorationsToMarkdown(title, recordMap, `\\n${prefix.trim()}> `)) + '\\n'\n break\n case 'code':\n md += `${prefix}\\`\\`\\`type${await this.decorationsToMarkdown(title, recordMap)}\\`\\`\\``\n break\n case 'equation':\n md += `${prefix}$$${await this.decorationsToMarkdown(title, recordMap)}$$`\n break\n case 'callout': {\n md += (await this.decorationsToMarkdown(title, recordMap, `\\n${prefix.trim()}> `)) + '\\n'\n break\n }\n case 'bookmark': {\n const nesting = `\\n${prefix.trim()}> `\n md += `${nesting}[${getTextContent(\n childBlock.properties?.title ? childBlock.properties.title : [['Untitled']]\n )}](${getTextContent(childBlock.properties.link)})\\n`\n break\n }\n case 'external_object_instance': {\n try {\n const url = childBlock.format.original_url\n const title = childBlock.format.attributes\n ? childBlock.format.attributes.filter(attr => attr.id === 'title')[0]?.values?.[0]\n : url\n if (!url) break\n md += `${prefix}${prefix}[${title}](${url})${prefix}`\n break\n } catch (e) {\n console.error(e, childBlock.id)\n break\n }\n }\n\n // Collection\n case 'collection_view_page':\n case 'collection_view': {\n const collection = await this.getCollection(\n childBlock as CollectionViewBlock,\n recordMap,\n `${childBlock.id} from ${getPageTitle(recordMap)}`\n )\n if (!collection) continue\n\n // Generate Table\n md += `${prefix}### ${await this.decorationsToMarkdown(collection.name, recordMap)}`\n md += `${prefix}|Title|\\n|:-:|`\n const views = childBlock.view_ids\n .map(id => {\n if (!recordMap.collection_view[id]) console.debug(`Missing view ${id} from ${collection.name}`)\n return recordMap.collection_view[id]?.value\n })\n .filter(Boolean)\n const children = []\n for (const view of views) {\n const results = await this.getCollectionView(\n collection.id,\n view.id,\n recordMap,\n `${collection.name} ${view.name}`\n )\n if (results) for (const result of results.blockIds) children.push(result)\n else break\n }\n for (const childPage of children) {\n const childBlock = recordMap.block[childPage]?.value\n if (!childBlock) console.debug(`no ${childPage} in ${collection.name[0]}`)\n md += `${prefix}|[${getBlockTitle(childBlock, recordMap)}](${getBlockLink(childPage, recordMap)})|`\n }\n\n // Make children page\n if (this.recursive && children.length) {\n const parentFolder = join(\n folder,\n `${getCanonicalPageId(page.id, recordMap)}`,\n `${getCanonicalPageId(collection.id, recordMap)}`\n )\n await mkdir(parentFolder, { recursive: true })\n for (const childPage of children) this.promises.push(this.exportMd(childPage, parentFolder))\n }\n break\n }\n case 'page': {\n md += `${prefix}${prefix}[${getBlockTitle(childBlock, recordMap)}](${getBlockLink(\n childBlock.id,\n recordMap\n )})${prefix}`\n if (this.recursive) {\n const parentFolder = join(folder, `${getCanonicalPageId(page.id, recordMap)}`)\n await mkdir(parentFolder, { recursive: true })\n this.promises.push(this.exportMd(childBlock.id, parentFolder))\n }\n break\n }\n case 'alias': {\n const aliasBlock = recordMap.block[childBlock.format?.alias_pointer?.id]?.value\n if (!aliasBlock) {\n console.debug(\n `Missing alias ${childBlock.format?.alias_pointer?.id} from ${getBlockTitle(page, recordMap)} ${page.id}`\n )\n continue\n }\n md += `${prefix}${prefix}[${getBlockTitle(aliasBlock, recordMap)}](${getBlockLink(\n aliasBlock.id,\n recordMap\n )})${prefix}`\n break\n }\n\n // Media\n case 'image': {\n const caption = childBlock.properties.caption ? getTextContent(childBlock.properties.caption) : ''\n md += `${prefix}})`\n break\n }\n\n case 'video':\n md += `${prefix}<video src=\"${childBlock.format.display_source} />`\n break\n\n // Embed\n case 'file':\n md += `${prefix}[File](${childBlock.format?.display_source})`\n break\n case 'pdf':\n md += `${prefix}<iframe src=\"${childBlock.format?.display_source}\"/>`\n break\n\n // Else\n case 'divider':\n md += `${prefix}---`\n break\n case 'column_list':\n break\n case 'column':\n break\n default:\n md += `${prefix}`\n }\n\n // Finalize\n if (childBlock.content && childBlock.type !== 'page' && childBlock.type !== 'collection_view_page') {\n const nestedPrefix = ['toggle', `transclusion_container`, `transclusion_reference`, 'column_list'].includes(\n childBlock.type\n )\n ? prefix\n : `\\n${prefix.trim()}> `\n md += await this.childrenToMd(childBlock, recordMap, nestedPrefix, folder, page)\n if (childBlock.type === 'column') md += '\\n'\n }\n if (childBlock.type === 'toggle') md += `${prefix}</details>${prefix}`\n }\n return md\n }\n\n async decorationsToMarkdown(decos: Decoration[], recordMap: ExtendedRecordMap, prefix = '') {\n if (!decos) return String()\n let md = String()\n for (const deco of decos) {\n let wrapper = String()\n const [text, subdecos] = deco\n if (!subdecos) {\n md += text\n } else {\n let textonly: string = text\n for (const subdeco of subdecos)\n switch (subdeco[0]) {\n case 'p': {\n const blockId = subdeco[1]\n const linkedBlock = await this.getBlock(blockId, recordMap, `\"p\" ${getPageTitle(recordMap)}`)\n if (!linkedBlock) break\n\n const title = getBlockTitle(linkedBlock, recordMap)\n const url = getBlockLink(blockId, recordMap)\n textonly = `[${title}](${url})`\n break\n }\n case 'a': {\n const url = subdeco[1]\n textonly = `[${text}](${url})`\n break\n }\n case 'i':\n wrapper += '*'\n break\n case 'b':\n wrapper += '**'\n break\n case 'h':\n // Disable for now == syntax does not supported well\n wrapper += ''\n break\n case 'c':\n wrapper += '`'\n break\n case 's':\n wrapper += '~~'\n break\n case 'e':\n wrapper += '$'\n textonly = subdeco[1]\n break\n case 'eoi': {\n try {\n const objectid = subdeco[1]\n const object = await this.getBlock(objectid, recordMap, `\"eoi\" ${getPageTitle(recordMap)}`)\n if (!object) break\n const url = object.format.uri\n const title = object.format.attributes\n ? object.format.attributes?.filter(attr => attr.id === 'title')[0]?.values?.[0]\n : url\n if (!url) break\n textonly = `[${title}](${url})`\n break\n } catch (e) {\n console.error(e, deco)\n break\n }\n }\n case 'u': {\n const user = await this.getUser(subdeco[1], recordMap)\n if (!user) break\n textonly = `[@${user.name}](mailto:${user.email})`\n break\n }\n }\n let decorated: string = textonly\n if (subdecos.find(subdeco => subdeco[0] === '_')) decorated = `<u>${textonly}</u>`\n decorated = wrapper + decorated + wrapper.split('').reverse().join('')\n md += decorated\n }\n }\n const lines = md.split('\\n')\n const prefixed = lines.map(line => prefix + line)\n return prefixed.join('')\n }\n}\n\nconst getBlockLink = (blockId: string, recordMap: ExtendedRecordMap, domain = 'https://texonom.com') =>\n `${domain}/${getCanonicalPageId(blockId, recordMap)}`\n","import { Command, Option } from 'clipanion'\n\nexport abstract class NotionCommand extends Command {\n // for private page or eoi like github inline block\n token = Option.String('-t,--token', {\n description: 'Notion Access Token'\n })\n async execute() {}\n}\n"],"mappings":"AAAA,OAAS,OAAAA,EAAK,YAAAC,MAAgB,YCE5B,IAAAC,EAA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AI,SAASK,EAAS,cAAc,EACpCL,EAAI,QAAQ,QAAQ,KAAK,MAAM,CAAC,EAAGC,EAAI,cAAc","names":["Cli","Builtins","displayName","version","join","mkdir","readFile","JSONStream","fs","promisify","stream","prettier","Option","NotionAPI","getBlockTitle","getCanonicalPageId","parsePageId","formatDate","getTextContent","getBlockParent","defaultMapImageUrl","getAllInSpace","getPageTitle","isCollection","isSpace","Command","Option","NotionCommand","writeFile","promisify","fs","NotionExportCommand","NotionCommand","Option","id","parsePageId","NotionAPI","promises","readFile","join","block","collection","notion_user","space","collection_view","collection_query","signed_urls","pageTree","pageMap","inputStream","parseStream","JSONStream","recordMap","key","res","stream","err","startPage","getAllInSpace","mkdir","ext","table","outputStream","transformStream","filename","getCanonicalPageId","target","prettier","folder","path","e","_a","_b","page","md","parent","getBlockParent","isSpace","isCollection","getTextContent","getBlockTitle","properties","property","propName","propType","value","user","formatDate","message","_c","_d","_e","collectionViewBlock","collectionId","viewId","response","_f","_g","_h","_i","_j","_k","_l","_m","_n","_o","results","blockId","collectionValue","collectionView","collectionViewValue","parentBlock","prefix","numbering","child","childBlock","title","nesting","url","attr","getPageTitle","views","children","view","result","childPage","getBlockLink","parentFolder","aliasBlock","caption","defaultMapImageUrl","nestedPrefix","decos","deco","wrapper","text","subdecos","textonly","subdeco","linkedBlock","objectid","object","decorated","line","domain","cli","Cli","displayName","version","NotionExportCommand","Builtins"]}
|
|
1
|
+
{"version":3,"sources":["../../src/main.ts","../../package.json","../../src/notion/export.ts","../../src/notion/index.ts"],"sourcesContent":["import { Cli, Builtins } from 'clipanion'\n\nimport { version, displayName } from '../package.json'\nimport { NotionExportCommand } from './notion/export'\n\nconst cli = new Cli({\n binaryName: 'notion',\n binaryLabel: displayName,\n binaryVersion: version\n})\n\ncli.register(NotionExportCommand)\ncli.register(Builtins.HelpCommand)\ncli.register(Builtins.VersionCommand)\ncli.runExit(process.argv.slice(2), Cli.defaultContext)\n\nexport * from './notion/export'\n","{\n \"name\": \"@texonom/cli\",\n \"displayName\": \"Notion CLI\",\n \"version\": \"1.4.1\",\n \"type\": \"module\",\n \"description\": \"Texonom CLI which has ability to export data from Notion.so\",\n \"repository\": \"texonom/notion-node\",\n \"author\": \"Seonglae Cho <sungle3737@gmail.com>\",\n \"license\": \"MIT\",\n \"main\": \"./build/src/main.js\",\n \"module\": \"./build/src/main.js\",\n \"types\": \"./build/src/main.d.ts\",\n \"sideEffects\": false,\n \"files\": [\n \"build\"\n ],\n \"engines\": {\n \"node\": \">=20.18.1\"\n },\n \"bin\": {\n \"notion\": \"./build/src/main.js\"\n },\n \"scripts\": {\n \"build\": \"tsc && tsup\",\n \"watch\": \"tsup --watch --silent --onSuccess 'echo build successful'\",\n \"test\": \"vitest --run\",\n \"prerelease\": \"standard-version --skip.changelog --prerelease\",\n \"release\": \"standard-version --release-as\",\n \"pu\": \"pnpm publish\"\n },\n \"dependencies\": {\n \"@texonom/nclient\": \"workspace:^\",\n \"@texonom/ntypes\": \"workspace:^\",\n \"@texonom/nutils\": \"workspace:^\",\n \"JSONStream\": \"^1.3.5\",\n \"clipanion\": \"^3.2.1\",\n \"graceful-fs\": \"^4.2.11\",\n \"prettier\": \"^3.3.3\"\n },\n \"standard-version\": {\n \"skip\": {\n \"commit\": true,\n \"tag\": true\n }\n },\n \"devDependencies\": {\n \"@types/graceful-fs\": \"^4.1.9\",\n \"@types/jsonstream\": \"^0.8.33\"\n }\n}\n","import { Option, Command } from 'clipanion'\nimport { NotionExporter } from './index'\n\nexport class NotionExportCommand extends Command {\n static paths = [['export']]\n\n folder = Option.String('-o,--output', 'texonom-raw', {\n description: 'Target root folder to export folder'\n })\n md = Option.String('-m,--md', 'texonom-md', {\n description: 'Target folder to export markdown'\n })\n domain = Option.String('-d,--domain', 'https://texonom.com', {\n description: 'Domain to fill in the link'\n })\n validation = Option.Boolean('-v,--validation', {\n description: 'Validation exported data only'\n })\n update = Option.Boolean('-u,--update', {\n description: 'Update exported data and resave to the --root'\n })\n page = Option.String('-p,--page', {\n required: true,\n description: 'Target page to export'\n })\n recursive = Option.Boolean('-r,--recursive', {\n description: 'Recursively export children'\n })\n prefetch = Option.Boolean('-f, --prefetch', {\n description: 'Prefetch all space for faster export (recommended for exporting all pages in a space)'\n })\n load = Option.Boolean('-l, --load', {\n description: 'Load data from exported cache folder --root'\n })\n raw = Option.Boolean('--raw', {\n description: 'Export raw recordMap JSON data \\n Markdown format do not preserve all information'\n })\n dataset = Option.Boolean('-d, --dataset', {\n description: 'Export as dataset for LLM learning'\n })\n token = Option.String('-t,--token', {\n description: 'Notion Access Token'\n })\n\n async execute() {\n const exporter = new NotionExporter({\n folder: this.folder,\n validation: this.validation,\n update: this.update,\n page: this.page,\n recursive: this.recursive,\n prefetch: this.prefetch,\n load: this.load,\n raw: this.raw,\n dataset: this.dataset,\n token: this.token\n })\n await exporter.execute()\n }\n}\n","import { NotionAPI } from '@texonom/nclient'\nimport {\n getBlockTitle,\n getCanonicalPageId,\n parsePageId,\n formatDate,\n getTextContent,\n getBlockParent,\n defaultMapImageUrl,\n getAllInSpace,\n getPageTitle\n} from '@texonom/nutils'\nimport { join } from 'path'\nimport { mkdir, readFile } from 'fs/promises'\nimport JSONStream from 'JSONStream'\nimport fs from 'graceful-fs'\nimport { promisify } from 'util'\nimport stream from 'stream'\nimport { format } from 'prettier'\nimport { isCollection, isSpace } from '@texonom/ntypes'\n\nimport type { PageTree } from '@texonom/nutils'\nimport type { ExtendedRecordMap, PageMap, PageBlock, Block, Decoration, CollectionViewBlock } from '@texonom/ntypes'\n\nlet writeFile = promisify(fs.writeFile)\n\nconst getBlockLink = (blockId: string, recordMap: ExtendedRecordMap, domain = 'https://texonom.com') =>\n `${domain}/${getCanonicalPageId(blockId, recordMap)}`\n\nexport class NotionExporter {\n notion: NotionAPI\n recordMap: ExtendedRecordMap\n pageTree: PageTree\n pageMap: PageMap\n promises: Promise<unknown>[] = []\n\n // Options\n folder: string = 'texonom-raw'\n md: string = 'texonom-md'\n domain: string = 'https://texonom.com'\n validation: boolean = false\n update: boolean = false\n page: string\n recursive: boolean = false\n prefetch: boolean = false\n load: boolean = false\n raw: boolean = false\n dataset: boolean = false\n token: string | undefined\n\n constructor(options: {\n folder?: string\n validation?: boolean\n update?: boolean\n page: string\n recursive?: boolean\n prefetch?: boolean\n md?: string\n domain?: string\n load?: boolean\n raw?: boolean\n dataset?: boolean\n token?: string\n }) {\n this.page = parsePageId(options.page, { uuid: false })\n this.folder = options.folder ?? this.folder\n this.domain = options.domain ?? this.domain\n this.md = options.md ?? this.md\n this.validation = options.validation ?? this.validation\n this.update = options.update ?? this.update\n this.recursive = options.recursive ?? this.recursive\n this.prefetch = options.prefetch ?? this.prefetch\n this.load = options.load ?? this.load\n this.raw = options.raw ?? this.raw\n this.dataset = options.dataset ?? this.dataset\n this.token = options.token\n\n this.notion = new NotionAPI({ authToken: this.token })\n if (this.validation) writeFile = async () => {}\n }\n\n async execute() {\n const id = parsePageId(this.page)\n\n // Load\n if (this.load) {\n console.time('Load raw data')\n await this.loadRaw()\n console.timeEnd('Load raw data')\n }\n if (this.prefetch) {\n console.time('Fetch raw data')\n await this.fetchRawSpace(id)\n console.timeEnd('Fetch raw data')\n }\n\n // Save\n if (this.raw) {\n console.time('Export raw files')\n if (this.recursive) await this.saveRawSpace()\n else await this.saveRawPage(id)\n console.timeEnd('Export raw files')\n }\n // Export\n else {\n console.time('Extract markdown')\n await this.exportMd(id)\n console.timeEnd('Extract markdown')\n }\n await Promise.all(this.promises)\n // Update\n if (this.update)\n if (this.recursive) await this.saveRawSpace()\n else await this.saveRawPage(id)\n }\n\n async loadRaw() {\n const { recordMap, pageTree, pageMap } = await loadRaw(this.folder)\n this.recordMap = recordMap\n this.pageTree = pageTree\n this.pageMap = pageMap\n console.timeEnd('load prefetch file')\n }\n\n async fetchRawSpace(startPage: string) {\n const { recordMap, pageTree, pageMap } = await getAllInSpace(\n startPage,\n this.notion.getPage.bind(this.notion),\n this.notion.getBlocks.bind(this.notion),\n this.notion.fetchCollections.bind(this.notion),\n {\n startRecordMap: this.recordMap,\n collectionConcurrency: 100,\n concurrency: 100,\n fetchOption: { timeout: 10000 }\n }\n )\n this.pageMap = pageMap\n this.recordMap = recordMap\n this.pageTree = pageTree\n }\n\n async saveRawSpace() {\n if (this.validation) return\n await mkdir(this.folder, { recursive: true })\n const ext = 'json'\n const promises = []\n await mkdir(join(this.folder, 'recordMap'), { recursive: true })\n for (const table in this.recordMap)\n promises.push(this.writeFile(`${join(this.folder, 'recordMap', table)}.${ext}`, JSON.stringify(this.recordMap[table])))\n\n const outputStream = fs.createWriteStream(`${join(this.folder, 'pageMap')}.${ext}`)\n const transformStream = JSONStream.stringifyObject()\n transformStream.pipe(outputStream)\n // @ts-ignore\n for (const key in this.pageMap) transformStream.write([key, this.pageMap[key]])\n transformStream.end()\n\n promises.push(this.writeFile(`${join(this.folder, 'pageTree')}.${ext}`, JSON.stringify(this.pageTree)))\n await Promise.all(promises)\n }\n\n async saveRawPage(id: string) {\n if (this.validation) return\n await mkdir(this.folder, { recursive: true })\n const recordMap = await this.notion.getPage(id)\n const filename = `${getCanonicalPageId(id, recordMap)}`\n let target = JSON.stringify(recordMap)\n const ext = 'json'\n target = await format(target, { parser: 'json' })\n await this.writeFile(`${join(this.folder, filename)}.${ext}`, target)\n }\n\n async writeFile(path: string, target: string) {\n if (!this.folder) return\n else await writeFile(path, target)\n }\n\n async exportMd(id: string) {\n await mkdir(this.md, { recursive: true })\n try {\n let recordMap = this.pageMap ? this.pageMap[id] : await this.notion.getPage(id)\n if (!this.recursive) this.recordMap = recordMap\n try {\n if (!recordMap) recordMap = await this.notion.getPage(id)\n } catch {\n return\n }\n if (!['page', 'collection_view_page'].includes(recordMap.block[id].value.type)) throw new Error('Not a page')\n const target = await this.pageToMarkdown(id, recordMap)\n const path = join(this.md, `${getCanonicalPageId(id, recordMap)}`)\n this.promises.push(this.writeFile(`${path}.md`, target))\n } catch (e) {\n console.error(id, e)\n }\n }\n\n async pageToMarkdown(id: string, recordMap: ExtendedRecordMap) {\n const page = recordMap.block[id].value as PageBlock\n\n // Metadata\n let md = `---\\n`\n md += `Title: ${await this.decorationsToMarkdown(\n page.properties?.title ? page.properties.title : [['Untitled']],\n recordMap\n )}\\n`\n const parent = getBlockParent(page, recordMap)\n if (isSpace(parent)) md += `Parent: ${parent.name}\\n`\n else if (isCollection(parent)) md += `Parent: ${getTextContent(parent.name)}\\n`\n else if (parent) md += `Parent: ${getBlockTitle(parent, recordMap)}\\n`\n\n // Collection Attributes\n if (isCollection(parent)) {\n const properties = parent?.schema ? Object.keys(parent.schema) : []\n properties.splice(properties.indexOf('title'), 1)\n for (const property of properties) {\n const propName = parent.schema[property].name\n const propType = parent.schema[property].type\n let value = String()\n switch (propType) {\n case 'text':\n value = page?.properties?.[property]\n ? await this.decorationsToMarkdown(page.properties[property], recordMap)\n : ''\n break\n case 'created_by': {\n const user = await this.getUser(page.created_by_id, recordMap)\n value = user ? user.name : 'Unknown'\n break\n }\n case 'last_edited_by': {\n const user = await this.getUser(page.last_edited_by_id, recordMap)\n value = user ? user.name : 'Unknown'\n break\n }\n case 'created_time':\n value = formatDate(page.created_time)\n break\n case 'last_edited_time':\n value = formatDate(page.last_edited_time)\n break\n default:\n value = ''\n }\n md += `${propName}: ${value}\\n`\n }\n }\n md += '---\\n'\n\n return md + (await this.childrenToMd(page, recordMap, '\\n', page))\n }\n\n async childrenToMd(parentBlock: Block, recordMap: ExtendedRecordMap, prefix: string, page: Block) {\n let md = String()\n let numbering = 1\n for (const child of parentBlock.content ? parentBlock.content : []) {\n const childBlock = await this.getBlock(child, recordMap, `${child} from ${getBlockTitle(page, recordMap)}`)\n if (!childBlock) continue\n\n const title = childBlock?.properties?.title\n switch (childBlock.type) {\n case 'header':\n md += `${prefix}# ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'sub_header':\n md += `${prefix}## ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'sub_sub_header':\n md += `${prefix}### ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'text':\n md += `${prefix}${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'bulleted_list':\n md += `${prefix}- ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'numbered_list':\n md += `${prefix}${numbering++}. ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'to_do':\n md += `${prefix}- [ ] ${await this.decorationsToMarkdown(title, recordMap)}`\n break\n case 'toggle':\n md += `${prefix}<details><summary>${prefix}${prefix}${await this.decorationsToMarkdown(\n title,\n recordMap\n )}</summary>\\n`\n break\n case 'quote':\n md += (await this.decorationsToMarkdown(title, recordMap, `\\n${prefix.trim()}> `)) + '\\n'\n break\n case 'code':\n md += `${prefix}\\`\\`\\`type${await this.decorationsToMarkdown(title, recordMap)}\\`\\`\\``\n break\n case 'equation':\n md += `${prefix}$$${await this.decorationsToMarkdown(title, recordMap)}$$`\n break\n case 'callout': {\n md += (await this.decorationsToMarkdown(title, recordMap, `\\n${prefix.trim()}> `)) + '\\n'\n break\n }\n case 'bookmark': {\n const nesting = `\\n${prefix.trim()}> `\n md += `${nesting}[${getTextContent(\n childBlock.properties?.title ? childBlock.properties.title : [['Untitled']]\n )}](${getTextContent(childBlock.properties.link)})\\n`\n break\n }\n case 'external_object_instance': {\n try {\n const url = childBlock.format.original_url\n const title = childBlock.format.attributes\n ? childBlock.format.attributes.filter(attr => attr.id === 'title')[0]?.values?.[0]\n : url\n if (!url) break\n md += `${prefix}${prefix}[${title}](${url})${prefix}`\n break\n } catch (e) {\n console.error(e, childBlock.id)\n break\n }\n }\n\n // Collection\n case 'collection_view_page':\n case 'collection_view': {\n const collection = await this.getCollection(\n childBlock as CollectionViewBlock,\n recordMap,\n `${childBlock.id} from ${getPageTitle(recordMap)}`\n )\n if (!collection) continue\n\n // Generate Table\n md += `${prefix}### ${await this.decorationsToMarkdown(collection.name, recordMap)}`\n md += `${prefix}|Title|\\n|:-:|`\n const views = childBlock.view_ids\n .map(id => {\n if (!recordMap.collection_view[id]) console.debug(`Missing view ${id} from ${collection.name}`)\n return recordMap.collection_view[id]?.value\n })\n .filter(Boolean)\n const children = []\n for (const view of views) {\n const results = await this.getCollectionView(\n collection.id,\n view.id,\n recordMap,\n `${collection.name} ${view.name}`\n )\n if (results) for (const result of results.blockIds) children.push(result)\n else break\n }\n for (const childPage of children) {\n const childBlock = recordMap.block[childPage]?.value\n if (!childBlock) console.debug(`no ${childPage} in ${collection.name[0]}`)\n md += `${prefix}|[${getBlockTitle(childBlock, recordMap)}](${getBlockLink(childPage, recordMap)})|`\n }\n\n // Make children page\n if (this.recursive && children.length)\n for (const childPage of children) this.promises.push(this.exportMd(childPage))\n\n break\n }\n case 'page': {\n md += `${prefix}${prefix}[${getBlockTitle(childBlock, recordMap)}](${getBlockLink(\n childBlock.id,\n recordMap\n )})${prefix}`\n if (this.recursive) this.promises.push(this.exportMd(childBlock.id))\n\n break\n }\n case 'alias': {\n const aliasBlock = recordMap.block[childBlock.format?.alias_pointer?.id]?.value\n if (!aliasBlock) {\n console.debug(\n `Missing alias ${childBlock.format?.alias_pointer?.id} from ${getBlockTitle(page, recordMap)} ${page.id}`\n )\n continue\n }\n md += `${prefix}${prefix}[${getBlockTitle(aliasBlock, recordMap)}](${getBlockLink(\n aliasBlock.id,\n recordMap\n )})${prefix}`\n break\n }\n\n // Media\n case 'image': {\n const caption = childBlock.properties.caption ? getTextContent(childBlock.properties.caption) : ''\n md += `${prefix}})`\n break\n }\n\n case 'video':\n md += `${prefix}<video src=\"${childBlock.format.display_source} />`\n break\n\n // Embed\n case 'file':\n md += `${prefix}[File](${childBlock.format?.display_source})`\n break\n case 'pdf':\n md += `${prefix}<iframe src=\"${childBlock.format?.display_source}\"/>`\n break\n\n // Else\n case 'divider':\n md += `${prefix}---`\n break\n case 'column_list':\n break\n case 'column':\n break\n default:\n md += `${prefix}`\n }\n\n // Finalize\n if (childBlock.content && childBlock.type !== 'page' && childBlock.type !== 'collection_view_page') {\n const nestedPrefix = ['toggle', `transclusion_container`, `transclusion_reference`, 'column_list'].includes(\n childBlock.type\n )\n ? prefix\n : `\\n${prefix.trim()}> `\n md += await this.childrenToMd(childBlock, recordMap, nestedPrefix, page)\n if (childBlock.type === 'column') md += '\\n'\n }\n if (childBlock.type === 'toggle') md += `${prefix}</details>${prefix}`\n }\n return md\n }\n\n async decorationsToMarkdown(decos: Decoration[], recordMap: ExtendedRecordMap, prefix = '') {\n if (!decos) return String()\n let md = String()\n for (const deco of decos) {\n let wrapper = String()\n const [text, subdecos] = deco\n if (!subdecos) {\n md += text\n } else {\n let textonly: string = text\n for (const subdeco of subdecos)\n switch (subdeco[0]) {\n case 'p': {\n const blockId = subdeco[1]\n const linkedBlock = await this.getBlock(blockId, recordMap, `\"p\" ${getPageTitle(recordMap)}`)\n if (!linkedBlock) break\n\n const title = getBlockTitle(linkedBlock, recordMap)\n const url = getBlockLink(blockId, recordMap)\n textonly = `[${title}](${url})`\n break\n }\n case 'a': {\n const url = subdeco[1]\n textonly = `[${text}](${url})`\n break\n }\n case 'i':\n wrapper += '*'\n break\n case 'b':\n wrapper += '**'\n break\n case 'h':\n // Disable for now == syntax does not supported well\n wrapper += ''\n break\n case 'c':\n wrapper += '`'\n break\n case 's':\n wrapper += '~~'\n break\n case 'e':\n wrapper += '$'\n textonly = subdeco[1]\n break\n case 'eoi': {\n try {\n const objectid = subdeco[1]\n const object = await this.getBlock(objectid, recordMap, `\"eoi\" ${getPageTitle(recordMap)}`)\n if (!object) break\n const url = object.format.uri\n const title = object.format.attributes\n ? object.format.attributes?.filter(attr => attr.id === 'title')[0]?.values?.[0]\n : url\n if (!url) break\n textonly = `[${title}](${url})`\n break\n } catch (e) {\n console.error(e, deco)\n break\n }\n }\n case 'u': {\n const user = await this.getUser(subdeco[1], recordMap)\n if (!user) break\n textonly = `[@${user.name}](mailto:${user.email})`\n break\n }\n }\n let decorated: string = textonly\n if (subdecos.find(subdeco => subdeco[0] === '_')) decorated = `<u>${textonly}</u>`\n decorated = wrapper + decorated + wrapper.split('').reverse().join('')\n md += decorated\n }\n }\n const lines = md.split('\\n')\n const prefixed = lines.map(line => prefix + line)\n return prefixed.join('')\n }\n\n async getBlock(id: string, recordMap: ExtendedRecordMap, message = '') {\n let block = recordMap.block[id]?.value\n if (!block && this.recordMap) block = this.recordMap.block[id]?.value\n try {\n if (!block && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getBlocks([id])\n block = response.recordMap?.block?.[id]?.value\n }\n } catch {\n if (!block) console.debug(`${message} Missing block ${id}`)\n }\n if (block) {\n recordMap.block[id] = { value: block, role: 'reader' }\n if (this.recordMap) this.recordMap.block[id] = { value: block, role: 'reader' }\n }\n return block\n }\n\n async getUser(id: string, recordMap: ExtendedRecordMap) {\n let user = recordMap.notion_user[id]?.value\n if (!user && this.recordMap) user = this.recordMap.notion_user[id]?.value\n try {\n if (!user && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getUsers([id])\n user = response.recordMapWithRoles?.notion_user?.[id]?.value\n }\n } catch {\n if (!user) console.debug(`Missing user ${id}`)\n }\n if (user) {\n recordMap.notion_user[id] = { value: user, role: 'reader' }\n if (this.recordMap) this.recordMap.notion_user[id] = { value: user, role: 'reader' }\n }\n return user\n }\n\n async getCollection(collectionViewBlock: CollectionViewBlock, recordMap: ExtendedRecordMap, message = '') {\n const collectionId = collectionViewBlock.collection_id\n let collection = recordMap.collection[collectionViewBlock.collection_id]?.value\n if (!collection && this.recordMap) {\n collection = this.recordMap.collection[collectionId]?.value\n if (collection) {\n recordMap.collection[collectionId] = this.recordMap.collection?.[collectionId]\n for (const viewId of collectionViewBlock.view_ids)\n recordMap.collection_view[viewId] = this.recordMap.collection_view?.[viewId]\n }\n }\n try {\n if (!collection && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getPageRaw(collectionViewBlock.id)\n collection = response.recordMap.collection[collectionId]?.value\n if (collection) {\n recordMap.collection_view = { ...recordMap.collection_view, ...response.recordMap.collection_view }\n recordMap.collection = { ...recordMap.collection, ...response.recordMap.collection }\n recordMap.block = { ...recordMap.block, ...response.recordMap.block }\n this.recordMap.collection_view = { ...this.recordMap.collection_view, ...response.recordMap.collection_view }\n this.recordMap.collection = { ...this.recordMap.collection, ...response.recordMap.collection }\n this.recordMap.block = { ...this.recordMap.block, ...response.recordMap.block }\n }\n }\n } catch {\n if (!collection) console.debug(`${message} Missing collection block ${collectionViewBlock.id}`)\n }\n await this.getCollectionView(collectionId, collectionViewBlock.view_ids[0], recordMap, message)\n return collection\n }\n\n async getCollectionView(collectionId: string, viewId: string, recordMap: ExtendedRecordMap, message = '') {\n let results = recordMap.collection_query?.[collectionId]?.[viewId]?.collection_group_results\n if (!results && this.recordMap) {\n results = this.recordMap.collection_query?.[collectionId]?.[viewId]?.collection_group_results\n if (results) {\n recordMap.collection_query![collectionId] = {\n ...recordMap.collection_query![collectionId],\n [viewId]: this.recordMap.collection_query?.[collectionId]?.[viewId]\n }\n recordMap.collection![collectionId] = {\n ...recordMap.collection![collectionId],\n [viewId]: this.recordMap.collection?.[collectionId]?.[viewId]\n }\n }\n }\n try {\n if (!results && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getCollectionData(collectionId, viewId, recordMap.collection_view[viewId]?.value)\n results = response.result?.reducerResults?.collection_group_results\n if (results) {\n recordMap.collection_query![collectionId] = {\n ...recordMap.collection_query![collectionId],\n [viewId]: response.result?.reducerResults\n }\n if (this.recordMap)\n this.recordMap.collection_query![collectionId] = {\n ...this.recordMap.collection_query![collectionId],\n [viewId]: response.result?.reducerResults\n }\n for (const blockId in response.recordMap.block) {\n const block = response.recordMap.block[blockId].value\n if (block) {\n recordMap.block[blockId] = { value: block, role: 'reader' }\n if (this.recordMap) this.recordMap.block[blockId] = { value: block, role: 'reader' }\n }\n }\n for (const collection in response.recordMap.collection) {\n const collectionValue = response.recordMap.collection[collection].value\n if (collectionValue) {\n recordMap.collection[collection] = { value: collectionValue, role: 'reader' }\n if (this.recordMap) this.recordMap.collection[collection] = { value: collectionValue, role: 'reader' }\n }\n }\n for (const collectionView in response.recordMap.collection_view) {\n const collectionViewValue = response.recordMap.collection_view[collectionView].value\n if (collectionViewValue) {\n recordMap.collection_view[collectionView] = { value: collectionViewValue, role: 'reader' }\n if (this.recordMap)\n this.recordMap.collection_view[collectionView] = { value: collectionViewValue, role: 'reader' }\n }\n }\n }\n }\n } catch {\n if (!results) console.debug(`${message} Missing collection view ${viewId}`)\n }\n return results\n }\n\n async getSpace(id: string, recordMap: ExtendedRecordMap) {\n let space = recordMap.space[id]?.value\n if (!space && this.recordMap) space = this.recordMap.space[id]?.value\n try {\n if (!space && this.token) {\n const notion = new NotionAPI({ authToken: this.token })\n const response = await notion.getSpaces([id])\n space = response.recordMapWithRoles?.space?.[id]?.value\n if (space) {\n recordMap.space[id] = { value: space, role: 'reader' }\n if (this.recordMap) this.recordMap.space[id] = { value: space, role: 'reader' }\n }\n }\n } catch {\n if (!space) console.debug(`Missing space ${id}`)\n }\n return space\n }\n}\n\nexport async function loadRaw(\n folder: string\n): Promise<{ recordMap: ExtendedRecordMap; pageTree: PageTree; pageMap: PageMap }> {\n console.time('load prefetch file')\n const promises = []\n promises.push(readFile(join(folder, 'recordMap', 'block.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(folder, 'recordMap', 'collection.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(folder, 'recordMap', 'notion_user.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(folder, 'recordMap', 'space.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(folder, 'recordMap', 'collection_view.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(folder, 'recordMap', 'collection_query.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(folder, 'recordMap', 'signed_urls.json'), 'utf8').then(JSON.parse))\n promises.push(readFile(join(folder, 'pageTree.json'), 'utf8').then(JSON.parse))\n\n const [block, collection, notion_user, space, collection_view, collection_query, signed_urls, pageTree] =\n await Promise.all(promises)\n\n const pageMap = {}\n const inputStream = fs.createReadStream(join(folder, 'pageMap.json'))\n const parseStream = JSONStream.parse('*')\n inputStream.pipe(parseStream)\n parseStream.on('data', (recordMap: ExtendedRecordMap) => {\n const key = Object.keys(recordMap.block)[0]\n pageMap[key] = recordMap\n })\n await new Promise(res => stream.finished(parseStream, err => res(err)))\n const recordMap: ExtendedRecordMap = {\n block,\n collection,\n notion_user,\n space,\n collection_query,\n collection_view,\n signed_urls\n }\n return { recordMap, pageTree, pageMap }\n}\n"],"mappings":"AAAA,OAAS,OAAAA,EAAK,YAAAC,MAAgB,YCE5B,IAAAC,EAAe,aACfC,EAAW,QCHb,OAAS,UAAAC,EAAQ,WAAAC,OAAe,YCAhC,OAAS,aAAAC,MAAiB,mBAC1B,OACE,iBAAAC,EACA,sBAAAC,EACA,eAAAC,EACA,cAAAC,EACA,kBAAAC,EACA,kBAAAC,EACA,sBAAAC,GACA,iBAAAC,GACA,gBAAAC,MACK,kBACP,OAAS,QAAAC,MAAY,OACrB,OAAS,SAAAC,EAAO,YAAAC,MAAgB,cAChC,OAAOC,MAAgB,aACvB,OAAOC,MAAQ,cACf,OAAS,aAAAC,OAAiB,OAC1B,OAAOC,OAAY,SACnB,OAAS,UAAAC,OAAc,WACvB,OAAS,gBAAAC,EAAc,WAAAC,OAAe,kBAKtC,IAAIC,EAAYL,GAAUD,EAAG,SAAS,EAEhCO,EAAe,CAACC,EAAiBC,EAA8BC,EAAS,wBAC5E,GAAGA,CAAM,IAAItB,EAAmBoB,EAASC,CAAS,CAAC,GAExCE,EAAN,KAAqB,CAqB1B,YAAYC,EAaT,CA7BH,cAA+B,CAAC,EAGhC,YAAiB,cACjB,QAAa,aACb,YAAiB,sBACjB,gBAAsB,GACtB,YAAkB,GAElB,eAAqB,GACrB,cAAoB,GACpB,UAAgB,GAChB,SAAe,GACf,aAAmB,GAiBjB,KAAK,KAAOvB,EAAYuB,EAAQ,KAAM,CAAE,KAAM,EAAM,CAAC,EACrD,KAAK,OAASA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YAAaC,EACb,cAAeC,CACjB,CAAC,EAEDH,EAAI,SAASI,CAAmB,EAChCJ,EAAI,SAASK,EAAS,WAAW,EACjCL,EAAI,SAASK,EAAS,cAAc,EACpCL,EAAI,QAAQ,QAAQ,KAAK,MAAM,CAAC,EAAGC,EAAI,cAAc","names":["Cli","Builtins","displayName","version","Option","Command","NotionAPI","getBlockTitle","getCanonicalPageId","parsePageId","formatDate","getTextContent","getBlockParent","defaultMapImageUrl","getAllInSpace","getPageTitle","join","mkdir","readFile","JSONStream","fs","promisify","stream","format","isCollection","isSpace","writeFile","getBlockLink","blockId","recordMap","domain","NotionExporter","options","id","pageTree","pageMap","loadRaw","startPage","ext","promises","table","outputStream","transformStream","key","filename","target","path","_a","_b","page","md","parent","properties","property","propName","propType","value","user","parentBlock","prefix","_c","_d","_e","_f","_g","_h","_i","_j","_k","_l","_m","numbering","child","childBlock","title","nesting","url","attr","e","collection","views","children","view","results","result","childPage","aliasBlock","caption","nestedPrefix","decos","deco","wrapper","text","subdecos","textonly","subdeco","linkedBlock","objectid","object","decorated","line","message","block","collectionViewBlock","collectionId","viewId","response","_n","_o","collectionValue","collectionView","collectionViewValue","space","folder","notion_user","collection_view","collection_query","signed_urls","inputStream","parseStream","res","err","NotionExportCommand","Command","Option","NotionExporter","cli","Cli","displayName","version","NotionExportCommand","Builtins"]}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import type { PageTree } from '@texonom/nutils';
|
|
4
|
-
import type { ExtendedRecordMap, Decoration, Block, PageMap, CollectionViewBlock } from '@texonom/ntypes';
|
|
5
|
-
export declare class NotionExportCommand extends NotionCommand {
|
|
1
|
+
import { Command } from 'clipanion';
|
|
2
|
+
export declare class NotionExportCommand extends Command {
|
|
6
3
|
static paths: string[][];
|
|
7
|
-
notion: NotionAPI;
|
|
8
|
-
recordMap: ExtendedRecordMap;
|
|
9
|
-
pageTree: PageTree;
|
|
10
|
-
pageMap: PageMap;
|
|
11
|
-
promises: Promise<unknown>[];
|
|
12
4
|
folder: string;
|
|
5
|
+
md: string;
|
|
6
|
+
domain: string;
|
|
13
7
|
validation: boolean;
|
|
14
8
|
update: boolean;
|
|
15
9
|
page: string;
|
|
@@ -18,25 +12,7 @@ export declare class NotionExportCommand extends NotionCommand {
|
|
|
18
12
|
load: boolean;
|
|
19
13
|
raw: boolean;
|
|
20
14
|
dataset: boolean;
|
|
21
|
-
|
|
22
|
-
constructor();
|
|
15
|
+
token: string;
|
|
23
16
|
execute(): Promise<void>;
|
|
24
|
-
loadRaw(): Promise<void>;
|
|
25
|
-
fetchRawSpace(startPage: string): Promise<void>;
|
|
26
|
-
saveRawSpace(): Promise<void>;
|
|
27
|
-
saveRawPage(id: string): Promise<void>;
|
|
28
|
-
exportMd(id: string, folder: string): Promise<void>;
|
|
29
|
-
pageToMarkdown(id: string, recordMap: ExtendedRecordMap, folder: string): Promise<string>;
|
|
30
|
-
getBlock(id: string, recordMap: ExtendedRecordMap, message?: string): Promise<Block>;
|
|
31
|
-
getUser(id: string, recordMap: ExtendedRecordMap): Promise<import("@texonom/ntypes").User>;
|
|
32
|
-
getSpace(id: string, recordMap: ExtendedRecordMap): Promise<import("@texonom/ntypes").Space>;
|
|
33
|
-
getCollection(collectionViewBlock: CollectionViewBlock, recordMap: ExtendedRecordMap, message?: string): Promise<import("@texonom/ntypes").Collection>;
|
|
34
|
-
getCollectionView(collectionId: string, viewId: string, recordMap: ExtendedRecordMap, message?: string): Promise<{
|
|
35
|
-
type: string;
|
|
36
|
-
blockIds: string[];
|
|
37
|
-
hasMore: boolean;
|
|
38
|
-
}>;
|
|
39
|
-
childrenToMd(parentBlock: Block, recordMap: ExtendedRecordMap, prefix: string, folder: string, page: Block): Promise<string>;
|
|
40
|
-
decorationsToMarkdown(decos: Decoration[], recordMap: ExtendedRecordMap, prefix?: string): Promise<string>;
|
|
41
17
|
}
|
|
42
18
|
//# sourceMappingURL=export.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/notion/export.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/notion/export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,MAAM,WAAW,CAAA;AAG3C,qBAAa,mBAAoB,SAAQ,OAAO;IAC9C,MAAM,CAAC,KAAK,aAAe;IAE3B,MAAM,SAEJ;IACF,EAAE,SAEA;IACF,MAAM,SAEJ;IACF,UAAU,UAER;IACF,MAAM,UAEJ;IACF,IAAI,SAGF;IACF,SAAS,UAEP;IACF,QAAQ,UAEN;IACF,IAAI,UAEF;IACF,GAAG,UAED;IACF,OAAO,UAEL;IACF,KAAK,SAEH;IAEI,OAAO;CAed"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.test.d.ts","sourceRoot":"","sources":["../../../src/notion/export.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { NotionAPI } from '@texonom/nclient';
|
|
2
|
+
import type { PageTree } from '@texonom/nutils';
|
|
3
|
+
import type { ExtendedRecordMap, PageMap, Block, Decoration, CollectionViewBlock } from '@texonom/ntypes';
|
|
4
|
+
export declare class NotionExporter {
|
|
5
|
+
notion: NotionAPI;
|
|
6
|
+
recordMap: ExtendedRecordMap;
|
|
7
|
+
pageTree: PageTree;
|
|
8
|
+
pageMap: PageMap;
|
|
9
|
+
promises: Promise<unknown>[];
|
|
10
|
+
folder: string;
|
|
11
|
+
md: string;
|
|
12
|
+
domain: string;
|
|
13
|
+
validation: boolean;
|
|
14
|
+
update: boolean;
|
|
15
|
+
page: string;
|
|
16
|
+
recursive: boolean;
|
|
17
|
+
prefetch: boolean;
|
|
18
|
+
load: boolean;
|
|
19
|
+
raw: boolean;
|
|
20
|
+
dataset: boolean;
|
|
21
|
+
token: string | undefined;
|
|
22
|
+
constructor(options: {
|
|
23
|
+
folder?: string;
|
|
24
|
+
validation?: boolean;
|
|
25
|
+
update?: boolean;
|
|
26
|
+
page: string;
|
|
27
|
+
recursive?: boolean;
|
|
28
|
+
prefetch?: boolean;
|
|
29
|
+
md?: string;
|
|
30
|
+
domain?: string;
|
|
31
|
+
load?: boolean;
|
|
32
|
+
raw?: boolean;
|
|
33
|
+
dataset?: boolean;
|
|
34
|
+
token?: string;
|
|
35
|
+
});
|
|
4
36
|
execute(): Promise<void>;
|
|
37
|
+
loadRaw(): Promise<void>;
|
|
38
|
+
fetchRawSpace(startPage: string): Promise<void>;
|
|
39
|
+
saveRawSpace(): Promise<void>;
|
|
40
|
+
saveRawPage(id: string): Promise<void>;
|
|
41
|
+
writeFile(path: string, target: string): Promise<void>;
|
|
42
|
+
exportMd(id: string): Promise<void>;
|
|
43
|
+
pageToMarkdown(id: string, recordMap: ExtendedRecordMap): Promise<string>;
|
|
44
|
+
childrenToMd(parentBlock: Block, recordMap: ExtendedRecordMap, prefix: string, page: Block): Promise<string>;
|
|
45
|
+
decorationsToMarkdown(decos: Decoration[], recordMap: ExtendedRecordMap, prefix?: string): Promise<string>;
|
|
46
|
+
getBlock(id: string, recordMap: ExtendedRecordMap, message?: string): Promise<Block>;
|
|
47
|
+
getUser(id: string, recordMap: ExtendedRecordMap): Promise<import("@texonom/ntypes").User>;
|
|
48
|
+
getCollection(collectionViewBlock: CollectionViewBlock, recordMap: ExtendedRecordMap, message?: string): Promise<import("@texonom/ntypes").Collection>;
|
|
49
|
+
getCollectionView(collectionId: string, viewId: string, recordMap: ExtendedRecordMap, message?: string): Promise<{
|
|
50
|
+
type: string;
|
|
51
|
+
blockIds: import("@texonom/ntypes").ID[];
|
|
52
|
+
hasMore: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
getSpace(id: string, recordMap: ExtendedRecordMap): Promise<import("@texonom/ntypes").Space>;
|
|
5
55
|
}
|
|
56
|
+
export declare function loadRaw(folder: string): Promise<{
|
|
57
|
+
recordMap: ExtendedRecordMap;
|
|
58
|
+
pageTree: PageTree;
|
|
59
|
+
pageMap: PageMap;
|
|
60
|
+
}>;
|
|
6
61
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAqB5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAa,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAOpH,qBAAa,cAAc;IACzB,MAAM,EAAE,SAAS,CAAA;IACjB,SAAS,EAAE,iBAAiB,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAK;IAGjC,MAAM,EAAE,MAAM,CAAgB;IAC9B,EAAE,EAAE,MAAM,CAAe;IACzB,MAAM,EAAE,MAAM,CAAwB;IACtC,UAAU,EAAE,OAAO,CAAQ;IAC3B,MAAM,EAAE,OAAO,CAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAQ;IAC1B,QAAQ,EAAE,OAAO,CAAQ;IACzB,IAAI,EAAE,OAAO,CAAQ;IACrB,GAAG,EAAE,OAAO,CAAQ;IACpB,OAAO,EAAE,OAAO,CAAQ;IACxB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;gBAEb,OAAO,EAAE;QACnB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,UAAU,CAAC,EA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E,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB;CAkBxD;AAED,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,SAAS,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAkCjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treemap.d.ts","sourceRoot":"","sources":["../../src/treemap.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texonom/cli",
|
|
3
3
|
"displayName": "Notion CLI",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Texonom CLI which has ability to export data from Notion.so",
|
|
7
7
|
"repository": "texonom/notion-node",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build"
|
|
16
16
|
],
|
|
17
17
|
"engines": {
|
|
18
|
-
"node": ">=20.
|
|
18
|
+
"node": ">=20.18.1"
|
|
19
19
|
},
|
|
20
20
|
"bin": {
|
|
21
21
|
"notion": "./build/src/main.js"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"JSONStream": "^1.3.5",
|
|
25
25
|
"clipanion": "^3.2.1",
|
|
26
26
|
"graceful-fs": "^4.2.11",
|
|
27
|
-
"prettier": "^3.
|
|
28
|
-
"@texonom/nclient": "^1.
|
|
29
|
-
"@texonom/
|
|
30
|
-
"@texonom/
|
|
27
|
+
"prettier": "^3.3.3",
|
|
28
|
+
"@texonom/nclient": "^1.4.0",
|
|
29
|
+
"@texonom/nutils": "^1.4.0",
|
|
30
|
+
"@texonom/ntypes": "^1.4.0"
|
|
31
31
|
},
|
|
32
32
|
"standard-version": {
|
|
33
33
|
"skip": {
|
package/readme.md
CHANGED
|
@@ -16,14 +16,36 @@ pnpm i @texonom/cli
|
|
|
16
16
|
|
|
17
17
|
```zsh
|
|
18
18
|
## export block, collection, collection_view and notion_user for each folder
|
|
19
|
-
|
|
19
|
+
pnpm tsx src/main.ts export --raw
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
# Develop
|
|
23
|
+
```ts
|
|
24
|
+
import { NotionExporter } from '@texonom/cli'
|
|
25
|
+
|
|
26
|
+
const exporter = new NotionExporter({ page: pageId })
|
|
27
|
+
const recordMap = await exporter.notion.getPage(pageId)
|
|
28
|
+
const md = await exporter.pageToMarkdown(parsePageId(pageId), recordMap)
|
|
29
|
+
```
|
|
23
30
|
|
|
31
|
+
### Example
|
|
32
|
+
Export whole workspace
|
|
24
33
|
```sh
|
|
34
|
+
# 1. First get all raw data from the Notion API
|
|
25
35
|
pnpm tsx src/main.ts export -p 04089c8ae3534bf79512fc495944b321 --raw -r -f
|
|
26
36
|
|
|
27
|
-
#
|
|
28
|
-
|
|
37
|
+
# 2. After that transform all raw data to markdown
|
|
38
|
+
# it requres Notion token if there are missed blocks & spaces & users & collections (No ~ query)
|
|
39
|
+
export NOTION_TOKEN=
|
|
40
|
+
pnpm tsx src/main.ts export -p 04089c8ae3534bf79512fc495944b321 -r -l -t $NOTION_TOKEN -u
|
|
41
|
+
# Iterate the second command until collection error is gone (due to the rate limit)
|
|
42
|
+
```
|
|
43
|
+
if there is memory error
|
|
44
|
+
```
|
|
45
|
+
NODE_OPTIONS="--max-old-space-size=16384" tsx ...
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Export a single page
|
|
49
|
+
```sh
|
|
50
|
+
pnpm tsx src/main.ts export -p 04089c8ae3534bf79512fc495944b321
|
|
29
51
|
```
|
package/build/src/notion.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Command } from 'clipanion';
|
|
2
|
-
import { NotionAPI } from '@texonom/nclient';
|
|
3
|
-
import type { ExtendedRecordMap, Decoration, Block } from '@texonom/ntypes';
|
|
4
|
-
export declare abstract class NotionCommand extends Command {
|
|
5
|
-
token: string;
|
|
6
|
-
execute(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare class NotionExportCommand extends NotionCommand {
|
|
9
|
-
static paths: string[][];
|
|
10
|
-
notion: NotionAPI;
|
|
11
|
-
folder: string;
|
|
12
|
-
page: string;
|
|
13
|
-
recursive: boolean;
|
|
14
|
-
raw: boolean;
|
|
15
|
-
list: string[];
|
|
16
|
-
constructor();
|
|
17
|
-
execute(): Promise<void>;
|
|
18
|
-
fetchRecordmap(id: string): Promise<ExtendedRecordMap>;
|
|
19
|
-
loadRecordmap(folder: string): Promise<ExtendedRecordMap>;
|
|
20
|
-
exportMd(id: string, folder: string): Promise<void>;
|
|
21
|
-
pageToMarkdown(id: string, recordMap: ExtendedRecordMap, folder: string): Promise<string>;
|
|
22
|
-
childrenToMd(parentBlock: Block, recordMap: ExtendedRecordMap, prefix: string, folder: string, page: Block): Promise<string>;
|
|
23
|
-
}
|
|
24
|
-
export declare function decorationsToMarkdown(decos: Decoration[], recordMap: ExtendedRecordMap, prefix?: string): string;
|
|
25
|
-
//# sourceMappingURL=notion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notion.d.ts","sourceRoot":"","sources":["../../src/notion.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAY5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAa,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEtF,8BAAsB,aAAc,SAAQ,OAAO;IAEjD,KAAK,SAEH;IACI,OAAO;CACd;AAED,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,MAAM,CAAC,KAAK,aAAe;IAC3B,MAAM,EAAE,SAAS,CAAA;IAGjB,MAAM,SAEJ;IACF,IAAI,SAGF;IACF,SAAS,UAEP;IACF,GAAG,UAED;IACF,IAAI,EAAE,MAAM,EAAE,CAAA;;IAMR,OAAO;IAoBP,cAAc,CAAC,EAAE,EAAE,MAAM;IAKzB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIzD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAYnC,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM;IA8CvE,YAAY,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK;CAyKjH;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAK,UAiFnG"}
|