@dream_engine/extraction 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CodingWithBashir
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.d.ts","../../../node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.d.ts","../../../node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.d.ts","../../../node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts","../../../node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.d.ts","../../../node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.d.ts","../../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.d.ts","../../../node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../../../node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.d.ts","../../../node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts","../../../node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.d.ts","../../../node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/interface.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.d.ts","../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.d.ts","../../../node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts","../../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.d.ts","../../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.d.ts","../../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/stringify.d.ts","../../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/index.d.ts","../../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/types.d.ts","../../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts","../../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts","../../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts","../../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts","../../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.d.ts","../../../node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/options.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/api/attributes.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/api/traversing.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/api/manipulation.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/api/css.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/api/forms.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/api/extract.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/cheerio.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/types.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/static.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/load.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/load-parse.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/slim.d.ts","../../../node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts","../../../node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/utility.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/header.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/readable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/fetch.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/formdata.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/connector.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/client-stats.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/client.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/errors.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/dispatcher.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/global-origin.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/pool-stats.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/pool.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/handlers.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/round-robin-pool.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/h2c-client.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/agent.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/mock-call-history.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/mock-agent.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/mock-client.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/mock-pool.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/snapshot-agent.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/mock-errors.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/socks5-proxy-agent.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/retry-handler.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/retry-agent.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/api.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/cache-interceptor.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/interceptors.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/util.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/cookies.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/patch.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/websocket.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/eventsource.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/content-type.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/cache.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/types/index.d.ts","../../../node_modules/.pnpm/undici@7.30.3/node_modules/undici/index.d.ts","../../../node_modules/.pnpm/cheerio@1.2.0/node_modules/cheerio/dist/esm/index.d.ts","../../../node_modules/.pnpm/domelementtype@3.0.0/node_modules/domelementtype/dist/index.d.ts","../../../node_modules/.pnpm/domhandler@6.0.1/node_modules/domhandler/dist/node.d.ts","../../../node_modules/.pnpm/domhandler@6.0.1/node_modules/domhandler/dist/index.d.ts","../../core/dist/errors.d.ts","../../core/dist/events.d.ts","../../core/dist/logger.d.ts","../../core/dist/redact.d.ts","../../core/dist/url.d.ts","../../core/dist/async.d.ts","../../core/dist/text.d.ts","../../core/dist/ids.d.ts","../../core/dist/schema.d.ts","../../core/dist/config.d.ts","../../core/dist/index.d.ts","../src/markdown.ts","../src/types.ts","../src/extract.ts","../src/index.ts"],"fileIdsList":[[131,177,178,180,197,198],[131,179,180,197,198],[180,197,198],[131,180,185,197,198,215],[131,180,181,186,191,197,198,200,212,223,232],[131,180,181,182,191,197,198,200],[131,180,197,198],[126,127,128,131,180,197,198],[131,180,183,197,198,224],[131,180,184,185,192,197,198,201],[131,180,185,197,198,212,220,232],[131,180,186,188,191,197,198,200,232],[131,179,180,187,197,198],[131,180,188,189,197,198],[131,180,190,191,197,198],[131,179,180,191,197,198],[131,180,191,192,193,197,198,212,223,232],[131,180,191,192,193,197,198,207,212,215,232],[131,172,180,188,191,194,197,198,200,212,223,232],[131,180,191,192,194,195,197,198,200,212,220,223,232],[131,180,194,196,197,198,212,220,223,232],[129,130,131,132,133,134,135,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229],[131,180,191,197,198],[131,180,197,198,199,223],[131,180,188,191,197,198,200,212,232],[131,180,197,198,201],[131,180,197,198,202],[131,179,180,197,198,203],[131,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,232],[131,180,197,198,205],[131,180,197,198,206],[131,180,191,197,198,207,208],[131,180,197,198,207,209,224,226],[131,180,192,197,198],[131,180,191,197,198,212,213,215,232],[131,180,197,198,214,215,232],[131,180,197,198,212,213],[131,180,197,198,215],[131,180,197,198,216],[131,177,180,197,198,212,217,223],[131,180,191,197,198,218,219],[131,180,197,198,218,219],[131,180,185,197,198,200,212,220,232],[131,180,197,198,221],[131,180,197,198,200,222],[131,180,194,197,198,206,223,232],[131,180,185,197,198,224],[131,180,197,198,212,225,232],[131,180,197,198,199,226,232],[131,180,197,198,227],[131,172,180,197,198],[131,172,180,191,193,197,198,203,212,215,223,225,226,228],[131,180,197,198,212,229,232],[66,106,131,180,197,198],[66,115,131,180,197,198],[66,109,115,131,180,197,198],[66,115,116,131,180,197,198],[66,108,109,110,111,112,113,114,116,131,180,197,198],[108,116,117,118,119,120,122,131,180,197,198,212,271],[66,108,118,131,180,197,198],[66,108,115,116,117,131,180,197,198],[66,69,78,95,96,107,131,180,197,198],[66,108,115,116,117,118,131,180,197,198],[66,108,114,115,116,118,131,180,197,198],[100,101,105,131,180,197,198],[101,131,180,197,198],[100,101,102,103,104,131,180,197,198],[100,101,131,180,197,198],[100,131,180,197,198],[97,98,99,131,180,197,198],[97,131,180,197,198],[66,131,180,197,198],[65,131,180,197,198],[64,131,180,197,198],[131,180,197,198,274],[131,180,197,198,273],[66,70,71,72,73,74,75,76,131,180,197,198],[64,66,131,180,197,198],[66,69,131,180,197,198],[121,131,180,197,198,212],[83,84,85,131,180,197,198],[67,131,180,197,198],[64,66,67,68,77,131,180,197,198],[66,95,131,180,197,198],[80,131,180,197,198],[79,80,131,180,197,198],[79,131,180,197,198],[79,80,81,87,88,91,92,93,94,131,180,197,198],[80,88,131,180,197,198],[79,80,81,87,88,89,90,131,180,197,198],[79,88,131,180,197,198],[88,92,131,180,197,198],[80,81,82,86,131,180,197,198],[81,131,180,197,198],[79,80,88,131,180,197,198],[131,144,148,180,197,198,223],[131,144,180,197,198,212,223],[131,139,180,197,198],[131,141,144,180,197,198,220,223],[131,180,197,198,200,220],[131,180,197,198,230],[131,139,180,197,198,230],[131,141,144,180,197,198,200,223],[131,136,137,140,143,180,191,197,198,212,223],[131,144,151,180,197,198],[131,136,142,180,197,198],[131,144,165,166,180,197,198],[131,140,144,180,197,198,215,223,230],[131,165,180,197,198,230],[131,138,139,180,197,198,230],[131,144,180,197,198],[131,138,139,140,141,142,143,144,145,146,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,166,167,168,169,170,171,180,197,198],[131,144,159,180,197,198],[131,144,151,152,180,197,198],[131,142,144,152,153,180,197,198],[131,143,180,197,198],[131,136,139,144,180,197,198],[131,144,148,152,153,180,197,198],[131,148,180,197,198],[131,142,144,147,180,197,198,223],[131,136,141,144,151,180,197,198],[131,180,197,198,212],[131,139,144,165,180,197,198,228,230],[131,180,197,198,270],[131,180,197,198,223,234,237,240,241],[131,180,197,198,212,223,237],[131,180,197,198,223,237,241],[131,180,197,198,231],[131,180,197,198,235],[131,180,197,198,223,233,234,237],[131,180,197,198,230,231],[131,180,197,198,200,223,233,237],[123,124,125,131,180,191,197,198,212,223,232,236],[131,180,197,198,237,246,254],[124,131,180,197,198,235],[131,180,197,198,237,264,265],[124,131,180,197,198,215,223,230,232,237],[131,180,197,198,230,231,232],[131,180,197,198,237],[131,180,197,198,223,233,237],[123,131,180,197,198],[131,180,197,198,231,232,233,235,236,237,238,239,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,265,266,267,268,269],[131,180,188,197,198,237,257,260],[131,180,197,198,237,246,247,248],[131,180,197,198,235,237,247,249],[131,180,197,198,236],[124,131,180,197,198,231,237],[131,180,197,198,237,241,247,249],[131,180,197,198,241],[131,180,197,198,223,235,237,240],[124,131,180,197,198,233,237,246],[131,180,197,198,212,232],[131,180,197,198,237,257],[131,180,197,198,249],[124,131,180,197,198,233,237,241],[131,180,197,198,215,228,230,231,232,237,264],[131,180,197,198,276],[131,180,197,198,284],[131,180,197,198,276,277,278,279,280,281,282,283,284,285],[131,180,197,198,272,275,286,287,288],[131,180,197,198,287,288,289],[131,180,197,198,275]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2556e7e8bb7e6f0bb3fe25f3da990d1812cb91f8c9b389354b6a0c8a6d687590","impliedFormat":99},{"version":"ad1c91ca536e0962dcbfcdff40073e3dd18da839e0baad3fe990cf0d10c93065","impliedFormat":99},{"version":"19cf605ba2a4e8fba017edebdddbbc45aea897ddc58b4aae4c55f382b570ff53","impliedFormat":99},{"version":"884aab8c07224434c034b49e88de0511f21536aa83ee88f1285160ba6d3fb77a","impliedFormat":99},{"version":"130b39b18c99e5678635f383ef57efaa507196838ddabb47cb104064e2ce4cd3","impliedFormat":99},{"version":"7618d2cb769e2093acd4623d645b683ab9fea78c262b3aa354aba9f5afdcaaee","impliedFormat":99},{"version":"029f1ce606891c3f57f4c0c60b8a46c8ced53e719d27a7c9693817f2fe37690b","impliedFormat":99},{"version":"83596c963e276a9c5911412fba37ae7c1fe280f2d77329928828eed5a3bfa9a6","impliedFormat":99},{"version":"81acfd3a01767770e559bc57d32684756989475be6ea32e2fe6255472c3ea116","impliedFormat":99},{"version":"88d0c3eae81868b4749ba5b88f9b6d564ee748321ce19a2f4269a4e9dd46020a","impliedFormat":99},{"version":"8266b39a828bfb2695cabfa403e7c1226d7d94599f21bea9f760e35f4ca7a576","impliedFormat":99},{"version":"c1c1e740195c882a776cf084acbaf963907785ee39e723c6375fec9a59bf2387","impliedFormat":99},{"version":"137f96b78e477e08876f6372072c3b6f1767672bf182013f84f8ae53d987ff86","impliedFormat":99},{"version":"29896c61d09880ff39f8a86873bf72ce4deb910158d3a496122781e29904c615","impliedFormat":99},{"version":"81ce540acef0d6972b0b163331583181be3603300f618dcd6a6a3138954ff30c","impliedFormat":99},{"version":"19990350fca066265b2c190c9b6cde1229f35002ea2d4df8c9e397e9942f6c89","impliedFormat":99},{"version":"8fb8fdda477cd7382477ffda92c2bb7d9f7ef583b1aa531eb6b2dc2f0a206c10","impliedFormat":99},{"version":"66995b0c991b5c5d42eff1d950733f85482c7419f7296ab8952e03718169e379","impliedFormat":99},{"version":"9863f888da357e35e013ca3465b794a490a198226bd8232c2f81fb44e16ff323","impliedFormat":99},{"version":"84bc2d80326a83ee4a6e7cba2fd480b86502660770c0e24da96535af597c9f1e","impliedFormat":99},{"version":"ea27768379b866ee3f5da2419650acdb01125479f7af73580a4bceb25b79e372","impliedFormat":99},{"version":"598931eeb4362542cae5845f95c5f0e45ac668925a40ce201e244d7fe808e965","impliedFormat":99},{"version":"da9ef88cde9f715756da642ad80c4cd87a987f465d325462d6bc2a0b11d202c8","impliedFormat":99},{"version":"b4c6184d78303b0816e779a48bef779b15aea4a66028eb819aac0abee8407dea","impliedFormat":99},{"version":"db085d2171d48938a99e851dafe0e486dce9859e5dfa73c21de5ed3d4d6fb0c5","impliedFormat":99},{"version":"62a3ad1ddd1f5974b3bf105680b3e09420f2230711d6520a521fab2be1a32838","impliedFormat":99},{"version":"a77be6fc44c876bc10c897107f84eaba10790913ebdcad40fcda7e47469b2160","impliedFormat":99},{"version":"06cf55b6da5cef54eaaf51cdc3d4e5ebf16adfdd9ebd20cec7fe719be9ced017","impliedFormat":99},{"version":"91f5dbcdb25d145a56cffe957ec665256827892d779ef108eb2f3864faff523b","impliedFormat":99},{"version":"052ba354bab8fb943e0bc05a0769f7b81d7c3b3c6cd0f5cfa53c7b2da2a525c5","impliedFormat":99},{"version":"927955a3de5857e0a1c575ced5a4245e74e6821d720ed213141347dd1870197f","impliedFormat":99},{"version":"fec804d54cd97dd77e956232fc37dc13f53e160d4bbeeb5489e86eeaa91f7ebd","impliedFormat":99},{"version":"75ef949153a3e6ff419e39d0fa5eb6617e92de5019738ad3c43872023d9665f5","impliedFormat":99},{"version":"ed9ce8e6dd5b2d00ab95efc44e4ad9d0eba77362e01619cb21dedfdedbad51b8","impliedFormat":1},{"version":"5520611f997f2b8e62a6e191da45b07813ac2e758304690606604a64ac0ca976","impliedFormat":1},{"version":"00b469cba48c9d772a4555216d21ba41cdb5a732af797ccb57267344f4fc6c3d","impliedFormat":1},{"version":"2766bf77766c85c25ec31586823fefb48344e64556faad7e75a3363e517814f6","impliedFormat":1},{"version":"b7d1eaffd8003e8dc0ec275e58bd24c7b9a4dbae2a2d0d83cf248c88237262ce","impliedFormat":99},{"version":"7a8b08c0521c3a9e1db3c8b14f37e59d838fdc32389f1193b96630b435a8e64e","impliedFormat":99},{"version":"2e54848617fae9eb73654d9cf4295d99dab4b9c759934e5b82e2e57e6aaaef20","impliedFormat":99},{"version":"ae056b7c3f727d492166d4c1169d5905ddd194128a014b5d2d621248ed94b49c","impliedFormat":99},{"version":"edc5d99a04130f066f6e8d31c7c3f9ba4749496356470279408833b4faee3554","impliedFormat":99},{"version":"2f502ac2473a2bbf0d6217f9660e9d5bf40165a2f91067596323898c53dab87c","impliedFormat":99},{"version":"21f27a0c8bc8d9a4e2cf6d9c60140f8b071d0e1ffddb4b7dcf6bbf74d0e8d470","impliedFormat":99},{"version":"754108a1e136331ac67dc8ee6aa9c95cb3bea3ac8bbf48dda7b0dbabbc8f970f","impliedFormat":99},{"version":"9e9979adc151111d71ad049305be1b6df324a98d1d1edd84adb1756cc1911bfd","impliedFormat":99},{"version":"0f38bcf19f105cd31ded5d46491ca50a46462c838816c358d445f41ac7a68f5a","impliedFormat":99},{"version":"a65fc667cd78d7cad733fab96f4bff3183c0dcbc15b083dce0055cffc5c64f9f","impliedFormat":99},{"version":"c735e27dfa775155120c50f714f594639dd7b6ad1878097feb005a0b5c59b7c2","impliedFormat":99},{"version":"f3dd541f4d87bba38dabf43fd06b7616c6f86b11608d30e61086ab39f84fa8d8","impliedFormat":99},{"version":"5583f1c0912e96625a30c20b83cff3d175194b222e4eb22170d19e33f7d8729f","impliedFormat":99},{"version":"a515b08047d24de84d89ad80b2843e565e65ed4a4e7cfc9707656470d7c555f9","impliedFormat":99},{"version":"cf43b2783a58e42fca6e45f0d47465b2ab855b7e9bea5ccb68447297df8aade5","impliedFormat":99},{"version":"27a3f158d8e6f59f29e55c37d4ae3c39574ee99539c4f12bcf46d29929974a62","impliedFormat":99},{"version":"a2d23e2f22006483c89f42077bd6a9bf92db721ebb5e0859b06fdb5c8369586d","impliedFormat":99},{"version":"6a8aec6851c09e4524937485f6553ec7332118482f3ed33238cea7496ff42103","impliedFormat":99},{"version":"d67fd6ea8cf37131627c7a9ae1de96d19d41cb32e741a475f0f56942576a7b3b","impliedFormat":99},{"version":"9b2f424a2c5c592d738100d898df3f9ee018bdd23a279f10849c3686abbec158","impliedFormat":99},{"version":"2fef96aedd23d59b6093d12d9f97c95e3a4008fcc02e8c68304235a1770fc70a","impliedFormat":99},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"156a859e21ef3244d13afeeba4e49760a6afa035c149dda52f0c45ea8903b338","impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"913be43dad2a40e500104700aa26cfb5c51a976114bedf19624de43fdae7474f","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7fcccb7463007c1a6e877709650c26cd297ef1b2679d0173157ee874bf16517","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"208a6a0bfb227bdf8fb964799d0a206c75cf03ccd72e63bf5495c9331354c6d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"33f03c0429f2c638069fc1186e2eccd96370c91fb9d8d7a69c5241bb31fc3d46","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"45479f65af737a3e5c26d8772bd8ab1aa8bebbd09c1a808c2b3faddb9b84afbb","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1},{"version":"3ac40516c33b87f751f7507346933081a26cdb8a3e11a6b3aa07d23f803c85db","impliedFormat":1},{"version":"4ac80270b6787c2b77a2d98a9714a71f4363c24b5890314f3ba582c94bfbe779","impliedFormat":1},{"version":"14e9acf826baba0ef4b5665704084896e7bcc06f65a9ab13af7e93d27d6b7069","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"bf67c9351f30264c3e720afc837bd7dd6276eeddcf4aa2bf36a9f10de3a1ef2c","impliedFormat":1},{"version":"eec76bf6b9346f3f95fa402621b889489e96930e72295b0369022f332e9b4a6a","impliedFormat":1},{"version":"9419da05a09d38439d64470a943a7d2c1e398a563730ca125a8903eebab8e80d","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"9c32412007b5662fd34a8eb04292fb5314ec370d7016d1c2fb8aa193c807fe22","impliedFormat":1},{"version":"d243db6b25788f439e7e2f03c05688e92f46764351673bb0e7b2f3631232e186","impliedFormat":1},{"version":"4d327f7d72ad0918275cea3eee49a6a8dc8114ae1d5b7f3f5d0774de75f7439a","impliedFormat":1},{"version":"6ebe8ebb8659aaa9d1acbf3710d7dae3e923e97610238b9511c25dc39023a166","impliedFormat":1},{"version":"e85d7f8068f6a26710bff0cc8c0fc5e47f71089c3780fbede05857331d2ddec9","impliedFormat":1},{"version":"7befaf0e76b5671be1d47b77fcc65f2b0aad91cc26529df1904f4a7c46d216e9","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"d33ce35e3f9cfcc1d94eca415bdd3bde94d5b153ffdd33e6c4455c029986c630","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"8aee8b6d4f9f62cf3776cda1305fb18763e2aade7e13cea5bbe699112df85214","impliedFormat":1},{"version":"98498b101803bb3dde9f76a56e65c14b75db1cc8bec5f4db72be541570f74fc5","impliedFormat":1},{"version":"1d5e86e300d9fdeb1e3e88aa4f24d780f045195fcb2dbc24b68bf49c9f816c5e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"436d7b4543b340b0f3eef4310d524242e41369b9652aa9c70428767c4dcac455","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"12950411eeab8563b349cb7959543d92d8d02c289ed893d78499a19becb5a8cc","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"114f493b30f364255290472111b5a4791d5902c308645670cd0401429cbc6930","impliedFormat":1},{"version":"b3fb72492a07a76f7bfa29ecadd029eea081df11512e4dfe6f930a5a9cb1fb75","impliedFormat":1},{"version":"66b99e58194754a9db09e8ae09b45f878a5041f9ba497feaa9db8cc9773cafcc","impliedFormat":99},{"version":"310b84457ce0807b9e34723162393dcc71be08346f7e8ac350602eafcc985da5","impliedFormat":99},{"version":"a28a5b797799cace8a724ba3cf4b8637d9845ae70dffd0bcf1eb32c753b69a81","impliedFormat":99},{"version":"dd162ceec2ace6cd7ee68a73b7ffac920116455d14dfac836a25f030e96249cc","impliedFormat":99},{"version":"2cd394618cdb4d16e0edc972f2ea83ecdd4f3a3f87807eb787d4659bc0b3ce50","impliedFormat":99},{"version":"7c36b560a10efd5a07449c959ef482b06c82a1b940f86bd9017303a02959a84f","impliedFormat":99},{"version":"ab85dd6c839ffaf796c6d1eb9d005c7b6e19a1c9dd6194ac9e28899f09400f59","impliedFormat":99},{"version":"1709904caba5a0995e696d79b0a397ac008a5b94839fa220657dedcfef725219","impliedFormat":99},{"version":"dca02cdbfea21cc04242e29c1ffe6585346b995a36f85f36284110ca3a8692dd","impliedFormat":99},{"version":"99fa96241066465ffcb013cf5d4f7cf2506d901cad368f75169254d384885498","impliedFormat":99},{"version":"2982305a090c8721d65e3a6ac76e18d8ecc508d570c2f404d734e72171b4fe6e","impliedFormat":99},{"version":"4ce051f4e765562370d3eea0511d8f169f66648a2032fb1f006ea5367401646b","impliedFormat":99},{"version":"62f4e7012819e61f5bf8f0da46576876cc04a2ab3adb5c39de55f0e217123b81","impliedFormat":99},{"version":"0fe8f6548895a15bc3e43972c1b4f6b3bbc6e42c88ff737bae4c5ccf529dde77","impliedFormat":99},{"version":"1d14b2d995a2eb2cbbba52bd719b67a59599967dcee4157b7ef374133ae03569","impliedFormat":99},{"version":"bb29fbb2fe4bf80f96fc5946a9e0d374caa8f71c6da4fd6027d1dee481e7821d","signature":"56dedc83fc27699b30fe2632f1d32757015b3a44bfd47dda061b03f22da347fa","impliedFormat":99},{"version":"cd9ee6778cf4f0f6d61bcb42b7e40a99b2cba8e151f2f8e2debb55d36d42d9cd","signature":"f4e56341e261795349189d898edff000056888d183debaf584e2d4acb6e3632d","impliedFormat":99},{"version":"aff0986d40f204e7df1c949586ca3ae2958e88710d5d1f29a8ec58f30dc143e1","signature":"521df9b24342cabdf45f28b35b42643243eda9f40aefc59ef958efe9ec1956b4","impliedFormat":99},{"version":"9bcc20d34f8b8ac75282e7bf296a83d49467602a30de221e341a89629056cd69","signature":"92408c0837fca2f82816e2fb4337b71a59cee00bbf0c1af45d8a9b5518274887","impliedFormat":99}],"root":[[287,290]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[177,1],[178,1],[179,2],[131,3],[180,4],[181,5],[182,6],[126,7],[129,8],[127,7],[128,7],[183,9],[184,10],[185,11],[186,12],[187,13],[188,14],[189,14],[190,15],[191,16],[192,17],[193,18],[132,7],[130,7],[194,19],[195,20],[196,21],[230,22],[197,23],[198,7],[199,24],[200,25],[201,26],[202,27],[203,28],[204,29],[205,30],[206,31],[207,32],[208,32],[209,33],[210,7],[211,34],[212,35],[214,36],[213,37],[215,38],[216,39],[217,40],[218,41],[219,42],[220,43],[221,44],[222,45],[223,46],[224,47],[225,48],[226,49],[227,50],[133,7],[134,7],[135,7],[173,51],[174,7],[175,7],[176,38],[228,52],[229,53],[107,54],[109,55],[112,55],[114,56],[113,55],[111,57],[110,57],[115,58],[272,59],[119,60],[118,61],[108,62],[120,63],[117,64],[116,55],[106,65],[104,7],[102,66],[105,67],[103,68],[101,69],[100,70],[98,71],[99,71],[97,7],[69,72],[64,7],[273,7],[66,73],[65,74],[275,75],[274,76],[76,72],[75,72],[77,77],[74,78],[72,72],[73,72],[70,79],[71,72],[122,80],[121,7],[85,7],[86,81],[83,7],[84,7],[68,82],[67,7],[78,83],[96,84],[81,85],[94,86],[79,7],[80,87],[95,88],[90,89],[91,90],[89,91],[93,92],[87,93],[82,94],[92,95],[88,86],[62,7],[63,7],[11,7],[12,7],[14,7],[13,7],[2,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[21,7],[22,7],[3,7],[23,7],[24,7],[4,7],[25,7],[29,7],[26,7],[27,7],[28,7],[30,7],[31,7],[32,7],[5,7],[33,7],[34,7],[35,7],[36,7],[6,7],[40,7],[37,7],[38,7],[39,7],[41,7],[7,7],[42,7],[47,7],[48,7],[43,7],[44,7],[45,7],[46,7],[8,7],[52,7],[49,7],[50,7],[51,7],[53,7],[9,7],[54,7],[55,7],[56,7],[58,7],[57,7],[59,7],[60,7],[10,7],[61,7],[1,7],[151,96],[161,97],[150,96],[171,98],[142,99],[141,100],[170,101],[164,102],[169,103],[144,104],[158,105],[143,106],[167,107],[139,108],[138,101],[168,109],[140,110],[145,111],[146,7],[149,111],[136,7],[172,112],[162,113],[153,114],[154,115],[156,116],[152,117],[155,118],[165,101],[147,119],[148,120],[157,121],[137,122],[160,113],[159,111],[163,7],[166,123],[271,124],[246,125],[259,126],[243,127],[260,122],[269,128],[234,129],[235,130],[233,100],[268,101],[263,131],[267,132],[237,133],[256,134],[236,135],[266,136],[231,137],[232,138],[238,139],[239,7],[245,140],[242,139],[124,141],[270,142],[261,143],[249,144],[248,139],[250,145],[253,146],[247,147],[251,148],[264,101],[240,149],[241,150],[254,151],[125,152],[258,153],[257,139],[244,150],[252,154],[255,155],[262,7],[123,7],[265,156],[281,157],[285,158],[276,7],[277,7],[283,7],[286,159],[278,7],[279,7],[284,7],[282,7],[280,7],[289,160],[290,161],[287,162],[288,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -0,0 +1,28 @@
1
+ import { type Cheerio, type CheerioAPI } from 'cheerio';
2
+ import type { AnyNode } from 'domhandler';
3
+ import type { ExtractedDocument, ExtractedHeading, ExtractedImage, ExtractedLink, ExtractedList, ExtractedTable, ExtractOptions, PageMetadata } from './types.js';
4
+ export declare function collapse(text: string): string;
5
+ /** Parses JSON-LD script blocks, flattening @graph arrays. Invalid blocks are skipped. */
6
+ export declare function extractJsonLd($: CheerioAPI): unknown[];
7
+ /** Extracts page-level metadata: title, description, canonical, Open Graph, Twitter cards, dates and feeds. */
8
+ export declare function extractMetadata($: CheerioAPI, url?: string, jsonLd?: unknown[]): PageMetadata;
9
+ export declare function extractLinks($: CheerioAPI, root: Cheerio<AnyNode>, url?: string, max?: number): ExtractedLink[];
10
+ export declare function extractImages($: CheerioAPI, root: Cheerio<AnyNode>, url?: string, max?: number): ExtractedImage[];
11
+ export declare function extractHeadings($: CheerioAPI, root: Cheerio<AnyNode>): ExtractedHeading[];
12
+ export declare function extractTables($: CheerioAPI, root: Cheerio<AnyNode>): ExtractedTable[];
13
+ export declare function extractLists($: CheerioAPI, root: Cheerio<AnyNode>): ExtractedList[];
14
+ /**
15
+ * Locates the main content block. Semantic containers are preferred; otherwise candidate blocks are
16
+ * scored by paragraph text length, comma count and link density (a simplified Readability heuristic).
17
+ */
18
+ export declare function findMainContent($: CheerioAPI): {
19
+ root: Cheerio<AnyNode>;
20
+ strategy: ExtractedDocument['contentStrategy'];
21
+ };
22
+ /** Plain-text rendering that keeps block boundaries as newlines. */
23
+ export declare function toPlainText($: CheerioAPI, root: Cheerio<AnyNode>): string;
24
+ /** Loads HTML into a cheerio document. */
25
+ export declare function parseHtml(html: string): CheerioAPI;
26
+ /** Extracts a complete structured document from HTML. */
27
+ export declare function extractDocument(html: string, options?: ExtractOptions): ExtractedDocument;
28
+ //# sourceMappingURL=extract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../src/extract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAW,MAAM,YAAY,CAAC;AAGnD,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACb,MAAM,YAAY,CAAC;AAkCpB,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C;AA2BD,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,EAAE,CAkBtD;AAkBD,+GAA+G;AAC/G,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,EAAqB,GAAG,YAAY,CAwD/G;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,SAAM,GAAG,aAAa,EAAE,CAqB5G;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,SAAM,GAAG,cAAc,EAAE,CAqB9G;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,gBAAgB,EAAE,CAOzF;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,cAAc,EAAE,CAwBrF;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,aAAa,EAAE,CAgBnF;AAQD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAAC,QAAQ,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;CAAE,CA6CzH;AAkBD,oEAAoE;AACpE,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,CAmDzE;AAED,0CAA0C;AAC1C,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAGlD;AAED,yDAAyD;AACzD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,iBAAiB,CA0D7F"}
@@ -0,0 +1,476 @@
1
+ import { load } from 'cheerio';
2
+ import { ExtractionError, getDomain } from '@dream_engine/core';
3
+ import { nodeToMarkdown } from './markdown.js';
4
+ const NOISE_SELECTORS = [
5
+ 'script',
6
+ 'style',
7
+ 'noscript',
8
+ 'template',
9
+ 'svg',
10
+ 'canvas',
11
+ 'iframe',
12
+ 'object',
13
+ 'embed',
14
+ '[hidden]',
15
+ '[aria-hidden="true"]',
16
+ '[style*="display:none"]',
17
+ '[style*="display: none"]',
18
+ ];
19
+ const BOILERPLATE_SELECTORS = [
20
+ 'nav',
21
+ 'header',
22
+ 'footer',
23
+ 'aside',
24
+ 'form',
25
+ '[role="navigation"]',
26
+ '[role="banner"]',
27
+ '[role="contentinfo"]',
28
+ '[role="complementary"]',
29
+ '.cookie',
30
+ '#cookie-banner',
31
+ '.advert',
32
+ '.ads',
33
+ '.sidebar',
34
+ ];
35
+ export function collapse(text) {
36
+ return text.replace(/[\s\u00a0]+/g, ' ').trim();
37
+ }
38
+ function resolveUrl(href, base) {
39
+ if (!href)
40
+ return null;
41
+ const trimmed = href.trim();
42
+ if (!trimmed || trimmed.startsWith('javascript:') || (trimmed.startsWith('data:') && trimmed.length > 2048))
43
+ return null;
44
+ try {
45
+ return base ? new URL(trimmed, base).toString() : new URL(trimmed).toString();
46
+ }
47
+ catch {
48
+ return base ? null : trimmed;
49
+ }
50
+ }
51
+ function toIsoDate(value) {
52
+ if (!value)
53
+ return null;
54
+ const trimmed = value.trim();
55
+ if (!trimmed)
56
+ return null;
57
+ const t = Date.parse(trimmed);
58
+ return Number.isNaN(t) ? trimmed : new Date(t).toISOString();
59
+ }
60
+ function parseIntAttr(v) {
61
+ if (!v)
62
+ return null;
63
+ const n = parseInt(v, 10);
64
+ return Number.isFinite(n) ? n : null;
65
+ }
66
+ /** Parses JSON-LD script blocks, flattening @graph arrays. Invalid blocks are skipped. */
67
+ export function extractJsonLd($) {
68
+ const out = [];
69
+ $('script[type="application/ld+json"]').each((_, el) => {
70
+ const raw = $(el).text().trim();
71
+ if (!raw)
72
+ return;
73
+ try {
74
+ const parsed = JSON.parse(raw);
75
+ const items = Array.isArray(parsed) ? parsed : [parsed];
76
+ for (const item of items) {
77
+ if (item && typeof item === 'object' && Array.isArray(item['@graph'])) {
78
+ out.push(...item['@graph']);
79
+ }
80
+ else
81
+ out.push(item);
82
+ }
83
+ }
84
+ catch {
85
+ // Malformed JSON-LD is common on the web; skip the block rather than failing the extraction.
86
+ }
87
+ });
88
+ return out;
89
+ }
90
+ function jsonLdField(items, keys) {
91
+ for (const item of items) {
92
+ if (!item || typeof item !== 'object')
93
+ continue;
94
+ const rec = item;
95
+ for (const key of keys) {
96
+ const v = rec[key];
97
+ if (typeof v === 'string' && v.trim())
98
+ return v.trim();
99
+ if (v && typeof v === 'object') {
100
+ const name = Array.isArray(v) ? v[0]?.name : v.name;
101
+ if (typeof name === 'string' && name.trim())
102
+ return name.trim();
103
+ }
104
+ }
105
+ }
106
+ return null;
107
+ }
108
+ /** Extracts page-level metadata: title, description, canonical, Open Graph, Twitter cards, dates and feeds. */
109
+ export function extractMetadata($, url, jsonLd = extractJsonLd($)) {
110
+ const meta = {};
111
+ const openGraph = {};
112
+ const twitter = {};
113
+ $('meta').each((_, el) => {
114
+ const key = ($(el).attr('property') ?? $(el).attr('name') ?? $(el).attr('itemprop') ?? $(el).attr('http-equiv'))?.trim().toLowerCase();
115
+ const content = $(el).attr('content');
116
+ if (!key || content === undefined)
117
+ return;
118
+ const value = collapse(content);
119
+ if (key.startsWith('og:'))
120
+ openGraph[key.slice(3)] ??= value;
121
+ else if (key.startsWith('twitter:'))
122
+ twitter[key.slice(8)] ??= value;
123
+ meta[key] ??= value;
124
+ });
125
+ const title = collapse($('title').first().text()) || openGraph.title || twitter.title || collapse($('h1').first().text()) || '';
126
+ const canonical = resolveUrl($('link[rel="canonical"]').attr('href'), url) ?? (openGraph.url ? resolveUrl(openGraph.url, url) : null);
127
+ const iconHref = $('link[rel="icon"], link[rel="shortcut icon"], link[rel="apple-touch-icon"]').first().attr('href');
128
+ const feeds = [];
129
+ $('link[rel="alternate"][type*="rss"], link[rel="alternate"][type*="atom"], link[rel="alternate"][type*="feed+json"]').each((_, el) => {
130
+ const href = resolveUrl($(el).attr('href'), url);
131
+ if (href)
132
+ feeds.push({ type: $(el).attr('type') ?? 'unknown', url: href, title: $(el).attr('title') ?? null });
133
+ });
134
+ const published = meta['article:published_time'] ??
135
+ meta['datepublished'] ??
136
+ meta['date'] ??
137
+ meta['dc.date'] ??
138
+ meta['dc.date.issued'] ??
139
+ jsonLdField(jsonLd, ['datePublished']) ??
140
+ $('time[datetime][itemprop="datePublished"], article time[datetime]').first().attr('datetime') ??
141
+ null;
142
+ const modified = meta['article:modified_time'] ?? meta['og:updated_time'] ?? jsonLdField(jsonLd, ['dateModified']) ?? null;
143
+ const author = meta.author ??
144
+ meta['article:author'] ??
145
+ jsonLdField(jsonLd, ['author', 'creator']) ??
146
+ (collapse($('[rel="author"], [itemprop="author"]').first().text()) || null);
147
+ return {
148
+ title,
149
+ description: meta.description ?? openGraph.description ?? twitter.description ?? null,
150
+ canonicalUrl: canonical,
151
+ language: $('html').attr('lang')?.trim() || meta['content-language'] || openGraph.locale || null,
152
+ author,
153
+ publishedAt: toIsoDate(published),
154
+ modifiedAt: toIsoDate(modified),
155
+ keywords: (meta.keywords ?? '')
156
+ .split(',')
157
+ .map((k) => k.trim())
158
+ .filter(Boolean),
159
+ robots: meta.robots ?? null,
160
+ favicon: resolveUrl(iconHref, url),
161
+ siteName: openGraph.site_name ?? jsonLdField(jsonLd, ['publisher']) ?? null,
162
+ openGraph,
163
+ twitter,
164
+ meta,
165
+ feeds,
166
+ };
167
+ }
168
+ export function extractLinks($, root, url, max = 500) {
169
+ const seen = new Set();
170
+ const out = [];
171
+ const baseHost = url ? getDomain(url) : '';
172
+ root.find('a[href]').each((_, el) => {
173
+ if (out.length >= max)
174
+ return false;
175
+ const href = resolveUrl($(el).attr('href'), url);
176
+ if (!href || seen.has(href))
177
+ return undefined;
178
+ if (!/^(https?:|mailto:|tel:)/i.test(href))
179
+ return undefined;
180
+ seen.add(href);
181
+ const rel = $(el).attr('rel') ?? null;
182
+ out.push({
183
+ url: href,
184
+ text: collapse($(el).text()) || $(el).attr('aria-label') || $(el).attr('title') || '',
185
+ rel,
186
+ internal: baseHost !== '' && getDomain(href) === baseHost,
187
+ nofollow: rel?.split(/\s+/).includes('nofollow') ?? false,
188
+ });
189
+ return undefined;
190
+ });
191
+ return out;
192
+ }
193
+ export function extractImages($, root, url, max = 500) {
194
+ const out = [];
195
+ const seen = new Set();
196
+ root.find('img').each((_, el) => {
197
+ if (out.length >= max)
198
+ return false;
199
+ const $el = $(el);
200
+ const src = resolveUrl($el.attr('src') ?? $el.attr('data-src') ?? $el.attr('data-lazy-src'), url);
201
+ if (!src || seen.has(src))
202
+ return undefined;
203
+ seen.add(src);
204
+ out.push({
205
+ src,
206
+ alt: $el.attr('alt') ?? null,
207
+ title: $el.attr('title') ?? null,
208
+ width: parseIntAttr($el.attr('width')),
209
+ height: parseIntAttr($el.attr('height')),
210
+ srcset: $el.attr('srcset') ?? null,
211
+ loading: $el.attr('loading') ?? null,
212
+ });
213
+ return undefined;
214
+ });
215
+ return out;
216
+ }
217
+ export function extractHeadings($, root) {
218
+ const out = [];
219
+ root.find('h1, h2, h3, h4, h5, h6').each((_, el) => {
220
+ const text = collapse($(el).text());
221
+ if (text)
222
+ out.push({ level: Number(el.tagName.slice(1)), text, id: $(el).attr('id') ?? null });
223
+ });
224
+ return out;
225
+ }
226
+ export function extractTables($, root) {
227
+ const out = [];
228
+ root.find('table').each((_, table) => {
229
+ const $t = $(table);
230
+ let headers = $t
231
+ .find('thead tr')
232
+ .first()
233
+ .find('th, td')
234
+ .map((__, c) => collapse($(c).text()))
235
+ .get();
236
+ const rows = [];
237
+ $t.find('tr').each((i, tr) => {
238
+ if ($(tr).parent().is('thead'))
239
+ return;
240
+ const cells = $(tr)
241
+ .children('th, td')
242
+ .map((__, c) => collapse($(c).text()))
243
+ .get();
244
+ if (!cells.length)
245
+ return;
246
+ if (!headers.length && i === 0 && $(tr).children('th').length === cells.length)
247
+ headers = cells;
248
+ else
249
+ rows.push(cells);
250
+ });
251
+ out.push({ caption: collapse($t.find('caption').first().text()) || null, headers, rows });
252
+ });
253
+ return out;
254
+ }
255
+ export function extractLists($, root) {
256
+ const out = [];
257
+ root.find('ul, ol').each((_, list) => {
258
+ if ($(list).parents('ul, ol').length)
259
+ return; // only top-level lists
260
+ const items = $(list)
261
+ .children('li')
262
+ .map((__, li) => {
263
+ const clone = $(li).clone();
264
+ clone.find('ul, ol').remove();
265
+ return collapse(clone.text());
266
+ })
267
+ .get()
268
+ .filter(Boolean);
269
+ if (items.length)
270
+ out.push({ ordered: list.tagName === 'ol', items });
271
+ });
272
+ return out;
273
+ }
274
+ function linkDensity($, el) {
275
+ const total = collapse(el.text()).length || 1;
276
+ const linkText = collapse(el.find('a').text()).length;
277
+ return linkText / total;
278
+ }
279
+ /**
280
+ * Locates the main content block. Semantic containers are preferred; otherwise candidate blocks are
281
+ * scored by paragraph text length, comma count and link density (a simplified Readability heuristic).
282
+ */
283
+ export function findMainContent($) {
284
+ const bodyLen = collapse($('body').text()).length;
285
+ const pick = (selector) => {
286
+ let best = null;
287
+ let bestLen = 0;
288
+ $(selector).each((_, el) => {
289
+ const len = collapse($(el).text()).length;
290
+ if (len > bestLen) {
291
+ best = $(el);
292
+ bestLen = len;
293
+ }
294
+ });
295
+ // Long enough on its own, or (for short pages) holding most of the page's text.
296
+ return best && (bestLen >= 80 || (bestLen > 0 && bestLen >= bodyLen * 0.5)) ? best : null;
297
+ };
298
+ const article = pick('article');
299
+ if (article)
300
+ return { root: article, strategy: 'article' };
301
+ const main = pick('main');
302
+ if (main)
303
+ return { root: main, strategy: 'main' };
304
+ const roleMain = pick('[role="main"]');
305
+ if (roleMain)
306
+ return { root: roleMain, strategy: 'role-main' };
307
+ const scores = new Map();
308
+ $('p, pre, td, blockquote').each((_, el) => {
309
+ const text = collapse($(el).text());
310
+ if (text.length < 25)
311
+ return;
312
+ const score = 1 + text.split(',').length + Math.min(3, Math.floor(text.length / 100));
313
+ const parent = el.parent;
314
+ if (parent)
315
+ scores.set(parent, (scores.get(parent) ?? 0) + score);
316
+ const grand = parent?.parent;
317
+ if (grand)
318
+ scores.set(grand, (scores.get(grand) ?? 0) + score / 2);
319
+ });
320
+ let bestNode = null;
321
+ let bestScore = 0;
322
+ for (const [node, raw] of scores) {
323
+ const tag = node.tagName;
324
+ if (!tag || tag === 'html')
325
+ continue;
326
+ const score = raw * (1 - linkDensity($, $(node)));
327
+ if (score > bestScore) {
328
+ bestScore = score;
329
+ bestNode = node;
330
+ }
331
+ }
332
+ if (bestNode && bestScore >= 5)
333
+ return { root: $(bestNode), strategy: 'scored' };
334
+ return { root: $('body').length ? $('body') : $.root(), strategy: 'body' };
335
+ }
336
+ /** Removes scripts, event handlers and dangerous URLs from an HTML fragment. */
337
+ function sanitizeFragment($, root) {
338
+ const clone = root.clone();
339
+ clone.find(NOISE_SELECTORS.join(',')).remove();
340
+ clone.find('*').each((_, el) => {
341
+ const element = el;
342
+ for (const name of Object.keys(element.attribs ?? {})) {
343
+ const value = element.attribs[name] ?? '';
344
+ if (name.startsWith('on') || ((name === 'href' || name === 'src' || name === 'action') && /^\s*javascript:/i.test(value))) {
345
+ $(el).removeAttr(name);
346
+ }
347
+ }
348
+ });
349
+ return ($.html(clone) ?? '').trim();
350
+ }
351
+ /** Plain-text rendering that keeps block boundaries as newlines. */
352
+ export function toPlainText($, root) {
353
+ const blocks = new Set([
354
+ 'p',
355
+ 'div',
356
+ 'section',
357
+ 'article',
358
+ 'main',
359
+ 'li',
360
+ 'tr',
361
+ 'h1',
362
+ 'h2',
363
+ 'h3',
364
+ 'h4',
365
+ 'h5',
366
+ 'h6',
367
+ 'pre',
368
+ 'blockquote',
369
+ 'br',
370
+ 'hr',
371
+ 'table',
372
+ 'ul',
373
+ 'ol',
374
+ 'dl',
375
+ 'dt',
376
+ 'dd',
377
+ 'figcaption',
378
+ 'header',
379
+ 'footer',
380
+ ]);
381
+ const parts = [];
382
+ const walk = (node) => {
383
+ if (node.type === 'text') {
384
+ parts.push(node.data);
385
+ return;
386
+ }
387
+ if (node.type !== 'tag')
388
+ return;
389
+ const el = node;
390
+ if (['script', 'style', 'noscript', 'template'].includes(el.tagName))
391
+ return;
392
+ const isBlock = blocks.has(el.tagName);
393
+ if (isBlock)
394
+ parts.push('\n');
395
+ if (el.tagName === 'td' || el.tagName === 'th')
396
+ parts.push(' ');
397
+ for (const child of el.children)
398
+ walk(child);
399
+ if (isBlock)
400
+ parts.push('\n');
401
+ };
402
+ root.each((_, el) => walk(el));
403
+ return parts
404
+ .join('')
405
+ .split('\n')
406
+ .map((l) => collapse(l))
407
+ .filter(Boolean)
408
+ .join('\n');
409
+ }
410
+ /** Loads HTML into a cheerio document. */
411
+ export function parseHtml(html) {
412
+ if (typeof html !== 'string')
413
+ throw new ExtractionError('HTML input must be a string');
414
+ return load(html);
415
+ }
416
+ /** Extracts a complete structured document from HTML. */
417
+ export function extractDocument(html, options = {}) {
418
+ const $ = parseHtml(html);
419
+ const url = options.url;
420
+ const max = options.maxItems ?? 500;
421
+ const jsonLd = extractJsonLd($);
422
+ const metadata = extractMetadata($, url, jsonLd);
423
+ $(NOISE_SELECTORS.join(',')).remove();
424
+ let root;
425
+ let strategy;
426
+ if (options.selector) {
427
+ root = $(options.selector);
428
+ if (!root.length)
429
+ throw new ExtractionError(`No element matches selector "${options.selector}"`, { details: { selector: options.selector } });
430
+ strategy = 'body';
431
+ }
432
+ else if (options.mainContent === false) {
433
+ root = $('body').length ? $('body') : $.root();
434
+ strategy = 'body';
435
+ }
436
+ else {
437
+ ({ root, strategy } = findMainContent($));
438
+ }
439
+ // Page-wide collections use the whole body; textual content uses the cleaned main root.
440
+ const body = $('body').length ? $('body') : $.root();
441
+ const links = extractLinks($, body, url, max);
442
+ const images = extractImages($, options.mainContent === false ? body : root, url, max);
443
+ const content = root.clone();
444
+ if (strategy === 'scored' || strategy === 'body')
445
+ content.find(BOILERPLATE_SELECTORS.join(',')).remove();
446
+ const paragraphs = content
447
+ .find('p')
448
+ .map((_, p) => collapse($(p).text()))
449
+ .get()
450
+ .filter((p) => p.length > 0);
451
+ const text = toPlainText($, content);
452
+ const markdown = content
453
+ .toArray()
454
+ .map((n) => nodeToMarkdown(n, { baseUrl: url }))
455
+ .join('\n\n')
456
+ .replace(/\n{3,}/g, '\n\n')
457
+ .trim();
458
+ return {
459
+ url: url ?? null,
460
+ title: metadata.title,
461
+ metadata,
462
+ text,
463
+ markdown,
464
+ html: sanitizeFragment($, content),
465
+ headings: extractHeadings($, content),
466
+ paragraphs,
467
+ lists: extractLists($, content),
468
+ tables: extractTables($, content),
469
+ links,
470
+ images,
471
+ structuredData: jsonLd,
472
+ wordCount: text ? text.split(/\s+/).filter(Boolean).length : 0,
473
+ contentStrategy: strategy,
474
+ };
475
+ }
476
+ //# sourceMappingURL=extract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.js","sourceRoot":"","sources":["../src/extract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiC,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAY/C,MAAM,eAAe,GAAG;IACtB,QAAQ;IACR,OAAO;IACP,UAAU;IACV,UAAU;IACV,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,UAAU;IACV,sBAAsB;IACtB,yBAAyB;IACzB,0BAA0B;CAC3B,CAAC;AACF,MAAM,qBAAqB,GAAG;IAC5B,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;IACN,qBAAqB;IACrB,iBAAiB;IACjB,sBAAsB;IACtB,wBAAwB;IACxB,SAAS;IACT,gBAAgB;IAChB,SAAS;IACT,MAAM;IACN,UAAU;CACX,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAClD,CAAC;AAED,SAAS,UAAU,CAAC,IAAwB,EAAE,IAAwB;IACpE,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,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AO;QACL,GAAG,EAAE,GAAG,IAAI,IAAI;QAChB,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,QAAQ;QACR,IAAI;QACJ,QAAQ;QACR,IAAI,EAAE,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC;QAClC,QAAQ,EAAE,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC;QACrC,UAAU;QACV,KAAK,EAAE,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC;QAC/B,MAAM,EAAE,aAAa,CAAC,CAAC,EAAE,OAAO,CAAC;QACjC,KAAK;QACL,MAAM;QACN,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC9D,eAAe,EAAE,QAAQ;KAC1B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ export * from './types.js';
2
+ export { extractDocument, extractMetadata, extractJsonLd, extractLinks, extractImages, extractHeadings, extractTables, extractLists, findMainContent, parseHtml, toPlainText, collapse, } from './extract.js';
3
+ export { nodeToMarkdown, type MarkdownOptions } from './markdown.js';
4
+ import type { ExtractedDocument, ExtractOptions } from './types.js';
5
+ /** Converts HTML to Markdown (main content by default). */
6
+ export declare function htmlToMarkdown(html: string, options?: ExtractOptions): string;
7
+ /** Converts HTML to plain text (main content by default). */
8
+ export declare function htmlToText(html: string, options?: ExtractOptions): string;
9
+ export declare function extract(html: string, options: ExtractOptions & {
10
+ format: 'text' | 'markdown' | 'html';
11
+ }): string;
12
+ export declare function extract(html: string, options?: ExtractOptions & {
13
+ format?: 'json' | 'structured';
14
+ }): ExtractedDocument;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEpE,2DAA2D;AAC3D,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,MAAM,CAEjF;AAED,6DAA6D;AAC7D,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,MAAM,CAE7E;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG;IAAE,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC;AAClH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,GAAG,iBAAiB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ export * from './types.js';
2
+ export { extractDocument, extractMetadata, extractJsonLd, extractLinks, extractImages, extractHeadings, extractTables, extractLists, findMainContent, parseHtml, toPlainText, collapse, } from './extract.js';
3
+ export { nodeToMarkdown } from './markdown.js';
4
+ import { extractDocument } from './extract.js';
5
+ /** Converts HTML to Markdown (main content by default). */
6
+ export function htmlToMarkdown(html, options = {}) {
7
+ return extractDocument(html, options).markdown;
8
+ }
9
+ /** Converts HTML to plain text (main content by default). */
10
+ export function htmlToText(html, options = {}) {
11
+ return extractDocument(html, options).text;
12
+ }
13
+ /** Extracts content in the requested format. `json` and `structured` return the full document object. */
14
+ export function extract(html, options = {}) {
15
+ const doc = extractDocument(html, options);
16
+ switch (options.format) {
17
+ case 'text':
18
+ return doc.text;
19
+ case 'markdown':
20
+ return doc.markdown;
21
+ case 'html':
22
+ return doc.html;
23
+ default:
24
+ return doc;
25
+ }
26
+ }
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAwB,MAAM,eAAe,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,2DAA2D;AAC3D,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,UAA0B,EAAE;IACvE,OAAO,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC;AACjD,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,UAA0B,EAAE;IACnE,OAAO,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;AAC7C,CAAC;AAID,yGAAyG;AACzG,MAAM,UAAU,OAAO,CAAC,IAAY,EAAE,UAAgD,EAAE;IACtF,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,QAAQ,OAAO,CAAC,MAAM,EAAE,CAAC;QACvB,KAAK,MAAM;YACT,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,KAAK,UAAU;YACb,OAAO,GAAG,CAAC,QAAQ,CAAC;QACtB,KAAK,MAAM;YACT,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB;YACE,OAAO,GAAG,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { AnyNode } from 'domhandler';
2
+ export interface MarkdownOptions {
3
+ baseUrl?: string | undefined;
4
+ }
5
+ /** Converts a DOM node (domhandler) to Markdown. */
6
+ export declare function nodeToMarkdown(node: AnyNode, options?: MarkdownOptions): string;
7
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../src/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAiB,MAAM,YAAY,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAwND,oDAAoD;AACpD,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,MAAM,CAmBnF"}
@@ -0,0 +1,239 @@
1
+ // Form controls without visible text (inputs, selects, textareas) are skipped; button labels are kept.
2
+ const SKIP = new Set(['script', 'style', 'noscript', 'template', 'svg', 'canvas', 'iframe', 'head', 'select', 'textarea', 'option', 'datalist']);
3
+ /** Placeholder for <br>, turned into a Markdown hard break (two trailing spaces) after cleanup. */
4
+ const HARD_BREAK = '\u0000br\u0000';
5
+ function resolve(href, base) {
6
+ if (!href)
7
+ return '';
8
+ try {
9
+ return base ? new URL(href, base).toString() : href;
10
+ }
11
+ catch {
12
+ return href;
13
+ }
14
+ }
15
+ function escapeInline(text) {
16
+ return text.replace(/([\\`*_[\]])/g, '\\$1');
17
+ }
18
+ function children(el, ctx) {
19
+ return el.children.map((c) => render(c, ctx)).join('');
20
+ }
21
+ function inlineText(el, ctx) {
22
+ return children(el, ctx).replace(/\s+/g, ' ').trim();
23
+ }
24
+ function renderList(el, ctx, ordered) {
25
+ const items = [];
26
+ let index = Number(el.attribs.start ?? 1) || 1;
27
+ for (const child of el.children) {
28
+ if (child.type !== 'tag' || child.tagName !== 'li')
29
+ continue;
30
+ const li = child;
31
+ const indent = ' '.repeat(ctx.listDepth);
32
+ const marker = ordered ? `${index++}.` : '-';
33
+ const nested = [];
34
+ const inline = [];
35
+ for (const c of li.children) {
36
+ if (c.type === 'tag' && (c.tagName === 'ul' || c.tagName === 'ol'))
37
+ nested.push(render(c, { ...ctx, listDepth: ctx.listDepth + 1 }));
38
+ else
39
+ inline.push(c);
40
+ }
41
+ const text = inline
42
+ .map((c) => render(c, ctx))
43
+ .join('')
44
+ .replace(/\s+/g, ' ')
45
+ .trim();
46
+ items.push(`${indent}${marker} ${text}${nested.length ? `\n${nested.join('\n').replace(/^\n+|\n+$/g, '')}` : ''}`);
47
+ }
48
+ return ctx.listDepth === 0 ? `\n\n${items.join('\n')}\n\n` : items.join('\n');
49
+ }
50
+ function cellText(el, ctx) {
51
+ return inlineText(el, ctx).replace(/\|/g, '\\|');
52
+ }
53
+ function renderTable(el, ctx) {
54
+ const rows = [];
55
+ let headerRow = null;
56
+ const visit = (node) => {
57
+ for (const c of node.children) {
58
+ if (c.type !== 'tag')
59
+ continue;
60
+ const t = c;
61
+ if (t.tagName === 'tr') {
62
+ const cells = t.children.filter((x) => x.type === 'tag' && (x.tagName === 'td' || x.tagName === 'th'));
63
+ const values = cells.map((cell) => cellText(cell, ctx));
64
+ const isHeader = cells.length > 0 && cells.every((cell) => cell.tagName === 'th');
65
+ if (!headerRow && (isHeader || node.tagName === 'thead'))
66
+ headerRow = values;
67
+ else
68
+ rows.push(values);
69
+ }
70
+ else if (['thead', 'tbody', 'tfoot'].includes(t.tagName))
71
+ visit(t);
72
+ }
73
+ };
74
+ visit(el);
75
+ const header = headerRow ?? rows.shift() ?? [];
76
+ if (!header.length)
77
+ return '';
78
+ const width = Math.max(header.length, ...rows.map((r) => r.length));
79
+ const pad = (r) => [...r, ...new Array(width - r.length).fill('')];
80
+ const lines = [`| ${pad(header).join(' | ')} |`, `| ${new Array(width).fill('---').join(' | ')} |`, ...rows.map((r) => `| ${pad(r).join(' | ')} |`)];
81
+ return `\n\n${lines.join('\n')}\n\n`;
82
+ }
83
+ function render(node, ctx) {
84
+ if (node.type === 'text') {
85
+ const data = node.data;
86
+ return ctx.inPre ? data : escapeInline(data.replace(/\s+/g, ' '));
87
+ }
88
+ if (node.type !== 'tag' && node.type !== 'root')
89
+ return '';
90
+ if (node.type === 'root')
91
+ return node.children.map((c) => render(c, ctx)).join('');
92
+ const el = node;
93
+ const tag = el.tagName.toLowerCase();
94
+ if (SKIP.has(tag))
95
+ return '';
96
+ if (el.attribs.hidden !== undefined || el.attribs['aria-hidden'] === 'true')
97
+ return '';
98
+ switch (tag) {
99
+ case 'h1':
100
+ case 'h2':
101
+ case 'h3':
102
+ case 'h4':
103
+ case 'h5':
104
+ case 'h6': {
105
+ const text = inlineText(el, ctx);
106
+ return text ? `\n\n${'#'.repeat(Number(tag[1]))} ${text}\n\n` : '';
107
+ }
108
+ case 'p': {
109
+ const text = children(el, ctx)
110
+ .replace(/[ \t]+/g, ' ')
111
+ .trim();
112
+ return text ? `\n\n${text}\n\n` : '';
113
+ }
114
+ case 'br':
115
+ return `${HARD_BREAK}\n`;
116
+ case 'hr':
117
+ return '\n\n---\n\n';
118
+ case 'strong':
119
+ case 'b': {
120
+ const t = inlineText(el, ctx);
121
+ return t ? `**${t}**` : '';
122
+ }
123
+ case 'em':
124
+ case 'i': {
125
+ const t = inlineText(el, ctx);
126
+ return t ? `*${t}*` : '';
127
+ }
128
+ case 'del':
129
+ case 's':
130
+ return `~~${inlineText(el, ctx)}~~`;
131
+ case 'code':
132
+ if (ctx.inPre)
133
+ return children(el, ctx);
134
+ return `\`${children(el, { ...ctx, inPre: true }).replace(/`/g, '\\`')}\``;
135
+ case 'pre': {
136
+ const codeEl = el.children.find((c) => c.type === 'tag' && c.tagName === 'code');
137
+ const lang = /language-([\w-]+)/.exec(codeEl?.attribs.class ?? el.attribs.class ?? '')?.[1] ?? '';
138
+ const code = children(el, { ...ctx, inPre: true }).replace(/\n+$/, '');
139
+ return `\n\n\`\`\`${lang}\n${code}\n\`\`\`\n\n`;
140
+ }
141
+ case 'blockquote': {
142
+ const inner = children(el, ctx)
143
+ .trim()
144
+ .replace(/\n{3,}/g, '\n\n');
145
+ return `\n\n${inner
146
+ .split('\n')
147
+ .map((l) => `> ${l}`.trimEnd())
148
+ .join('\n')}\n\n`;
149
+ }
150
+ case 'a': {
151
+ const text = inlineText(el, ctx);
152
+ const href = el.attribs.href;
153
+ if (!href || href.startsWith('javascript:'))
154
+ return text;
155
+ const url = resolve(href, ctx.base);
156
+ return text ? `[${text}](${url})` : '';
157
+ }
158
+ case 'img': {
159
+ const src = el.attribs.src ?? el.attribs['data-src'];
160
+ if (!src)
161
+ return '';
162
+ return `![${escapeInline(el.attribs.alt ?? '')}](${resolve(src, ctx.base)})`;
163
+ }
164
+ case 'ul':
165
+ return renderList(el, ctx, false);
166
+ case 'ol':
167
+ return renderList(el, ctx, true);
168
+ case 'table':
169
+ return renderTable(el, ctx);
170
+ case 'dt':
171
+ return `\n\n**${inlineText(el, ctx)}**\n`;
172
+ case 'dd':
173
+ return `: ${inlineText(el, ctx)}\n`;
174
+ case 'figcaption':
175
+ return `\n\n*${inlineText(el, ctx)}*\n\n`;
176
+ case 'div':
177
+ case 'section':
178
+ case 'article':
179
+ case 'main':
180
+ case 'header':
181
+ case 'footer':
182
+ case 'aside':
183
+ case 'nav':
184
+ case 'figure':
185
+ case 'details':
186
+ case 'summary':
187
+ case 'dl':
188
+ case 'form':
189
+ case 'fieldset':
190
+ return `\n\n${children(el, ctx).trim()}\n\n`;
191
+ case 'label': {
192
+ // Each field label on its own line instead of running into the next one.
193
+ const t = inlineText(el, ctx);
194
+ return t ? `\n\n${t}\n\n` : '';
195
+ }
196
+ case 'legend': {
197
+ const t = inlineText(el, ctx);
198
+ return t ? `\n\n**${t}**\n\n` : '';
199
+ }
200
+ case 'button': {
201
+ const t = inlineText(el, ctx);
202
+ return t ? ` ${t} ` : '';
203
+ }
204
+ case 'input': {
205
+ const type = (el.attribs.type ?? 'text').toLowerCase();
206
+ if (type === 'submit' || type === 'button' || type === 'reset') {
207
+ const t = (el.attribs.value ?? (type === 'submit' ? 'Submit' : '')).trim();
208
+ return t ? ` ${escapeInline(t)} ` : '';
209
+ }
210
+ return '';
211
+ }
212
+ default:
213
+ return children(el, ctx);
214
+ }
215
+ }
216
+ /** Converts a DOM node (domhandler) to Markdown. */
217
+ export function nodeToMarkdown(node, options = {}) {
218
+ const raw = render(node, { base: options.baseUrl, listDepth: 0, inPre: false });
219
+ // Line cleanup outside code fences: drop whitespace-only lines and stray leading spaces
220
+ // (nested list indentation is kept), keep two-space hard breaks.
221
+ let inFence = false;
222
+ const lines = raw.split('\n').map((line) => {
223
+ if (/^\s*```/.test(line)) {
224
+ inFence = !inFence;
225
+ return line.trimStart();
226
+ }
227
+ if (inFence)
228
+ return line.split(HARD_BREAK).join('');
229
+ if (/^\s*$/.test(line) || line.trim() === HARD_BREAK)
230
+ return '';
231
+ const kept = (/^\s+([-*+]|\d+\.)\s/.test(line) ? line : line.trimStart()).replace(/[ \t]+$/, '').replace(/(\S)[ \t]{2,}(?=\S)/g, '$1 ');
232
+ return kept.endsWith(HARD_BREAK) ? `${kept.slice(0, -HARD_BREAK.length).trimEnd()} ` : kept.split(HARD_BREAK).join('');
233
+ });
234
+ return lines
235
+ .join('\n')
236
+ .replace(/\n{3,}/g, '\n\n')
237
+ .trim();
238
+ }
239
+ //# sourceMappingURL=markdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.js","sourceRoot":"","sources":["../src/markdown.ts"],"names":[],"mappings":"AAMA,uGAAuG;AACvG,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;AAEj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CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1H,CAAC,CAAC,CAAC;IACH,OAAO,KAAK;SACT,IAAI,CAAC,IAAI,CAAC;SACV,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;SAC1B,IAAI,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,86 @@
1
+ export interface PageMetadata {
2
+ title: string;
3
+ description: string | null;
4
+ canonicalUrl: string | null;
5
+ language: string | null;
6
+ author: string | null;
7
+ /** Publication date as found in the page (ISO string when parseable). Never invented. */
8
+ publishedAt: string | null;
9
+ modifiedAt: string | null;
10
+ keywords: string[];
11
+ robots: string | null;
12
+ favicon: string | null;
13
+ siteName: string | null;
14
+ openGraph: Record<string, string>;
15
+ twitter: Record<string, string>;
16
+ meta: Record<string, string>;
17
+ feeds: Array<{
18
+ type: string;
19
+ url: string;
20
+ title: string | null;
21
+ }>;
22
+ }
23
+ export interface ExtractedLink {
24
+ url: string;
25
+ text: string;
26
+ rel: string | null;
27
+ internal: boolean;
28
+ nofollow: boolean;
29
+ }
30
+ export interface ExtractedImage {
31
+ src: string;
32
+ alt: string | null;
33
+ title: string | null;
34
+ width: number | null;
35
+ height: number | null;
36
+ srcset: string | null;
37
+ loading: string | null;
38
+ }
39
+ export interface ExtractedHeading {
40
+ level: number;
41
+ text: string;
42
+ id: string | null;
43
+ }
44
+ export interface ExtractedTable {
45
+ caption: string | null;
46
+ headers: string[];
47
+ rows: string[][];
48
+ }
49
+ export interface ExtractedList {
50
+ ordered: boolean;
51
+ items: string[];
52
+ }
53
+ /** The complete structured result of content extraction. */
54
+ export interface ExtractedDocument {
55
+ url: string | null;
56
+ title: string;
57
+ metadata: PageMetadata;
58
+ /** Main content as plain text. */
59
+ text: string;
60
+ /** Main content as Markdown. */
61
+ markdown: string;
62
+ /** Main content as sanitised HTML (scripts, styles and event handlers removed). */
63
+ html: string;
64
+ headings: ExtractedHeading[];
65
+ paragraphs: string[];
66
+ lists: ExtractedList[];
67
+ tables: ExtractedTable[];
68
+ links: ExtractedLink[];
69
+ images: ExtractedImage[];
70
+ structuredData: unknown[];
71
+ wordCount: number;
72
+ /** How the main content was located. */
73
+ contentStrategy: 'article' | 'main' | 'role-main' | 'scored' | 'body';
74
+ }
75
+ export type ExtractFormat = 'text' | 'markdown' | 'html' | 'json' | 'structured';
76
+ export interface ExtractOptions {
77
+ /** Base URL used to resolve relative links. */
78
+ url?: string;
79
+ /** Restrict extraction to the main content (default true). When false, the whole body is used. */
80
+ mainContent?: boolean;
81
+ /** CSS selector limiting extraction to a part of the page. */
82
+ selector?: string;
83
+ /** Maximum number of links/images returned (default 500). */
84
+ maxItems?: number;
85
+ }
86
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,yFAAyF;IACzF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC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AM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;IACvB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,eAAe,EAAE,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;CACvE;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;AAEjF,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kGAAkG;IAClG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
2
  "name": "@dream_engine/extraction",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "HTML parsing and content extraction for BashirWeb: metadata, Open Graph, JSON-LD, main content, Markdown and structured output.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/CodingWithBashir/BashirWeb.git",
10
+ "directory": "packages/extraction"
11
+ },
12
+ "engines": {
13
+ "node": ">=22.16.0 <23 || >=24"
14
+ },
15
+ "main": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "README.md"
27
+ ],
28
+ "sideEffects": false,
29
+ "dependencies": {
30
+ "cheerio": "^1.0.0",
31
+ "domhandler": "^6.0.1",
32
+ "@dream_engine/core": "0.1.1"
33
+ },
34
+ "scripts": {
35
+ "build": "tsc -b"
36
+ }
6
37
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.