diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index db0dbd099f..2840c7774c 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -14,6 +14,7 @@ on: - 'backend/pyproject.toml' - 'backend/uv.lock' - 'examples/deerflow-extension-bookmarks/**' + - 'examples/deerflow-extension-office-preview/**' - '.github/workflows/e2e-tests.yml' pull_request: types: [opened, synchronize, reopened, ready_for_review] @@ -28,6 +29,7 @@ on: - 'backend/pyproject.toml' - 'backend/uv.lock' - 'examples/deerflow-extension-bookmarks/**' + - 'examples/deerflow-extension-office-preview/**' - '.github/workflows/e2e-tests.yml' concurrency: @@ -41,6 +43,15 @@ jobs: e2e-tests: if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest + # Keep the image version aligned with frontend/pnpm-lock.yaml. Browsers and + # OS libraries are installed together, without per-shard CDN downloads. + container: + image: mcr.microsoft.com/playwright:v1.62.1-noble + options: --ipc=host + env: + # The host tool cache can contain Python built for a newer OpenSSL than + # this image. uv's standalone Python carries compatible runtime libraries. + UV_PYTHON_PREFERENCE: only-managed timeout-minutes: 25 strategy: fail-fast: false @@ -51,21 +62,20 @@ jobs: - name: Checkout uses: actions/checkout@v6 - # The bookmark browser test starts the real Python action/router fixture. - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version: '3.12' - - name: Install uv uses: astral-sh/setup-uv@v7 with: # Keep aligned with backend/Dockerfile and other backend workflows. version: "0.11.1" + - name: Install container-compatible Python + run: uv python install 3.12 + - name: Install backend dependencies (bookmark plugin gateway) working-directory: backend - run: uv sync --locked + run: | + uv sync --locked + uv run --no-sync python -c 'import ssl, sqlite3' - name: Setup Node.js uses: actions/setup-node@v4 @@ -82,9 +92,20 @@ jobs: working-directory: frontend run: pnpm install --frozen-lockfile - - name: Install Playwright Chromium + # Playwright collects the resource suite before selecting a shard. Its + # synthetic Office fixtures use JSZip from the extension's locked install. + - name: Install Office preview test dependencies + working-directory: examples/deerflow-extension-office-preview + run: npm ci --ignore-scripts --no-audit --no-fund + + - name: Verify Playwright Chromium working-directory: frontend - run: npx playwright install chromium --with-deps + id: chromium + run: >- + node --input-type=module -e + 'import { chromium } from "@playwright/test"; + const browser = await chromium.launch(); + await browser.close();' - name: Run E2E tests working-directory: frontend @@ -100,7 +121,7 @@ jobs: - name: Run auth recovery E2E tests # Keep auth coverage unsharded and run it even if the first shard fails. - if: ${{ !cancelled() && matrix.shard == 1 }} + if: ${{ !cancelled() && matrix.shard == 1 && steps.chromium.outcome == 'success' }} working-directory: frontend run: >- pnpm exec playwright test -c playwright.auth.config.ts diff --git a/.github/workflows/replay-e2e.yml b/.github/workflows/replay-e2e.yml index 131d816b60..bd81e8b2d6 100644 --- a/.github/workflows/replay-e2e.yml +++ b/.github/workflows/replay-e2e.yml @@ -71,21 +71,27 @@ jobs: name: Layer 2 — full-stack render (no API key) if: github.event_name != 'pull_request' || github.event.pull_request.draft == false runs-on: ubuntu-latest + # Match the locked Playwright runtime so the image supplies its browsers. + container: + image: mcr.microsoft.com/playwright:v1.62.1-noble + options: --ipc=host + env: + UV_PYTHON_PREFERENCE: only-managed timeout-minutes: 25 steps: - uses: actions/checkout@v6 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version: "3.12" - name: Install uv uses: astral-sh/setup-uv@v7 with: # Must match backend/Dockerfile's UV_IMAGE tag; pinned by backend/tests/test_ci_uv_version_pin.py version: "0.11.1" + - name: Install container-compatible Python + run: uv python install 3.12 - name: Install backend dependencies (replay gateway) working-directory: backend - run: uv sync --group dev + run: | + uv sync --group dev + uv run --no-sync python -c 'import ssl, sqlite3' - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -97,9 +103,13 @@ jobs: - name: Install frontend dependencies working-directory: frontend run: pnpm install --frozen-lockfile - - name: Install Playwright Chromium + - name: Verify Playwright Chromium working-directory: frontend - run: npx playwright install chromium --with-deps + run: >- + node --input-type=module -e + 'import { chromium } from "@playwright/test"; + const browser = await chromium.launch(); + await browser.close();' - name: Full-stack replay render (DOM assertions are the gate) working-directory: frontend run: pnpm exec playwright test -c playwright.real-backend.config.ts diff --git a/AGENTS.md b/AGENTS.md index aaf1c9275a..21cec8e030 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -35,6 +35,9 @@ Humans start at [README.md](README.md), [CONTRIBUTING.md](CONTRIBUTING.md) and Nginx serves the frontend, proxies `/api/*` to the Gateway and rewrites `/api/langgraph/*` to the Gateway's native routes. +Before changing ingress, port bindings or provisioner mounts, read +[service topology details](docs/agent-service-topology.md). + ## Repository map | Path | Content | @@ -109,3 +112,11 @@ Values, defaults, field lists, function inventories, test names, issue numbers and history stay in the code, the tests and git. Write full sentences in the positive form and give the reason. `make check-agent-guidance` enforces the size budget. + +### Office preview example + +`examples/deerflow-extension-office-preview/` packages Office readers through the +optional `artifactPreviews` browser contract. Keep parser dependencies and resources +in the extension; rebuild its manifest and static module graph after UI changes. +Test packaged assets with the Office E2E fixtures; rendering must preserve original +downloads and state its search limits. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1ead444478..f9ba099a38 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -383,6 +383,15 @@ Every pull request triggers the following CI workflows: - **Frontend unit tests** — [.github/workflows/frontend-unit-tests.yml](.github/workflows/frontend-unit-tests.yml) - **Frontend E2E tests** — [.github/workflows/e2e-tests.yml](.github/workflows/e2e-tests.yml) (triggered only when `frontend/` files change) +The browser E2E and full-stack replay jobs use the official Playwright image, +which includes Chromium and its system libraries. When upgrading the locked +Playwright version, update the image tags in both browser workflows to match. +Each job launches Chromium before running tests; auth recovery tests run only +after that browser readiness check succeeds. +These containers use uv-managed Python instead of the host's Python tool cache, +so the interpreter's OpenSSL libraries match its runtime. Backend dependency +setup also verifies SSL and SQLite imports before launching fixture gateways. + ### Test and diagnostics notes Backend `make test` runs four duration-balanced shards concurrently and reports diff --git a/README.md b/README.md index 3ca12eb365..9bfabf238e 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ Each guide is the full reference for its topic. Open the one you need. | Projects, instructions, document shelf | [Projects](docs/guide/projects.md) | | Scheduled tasks | [Scheduled Tasks](docs/guide/scheduled-tasks.md) | | Feishu, Slack, Telegram, Discord, DingTalk and other IM channels | [IM Channels](docs/guide/im-channels.md) | +| File attachments, downloads and Office previews | [File Previews](docs/guide/file-previews.md) | | Token usage dashboard, workspace, chat archive | [Workspace UI](docs/guide/workspace.md) | | Terminal workbench | [Terminal Workbench (TUI)](docs/guide/tui.md) | | Personal access tokens, stream actions, embedded Python client | [API Access and Python Client](docs/guide/api-and-client.md) | diff --git a/backend/tests/test_browser_ci_runner.py b/backend/tests/test_browser_ci_runner.py index 76078db945..f6d7479453 100644 --- a/backend/tests/test_browser_ci_runner.py +++ b/backend/tests/test_browser_ci_runner.py @@ -1,4 +1,4 @@ -"""Browser CI installs its dependencies before executing browser tests.""" +"""Browser CI supplies matching browsers and verifies them before tests.""" from pathlib import Path @@ -7,15 +7,46 @@ import yaml @pytest.mark.parametrize(("workflow", "job"), [("e2e-tests.yml", "e2e-tests"), ("replay-e2e.yml", "fullstack-replay-render")]) -def test_browser_ci_installs_chromium_before_running_tests(workflow, job): +def test_browser_ci_image_matches_locked_playwright(workflow, job): + root = Path(__file__).resolve().parents[2] + config = yaml.safe_load((root / ".github/workflows" / workflow).read_text(encoding="utf-8")) + lock = yaml.safe_load((root / "frontend/pnpm-lock.yaml").read_text(encoding="utf-8")) + version = lock["importers"]["."]["devDependencies"]["@playwright/test"]["version"] + image = config["jobs"][job].get("container", {}).get("image", "") + assert image.startswith(f"mcr.microsoft.com/playwright:v{version}-"), "The preinstalled browsers must match the locked Playwright runtime" + + +@pytest.mark.parametrize(("workflow", "job"), [("e2e-tests.yml", "e2e-tests"), ("replay-e2e.yml", "fullstack-replay-render")]) +def test_browser_ci_verifies_chromium_before_running_tests(workflow, job): root = Path(__file__).resolve().parents[2] config = yaml.safe_load((root / ".github/workflows" / workflow).read_text(encoding="utf-8")) browser_job = config["jobs"][job] - # Runner images are maintained by CI owners; do not freeze a temporary - # OS compatibility workaround in an unrelated backend unit test. steps = browser_job["steps"] - installs = [index for index, step in enumerate(steps) if "playwright install chromium --with-deps" in step.get("run", "")] + probes = [index for index, step in enumerate(steps) if "await chromium.launch()" in step.get("run", "") and "await browser.close()" in step.get("run", "")] tests = [index for index, step in enumerate(steps) if "pnpm exec playwright test" in step.get("run", "")] - assert installs, "Browser dependencies must be installed" + assert probes, "Launch the image's Chromium before executing browser tests" assert tests, "The browser job must execute tests" - assert max(installs) < min(tests), "Install Chromium before running browser tests" + assert max(probes) < min(tests), "Verify Chromium before running browser tests" + + +def test_auth_recovery_requires_a_working_browser(): + root = Path(__file__).resolve().parents[2] + config = yaml.safe_load((root / ".github/workflows/e2e-tests.yml").read_text(encoding="utf-8")) + steps = config["jobs"]["e2e-tests"]["steps"] + probe = next(step for step in steps if "await chromium.launch()" in step.get("run", "")) + auth = next(step for step in steps if "playwright.auth.config.ts" in step.get("run", "")) + assert f"steps.{probe['id']}.outcome == 'success'" in auth["if"] + + +@pytest.mark.parametrize(("workflow", "job"), [("e2e-tests.yml", "e2e-tests"), ("replay-e2e.yml", "fullstack-replay-render")]) +def test_browser_ci_uses_container_compatible_python(workflow, job): + root = Path(__file__).resolve().parents[2] + config = yaml.safe_load((root / ".github/workflows" / workflow).read_text(encoding="utf-8")) + browser_job = config["jobs"][job] + assert browser_job.get("env", {}).get("UV_PYTHON_PREFERENCE") == "only-managed" + steps = browser_job["steps"] + assert not any(step.get("uses", "").startswith("actions/setup-python@") for step in steps) + install = next(index for index, step in enumerate(steps) if "uv python install 3.12" in step.get("run", "")) + sync = next(index for index, step in enumerate(steps) if "uv sync" in step.get("run", "")) + assert install < sync + assert any("import ssl, sqlite3" in step.get("run", "") for step in steps) diff --git a/backend/tests/test_extension_documentation.py b/backend/tests/test_extension_documentation.py index 291b3dfa60..469d7a4bad 100644 --- a/backend/tests/test_extension_documentation.py +++ b/backend/tests/test_extension_documentation.py @@ -184,7 +184,9 @@ def test_bundled_documentation_snapshot_is_current(): root = Path(__file__).resolve().parents[2] script = runpy.run_path(str(root / "scripts/sync_extension_documentation.py")) assert script["DESTINATION"].read_text(encoding="utf-8") == script["render"]() - assert len(json.loads(script["render"]())) == 15 + pages = json.loads(script["render"]()) + assert len(pages) == 16 + assert pages["deerflow-extension-office-preview"]["id"] == "office-preview" @pytest.mark.parametrize("collision", [False, True]) diff --git a/docs/agent-service-topology.md b/docs/agent-service-topology.md new file mode 100644 index 0000000000..3e448bdace --- /dev/null +++ b/docs/agent-service-topology.md @@ -0,0 +1,18 @@ +# Service topology details + +Keep the dedicated `/api/threads/{thread_id}/browser/stream` WebSocket regex before +the generic threads regex in Docker, local and Helm nginx configs. Upgrade headers +and the 600s read timeout are pinned by `backend/tests/test_nginx_browser_websocket.py`. +Helm uses nginx's default connect/send timeouts for the in-cluster Gateway. + +Both Compose files publish nginx at `"${BIND_HOST:-127.0.0.1}:${PORT:-2026}:2026"` +(README's **loopback default**); bare `"${PORT}:2026"` binds `0.0.0.0`. Root `PORT` +controls Docker ingress only; local Next.js stays on `3000` so `.env` cannot +redirect `make dev`'s port wait. Nginx's IPv4+IPv6 `default_server` and Gateway's +`0.0.0.0:8001` bind are container-internal; only published nginx is external. +Require explicit bind addresses for new published ports; +`backend/tests/test_compose_default_bind_host.py` pins every service in both files. + +Provisioner PVC mode declares `USERDATA_PVC_NAME` once as `user-data`; extra and +Lark broker credential mounts reuse it with their existing subPaths and read-only +flags. Keep credential mounts broker-only and keep distinct volumes in hostPath mode. diff --git a/docs/full-stack-plugins.md b/docs/full-stack-plugins.md index 57785d4247..c03cb93c63 100644 --- a/docs/full-stack-plugins.md +++ b/docs/full-stack-plugins.md @@ -174,6 +174,29 @@ strict validation. ## Packaged resources (`assets-v1`) +### Artifact previews + +Browser modules can declare `artifactPreviews: [{ id, extensions, mount }]` to +render otherwise unsupported binary files in the artifact panel and separate reader. +`extensions` contains 1–32 exact lowercase extensions without dots (for example +`["xlsx", "docx", "pptx"]`); there may be at most 16 uniquely named renderers per +module. Built-in text and browser media readers take precedence. The first enabled +matching contribution for the current viewer is selected. + +`mount(root, { filename, locale, signal, readFile, onError })` runs synchronously and +returns `{ dispose() }`. The host places the root inside a shadow tree and remounts +on viewer, file, conversation, locale or contribution changes. `readFile()` uses the +current conversation's authenticated artifact route and enforces a 25 MiB streamed +limit. Observe the abort signal during asynchronous work; call `onError()` for a +localized download fallback, and release all resources in `dispose()`. Shadow DOM +isolates styling, not plugin privileges. Third-party parsers must ship in the trusted +package and apply their own expansion/render limits. + +Optional `getReadingState()` and `saveReadingState(state)` callbacks become available +after `readFile()` and retain bounded JSON in memory for unchanged content in the +current viewer session. They are scoped to viewer, thread, file, renderer and content +hash. Do not store document contents or credentials in reading preferences. + Register a package-owned directory alongside the Python implementation: ```python diff --git a/docs/guide/file-previews.md b/docs/guide/file-previews.md new file mode 100644 index 0000000000..fd7db0243c --- /dev/null +++ b/docs/guide/file-previews.md @@ -0,0 +1,35 @@ +# File attachments and previews + +## Attachments and downloads + +Attachments show individual ready, uploading, uploaded, failed and cancelled states. +Failed uploads retain per-file error details; session-state messages remain localized. +Retry a failed file or remove it before sending again; successful uploads and the +message draft are retained. File cards share format icons and preserve extensions +in long filenames. Sent attachments open in the right-hand artifact panel. +Single-file downloads show preparation and retry feedback while preventing duplicate +requests. Unsupported formats offer the original file for download. +Public Showcase files keep their standalone viewer and download controls available +without requiring sign-in. + +Deployments can add binary readers through the optional `artifactPreviews` browser +contribution; see the [plugin contract](../full-stack-plugins.md#artifact-previews). + +## Office artifact preview extension + +The optional [Office preview package](../../examples/deerflow-extension-office-preview/README.md) +adds read-only XLSX, DOCX and PPTX readers with search, worksheet/page navigation, +Word outlines, PowerPoint thumbnails and per-file reading preferences. It requires +the artifact-preview host contribution and operator installation; it is not enabled +by a catalog entry alone. Legacy binary Office files retain the download fallback. +Previews also work over LAN HTTP. Reading preferences use the file's ETag when +available, with an optional content hash on secure origins; without either, files +still open but reading preferences are not restored. +Office preview validates ZIP metadata before loading, prepares files in a cancellable +Worker with a deadline, and limits XML/layout and image sizes before DOM rendering. +Word XML/model preparation and PPT conversion run in that Worker; the UI receives +bounded models with images and document relationships preserved. +Files exceeding preview budgets retain the original-file download fallback. + +See the [Office package guide](../../examples/deerflow-extension-office-preview/README.md) +for installation, supported formats, resource limits and validation commands. diff --git a/examples/README.md b/examples/README.md index 3dbd7ca928..828a7c777a 100644 --- a/examples/README.md +++ b/examples/README.md @@ -9,7 +9,8 @@ independent Python package using the public `deerflow-extension-api` contract. | [Conversation bookmarks](deerflow-extension-bookmarks/README.md) | A browser page, conversation action, backend actions, packaged resources, and a model tool. Start here for full-stack plugins. | | [Agent teams](deerflow-extension-agent-teams/README.md) | Full Agent orchestration. Use this after the basic contribution and lifecycle patterns are familiar. | -Additional examples cover [text-list classification](deerflow-extension-jev-classify/README.md), +Additional examples cover [Office file previews](deerflow-extension-office-preview/README.md), +[text-list classification](deerflow-extension-jev-classify/README.md), [context pruning](deerflow-extension-jev-context/README.md), [advisory screening of fetched content](deerflow-extension-jev-screening/README.md), and [sectioned long-form report writing](deerflow-extension-report-sections/README.md). diff --git a/examples/deerflow-extension-office-preview/.gitattributes b/examples/deerflow-extension-office-preview/.gitattributes new file mode 100644 index 0000000000..1ff2f8341f --- /dev/null +++ b/examples/deerflow-extension-office-preview/.gitattributes @@ -0,0 +1,2 @@ +# Keep generated parser bundles byte-for-byte, including embedded template strings. +deerflow_extension_office_preview/static/dist/** -whitespace linguist-generated=true diff --git a/examples/deerflow-extension-office-preview/.gitignore b/examples/deerflow-extension-office-preview/.gitignore new file mode 100644 index 0000000000..189467f706 --- /dev/null +++ b/examples/deerflow-extension-office-preview/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +!deerflow_extension_office_preview/static/dist/ +!deerflow_extension_office_preview/static/dist/** +*.egg-info/ diff --git a/examples/deerflow-extension-office-preview/README.md b/examples/deerflow-extension-office-preview/README.md new file mode 100644 index 0000000000..7f6813d5de --- /dev/null +++ b/examples/deerflow-extension-office-preview/README.md @@ -0,0 +1,147 @@ +# Office file preview + +An installable browser contribution for `.xlsx`, `.docx` and `.pptx` files in +DeerFlow's artifact panel and standalone reader. Files stay within the current +authenticated artifact API; no public document viewer or conversion service is used. +Uses the host's optional `artifactPreviews` browser contract. The package is +activated only after operator installation and a Gateway restart. + +## Build and install + +The package includes its built browser modules. After editing `ui/`, rebuild: + +```sh +cd examples/deerflow-extension-office-preview +npm ci --ignore-scripts +npm run build +node notices.mjs +``` + +From the repository root, check packaging, then install through the extension manager: + +```sh +uv run --project backend --no-sync python scripts/check_extension.py examples/deerflow-extension-office-preview +cd backend +uv run deerflow extensions install ../examples/deerflow-extension-office-preview --yes +``` + +Restart Gateway and refresh the browser. A matching local extension-api and harness +must already be installed in the Gateway environment. The resulting operator-owned +configuration is equivalent to: + +```yaml +plugins: + - use: deerflow_extension_office_preview:install + enabled: true + config: + enabled: true +``` + +Use `deerflow extensions upgrade SOURCE` after later edits: installs are snapshots. +To disable this contribution, set `config.enabled: false` and restart Gateway. +Other formats retain their built-in preview or download fallback. + +## Preview behavior and limits + +- Excel: visible worksheet tabs, row/column headers, basic fonts, fills, alignment, + merged cells, an address jump, a focused cell/formula bar and copying cell values. + Arrow keys skip hidden rows/columns and merged ranges; sheet tabs support arrow + keys and Home/End. Selection and scroll restore independently per sheet. Jumping + inside a visible merged range selects its master cell. At most 500 rows and 50 columns per sheet. Formula results use saved + workbook caches; formulas are never recalculated. Charts and complex formatting + are not reproduced. Drawing parts are omitted only from the temporary preview + copy so workbooks containing charts can still display and search their cells; + original downloads retain the charts, tables and other workbook content. +- Word: paginated document layout, page navigation and zoom. The page counter follows + manual scrolling and navigation buttons disable at the first/last page. Advanced Word layout, + missing fonts and embedded objects can differ from Office. +- PowerPoint: slide navigation with arrows, Page Up/Down and Home/End when the preview + canvas or its navigation controls are focused, plus zoom and fit width; browser conversion supports + common text, shapes, images and tables. Paragraph font defaults are materialized + in a temporary preview copy. Animations, SmartArt and advanced effects can differ + or be absent. Generated slide HTML uses a sandboxed iframe without scripts or + external resources. +- All formats: host reads are capped at 25 MiB, including streaming responses without + a reliable Content-Length. ZIP central/local records, names, member counts, size + declarations and compression ratios are checked **before** JSZip loads an archive. + Split/encrypted/ZIP64 archives and inconsistent metadata use the download fallback. + Limits: 4,000 members, 100 MiB aggregate actual/declared expansion, 16 MiB per member, + compression ratio 200:1, and 2 MiB per XML part. Sequential streamed inflation also + checks actual output, so forged size declarations cannot bypass these limits. +- A dedicated Worker validates/prepares each file with a 15-second deadline. Timeout, + cancellation or disposing the preview terminates the Worker, including synchronous + parser work. ZIP/XML work, ExcelJS, Word model/outline preparation and PPT conversion + all run there. The UI receives bounded models rather than Office archives; only display + data (up to 20 sheets / 100,000 cells in total) reaches the Excel UI. Rows render in + batches and obsolete sheet renders are discarded. A blocked/unavailable Worker + fails safely; there is no main-thread parsing fallback. +- XML rejects DTDs, excessive nesting, cyclic/deep Word style inheritance and + oversized merged ranges. Worker XML budgets are 100,000 elements and 2 MiB text; + Word/PPT are additionally capped at 20,000 rendered XML elements, 2,000 layout units + (paragraphs, rows, breaks and shapes), 50 slides and 32 MiB prepared bytes. + PNG/JPEG images are checked before browser decoding (16 megapixels each, 32 total); + unsupported media uses the download fallback. Embedded objects are omitted and + Word does not load embedded fonts. Word parsing uses docx-preview's public API with + an XML adapter in the Worker; the main thread receives only its plain document model + and validated image bytes. Headers/footers and images retain their package-relative + relationships. Image Blob URLs are deduplicated and revoked on abort/disposal. + PPT receives the same XML adapter through its documented domParserFactory hook. + Large sparse chart indices and conservative image-reference amplification bounds + reject small archives that could otherwise produce huge arrays or repeated data URLs. + Model output is capped at 32 MiB and 100,000 objects before transfer, with 512 KiB + per converted PPT slide. The UI does not reopen ZIPs or parse Office XML. + Word's final DOM construction and browser HTML/layout work remain on the main thread. + These bounded native DOM stages cannot be interrupted by a timer or AbortSignal; + this is not a hard browser memory + quota or complete process isolation. Download complex documents for full fidelity. +- Legacy binary `.xls`, `.doc` and `.ppt` files show the download fallback. +- Fit width remains active as the preview panel resizes; manual zoom exits that mode. + Failed previews offer retry and download. Clipboard failures show a manual-copy hint. +- Find in file offers literal, case-insensitive search, counts, highlighting and + previous/next matches (Enter / Shift+Enter). Ctrl/Cmd+F focuses it; Escape clears it. + Excel searches visible cells across visible sheets within the 500-row/50-column + limit; it searches displayed results rather than formula expressions. Word searches + rendered text, including styled runs. PPT searches slide text. Images, charts and + embedded objects are outside the search scope, which the toolbar explains. + Search counts/navigation/highlights are capped at 2,000 matches to avoid turning + repetitive text into an unbounded number of DOM nodes or callbacks. +- Word's collapsible outline follows actual OOXML heading levels. Preview bookmarks + preserve existing names and numeric IDs; a shared allocator indexes reserved IDs + once and probes each candidate at most once, without Web Crypto or name parsing. + PowerPoint's + collapsible thumbnails render only near the navigation viewport and retain the + same sandbox/CSP restrictions as the main slide. +- Switching files restores worksheet/page, zoom, scroll and navigation visibility + for unchanged content in the current viewer session. State is in memory, bounded + by the host, and isolated by account, conversation, renderer and file content hash. + +Browser code is trusted deployment code, not an untrusted plugin sandbox. The +shadow root isolates presentation styles. Abort/dispose terminates preparation and +fences obsolete mounts; it cannot preempt the bounded DOM-only conversion stages. +The Worker is bundled without additional module fetches to work with Gateway's +`Content-Security-Policy: sandbox` asset responses, including authenticated deployments. + +## Validation + +```sh +python -m unittest discover -s examples/deerflow-extension-office-preview/tests +node --test examples/deerflow-extension-office-preview/tests/*.test.mjs +cd frontend +pnpm exec rstest run binary-preview plugin-artifact-preview registry.test catalog.test +PLAYWRIGHT_BASE_URL=http://127.0.0.1:3000 PLAYWRIGHT_SKIP_WEB_SERVER=1 pnpm exec playwright test office-preview-interactions office-preview-navigation --workers=1 +PLAYWRIGHT_SKIP_WEB_SERVER=1 pnpm exec playwright test word-outline --workers=1 +PLAYWRIGHT_SKIP_WEB_SERVER=1 pnpm exec playwright test office-preview-resources --workers=1 +``` + +The browser regression serves the actual packaged module graph and synthetic Office +files through mocked Gateway APIs. It does not require an LLM. Run browser tests +with a production frontend on the configured port. +The resource suite uses its own HTTP asset server, needs the extension's locked npm +dependencies (`npm ci --ignore-scripts`) and Chromium, and requires Linux `ps` for +memory measurements. It records sampled process-tree RSS (including Worker/native +allocations), UI heap, long tasks and event-loop gaps in test attachments. Sampled +peaks can miss short-lived allocations and summed RSS includes shared pages; these +are regression measurements, not a proof of an absolute memory bound. Set +`PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH` to use an installed Chromium executable. + +See [third-party notices](THIRD_PARTY_NOTICES.md) for renderer attribution. diff --git a/examples/deerflow-extension-office-preview/THIRD_PARTY_NOTICES.md b/examples/deerflow-extension-office-preview/THIRD_PARTY_NOTICES.md new file mode 100644 index 0000000000..0801cc93b4 --- /dev/null +++ b/examples/deerflow-extension-office-preview/THIRD_PARTY_NOTICES.md @@ -0,0 +1,8335 @@ +# Third-party notices + +Office preview is independently implemented for DeerFlow. Asset-System was +reviewed as a UX reference; its source code and assets are not included. + +The browser bundle uses ExcelJS, docx-preview, JSZip and @jvmr/pptx-to-html. +The following notices cover the locked production dependency tree, including +transitive packages embedded in prebuilt browser distributions. JSZip is used +under its MIT license option. Node-only dependency notices are included +conservatively; their inclusion does not imply that their code ships to browsers. + +Generated by `node notices.mjs` from `package-lock.json` and installed packages. + +## @fast-csv/format 4.3.5 + +License: MIT. + +### LICENSE + + The MIT License + + Copyright (c) 2011-2019 C2FO + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## @fast-csv/parse 4.3.6 + +License: MIT. + +### LICENSE + + The MIT License + + Copyright (c) 2011-2019 C2FO + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## @jvmr/pptx-to-html 1.1.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2025 javier-mora + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## @types/node 14.18.63 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE + +## @xmldom/xmldom 0.9.12 + +License: MIT. + +### LICENSE + + Copyright 2019 - present Christopher J. Brody and other contributors, as listed in: https://github.com/xmldom/xmldom/graphs/contributors + Copyright 2012 - 2017 @jindw and other contributors, as listed in: https://github.com/jindw/xmldom/graphs/contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## archiver 5.3.2 + +License: MIT. + +### LICENSE + + Copyright (c) 2012-2014 Chris Talkington, contributors. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +## archiver-utils 2.1.0 + +License: MIT. + +### LICENSE + + Copyright (c) 2015 Chris Talkington. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +## isarray 1.0.0 + +License: MIT. + +### README.md (upstream notice) + + # isarray + + `Array#isArray` for older browsers. + + [![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) + [![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) + + [![browser support](https://ci.testling.com/juliangruber/isarray.png) + ](https://ci.testling.com/juliangruber/isarray) + + ## Usage + + ```js + var isArray = require('isarray'); + + console.log(isArray([])); // => true + console.log(isArray({})); // => false + ``` + + ## Installation + + With [npm](http://npmjs.org) do + + ```bash + $ npm install isarray + ``` + + Then bundle for the browser with + [browserify](https://github.com/substack/browserify). + + With [component](http://component.io) do + + ```bash + $ component install juliangruber/isarray + ``` + + ## License + + (MIT) + + Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## readable-stream 2.3.8 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## safe-buffer 5.1.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) Feross Aboukhadijeh + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## string_decoder 1.1.1 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## array-buffer-byte-length 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## arraybuffer.prototype.slice 1.0.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 ECMAScript Shims + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## async 3.2.6 + +License: MIT. + +### LICENSE + + Copyright (c) 2010-2018 Caolan McMahon + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## async-function 1.0.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2016 EduardoRFS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## available-typed-arrays 1.0.7 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## balanced-match 1.0.2 + +License: MIT. + +### LICENSE.md + + (MIT) + + Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## base64-js 1.5.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 Jameson Little + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## big-integer 1.6.52 + +License: Unlicense. + +### LICENSE + + This is free and unencumbered software released into the public domain. + + Anyone is free to copy, modify, publish, use, compile, sell, or + distribute this software, either in source code form or as a compiled + binary, for any purpose, commercial or non-commercial, and by any + means. + + In jurisdictions that recognize copyright laws, the author or authors + of this software dedicate any and all copyright interest in the + software to the public domain. We make this dedication for the benefit + of the public at large and to the detriment of our heirs and + successors. We intend this dedication to be an overt act of + relinquishment in perpetuity of all present and future rights to this + software under copyright law. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + For more information, please refer to + +## binary 0.3.0 + +License: MIT. + +### README.markdown (upstream notice) + + binary + ====== + + Unpack multibyte binary values from buffers and streams. + You can specify the endianness and signedness of the fields to be unpacked too. + + This module is a cleaner and more complete version of + [bufferlist](https://github.com/substack/node-bufferlist)'s binary module that + runs on pre-allocated buffers instead of a linked list. + + [![build status](https://secure.travis-ci.org/substack/node-binary.png)](http://travis-ci.org/substack/node-binary) + + examples + ======== + + stream.js + --------- + + ``` js + var binary = require('binary'); + + var ws = binary() + .word32lu('x') + .word16bs('y') + .word16bu('z') + .tap(function (vars) { + console.dir(vars); + }) + ; + process.stdin.pipe(ws); + process.stdin.resume(); + ``` + + output: + + ``` + $ node examples/stream.js + abcdefgh + { x: 1684234849, y: 25958, z: 26472 } + ^D + ``` + + parse.js + -------- + + ``` js + var buf = new Buffer([ 97, 98, 99, 100, 101, 102, 0 ]); + + var binary = require('binary'); + var vars = binary.parse(buf) + .word16ls('ab') + .word32bu('cf') + .word8('x') + .vars + ; + console.dir(vars); + ``` + + output: + + ``` + { ab: 25185, cf: 1667523942, x: 0 } + ``` + + methods + ======= + + `var binary = require('binary')` + + var b = binary() + ---------------- + + Return a new writable stream `b` that has the chainable methods documented below + for buffering binary input. + + binary.parse(buf) + ----------------- + + Parse a static buffer in one pass. Returns a chainable interface with the + methods below plus a `vars` field to get at the variable stash as the last item + in a chain. + + In parse mode, methods will set their keys to `null` if the buffer isn't big + enough except `buffer()` and `scan()` which read up up to the end of the buffer + and stop. + + b.word{8,16,32,64}{l,b}{e,u,s}(key) + ----------------------------------- + + Parse bytes in the buffer or stream given: + + * number of bits + * endianness ( l : little, b : big ), + * signedness ( u and e : unsigned, s : signed ) + + These functions won't start parsing until all previous parser functions have run + and the data is available. + + The result of the parse goes into the variable stash at `key`. + If `key` has dots (`.`s), it refers to a nested address. If parent container + values don't exist they will be created automatically, so for instance you can + assign into `dst.addr` and `dst.port` and the `dst` key in the variable stash + will be `{ addr : x, port : y }` afterwards. + + b.buffer(key, size) + ------------------- + + Take `size` bytes directly off the buffer stream, putting the resulting buffer + slice in the variable stash at `key`. If `size` is a string, use the value at + `vars[size]`. The key follows the same dotted address rules as the word + functions. + + b.scan(key, buffer) + ------------------- + + Search for `buffer` in the stream and store all the intervening data in the + stash at at `key`, excluding the search buffer. If `buffer` passed as a string, + it will be converted into a Buffer internally. + + For example, to read in a line you can just do: + + ``` js + var b = binary() + .scan('line', new Buffer('\r\n')) + .tap(function (vars) { + console.log(vars.line) + }) + ; + stream.pipe(b); + ``` + + b.tap(cb) + --------- + + The callback `cb` is provided with the variable stash from all the previous + actions once they've all finished. + + You can nest additional actions onto `this` inside the callback. + + b.into(key, cb) + --------------- + + Like `.tap()`, except all nested actions will assign into a `key` in the `vars` + stash. + + b.loop(cb) + ---------- + + Loop, each time calling `cb(end, vars)` for function `end` and the variable + stash with `this` set to a new chain for nested parsing. The loop terminates + once `end` is called. + + b.flush() + --------- + + Clear the variable stash entirely. + + installation + ============ + + To install with [npm](http://github.com/isaacs/npm): + + ``` + npm install binary + ``` + + notes + ===== + + The word64 functions will only return approximations since javascript uses ieee + floating point for all number types. Mind the loss of precision. + + license + ======= + + MIT + +## bl 4.1.0 + +License: MIT. + +### LICENSE.md + + The MIT License (MIT) + ===================== + + Copyright (c) 2013-2019 bl contributors + ---------------------------------- + + *bl contributors listed at * + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## bluebird 3.4.7 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2013-2015 Petka Antonov + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## brace-expansion 1.1.21 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2013 Julian Gruber + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## buffer 5.7.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) Feross Aboukhadijeh, and other contributors. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## buffer-crc32 0.2.13 + +License: MIT. + +### LICENSE + + The MIT License + + Copyright (c) 2013 Brian J. Brennan + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the + Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE + FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## buffer-indexof-polyfill 1.0.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Sarosia + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## buffers 0.1.1 + +License: see upstream notice. + +### README.markdown (upstream notice) + + buffers + ======= + + Treat a collection of Buffers as a single contiguous partially mutable Buffer. + + Where possible, operations execute without creating a new Buffer and copying + everything over. + + This is a cleaner more Buffery rehash of + [bufferlist](http://github.com/substack/node-bufferlist). + + example + ======= + + slice + ----- + + var Buffers = require('buffers'); + var bufs = Buffers(); + bufs.push(new Buffer([1,2,3])); + bufs.push(new Buffer([4,5,6,7])); + bufs.push(new Buffer([8,9,10])); + + console.dir(bufs.slice(2,8)) + + output: + + $ node examples/slice.js + + + splice + ------ + + var Buffers = require('buffers'); + var bufs = Buffers([ + new Buffer([1,2,3]), + new Buffer([4,5,6,7]), + new Buffer([8,9,10]), + ]); + + var removed = bufs.splice(2, 4); + console.dir({ + removed : removed.slice(), + bufs : bufs.slice(), + }); + + output: + + $ node examples/splice.js + { removed: , + bufs: } + + methods + ======= + + Buffers(buffers) + ---------------- + + Create a Buffers with an array of `Buffer`s if specified, else `[]`. + + .push(buf1, buf2...) + -------------------- + + Push buffers onto the end. Just like `Array.prototype.push`. + + .unshift(buf1, buf2...) + ----------------------- + + Unshift buffers onto the head. Just like `Array.prototype.unshift`. + + .slice(i, j) + ------------ + + Slice a range out of the buffer collection as if it were contiguous. + Works just like the `Array.prototype.slice` version. + + .splice(i, howMany, replacements) + --------------------------------- + + Splice the buffer collection as if it were contiguous. + Works just like `Array.prototype.splice`, even the replacement part! + + .copy(dst, dstStart, start, end) + -------------------------------- + + Copy the buffer collection as if it were contiguous to the `dst` Buffer with the + specified bounds. + Works just like `Buffer.prototype.copy`. + + .get(i) + ------- + + Get a single element at index `i`. + + .set(i, x) + ---------- + + Set a single element's value at index `i`. + + .indexOf(needle, offset) + ---------- + + Find a string or buffer `needle` inside the buffer collection. Returns + the position of the search string or -1 if the search string was not + found. + + Provide an `offset` to skip that number of characters at the beginning + of the search. This can be used to find additional matches. + + This function will return the correct result even if the search string + is spread out over multiple internal buffers. + + .toBuffer() + ----------- + + Convert the buffer collection to a single buffer, equivalent with `.slice(0, buffers.length)`; + + .toString(encoding, start, end) + ----------- + + Decodes and returns a string from the buffer collection. + Works just like `Buffer.prototype.toString` + +## call-bind 1.0.9 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## call-bind-apply-helpers 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## call-bound 1.0.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## chainsaw 0.1.0 + +License: MIT/X11. + +### README.markdown (upstream notice) + + Chainsaw + ======== + + Build chainable fluent interfaces the easy way in node.js. + + With this meta-module you can write modules with chainable interfaces. + Chainsaw takes care of all of the boring details and makes nested flow control + super simple too. + + Just call `Chainsaw` with a constructor function like in the examples below. + In your methods, just do `saw.next()` to move along to the next event and + `saw.nest()` to create a nested chain. + + Examples + ======== + + add_do.js + --------- + + This silly example adds values with a chainsaw. + + var Chainsaw = require('chainsaw'); + + function AddDo (sum) { + return Chainsaw(function (saw) { + this.add = function (n) { + sum += n; + saw.next(); + }; + + this.do = function (cb) { + saw.nest(cb, sum); + }; + }); + } + + AddDo(0) + .add(5) + .add(10) + .do(function (sum) { + if (sum > 12) this.add(-10); + }) + .do(function (sum) { + console.log('Sum: ' + sum); + }) + ; + + Output: + Sum: 5 + + prompt.js + --------- + + This example provides a wrapper on top of stdin with the help of + [node-lazy](https://github.com/pkrumins/node-lazy) for line-processing. + + var Chainsaw = require('chainsaw'); + var Lazy = require('lazy'); + + module.exports = Prompt; + function Prompt (stream) { + var waiting = []; + var lines = []; + var lazy = Lazy(stream).lines.map(String) + .forEach(function (line) { + if (waiting.length) { + var w = waiting.shift(); + w(line); + } + else lines.push(line); + }) + ; + + var vars = {}; + return Chainsaw(function (saw) { + this.getline = function (f) { + var g = function (line) { + saw.nest(f, line, vars); + }; + + if (lines.length) g(lines.shift()); + else waiting.push(g); + }; + + this.do = function (cb) { + saw.nest(cb, vars); + }; + }); + } + + And now for the new Prompt() module in action: + + var util = require('util'); + var stdin = process.openStdin(); + + Prompt(stdin) + .do(function () { + util.print('x = '); + }) + .getline(function (line, vars) { + vars.x = parseInt(line, 10); + }) + .do(function () { + util.print('y = '); + }) + .getline(function (line, vars) { + vars.y = parseInt(line, 10); + }) + .do(function (vars) { + if (vars.x + vars.y < 10) { + util.print('z = '); + this.getline(function (line) { + vars.z = parseInt(line, 10); + }) + } + else { + vars.z = 0; + } + }) + .do(function (vars) { + console.log('x + y + z = ' + (vars.x + vars.y + vars.z)); + process.exit(); + }) + ; + + Installation + ============ + + With [npm](http://github.com/isaacs/npm), just do: + npm install chainsaw + + or clone this project on github: + + git clone http://github.com/substack/node-chainsaw.git + + To run the tests with [expresso](http://github.com/visionmedia/expresso), + just do: + + expresso + + + Light Mode vs Full Mode + ======================= + + `node-chainsaw` supports two different modes. In full mode, every + action is recorded, which allows you to replay actions using the + `jump()`, `trap()` and `down()` methods. + + However, if your chainsaws are long-lived, recording every action can + consume a tremendous amount of memory, so we also offer a "light" mode + where actions are not recorded and the aforementioned methods are + disabled. + + To enable light mode simply use `Chainsaw.light()` to construct your + saw, instead of `Chainsaw()`. + +## compress-commons 4.1.2 + +License: MIT. + +### LICENSE + + Copyright (c) 2014 Chris Talkington, contributors. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +## concat-map 0.0.1 + +License: MIT. + +### LICENSE + + This software is released under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## core-util-is 1.0.3 + +License: MIT. + +### LICENSE + + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + +## crc-32 1.2.2 + +License: Apache-2.0. + +### LICENSE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (C) 2014-present SheetJS LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +## crc32-stream 4.0.3 + +License: MIT. + +### LICENSE + + Copyright (c) 2014 Chris Talkington, contributors. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +## data-view-buffer 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## data-view-byte-length 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## data-view-byte-offset 1.0.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## dayjs 1.11.23 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2018-present, iamkun + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## define-data-property 1.1.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## define-properties 1.2.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (C) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## docx-preview 0.3.7 + +License: Apache-2.0. + +### LICENSE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2016-2023 Volodymyr Baydalka + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +## dunder-proto 1.0.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 ECMAScript Shims + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## duplexer2 0.1.4 + +License: BSD-3-Clause. + +### LICENSE.md + + Copyright (c) 2013, Deoxxa Development + ====================================== + All rights reserved. + -------------------- + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of Deoxxa Development nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY DEOXXA DEVELOPMENT ''AS IS'' AND ANY + EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL DEOXXA DEVELOPMENT BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +## isarray 1.0.0 + +License: MIT. + +### README.md (upstream notice) + + # isarray + + `Array#isArray` for older browsers. + + [![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) + [![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) + + [![browser support](https://ci.testling.com/juliangruber/isarray.png) + ](https://ci.testling.com/juliangruber/isarray) + + ## Usage + + ```js + var isArray = require('isarray'); + + console.log(isArray([])); // => true + console.log(isArray({})); // => false + ``` + + ## Installation + + With [npm](http://npmjs.org) do + + ```bash + $ npm install isarray + ``` + + Then bundle for the browser with + [browserify](https://github.com/substack/browserify). + + With [component](http://component.io) do + + ```bash + $ component install juliangruber/isarray + ``` + + ## License + + (MIT) + + Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## readable-stream 2.3.8 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## safe-buffer 5.1.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) Feross Aboukhadijeh + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## string_decoder 1.1.1 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## end-of-stream 1.4.5 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 Mathias Buus + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## es-abstract 1.24.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (C) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## es-abstract-get 1.0.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2026 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## es-define-property 1.0.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## es-errors 1.3.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## es-object-atoms 1.1.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## es-set-tostringtag 2.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2022 ECMAScript Shims + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## es-to-primitive 1.3.4 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## exceljs 4.4.0 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014-2019 Guyon Roche + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## saxes 5.0.1 + +License: ISC. + +### README.md (upstream notice) + + # saxes + + A sax-style non-validating parser for XML. + + Saxes is a fork of [sax](https://github.com/isaacs/sax-js) 1.2.4. All mentions + of sax in this project's documentation are references to sax 1.2.4. + + Designed with [node](http://nodejs.org/) in mind, but should work fine in the + browser or other CommonJS implementations. + + Saxes does not support Node versions older than 10. + + ## Notable Differences from Sax. + + * Saxes aims to be much stricter than sax with regards to XML + well-formedness. Sax, even in its so-called "strict mode", is not strict. It + silently accepts structures that are not well-formed XML. Projects that need + better compliance with well-formedness constraints cannot use sax as-is. + + Consequently, saxes does not support HTML, or pseudo-XML, or bad XML. Saxes + will report well-formedness errors in all these cases but it won't try to + extract data from malformed documents like sax does. + + * Saxes is much much faster than sax, mostly because of a substantial redesign + of the internal parsing logic. The speed improvement is not merely due to + removing features that were supported by sax. That helped a bit, but saxes + adds some expensive checks in its aim for conformance with the XML + specification. Redesigning the parsing logic is what accounts for most of the + performance improvement. + + * Saxes does not aim to support antiquated platforms. We will not pollute the + source or the default build with support for antiquated platforms. If you want + support for IE 11, you are welcome to produce a PR that adds a *new build* + transpiled to ES5. + + * Saxes handles errors differently from sax: it provides a default onerror + handler which throws. You can replace it with your own handler if you want. If + your handler does nothing, there is no `resume` method to call. + + * There's no `Stream` API. A revamped API may be introduced later. (It is still + a "streaming parser" in the general sense that you write a character stream to + it.) + + * Saxes does not have facilities for limiting the size the data chunks passed to + event handlers. See the FAQ entry for more details. + + ## Conformance + + Saxes supports: + + * [XML 1.0 fifth edition](https://www.w3.org/TR/2008/REC-xml-20081126/) + * [XML 1.1 second edition](https://www.w3.org/TR/2006/REC-xml11-20060816/) + * [Namespaces in XML 1.0 (Third Edition)](https://www.w3.org/TR/2009/REC-xml-names-20091208/). + * [Namespaces in XML 1.1 (Second Edition)](https://www.w3.org/TR/2006/REC-xml-names11-20060816/). + + ## Limitations + + This is a non-validating parser so it only verifies whether the document is + well-formed. We do aim to raise errors for all malformed constructs + encountered. However, this parser does not thorougly parse the contents of + DTDs. So most malformedness errors caused by errors **in DTDs** cannot be + reported. + + ## Regarding `Hello, world!').close(); + ``` + + ### Constructor Arguments + + Settings supported: + + * `xmlns` - Boolean. If `true`, then namespaces are supported. Default + is `false`. + + * `position` - Boolean. If `false`, then don't track line/col/position. Unset is + treated as `true`. Default is unset. Currently, setting this to `false` only + results in a cosmetic change: the errors reported do not contain position + information. sax-js would literally turn off the position-computing logic if + this flag was set to false. The notion was that it would optimize + execution. In saxes at least it turns out that continually testing this flag + causes a cost that offsets the benefits of turning off this logic. + + * `fileName` - String. Set a file name for error reporting. This is useful only + when tracking positions. You may leave it unset. + + * `fragment` - Boolean. If `true`, parse the XML as an XML fragment. Default is + `false`. + + * `additionalNamespaces` - A plain object whose key, value pairs define + namespaces known before parsing the XML file. It is not legal to pass + bindings for the namespaces `"xml"` or `"xmlns"`. + + * `defaultXMLVersion` - The default version of the XML specification to use if + the document contains no XML declaration. If the document does contain an XML + declaration, then this setting is ignored. Must be `"1.0"` or `"1.1"`. The + default is `"1.0"`. + + * `forceXMLVersion` - Boolean. A flag indicating whether to force the XML + version used for parsing to the value of ``defaultXMLVersion``. When this flag + is ``true``, ``defaultXMLVersion`` must be specified. If unspecified, the + default value of this flag is ``false``. + + Example: suppose you are parsing a document that has an XML declaration + specifying XML version 1.1. + + If you set ``defaultXMLVersion`` to ``"1.0"`` without setting + ``forceXMLVersion`` then the XML declaration will override the value of + ``defaultXMLVersion`` and the document will be parsed according to XML 1.1. + + If you set ``defaultXMLVersion`` to ``"1.0"`` and set ``forceXMLVersion`` to + ``true``, then the XML declaration will be ignored and the document will be + parsed according to XML 1.0. + + ### Methods + + `write` - Write bytes onto the stream. You don't have to pass the whole document + in one `write` call. You can read your source chunk by chunk and call `write` + with each chunk. + + `close` - Close the stream. Once closed, no more data may be written until it is + done processing the buffer, which is signaled by the `end` event. + + ### Properties + + The parser has the following properties: + + `line`, `column`, `columnIndex`, `position` - Indications of the position in the + XML document where the parser currently is looking. The `columnIndex` property + counts columns as if indexing into a JavaScript string, whereas the `column` + property counts Unicode characters. + + `closed` - Boolean indicating whether or not the parser can be written to. If + it's `true`, then wait for the `ready` event to write again. + + `opt` - Any options passed into the constructor. + + `xmlDecl` - The XML declaration for this document. It contains the fields + `version`, `encoding` and `standalone`. They are all `undefined` before + encountering the XML declaration. If they are undefined after the XML + declaration, the corresponding value was not set by the declaration. There is no + event associated with the XML declaration. In a well-formed document, the XML + declaration may be preceded only by an optional BOM. So by the time any event + generated by the parser happens, the declaration has been processed if present + at all. Otherwise, you have a malformed document, and as stated above, you + cannot rely on the parser data! + + ### Error Handling + + The parser continues to parse even upon encountering errors, and does its best + to continue reporting errors. You should heed all errors reported. After an + error, however, saxes may interpret your document incorrectly. For instance + ```` is invalid XML. Did you mean to have ```` or + ```` or some other variation? For the sake of continuing to + provide errors, saxes will continue parsing the document, but the structure it + reports may be incorrect. It is only after the errors are fixed in the document + that saxes can provide a reliable interpretation of the document. + + That leaves you with two rules of thumb when using saxes: + + * Pay attention to the errors that saxes report. The default `onerror` handler + throws, so by default, you cannot miss errors. + + * **ONCE AN ERROR HAS BEEN ENCOUNTERED, STOP RELYING ON THE EVENT HANDLERS OTHER + THAN `onerror`.** As explained above, when saxes runs into a well-formedness + problem, it makes a guess in order to continue reporting more errors. The guess + may be wrong. + + ### Events + + To listen to an event, override `on`. The list of supported events + are also in the exported `EVENTS` array. + + See the JSDOC comments in the source code for a description of each supported + event. + + ### Parsing XML Fragments + + The XML specification does not define any method by which to parse XML + fragments. However, there are usage scenarios in which it is desirable to parse + fragments. In order to allow this, saxes provides three initialization options. + + If you pass the option `fragment: true` to the parser constructor, the parser + will expect an XML fragment. It essentially starts with a parsing state + equivalent to the one it would be in if `parser.write(")` had been called + right after initialization. In other words, it expects content which is + acceptable inside an element. This also turns off well-formedness checks that + are inappropriate when parsing a fragment. + + The option `additionalNamespaces` allows you to define additional prefix-to-URI + bindings known before parsing starts. You would use this over `resolvePrefix` if + you have at the ready a series of namespaces bindings to use. + + The option `resolvePrefix` allows you to pass a function which saxes will use if + it is unable to resolve a namespace prefix by itself. You would use this over + `additionalNamespaces` in a context where getting a complete list of defined + namespaces is onerous. + + Note that you can use `additionalNamespaces` and `resolvePrefix` together if you + want. `additionalNamespaces` applies before `resolvePrefix`. + + The options `additionalNamespaces` and `resolvePrefix` are really meant to be + used for parsing fragments. However, saxes won't prevent you from using them + with `fragment: false`. Note that if you do this, your document may parse + without errors and yet be malformed because the document can refer to namespaces + which are not defined *in* the document. + + Of course, `additionalNamespaces` and `resolvePrefix` are used only if `xmlns` + is `true`. If you are parsing a fragment that does not use namespaces, there's + no point in setting these options. + + ### Performance Tips + + * saxes works faster on files that use newlines (``\u000A``) as end of line + markers than files that use other end of line markers (like ``\r`` or + ``\r\n``). The XML specification requires that conformant applications behave + as if all characters that are to be treated as end of line characters are + converted to ``\u000A`` prior to parsing. The optimal code path for saxes is a + file in which all end of line characters are already ``\u000A``. + + * Don't split Unicode strings you feed to saxes across surrogates. When you + naively split a string in JavaScript, you run the risk of splitting a Unicode + character into two surrogates. e.g. In the following example ``a`` and ``b`` + each contain half of a single Unicode character: ``const a = "\u{1F4A9}"[0]; + const b = "\u{1F4A9}"[1]`` If you feed such split surrogates to versions of + saxes prior to 4, you'd get errors. Saxes version 4 and over are able to + detect when a chunk of data ends with a surrogate and carry over the surrogate + to the next chunk. However this operation entails slicing and concatenating + strings. If you can feed your data in a way that does not split surrogates, + you should do it. (Obviously, feeding all the data at once with a single write + is fastest.) + + * Don't set event handlers you don't need. Saxes has always aimed to avoid doing + work that will just be tossed away but future improvements hope to do this + more aggressively. One way saxes knows whether or not some data is needed is + by checking whether a handler has been set for a specific event. + + ## FAQ + + Q. Why has saxes dropped support for limiting the size of data chunks passed to + event handlers? + + A. With sax you could set ``MAX_BUFFER_LENGTH`` to cause the parser to limit the + size of data chunks passed to event handlers. So if you ran into a span of text + above the limit, multiple ``text`` events with smaller data chunks were fired + instead of a single event with a large chunk. + + However, that functionality had some problematic characteristics. It had an + arbitrary default value. It was library-wide so all parsers created from a + single instance of the ``sax`` library shared it. This could potentially cause + conflicts among libraries running in the same VM but using sax for different + purposes. + + These issues could have been easily fixed, but there were larger issues. The + buffer limit arbitrarily applied to some events but not others. It would split + ``text``, ``cdata`` and ``script`` events. However, if a ``comment``, + ``doctype``, ``attribute`` or ``processing instruction`` were more than the + limit, the parser would generate an error and you were left picking up the + pieces. + + It was not intuitive to use. You'd think setting the limit to 1K would prevent + chunks bigger than 1K to be passed to event handlers. But that was not the + case. A comment in the source code told you that you might go over the limit if + you passed large chunks to ``write``. So if you want a 1K limit, don't pass 64K + chunks to ``write``. Fair enough. You know what limit you want so you can + control the size of the data you pass to ``write``. So you limit the chunks to + ``write`` to 1K at a time. Even if you do this, your event handlers may get data + chunks that are 2K in size. Suppose on the previous ``write`` the parser has + just finished processing an open tag, so it is ready for text. Your ``write`` + passes 1K of text. You are not above the limit yet, so no event is generated + yet. The next ``write`` passes another 1K of text. It so happens that sax checks + buffer limits only once per ``write``, after the chunk of data has been + processed. Now you've hit the limit and you get a ``text`` event with 2K of + data. So even if you limit your ``write`` calls to the buffer limit you've set, + you may still get events with chunks at twice the buffer size limit you've + specified. + + We may consider reinstating an equivalent functionality, provided that it + addresses the issues above and does not cause a huge performance drop for + use-case scenarios that don't need it. + +## fast-csv 4.3.6 + +License: MIT. + +### LICENSE + + The MIT License + + Copyright (c) 2011-2019 C2FO + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## for-each 0.3.5 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2012 Raynos. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## fs-constants 1.0.0 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2018 Mathias Buus + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## fs.realpath 1.0.0 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + ---- + + This library bundles a version of the `fs.realpath` and `fs.realpathSync` + methods from Node.js v0.10 under the terms of the Node.js MIT license. + + Node's license follows, also included at the header of `old.js` which contains + the licensed code: + + Copyright Joyent, Inc. and other Node contributors. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +## fstream 1.0.12 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## function-bind 1.1.2 + +License: MIT. + +### LICENSE + + Copyright (c) 2013 Raynos. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## function.prototype.name 1.2.0 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2016 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## functions-have-names 1.2.3 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## generator-function 2.0.1 + +License: MIT. + +### LICENSE.md + + Copyright (c) 2015 Tiancheng “Timothy” Gu + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## get-intrinsic 1.3.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## get-proto 1.0.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2025 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## get-symbol-description 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2021 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## glob 7.2.3 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + ## Glob Logo + + Glob's logo created by Tanya Brassie , licensed + under a Creative Commons Attribution-ShareAlike 4.0 International License + https://creativecommons.org/licenses/by-sa/4.0/ + +## globalthis 1.0.4 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2016 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## gopd 1.2.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2022 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## graceful-fs 4.2.11 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## has-bigints 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## has-property-descriptors 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2022 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## has-proto 1.2.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2022 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## has-symbols 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2016 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## has-tostringtag 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2021 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## hasown 2.0.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) Jordan Harband and contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## ieee754 1.2.1 + +License: BSD-3-Clause. + +### LICENSE + + Copyright 2008 Fair Oaks Labs, Inc. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +## immediate 3.0.6 + +License: MIT. + +### LICENSE.txt + + Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## inflight 1.0.6 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## inherits 2.0.4 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + +## internal-slot 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-array-buffer 3.0.5 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2015 Chen Gengyuan, Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-async-function 2.1.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2021 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## is-bigint 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2018 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-boolean-object 1.2.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-callable 1.2.7 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-data-view 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-date-object 1.1.0 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-document.all 1.0.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2026 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-finalizationregistry 1.1.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-generator-function 1.1.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## is-map 2.0.3 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-negative-zero 2.0.3 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## is-number-object 1.1.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-regex 1.2.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## is-set 2.0.3 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-shared-array-buffer 1.0.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2021 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-string 1.1.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-symbol 1.1.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-typed-array 1.1.15 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-weakmap 2.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-weakref 1.1.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## is-weakset 2.0.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## isarray 2.0.5 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2013 Julian Gruber + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## jszip 3.10.1 + +License: (MIT OR GPL-3.0-or-later). + +### LICENSE.markdown + + JSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3 + license. + + The MIT License + =============== + + Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + + GPL version 3 + ============= + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for + software and other kinds of works. + + The licenses for most software and other practical works are designed + to take away your freedom to share and change the works. By contrast, + the GNU General Public License is intended to guarantee your freedom to + share and change all versions of a program--to make sure it remains free + software for all its users. We, the Free Software Foundation, use the + GNU General Public License for most of our software; it applies also to + any other work released this way by its authors. You can apply it to + your programs, too. + + When we speak of free software, we are referring to freedom, not + price. Our General Public Licenses are designed to make sure that you + have the freedom to distribute copies of free software (and charge for + them if you wish), that you receive source code or can get it if you + want it, that you can change the software or use pieces of it in new + free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you + these rights or asking you to surrender the rights. Therefore, you have + certain responsibilities if you distribute copies of the software, or if + you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether + gratis or for a fee, you must pass on to the recipients the same + freedoms that you received. You must make sure that they, too, receive + or can get the source code. And you must show them these terms so they + know their rights. + + Developers that use the GNU GPL protect your rights with two steps: + (1) assert copyright on the software, and (2) offer you this License + giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains + that there is no warranty for this free software. For both users' and + authors' sake, the GPL requires that modified versions be marked as + changed, so that their problems will not be attributed erroneously to + authors of previous versions. + + Some devices are designed to deny users access to install or run + modified versions of the software inside them, although the manufacturer + can do so. This is fundamentally incompatible with the aim of + protecting users' freedom to change the software. The systematic + pattern of such abuse occurs in the area of products for individuals to + use, which is precisely where it is most unacceptable. Therefore, we + have designed this version of the GPL to prohibit the practice for those + products. If such problems arise substantially in other domains, we + stand ready to extend this provision to those domains in future versions + of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. + States should not allow patents to restrict development and use of + software on general-purpose computers, but in those that do, we wish to + avoid the special danger that patents applied to a free program could + make it effectively proprietary. To prevent this, the GPL assures that + patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and + modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of + works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this + License. Each licensee is addressed as "you". "Licensees" and + "recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work + in a fashion requiring copyright permission, other than the making of an + exact copy. The resulting work is called a "modified version" of the + earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based + on the Program. + + To "propagate" a work means to do anything with it that, without + permission, would make you directly or secondarily liable for + infringement under applicable copyright law, except executing it on a + computer or modifying a private copy. Propagation includes copying, + distribution (with or without modification), making available to the + public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other + parties to make or receive copies. Mere interaction with a user through + a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" + to the extent that it includes a convenient and prominently visible + feature that (1) displays an appropriate copyright notice, and (2) + tells the user that there is no warranty for the work (except to the + extent that warranties are provided), that licensees may convey the + work under this License, and how to view a copy of this License. If + the interface presents a list of user commands or options, such as a + menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work + for making modifications to it. "Object code" means any non-source + form of a work. + + A "Standard Interface" means an interface that either is an official + standard defined by a recognized standards body, or, in the case of + interfaces specified for a particular programming language, one that + is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other + than the work as a whole, that (a) is included in the normal form of + packaging a Major Component, but which is not part of that Major + Component, and (b) serves only to enable use of the work with that + Major Component, or to implement a Standard Interface for which an + implementation is available to the public in source code form. A + "Major Component", in this context, means a major essential component + (kernel, window system, and so on) of the specific operating system + (if any) on which the executable work runs, or a compiler used to + produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all + the source code needed to generate, install, and (for an executable + work) run the object code and to modify the work, including scripts to + control those activities. However, it does not include the work's + System Libraries, or general-purpose tools or generally available free + programs which are used unmodified in performing those activities but + which are not part of the work. For example, Corresponding Source + includes interface definition files associated with source files for + the work, and the source code for shared libraries and dynamically + linked subprograms that the work is specifically designed to require, + such as by intimate data communication or control flow between those + subprograms and other parts of the work. + + The Corresponding Source need not include anything that users + can regenerate automatically from other parts of the Corresponding + Source. + + The Corresponding Source for a work in source code form is that + same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of + copyright on the Program, and are irrevocable provided the stated + conditions are met. This License explicitly affirms your unlimited + permission to run the unmodified Program. The output from running a + covered work is covered by this License only if the output, given its + content, constitutes a covered work. This License acknowledges your + rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not + convey, without conditions so long as your license otherwise remains + in force. You may convey covered works to others for the sole purpose + of having them make modifications exclusively for you, or provide you + with facilities for running those works, provided that you comply with + the terms of this License in conveying all material for which you do + not control copyright. Those thus making or running the covered works + for you must do so exclusively on your behalf, under your direction + and control, on terms that prohibit them from making any copies of + your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under + the conditions stated below. Sublicensing is not allowed; section 10 + makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological + measure under any applicable law fulfilling obligations under article + 11 of the WIPO copyright treaty adopted on 20 December 1996, or + similar laws prohibiting or restricting circumvention of such + measures. + + When you convey a covered work, you waive any legal power to forbid + circumvention of technological measures to the extent such circumvention + is effected by exercising rights under this License with respect to + the covered work, and you disclaim any intention to limit operation or + modification of the work as a means of enforcing, against the work's + users, your or third parties' legal rights to forbid circumvention of + technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you + receive it, in any medium, provided that you conspicuously and + appropriately publish on each copy an appropriate copyright notice; + keep intact all notices stating that this License and any + non-permissive terms added in accord with section 7 apply to the code; + keep intact all notices of the absence of any warranty; and give all + recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, + and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to + produce it from the Program, in the form of source code under the + terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent + works, which are not by their nature extensions of the covered work, + and which are not combined with it such as to form a larger program, + in or on a volume of a storage or distribution medium, is called an + "aggregate" if the compilation and its resulting copyright are not + used to limit the access or legal rights of the compilation's users + beyond what the individual works permit. Inclusion of a covered work + in an aggregate does not cause this License to apply to the other + parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms + of sections 4 and 5, provided that you also convey the + machine-readable Corresponding Source under the terms of this License, + in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded + from the Corresponding Source as a System Library, need not be + included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any + tangible personal property which is normally used for personal, family, + or household purposes, or (2) anything designed or sold for incorporation + into a dwelling. In determining whether a product is a consumer product, + doubtful cases shall be resolved in favor of coverage. For a particular + product received by a particular user, "normally used" refers to a + typical or common use of that class of product, regardless of the status + of the particular user or of the way in which the particular user + actually uses, or expects or is expected to use, the product. A product + is a consumer product regardless of whether the product has substantial + commercial, industrial or non-consumer uses, unless such uses represent + the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, + procedures, authorization keys, or other information required to install + and execute modified versions of a covered work in that User Product from + a modified version of its Corresponding Source. The information must + suffice to ensure that the continued functioning of the modified object + code is in no case prevented or interfered with solely because + modification has been made. + + If you convey an object code work under this section in, or with, or + specifically for use in, a User Product, and the conveying occurs as + part of a transaction in which the right of possession and use of the + User Product is transferred to the recipient in perpetuity or for a + fixed term (regardless of how the transaction is characterized), the + Corresponding Source conveyed under this section must be accompanied + by the Installation Information. But this requirement does not apply + if neither you nor any third party retains the ability to install + modified object code on the User Product (for example, the work has + been installed in ROM). + + The requirement to provide Installation Information does not include a + requirement to continue to provide support service, warranty, or updates + for a work that has been modified or installed by the recipient, or for + the User Product in which it has been modified or installed. Access to a + network may be denied when the modification itself materially and + adversely affects the operation of the network or violates the rules and + protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, + in accord with this section must be in a format that is publicly + documented (and with an implementation available to the public in + source code form), and must require no special password or key for + unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this + License by making exceptions from one or more of its conditions. + Additional permissions that are applicable to the entire Program shall + be treated as though they were included in this License, to the extent + that they are valid under applicable law. If additional permissions + apply only to part of the Program, that part may be used separately + under those permissions, but the entire Program remains governed by + this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option + remove any additional permissions from that copy, or from any part of + it. (Additional permissions may be written to require their own + removal in certain cases when you modify the work.) You may place + additional permissions on material, added by you to a covered work, + for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you + add to a covered work, you may (if authorized by the copyright holders of + that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further + restrictions" within the meaning of section 10. If the Program as you + received it, or any part of it, contains a notice stating that it is + governed by this License along with a term that is a further + restriction, you may remove that term. If a license document contains + a further restriction but permits relicensing or conveying under this + License, you may add to a covered work material governed by the terms + of that license document, provided that the further restriction does + not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you + must place, in the relevant source files, a statement of the + additional terms that apply to those files, or a notice indicating + where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the + form of a separately written license, or stated as exceptions; + the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly + provided under this License. Any attempt otherwise to propagate or + modify it is void, and will automatically terminate your rights under + this License (including any patent licenses granted under the third + paragraph of section 11). + + However, if you cease all violation of this License, then your + license from a particular copyright holder is reinstated (a) + provisionally, unless and until the copyright holder explicitly and + finally terminates your license, and (b) permanently, if the copyright + holder fails to notify you of the violation by some reasonable means + prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is + reinstated permanently if the copyright holder notifies you of the + violation by some reasonable means, this is the first time you have + received notice of violation of this License (for any work) from that + copyright holder, and you cure the violation prior to 30 days after + your receipt of the notice. + + Termination of your rights under this section does not terminate the + licenses of parties who have received copies or rights from you under + this License. If your rights have been terminated and not permanently + reinstated, you do not qualify to receive new licenses for the same + material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or + run a copy of the Program. Ancillary propagation of a covered work + occurring solely as a consequence of using peer-to-peer transmission + to receive a copy likewise does not require acceptance. However, + nothing other than this License grants you permission to propagate or + modify any covered work. These actions infringe copyright if you do + not accept this License. Therefore, by modifying or propagating a + covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically + receives a license from the original licensors, to run, modify and + propagate that work, subject to this License. You are not responsible + for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an + organization, or substantially all assets of one, or subdividing an + organization, or merging organizations. If propagation of a covered + work results from an entity transaction, each party to that + transaction who receives a copy of the work also receives whatever + licenses to the work the party's predecessor in interest had or could + give under the previous paragraph, plus a right to possession of the + Corresponding Source of the work from the predecessor in interest, if + the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the + rights granted or affirmed under this License. For example, you may + not impose a license fee, royalty, or other charge for exercise of + rights granted under this License, and you may not initiate litigation + (including a cross-claim or counterclaim in a lawsuit) alleging that + any patent claim is infringed by making, using, selling, offering for + sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this + License of the Program or a work on which the Program is based. The + work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims + owned or controlled by the contributor, whether already acquired or + hereafter acquired, that would be infringed by some manner, permitted + by this License, of making, using, or selling its contributor version, + but do not include claims that would be infringed only as a + consequence of further modification of the contributor version. For + purposes of this definition, "control" includes the right to grant + patent sublicenses in a manner consistent with the requirements of + this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free + patent license under the contributor's essential patent claims, to + make, use, sell, offer for sale, import and otherwise run, modify and + propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express + agreement or commitment, however denominated, not to enforce a patent + (such as an express permission to practice a patent or covenant not to + sue for patent infringement). To "grant" such a patent license to a + party means to make such an agreement or commitment not to enforce a + patent against the party. + + If you convey a covered work, knowingly relying on a patent license, + and the Corresponding Source of the work is not available for anyone + to copy, free of charge and under the terms of this License, through a + publicly available network server or other readily accessible means, + then you must either (1) cause the Corresponding Source to be so + available, or (2) arrange to deprive yourself of the benefit of the + patent license for this particular work, or (3) arrange, in a manner + consistent with the requirements of this License, to extend the patent + license to downstream recipients. "Knowingly relying" means you have + actual knowledge that, but for the patent license, your conveying the + covered work in a country, or your recipient's use of the covered work + in a country, would infringe one or more identifiable patents in that + country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or + arrangement, you convey, or propagate by procuring conveyance of, a + covered work, and grant a patent license to some of the parties + receiving the covered work authorizing them to use, propagate, modify + or convey a specific copy of the covered work, then the patent license + you grant is automatically extended to all recipients of the covered + work and works based on it. + + A patent license is "discriminatory" if it does not include within + the scope of its coverage, prohibits the exercise of, or is + conditioned on the non-exercise of one or more of the rights that are + specifically granted under this License. You may not convey a covered + work if you are a party to an arrangement with a third party that is + in the business of distributing software, under which you make payment + to the third party based on the extent of your activity of conveying + the work, and under which the third party grants, to any of the + parties who would receive the covered work from you, a discriminatory + patent license (a) in connection with copies of the covered work + conveyed by you (or copies made from those copies), or (b) primarily + for and in connection with specific products or compilations that + contain the covered work, unless you entered into that arrangement, + or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting + any implied license or other defenses to infringement that may + otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or + otherwise) that contradict the conditions of this License, they do not + excuse you from the conditions of this License. If you cannot convey a + covered work so as to satisfy simultaneously your obligations under this + License and any other pertinent obligations, then as a consequence you may + not convey it at all. For example, if you agree to terms that obligate you + to collect a royalty for further conveying from those to whom you convey + the Program, the only way you could satisfy both those terms and this + License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have + permission to link or combine any covered work with a work licensed + under version 3 of the GNU Affero General Public License into a single + combined work, and to convey the resulting work. The terms of this + License will continue to apply to the part which is the covered work, + but the special requirements of the GNU Affero General Public License, + section 13, concerning interaction through a network will apply to the + combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of + the GNU General Public License from time to time. Such new versions will + be similar in spirit to the present version, but may differ in detail to + address new problems or concerns. + + Each version is given a distinguishing version number. If the + Program specifies that a certain numbered version of the GNU General + Public License "or any later version" applies to it, you have the + option of following the terms and conditions either of that numbered + version or of any later version published by the Free Software + Foundation. If the Program does not specify a version number of the + GNU General Public License, you may choose any version ever published + by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future + versions of the GNU General Public License can be used, that proxy's + public statement of acceptance of a version permanently authorizes you + to choose that version for the Program. + + Later license versions may give you additional or different + permissions. However, no additional obligations are imposed on any + author or copyright holder as a result of your choosing to follow a + later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY + APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT + HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY + OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM + IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF + ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING + WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS + THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY + GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE + USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF + DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD + PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), + EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF + SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided + above cannot be given local legal effect according to their terms, + reviewing courts shall apply local law that most closely approximates + an absolute waiver of all civil liability in connection with the + Program, unless a warranty or assumption of liability accompanies a + copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + +## isarray 1.0.0 + +License: MIT. + +### README.md (upstream notice) + + # isarray + + `Array#isArray` for older browsers. + + [![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) + [![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) + + [![browser support](https://ci.testling.com/juliangruber/isarray.png) + ](https://ci.testling.com/juliangruber/isarray) + + ## Usage + + ```js + var isArray = require('isarray'); + + console.log(isArray([])); // => true + console.log(isArray({})); // => false + ``` + + ## Installation + + With [npm](http://npmjs.org) do + + ```bash + $ npm install isarray + ``` + + Then bundle for the browser with + [browserify](https://github.com/substack/browserify). + + With [component](http://component.io) do + + ```bash + $ component install juliangruber/isarray + ``` + + ## License + + (MIT) + + Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## readable-stream 2.3.8 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## safe-buffer 5.1.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) Feross Aboukhadijeh + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## string_decoder 1.1.1 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## lazystream 1.0.1 + +License: MIT. + +### LICENSE + + Copyright (c) 2013 J. Pommerening, contributors. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +## isarray 1.0.0 + +License: MIT. + +### README.md (upstream notice) + + # isarray + + `Array#isArray` for older browsers. + + [![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) + [![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) + + [![browser support](https://ci.testling.com/juliangruber/isarray.png) + ](https://ci.testling.com/juliangruber/isarray) + + ## Usage + + ```js + var isArray = require('isarray'); + + console.log(isArray([])); // => true + console.log(isArray({})); // => false + ``` + + ## Installation + + With [npm](http://npmjs.org) do + + ```bash + $ npm install isarray + ``` + + Then bundle for the browser with + [browserify](https://github.com/substack/browserify). + + With [component](http://component.io) do + + ```bash + $ component install juliangruber/isarray + ``` + + ## License + + (MIT) + + Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## readable-stream 2.3.8 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## safe-buffer 5.1.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) Feross Aboukhadijeh + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## string_decoder 1.1.1 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## lie 3.3.0 + +License: MIT. + +### license.md + + #Copyright (c) 2014-2018 Calvin Metcalf, Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.** + +## listenercount 1.0.1 + +License: ISC. + +### LICENSE.md + + Copyright (c) MMXV jden + + Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## lodash.defaults 4.2.0 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.difference 4.5.0 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.escaperegexp 4.1.2 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.flatten 4.4.0 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.groupby 4.6.0 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.isboolean 3.0.3 + +License: MIT. + +### LICENSE + + Copyright 2012-2016 The Dojo Foundation + Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## lodash.isequal 4.5.0 + +License: MIT. + +### LICENSE + + Copyright JS Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.isfunction 3.0.9 + +License: MIT. + +### LICENSE + + Copyright JS Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.isnil 4.0.0 + +License: MIT. + +### LICENSE + + Copyright 2012-2016 The Dojo Foundation + Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## lodash.isplainobject 4.0.6 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.isundefined 3.0.1 + +License: MIT. + +### LICENSE.txt + + Copyright 2012-2015 The Dojo Foundation + Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## lodash.union 4.6.0 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## lodash.uniq 4.5.0 + +License: MIT. + +### LICENSE + + Copyright jQuery Foundation and other contributors + + Based on Underscore.js, copyright Jeremy Ashkenas, + DocumentCloud and Investigative Reporters & Editors + + This software consists of voluntary contributions made by many + individuals. For exact contribution history, see the revision history + available at https://github.com/lodash/lodash + + The following license applies to all parts of this software except as + documented below: + + ==== + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ==== + + Copyright and related rights for sample code are waived via CC0. Sample + code is defined as all source code displayed within the prose of the + documentation. + + CC0: http://creativecommons.org/publicdomain/zero/1.0/ + + ==== + + Files located in the node_modules and vendor directories are externally + maintained libraries used by this software which have their own + licenses; we recommend you read them, as their terms may differ from the + terms above. + +## math-intrinsics 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 ECMAScript Shims + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## minimatch 3.1.5 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## minimist 1.2.8 + +License: MIT. + +### LICENSE + + This software is released under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## mkdirp 0.5.6 + +License: MIT. + +### LICENSE + + Copyright 2010 James Halliday (mail@substack.net) + + This project is free software released under the MIT/X11 license: + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## normalize-path 3.0.0 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014-2018, Jon Schlinkert. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## object-inspect 1.13.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2013 James Halliday + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## object-keys 1.1.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (C) 2013 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## object.assign 4.1.7 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## once 1.4.0 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## own-keys 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## pako 1.0.11 + +License: (MIT AND Zlib). + +### LICENSE + + (The MIT License) + + Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## path-is-absolute 1.0.1 + +License: MIT. + +### license + + The MIT License (MIT) + + Copyright (c) Sindre Sorhus (sindresorhus.com) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## possible-typed-array-names 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## process-nextick-args 2.0.1 + +License: MIT. + +### license.md + + # Copyright (c) 2015 Calvin Metcalf + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE.** + +## readable-stream 3.6.2 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## readdir-glob 1.1.3 + +License: Apache-2.0. + +### LICENSE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2020 Yann Armelin + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +## brace-expansion 2.1.7 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2013 Julian Gruber + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## minimatch 5.1.9 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## reflect.getprototypeof 1.0.10 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2021 ECMAScript Shims + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## regexp.prototype.flags 1.5.4 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (C) 2014 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## rimraf 2.7.1 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## safe-array-concat 1.1.4 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## safe-buffer 5.2.1 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) Feross Aboukhadijeh + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## safe-push-apply 1.0.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## safe-regex-test 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2022 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## saxes 6.0.0 + +License: ISC. + +### README.md (upstream notice) + + # saxes + + A sax-style non-validating parser for XML. + + Saxes is a fork of [sax](https://github.com/isaacs/sax-js) 1.2.4. All mentions + of sax in this project's documentation are references to sax 1.2.4. + + Designed with [node](http://nodejs.org/) in mind, but should work fine in the + browser or other CommonJS implementations. + + Saxes does not support Node versions older than 10. + + ## Notable Differences from Sax. + + * Saxes aims to be much stricter than sax with regards to XML + well-formedness. Sax, even in its so-called "strict mode", is not strict. It + silently accepts structures that are not well-formed XML. Projects that need + better compliance with well-formedness constraints cannot use sax as-is. + + Consequently, saxes does not support HTML, or pseudo-XML, or bad XML. Saxes + will report well-formedness errors in all these cases but it won't try to + extract data from malformed documents like sax does. + + * Saxes is much much faster than sax, mostly because of a substantial redesign + of the internal parsing logic. The speed improvement is not merely due to + removing features that were supported by sax. That helped a bit, but saxes + adds some expensive checks in its aim for conformance with the XML + specification. Redesigning the parsing logic is what accounts for most of the + performance improvement. + + * Saxes does not aim to support antiquated platforms. We will not pollute the + source or the default build with support for antiquated platforms. If you want + support for IE 11, you are welcome to produce a PR that adds a *new build* + transpiled to ES5. + + * Saxes handles errors differently from sax: it provides a default onerror + handler which throws. You can replace it with your own handler if you want. If + your handler does nothing, there is no `resume` method to call. + + * There's no `Stream` API. A revamped API may be introduced later. (It is still + a "streaming parser" in the general sense that you write a character stream to + it.) + + * Saxes does not have facilities for limiting the size the data chunks passed to + event handlers. See the FAQ entry for more details. + + ## Conformance + + Saxes supports: + + * [XML 1.0 fifth edition](https://www.w3.org/TR/2008/REC-xml-20081126/) + * [XML 1.1 second edition](https://www.w3.org/TR/2006/REC-xml11-20060816/) + * [Namespaces in XML 1.0 (Third Edition)](https://www.w3.org/TR/2009/REC-xml-names-20091208/). + * [Namespaces in XML 1.1 (Second Edition)](https://www.w3.org/TR/2006/REC-xml-names11-20060816/). + + ## Limitations + + This is a non-validating parser so it only verifies whether the document is + well-formed. We do aim to raise errors for all malformed constructs + encountered. However, this parser does not thorougly parse the contents of + DTDs. So most malformedness errors caused by errors **in DTDs** cannot be + reported. + + ## Regarding `Hello, world!').close(); + ``` + + ### Constructor Arguments + + Settings supported: + + * `xmlns` - Boolean. If `true`, then namespaces are supported. Default + is `false`. + + * `position` - Boolean. If `false`, then don't track line/col/position. Unset is + treated as `true`. Default is unset. Currently, setting this to `false` only + results in a cosmetic change: the errors reported do not contain position + information. sax-js would literally turn off the position-computing logic if + this flag was set to false. The notion was that it would optimize + execution. In saxes at least it turns out that continually testing this flag + causes a cost that offsets the benefits of turning off this logic. + + * `fileName` - String. Set a file name for error reporting. This is useful only + when tracking positions. You may leave it unset. + + * `fragment` - Boolean. If `true`, parse the XML as an XML fragment. Default is + `false`. + + * `additionalNamespaces` - A plain object whose key, value pairs define + namespaces known before parsing the XML file. It is not legal to pass + bindings for the namespaces `"xml"` or `"xmlns"`. + + * `defaultXMLVersion` - The default version of the XML specification to use if + the document contains no XML declaration. If the document does contain an XML + declaration, then this setting is ignored. Must be `"1.0"` or `"1.1"`. The + default is `"1.0"`. + + * `forceXMLVersion` - Boolean. A flag indicating whether to force the XML + version used for parsing to the value of ``defaultXMLVersion``. When this flag + is ``true``, ``defaultXMLVersion`` must be specified. If unspecified, the + default value of this flag is ``false``. + + Example: suppose you are parsing a document that has an XML declaration + specifying XML version 1.1. + + If you set ``defaultXMLVersion`` to ``"1.0"`` without setting + ``forceXMLVersion`` then the XML declaration will override the value of + ``defaultXMLVersion`` and the document will be parsed according to XML 1.1. + + If you set ``defaultXMLVersion`` to ``"1.0"`` and set ``forceXMLVersion`` to + ``true``, then the XML declaration will be ignored and the document will be + parsed according to XML 1.0. + + ### Methods + + `write` - Write bytes onto the stream. You don't have to pass the whole document + in one `write` call. You can read your source chunk by chunk and call `write` + with each chunk. + + `close` - Close the stream. Once closed, no more data may be written until it is + done processing the buffer, which is signaled by the `end` event. + + ### Properties + + The parser has the following properties: + + `line`, `column`, `columnIndex`, `position` - Indications of the position in the + XML document where the parser currently is looking. The `columnIndex` property + counts columns as if indexing into a JavaScript string, whereas the `column` + property counts Unicode characters. + + `closed` - Boolean indicating whether or not the parser can be written to. If + it's `true`, then wait for the `ready` event to write again. + + `opt` - Any options passed into the constructor. + + `xmlDecl` - The XML declaration for this document. It contains the fields + `version`, `encoding` and `standalone`. They are all `undefined` before + encountering the XML declaration. If they are undefined after the XML + declaration, the corresponding value was not set by the declaration. There is no + event associated with the XML declaration. In a well-formed document, the XML + declaration may be preceded only by an optional BOM. So by the time any event + generated by the parser happens, the declaration has been processed if present + at all. Otherwise, you have a malformed document, and as stated above, you + cannot rely on the parser data! + + ### Error Handling + + The parser continues to parse even upon encountering errors, and does its best + to continue reporting errors. You should heed all errors reported. After an + error, however, saxes may interpret your document incorrectly. For instance + ```` is invalid XML. Did you mean to have ```` or + ```` or some other variation? For the sake of continuing to + provide errors, saxes will continue parsing the document, but the structure it + reports may be incorrect. It is only after the errors are fixed in the document + that saxes can provide a reliable interpretation of the document. + + That leaves you with two rules of thumb when using saxes: + + * Pay attention to the errors that saxes report. The default `onerror` handler + throws, so by default, you cannot miss errors. + + * **ONCE AN ERROR HAS BEEN ENCOUNTERED, STOP RELYING ON THE EVENT HANDLERS OTHER + THAN `onerror`.** As explained above, when saxes runs into a well-formedness + problem, it makes a guess in order to continue reporting more errors. The guess + may be wrong. + + ### Events + + To listen to an event, override `on`. The list of supported events + are also in the exported `EVENTS` array. + + See the JSDOC comments in the source code for a description of each supported + event. + + ### Parsing XML Fragments + + The XML specification does not define any method by which to parse XML + fragments. However, there are usage scenarios in which it is desirable to parse + fragments. In order to allow this, saxes provides three initialization options. + + If you pass the option `fragment: true` to the parser constructor, the parser + will expect an XML fragment. It essentially starts with a parsing state + equivalent to the one it would be in if `parser.write(")` had been called + right after initialization. In other words, it expects content which is + acceptable inside an element. This also turns off well-formedness checks that + are inappropriate when parsing a fragment. + + The option `additionalNamespaces` allows you to define additional prefix-to-URI + bindings known before parsing starts. You would use this over `resolvePrefix` if + you have at the ready a series of namespaces bindings to use. + + The option `resolvePrefix` allows you to pass a function which saxes will use if + it is unable to resolve a namespace prefix by itself. You would use this over + `additionalNamespaces` in a context where getting a complete list of defined + namespaces is onerous. + + Note that you can use `additionalNamespaces` and `resolvePrefix` together if you + want. `additionalNamespaces` applies before `resolvePrefix`. + + The options `additionalNamespaces` and `resolvePrefix` are really meant to be + used for parsing fragments. However, saxes won't prevent you from using them + with `fragment: false`. Note that if you do this, your document may parse + without errors and yet be malformed because the document can refer to namespaces + which are not defined *in* the document. + + Of course, `additionalNamespaces` and `resolvePrefix` are used only if `xmlns` + is `true`. If you are parsing a fragment that does not use namespaces, there's + no point in setting these options. + + ### Performance Tips + + * saxes works faster on files that use newlines (``\u000A``) as end of line + markers than files that use other end of line markers (like ``\r`` or + ``\r\n``). The XML specification requires that conformant applications behave + as if all characters that are to be treated as end of line characters are + converted to ``\u000A`` prior to parsing. The optimal code path for saxes is a + file in which all end of line characters are already ``\u000A``. + + * Don't split Unicode strings you feed to saxes across surrogates. When you + naively split a string in JavaScript, you run the risk of splitting a Unicode + character into two surrogates. e.g. In the following example ``a`` and ``b`` + each contain half of a single Unicode character: ``const a = "\u{1F4A9}"[0]; + const b = "\u{1F4A9}"[1]`` If you feed such split surrogates to versions of + saxes prior to 4, you'd get errors. Saxes version 4 and over are able to + detect when a chunk of data ends with a surrogate and carry over the surrogate + to the next chunk. However this operation entails slicing and concatenating + strings. If you can feed your data in a way that does not split surrogates, + you should do it. (Obviously, feeding all the data at once with a single write + is fastest.) + + * Don't set event handlers you don't need. Saxes has always aimed to avoid doing + work that will just be tossed away but future improvements hope to do this + more aggressively. One way saxes knows whether or not some data is needed is + by checking whether a handler has been set for a specific event. + + ## FAQ + + Q. Why has saxes dropped support for limiting the size of data chunks passed to + event handlers? + + A. With sax you could set ``MAX_BUFFER_LENGTH`` to cause the parser to limit the + size of data chunks passed to event handlers. So if you ran into a span of text + above the limit, multiple ``text`` events with smaller data chunks were fired + instead of a single event with a large chunk. + + However, that functionality had some problematic characteristics. It had an + arbitrary default value. It was library-wide so all parsers created from a + single instance of the ``sax`` library shared it. This could potentially cause + conflicts among libraries running in the same VM but using sax for different + purposes. + + These issues could have been easily fixed, but there were larger issues. The + buffer limit arbitrarily applied to some events but not others. It would split + ``text``, ``cdata`` and ``script`` events. However, if a ``comment``, + ``doctype``, ``attribute`` or ``processing instruction`` were more than the + limit, the parser would generate an error and you were left picking up the + pieces. + + It was not intuitive to use. You'd think setting the limit to 1K would prevent + chunks bigger than 1K to be passed to event handlers. But that was not the + case. A comment in the source code told you that you might go over the limit if + you passed large chunks to ``write``. So if you want a 1K limit, don't pass 64K + chunks to ``write``. Fair enough. You know what limit you want so you can + control the size of the data you pass to ``write``. So you limit the chunks to + ``write`` to 1K at a time. Even if you do this, your event handlers may get data + chunks that are 2K in size. Suppose on the previous ``write`` the parser has + just finished processing an open tag, so it is ready for text. Your ``write`` + passes 1K of text. You are not above the limit yet, so no event is generated + yet. The next ``write`` passes another 1K of text. It so happens that sax checks + buffer limits only once per ``write``, after the chunk of data has been + processed. Now you've hit the limit and you get a ``text`` event with 2K of + data. So even if you limit your ``write`` calls to the buffer limit you've set, + you may still get events with chunks at twice the buffer size limit you've + specified. + + We may consider reinstating an equivalent functionality, provided that it + addresses the issues above and does not cause a huge performance drop for + use-case scenarios that don't need it. + +## set-function-length 1.2.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) Jordan Harband and contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## set-function-name 2.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) Jordan Harband and contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## set-proto 1.0.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## setimmediate 1.0.5 + +License: MIT. + +### LICENSE.txt + + Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## side-channel 1.1.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## side-channel-list 1.0.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## side-channel-map 1.0.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2024 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## side-channel-weakmap 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## stop-iteration-iterator 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## string_decoder 1.3.0 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## string.prototype.trim 1.2.11 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## string.prototype.trimend 1.0.10 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2017 Khaled Al-Ansari + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## string.prototype.trimstart 1.0.8 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2017 Khaled Al-Ansari + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## tar-stream 2.2.0 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 Mathias Buus + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## tmp 0.2.7 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2014 KARASZI István + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## traverse 0.3.10 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2010 James Halliday and contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## typed-array-buffer 1.0.3 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## typed-array-byte-length 1.0.3 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## typed-array-byte-offset 1.0.5 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## typed-array-length 1.0.8 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## typedarray.prototype.slice 1.0.6 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2023 ECMAScript Shims + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## unbox-primitive 1.1.0 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## unzipper 0.10.14 + +License: MIT. + +### LICENSE + + Copyright (c) 2012 - 2013 Near Infinity Corporation + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + --- + + Commits in this fork are (c) Ziggy Jonsson (ziggy.jonsson.nyc@gmail.com) + and fall under same licence structure as the original repo (MIT) + +## isarray 1.0.0 + +License: MIT. + +### README.md (upstream notice) + + # isarray + + `Array#isArray` for older browsers. + + [![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) + [![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) + + [![browser support](https://ci.testling.com/juliangruber/isarray.png) + ](https://ci.testling.com/juliangruber/isarray) + + ## Usage + + ```js + var isArray = require('isarray'); + + console.log(isArray([])); // => true + console.log(isArray({})); // => false + ``` + + ## Installation + + With [npm](http://npmjs.org) do + + ```bash + $ npm install isarray + ``` + + Then bundle for the browser with + [browserify](https://github.com/substack/browserify). + + With [component](http://component.io) do + + ```bash + $ component install juliangruber/isarray + ``` + + ## License + + (MIT) + + Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## readable-stream 2.3.8 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## safe-buffer 5.1.2 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) Feross Aboukhadijeh + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +## string_decoder 1.1.1 + +License: MIT. + +### LICENSE + + Node.js is licensed for use as follows: + + """ + Copyright Node.js contributors. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + + This license applies to parts of Node.js originating from the + https://github.com/joyent/node repository: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +## util-deprecate 1.0.2 + +License: MIT. + +### LICENSE + + (The MIT License) + + Copyright (c) 2014 Nathan Rajlich + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +## uuid 8.3.2 + +License: MIT. + +### LICENSE.md + + The MIT License (MIT) + + Copyright (c) 2010-2020 Robert Kieffer and other contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## which-boxed-primitive 1.1.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## which-builtin-type 1.2.1 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2020 ECMAScript Shims + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## which-collection 1.0.2 + +License: MIT. + +### LICENSE + + MIT License + + Copyright (c) 2019 Inspect JS + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## which-typed-array 1.1.24 + +License: MIT. + +### LICENSE + + The MIT License (MIT) + + Copyright (c) 2015 Jordan Harband + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +## wrappy 1.0.2 + +License: ISC. + +### LICENSE + + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +## xmlchars 2.2.0 + +License: MIT. + +### LICENSE + + Copyright Louis-Dominique Dubeau and contributors to xmlchars + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## zip-stream 4.1.1 + +License: MIT. + +### LICENSE + + Copyright (c) 2014 Chris Talkington, contributors. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +## archiver-utils 3.0.4 + +License: MIT. + +### LICENSE + + Copyright (c) 2015 Chris Talkington. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. diff --git a/examples/deerflow-extension-office-preview/build.mjs b/examples/deerflow-extension-office-preview/build.mjs new file mode 100644 index 0000000000..83fcb5acd0 --- /dev/null +++ b/examples/deerflow-extension-office-preview/build.mjs @@ -0,0 +1,45 @@ +import { build } from "esbuild"; +import { readdir, rm, writeFile } from "node:fs/promises"; +const root = "deerflow_extension_office_preview"; +await rm(new URL(`./${root}/static/dist/`, import.meta.url), { + recursive: true, + force: true, +}); +await build({ + entryPoints: { index: "ui/index.js" }, + bundle: true, + splitting: true, + format: "esm", + platform: "browser", + target: "es2022", + outdir: `${root}/static/dist`, + entryNames: "[dir]/[name]", + chunkNames: "chunks/[name]-[hash]", + outExtension: { ".js": ".mjs" }, + minify: true, + legalComments: "eof", +}); +// Gateway assets carry CSP: sandbox. Keep this worker self-contained: a worker +// with an opaque origin cannot fetch additional authenticated module chunks. +await build({ + entryPoints: ["ui/office-worker.js"], + bundle: true, + format: "esm", + platform: "browser", + target: "es2022", + outfile: `${root}/static/dist/chunks/office-worker.mjs`, + minify: true, + legalComments: "eof", +}); +const files = (await readdir(`${root}/static/dist`, { recursive: true })) + .filter((p) => /\.mjs$/.test(p)) + .map((p) => `static/dist/${p.replaceAll("\\", "/")}`) + .sort(); +await writeFile( + `${root}/ui_manifest.json`, + JSON.stringify( + { schema_version: 1, entry: "static/dist/index.mjs", files }, + null, + 2, + ) + "\n", +); diff --git a/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/__init__.py b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/__init__.py new file mode 100644 index 0000000000..8531f988d7 --- /dev/null +++ b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/__init__.py @@ -0,0 +1,24 @@ +"""Browser-only previews; all file reads retain the host artifact authorization.""" + +from pathlib import Path + +from deerflow_extension_api import extension +from deerflow_extension_api.plugins import BrowserAssets, PluginContribution + + +@extension(api="0.2.3", name="office-preview") +def install(registry, config): + enabled = config.get("enabled", True) + if type(enabled) is not bool: + raise ValueError("enabled must be a boolean") + accepted = registry.plugin( + PluginContribution( + namespace="office-preview", + title="Office preview / Office 文件预览", + description="Read Excel, Word and PowerPoint files in the artifact panel.", + enabled=enabled, + frontend=BrowserAssets(module="office-preview", root=Path(__file__).parent), + ) + ) + if not accepted: + raise RuntimeError("This host does not support browser plugin contributions") diff --git a/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/deerflow-extension.json b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/deerflow-extension.json new file mode 100644 index 0000000000..b956f5a3c0 --- /dev/null +++ b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/deerflow-extension.json @@ -0,0 +1,51 @@ +{ + "schema_version": 1, + "id": "office-preview", + "locales": { + "en-US": { + "title": "Office file preview", + "description": "Preview Excel, Word and PowerPoint files in the side panel with an installed browser extension.", + "usage": [ + { + "title": "Open an Office file", + "description": "Open an XLSX, DOCX or PPTX attachment or generated file in the right-hand reader." + }, + { + "title": "Search and navigate", + "description": "Search displayed text and use worksheet tabs, page controls, outlines or thumbnails. Search shows up to 2,000 matches." + }, + { + "title": "Download the original", + "description": "Download the original when a format is unsupported or a file exceeds preview limits." + } + ], + "requirements": [ + "Ask your administrator to install the Office preview extension, restart Gateway and refresh the browser.", + "Read-only XLSX, DOCX and PPTX files are supported, subject to the resource limits in the package guide." + ] + }, + "zh-CN": { + "title": "Office 文件预览", + "description": "安装浏览器扩展后,在右侧面板预览 Excel、Word 和 PowerPoint 文件。", + "usage": [ + { + "title": "打开 Office 文件", + "description": "在右侧阅读面板打开 XLSX、DOCX 或 PPTX 附件或生成的文件。" + }, + { + "title": "搜索与导航", + "description": "搜索显示的文字,并使用工作表标签、翻页、大纲或缩略图导航;最多显示 2,000 处匹配。" + }, + { + "title": "下载原始文件", + "description": "文件格式不受支持或超过预览限制时,可下载原始文件。" + } + ], + "requirements": [ + "请管理员安装 Office 预览扩展、重启 Gateway,并刷新浏览器。", + "支持只读预览 XLSX、DOCX 和 PPTX,资源限制详见扩展使用说明。" + ] + } + }, + "docs_url": "https://github.com/bytedance/deer-flow/tree/main/examples/deerflow-extension-office-preview#readme" +} diff --git a/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/chunk-OVILVMKS.mjs b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/chunk-OVILVMKS.mjs new file mode 100644 index 0000000000..934ffc3461 --- /dev/null +++ b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/chunk-OVILVMKS.mjs @@ -0,0 +1 @@ +var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c}; diff --git a/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/docx-preview-VUQTZ67Q.mjs b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/docx-preview-VUQTZ67Q.mjs new file mode 100644 index 0000000000..c60da45a07 --- /dev/null +++ b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/docx-preview-VUQTZ67Q.mjs @@ -0,0 +1,46 @@ +import{a as Et,b as Ge,c as Xe}from"./chunk-OVILVMKS.mjs";var Ce=Ge((Se,jt)=>{(function(a){typeof Se=="object"&&typeof jt<"u"?jt.exports=a():typeof define=="function"&&define.amd?define([],a):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=a()})(function(){return(function a(e,t,r){function n(d,p){if(!t[d]){if(!e[d]){var k=typeof Et=="function"&&Et;if(!p&&k)return k(d,!0);if(s)return s(d,!0);var y=new Error("Cannot find module '"+d+"'");throw y.code="MODULE_NOT_FOUND",y}var c=t[d]={exports:{}};e[d][0].call(c.exports,function(g){var h=e[d][1][g];return n(h||g)},c,c.exports,a,e,t,r)}return t[d].exports}for(var s=typeof Et=="function"&&Et,o=0;o>2,c=(3&d)<<4|p>>4,g=1>6:64,h=2>4,p=(15&y)<<4|(c=s.indexOf(o.charAt(h++)))>>2,k=(3&c)<<6|(g=s.indexOf(o.charAt(h++))),v[m++]=d,c!==64&&(v[m++]=p),g!==64&&(v[m++]=k);return v}},{"./support":30,"./utils":32}],2:[function(a,e,t){"use strict";var r=a("./external"),n=a("./stream/DataWorker"),s=a("./stream/Crc32Probe"),o=a("./stream/DataLengthProbe");function d(p,k,y,c,g){this.compressedSize=p,this.uncompressedSize=k,this.crc32=y,this.compression=c,this.compressedContent=g}d.prototype={getContentWorker:function(){var p=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),k=this;return p.on("end",function(){if(this.streamInfo.data_length!==k.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(p,k,y){return p.pipe(new s).pipe(new o("uncompressedSize")).pipe(k.compressWorker(y)).pipe(new o("compressedSize")).withStreamInfo("compression",k)},e.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,e,t){"use strict";var r=a("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},t.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,e,t){"use strict";var r=a("./utils"),n=(function(){for(var s,o=[],d=0;d<256;d++){s=d;for(var p=0;p<8;p++)s=1&s?3988292384^s>>>1:s>>>1;o[d]=s}return o})();e.exports=function(s,o){return s!==void 0&&s.length?r.getTypeOf(s)!=="string"?(function(d,p,k,y){var c=n,g=y+k;d^=-1;for(var h=y;h>>8^c[255&(d^p[h])];return-1^d})(0|o,s,s.length,0):(function(d,p,k,y){var c=n,g=y+k;d^=-1;for(var h=y;h>>8^c[255&(d^p.charCodeAt(h))];return-1^d})(0|o,s,s.length,0):0}},{"./utils":32}],5:[function(a,e,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(a,e,t){"use strict";var r=null;r=typeof Promise<"u"?Promise:a("lie"),e.exports={Promise:r}},{lie:37}],7:[function(a,e,t){"use strict";var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",n=a("pako"),s=a("./utils"),o=a("./stream/GenericWorker"),d=r?"uint8array":"array";function p(k,y){o.call(this,"FlateWorker/"+k),this._pako=null,this._pakoAction=k,this._pakoOptions=y,this.meta={}}t.magic="\b\0",s.inherits(p,o),p.prototype.processChunk=function(k){this.meta=k.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(d,k.data),!1)},p.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var k=this;this._pako.onData=function(y){k.push({data:y,meta:k.meta})}},t.compressWorker=function(k){return new p("Deflate",k)},t.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,e,t){"use strict";function r(c,g){var h,m="";for(h=0;h>>=8;return m}function n(c,g,h,m,u,v){var S,x,E=c.file,F=c.compression,R=v!==d.utf8encode,j=s.transformTo("string",v(E.name)),B=s.transformTo("string",d.utf8encode(E.name)),Z=E.comment,Y=s.transformTo("string",v(Z)),_=s.transformTo("string",d.utf8encode(Z)),T=B.length!==E.name.length,l=_.length!==Z.length,O="",Q="",U="",tt=E.dir,$=E.date,J={crc32:0,compressedSize:0,uncompressedSize:0};g&&!h||(J.crc32=c.crc32,J.compressedSize=c.compressedSize,J.uncompressedSize=c.uncompressedSize);var z=0;g&&(z|=8),R||!T&&!l||(z|=2048);var P=0,K=0;tt&&(P|=16),u==="UNIX"?(K=798,P|=(function(V,ot){var ft=V;return V||(ft=ot?16893:33204),(65535&ft)<<16})(E.unixPermissions,tt)):(K=20,P|=(function(V){return 63&(V||0)})(E.dosPermissions)),S=$.getUTCHours(),S<<=6,S|=$.getUTCMinutes(),S<<=5,S|=$.getUTCSeconds()/2,x=$.getUTCFullYear()-1980,x<<=4,x|=$.getUTCMonth()+1,x<<=5,x|=$.getUTCDate(),T&&(Q=r(1,1)+r(p(j),4)+B,O+="up"+r(Q.length,2)+Q),l&&(U=r(1,1)+r(p(Y),4)+_,O+="uc"+r(U.length,2)+U);var G="";return G+=` +\0`,G+=r(z,2),G+=F.magic,G+=r(S,2),G+=r(x,2),G+=r(J.crc32,4),G+=r(J.compressedSize,4),G+=r(J.uncompressedSize,4),G+=r(j.length,2),G+=r(O.length,2),{fileRecord:k.LOCAL_FILE_HEADER+G+j+O,dirRecord:k.CENTRAL_FILE_HEADER+r(K,2)+G+r(Y.length,2)+"\0\0\0\0"+r(P,4)+r(m,4)+j+O+Y}}var s=a("../utils"),o=a("../stream/GenericWorker"),d=a("../utf8"),p=a("../crc32"),k=a("../signature");function y(c,g,h,m){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=h,this.encodeFileName=m,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(y,o),y.prototype.push=function(c){var g=c.meta.percent||0,h=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,o.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:h?(g+100*(h-m-1))/h:100}}))},y.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var g=this.streamFiles&&!c.file.dir;if(g){var h=n(c,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},y.prototype.closedSource=function(c){this.accumulate=!1;var g=this.streamFiles&&!c.file.dir,h=n(c,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),g)this.push({data:(function(m){return k.DATA_DESCRIPTOR+r(m.crc32,4)+r(m.compressedSize,4)+r(m.uncompressedSize,4)})(c),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},y.prototype.flush=function(){for(var c=this.bytesWritten,g=0;g=this.index;o--)d=(d<<8)+this.byteAt(o);return this.index+=s,d},readString:function(s){return r.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},e.exports=n},{"../utils":32}],19:[function(a,e,t){"use strict";var r=a("./Uint8ArrayReader");function n(s){r.call(this,s)}a("../utils").inherits(n,r),n.prototype.readData=function(s){this.checkOffset(s);var o=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,o},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,e,t){"use strict";var r=a("./DataReader");function n(s){r.call(this,s)}a("../utils").inherits(n,r),n.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},n.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},n.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},n.prototype.readData=function(s){this.checkOffset(s);var o=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,o},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(a,e,t){"use strict";var r=a("./ArrayReader");function n(s){r.call(this,s)}a("../utils").inherits(n,r),n.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var o=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,o},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(a,e,t){"use strict";var r=a("../utils"),n=a("../support"),s=a("./ArrayReader"),o=a("./StringReader"),d=a("./NodeBufferReader"),p=a("./Uint8ArrayReader");e.exports=function(k){var y=r.getTypeOf(k);return r.checkSupport(y),y!=="string"||n.uint8array?y==="nodebuffer"?new d(k):n.uint8array?new p(r.transformTo("uint8array",k)):new s(r.transformTo("array",k)):new o(k)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,e,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,e,t){"use strict";var r=a("./GenericWorker"),n=a("../utils");function s(o){r.call(this,"ConvertWorker to "+o),this.destType=o}n.inherits(s,r),s.prototype.processChunk=function(o){this.push({data:n.transformTo(this.destType,o.data),meta:o.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(a,e,t){"use strict";var r=a("./GenericWorker"),n=a("../crc32");function s(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(s,r),s.prototype.processChunk=function(o){this.streamInfo.crc32=n(o.data,this.streamInfo.crc32||0),this.push(o)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,e,t){"use strict";var r=a("../utils"),n=a("./GenericWorker");function s(o){n.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}r.inherits(s,n),s.prototype.processChunk=function(o){if(o){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+o.data.length}n.prototype.processChunk.call(this,o)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(a,e,t){"use strict";var r=a("../utils"),n=a("./GenericWorker");function s(o){n.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,o.then(function(p){d.dataIsReady=!0,d.data=p,d.max=p&&p.length||0,d.type=r.getTypeOf(p),d.isPaused||d._tickAndRepeat()},function(p){d.error(p)})}r.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var o=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,d);break;case"uint8array":o=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":o=this.data.slice(this.index,d)}return this.index=d,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(a,e,t){"use strict";function r(n){this.name=n||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,s){return this._listeners[n].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,s){if(this._listeners[n])for(var o=0;o "+n:n}},e.exports=r},{}],29:[function(a,e,t){"use strict";var r=a("../utils"),n=a("./ConvertWorker"),s=a("./GenericWorker"),o=a("../base64"),d=a("../support"),p=a("../external"),k=null;if(d.nodestream)try{k=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function y(g,h){return new p.Promise(function(m,u){var v=[],S=g._internalType,x=g._outputType,E=g._mimeType;g.on("data",function(F,R){v.push(F),h&&h(R)}).on("error",function(F){v=[],u(F)}).on("end",function(){try{var F=(function(R,j,B){switch(R){case"blob":return r.newBlob(r.transformTo("arraybuffer",j),B);case"base64":return o.encode(j);default:return r.transformTo(R,j)}})(x,(function(R,j){var B,Z=0,Y=null,_=0;for(B=0;B"u")t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=new Blob([r],{type:"application/zip"}).size===0}catch{try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(r),t.blob=n.getBlob("application/zip").size===0}catch{t.blob=!1}}}try{t.nodestream=!!a("readable-stream").Readable}catch{t.nodestream=!1}},{"readable-stream":16}],31:[function(a,e,t){"use strict";for(var r=a("./utils"),n=a("./support"),s=a("./nodejsUtils"),o=a("./stream/GenericWorker"),d=new Array(256),p=0;p<256;p++)d[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;d[254]=d[254]=1;function k(){o.call(this,"utf-8 decode"),this.leftOver=null}function y(){o.call(this,"utf-8 encode")}t.utf8encode=function(c){return n.nodebuffer?s.newBufferFrom(c,"utf-8"):(function(g){var h,m,u,v,S,x=g.length,E=0;for(v=0;v>>6:(m<65536?h[S++]=224|m>>>12:(h[S++]=240|m>>>18,h[S++]=128|m>>>12&63),h[S++]=128|m>>>6&63),h[S++]=128|63&m);return h})(c)},t.utf8decode=function(c){return n.nodebuffer?r.transformTo("nodebuffer",c).toString("utf-8"):(function(g){var h,m,u,v,S=g.length,x=new Array(2*S);for(h=m=0;h>10&1023,x[m++]=56320|1023&u)}return x.length!==m&&(x.subarray?x=x.subarray(0,m):x.length=m),r.applyFromCharCode(x)})(c=r.transformTo(n.uint8array?"uint8array":"array",c))},r.inherits(k,o),k.prototype.processChunk=function(c){var g=r.transformTo(n.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var h=g;(g=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),g.set(h,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var m=(function(v,S){var x;for((S=S||v.length)>v.length&&(S=v.length),x=S-1;0<=x&&(192&v[x])==128;)x--;return x<0||x===0?S:x+d[v[x]]>S?x:S})(g),u=g;m!==g.length&&(n.uint8array?(u=g.subarray(0,m),this.leftOver=g.subarray(m,g.length)):(u=g.slice(0,m),this.leftOver=g.slice(m,g.length))),this.push({data:t.utf8decode(u),meta:c.meta})},k.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=k,r.inherits(y,o),y.prototype.processChunk=function(c){this.push({data:t.utf8encode(c.data),meta:c.meta})},t.Utf8EncodeWorker=y},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,e,t){"use strict";var r=a("./support"),n=a("./base64"),s=a("./nodejsUtils"),o=a("./external");function d(h){return h}function p(h,m){for(var u=0;u>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var g,h,m,u=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4>>6:(c<65536?y[m++]=224|c>>>12:(y[m++]=240|c>>>18,y[m++]=128|c>>>12&63),y[m++]=128|c>>>6&63),y[m++]=128|63&c);return y},t.buf2binstring=function(k){return p(k,k.length)},t.binstring2buf=function(k){for(var y=new r.Buf8(k.length),c=0,g=y.length;c>10&1023,v[g++]=56320|1023&h)}return p(v,g)},t.utf8border=function(k,y){var c;for((y=y||k.length)>k.length&&(y=k.length),c=y-1;0<=c&&(192&k[c])==128;)c--;return c<0||c===0?y:c+o[k[c]]>y?c:y}},{"./common":41}],43:[function(a,e,t){"use strict";e.exports=function(r,n,s,o){for(var d=65535&r|0,p=r>>>16&65535|0,k=0;s!==0;){for(s-=k=2e3>>1:n>>>1;s[o]=n}return s})();e.exports=function(n,s,o,d){var p=r,k=d+o;n^=-1;for(var y=d;y>>8^p[255&(n^s[y])];return-1^n}},{}],46:[function(a,e,t){"use strict";var r,n=a("../utils/common"),s=a("./trees"),o=a("./adler32"),d=a("./crc32"),p=a("./messages"),k=0,y=4,c=0,g=-2,h=-1,m=4,u=2,v=8,S=9,x=286,E=30,F=19,R=2*x+1,j=15,B=3,Z=258,Y=Z+B+1,_=42,T=113,l=1,O=2,Q=3,U=4;function tt(i,I){return i.msg=p[I],I}function $(i){return(i<<1)-(4i.avail_out&&(M=i.avail_out),M!==0&&(n.arraySet(i.output,I.pending_buf,I.pending_out,M,i.next_out),i.next_out+=M,I.pending_out+=M,i.total_out+=M,i.avail_out-=M,I.pending-=M,I.pending===0&&(I.pending_out=0))}function P(i,I){s._tr_flush_block(i,0<=i.block_start?i.block_start:-1,i.strstart-i.block_start,I),i.block_start=i.strstart,z(i.strm)}function K(i,I){i.pending_buf[i.pending++]=I}function G(i,I){i.pending_buf[i.pending++]=I>>>8&255,i.pending_buf[i.pending++]=255&I}function V(i,I){var M,b,f=i.max_chain_length,C=i.strstart,L=i.prev_length,D=i.nice_match,A=i.strstart>i.w_size-Y?i.strstart-(i.w_size-Y):0,H=i.window,X=i.w_mask,W=i.prev,q=i.strstart+Z,it=H[C+L-1],nt=H[C+L];i.prev_length>=i.good_match&&(f>>=2),D>i.lookahead&&(D=i.lookahead);do if(H[(M=I)+L]===nt&&H[M+L-1]===it&&H[M]===H[C]&&H[++M]===H[C+1]){C+=2,M++;do;while(H[++C]===H[++M]&&H[++C]===H[++M]&&H[++C]===H[++M]&&H[++C]===H[++M]&&H[++C]===H[++M]&&H[++C]===H[++M]&&H[++C]===H[++M]&&H[++C]===H[++M]&&CA&&--f!=0);return L<=i.lookahead?L:i.lookahead}function ot(i){var I,M,b,f,C,L,D,A,H,X,W=i.w_size;do{if(f=i.window_size-i.lookahead-i.strstart,i.strstart>=W+(W-Y)){for(n.arraySet(i.window,i.window,W,W,0),i.match_start-=W,i.strstart-=W,i.block_start-=W,I=M=i.hash_size;b=i.head[--I],i.head[I]=W<=b?b-W:0,--M;);for(I=M=W;b=i.prev[--I],i.prev[I]=W<=b?b-W:0,--M;);f+=W}if(i.strm.avail_in===0)break;if(L=i.strm,D=i.window,A=i.strstart+i.lookahead,H=f,X=void 0,X=L.avail_in,H=B)for(C=i.strstart-i.insert,i.ins_h=i.window[C],i.ins_h=(i.ins_h<=B&&(i.ins_h=(i.ins_h<=B)if(b=s._tr_tally(i,i.strstart-i.match_start,i.match_length-B),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=B){for(i.match_length--;i.strstart++,i.ins_h=(i.ins_h<=B&&(i.ins_h=(i.ins_h<=B&&i.match_length<=i.prev_length){for(f=i.strstart+i.lookahead-B,b=s._tr_tally(i,i.strstart-1-i.prev_match,i.prev_length-B),i.lookahead-=i.prev_length-1,i.prev_length-=2;++i.strstart<=f&&(i.ins_h=(i.ins_h<i.pending_buf_size-5&&(M=i.pending_buf_size-5);;){if(i.lookahead<=1){if(ot(i),i.lookahead===0&&I===k)return l;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var b=i.block_start+M;if((i.strstart===0||i.strstart>=b)&&(i.lookahead=i.strstart-b,i.strstart=b,P(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-Y&&(P(i,!1),i.strm.avail_out===0))return l}return i.insert=0,I===y?(P(i,!0),i.strm.avail_out===0?Q:U):(i.strstart>i.block_start&&(P(i,!1),i.strm.avail_out),l)}),new at(4,4,8,4,ft),new at(4,5,16,8,ft),new at(4,6,32,32,ft),new at(4,4,16,16,rt),new at(8,16,32,32,rt),new at(8,16,128,128,rt),new at(8,32,128,256,rt),new at(32,128,258,1024,rt),new at(32,258,258,4096,rt)],t.deflateInit=function(i,I){return gt(i,I,v,15,8,0)},t.deflateInit2=gt,t.deflateReset=bt,t.deflateResetKeep=lt,t.deflateSetHeader=function(i,I){return i&&i.state?i.state.wrap!==2?g:(i.state.gzhead=I,c):g},t.deflate=function(i,I){var M,b,f,C;if(!i||!i.state||5>8&255),K(b,b.gzhead.time>>16&255),K(b,b.gzhead.time>>24&255),K(b,b.level===9?2:2<=b.strategy||b.level<2?4:0),K(b,255&b.gzhead.os),b.gzhead.extra&&b.gzhead.extra.length&&(K(b,255&b.gzhead.extra.length),K(b,b.gzhead.extra.length>>8&255)),b.gzhead.hcrc&&(i.adler=d(i.adler,b.pending_buf,b.pending,0)),b.gzindex=0,b.status=69):(K(b,0),K(b,0),K(b,0),K(b,0),K(b,0),K(b,b.level===9?2:2<=b.strategy||b.level<2?4:0),K(b,3),b.status=T);else{var L=v+(b.w_bits-8<<4)<<8;L|=(2<=b.strategy||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6,b.strstart!==0&&(L|=32),L+=31-L%31,b.status=T,G(b,L),b.strstart!==0&&(G(b,i.adler>>>16),G(b,65535&i.adler)),i.adler=1}if(b.status===69)if(b.gzhead.extra){for(f=b.pending;b.gzindex<(65535&b.gzhead.extra.length)&&(b.pending!==b.pending_buf_size||(b.gzhead.hcrc&&b.pending>f&&(i.adler=d(i.adler,b.pending_buf,b.pending-f,f)),z(i),f=b.pending,b.pending!==b.pending_buf_size));)K(b,255&b.gzhead.extra[b.gzindex]),b.gzindex++;b.gzhead.hcrc&&b.pending>f&&(i.adler=d(i.adler,b.pending_buf,b.pending-f,f)),b.gzindex===b.gzhead.extra.length&&(b.gzindex=0,b.status=73)}else b.status=73;if(b.status===73)if(b.gzhead.name){f=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>f&&(i.adler=d(i.adler,b.pending_buf,b.pending-f,f)),z(i),f=b.pending,b.pending===b.pending_buf_size)){C=1;break}C=b.gzindexf&&(i.adler=d(i.adler,b.pending_buf,b.pending-f,f)),C===0&&(b.gzindex=0,b.status=91)}else b.status=91;if(b.status===91)if(b.gzhead.comment){f=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>f&&(i.adler=d(i.adler,b.pending_buf,b.pending-f,f)),z(i),f=b.pending,b.pending===b.pending_buf_size)){C=1;break}C=b.gzindexf&&(i.adler=d(i.adler,b.pending_buf,b.pending-f,f)),C===0&&(b.status=103)}else b.status=103;if(b.status===103&&(b.gzhead.hcrc?(b.pending+2>b.pending_buf_size&&z(i),b.pending+2<=b.pending_buf_size&&(K(b,255&i.adler),K(b,i.adler>>8&255),i.adler=0,b.status=T)):b.status=T),b.pending!==0){if(z(i),i.avail_out===0)return b.last_flush=-1,c}else if(i.avail_in===0&&$(I)<=$(M)&&I!==y)return tt(i,-5);if(b.status===666&&i.avail_in!==0)return tt(i,-5);if(i.avail_in!==0||b.lookahead!==0||I!==k&&b.status!==666){var D=b.strategy===2?(function(A,H){for(var X;;){if(A.lookahead===0&&(ot(A),A.lookahead===0)){if(H===k)return l;break}if(A.match_length=0,X=s._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,X&&(P(A,!1),A.strm.avail_out===0))return l}return A.insert=0,H===y?(P(A,!0),A.strm.avail_out===0?Q:U):A.last_lit&&(P(A,!1),A.strm.avail_out===0)?l:O})(b,I):b.strategy===3?(function(A,H){for(var X,W,q,it,nt=A.window;;){if(A.lookahead<=Z){if(ot(A),A.lookahead<=Z&&H===k)return l;if(A.lookahead===0)break}if(A.match_length=0,A.lookahead>=B&&0A.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=B?(X=s._tr_tally(A,1,A.match_length-B),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(X=s._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),X&&(P(A,!1),A.strm.avail_out===0))return l}return A.insert=0,H===y?(P(A,!0),A.strm.avail_out===0?Q:U):A.last_lit&&(P(A,!1),A.strm.avail_out===0)?l:O})(b,I):r[b.level].func(b,I);if(D!==Q&&D!==U||(b.status=666),D===l||D===Q)return i.avail_out===0&&(b.last_flush=-1),c;if(D===O&&(I===1?s._tr_align(b):I!==5&&(s._tr_stored_block(b,0,0,!1),I===3&&(J(b.head),b.lookahead===0&&(b.strstart=0,b.block_start=0,b.insert=0))),z(i),i.avail_out===0))return b.last_flush=-1,c}return I!==y?c:b.wrap<=0?1:(b.wrap===2?(K(b,255&i.adler),K(b,i.adler>>8&255),K(b,i.adler>>16&255),K(b,i.adler>>24&255),K(b,255&i.total_in),K(b,i.total_in>>8&255),K(b,i.total_in>>16&255),K(b,i.total_in>>24&255)):(G(b,i.adler>>>16),G(b,65535&i.adler)),z(i),0=M.w_size&&(C===0&&(J(M.head),M.strstart=0,M.block_start=0,M.insert=0),H=new n.Buf8(M.w_size),n.arraySet(H,I,X-M.w_size,M.w_size,0),I=H,X=M.w_size),L=i.avail_in,D=i.next_in,A=i.input,i.avail_in=X,i.next_in=0,i.input=I,ot(M);M.lookahead>=B;){for(b=M.strstart,f=M.lookahead-(B-1);M.ins_h=(M.ins_h<>>=B=j>>>24,S-=B,(B=j>>>16&255)===0)O[p++]=65535&j;else{if(!(16&B)){if((64&B)==0){j=x[(65535&j)+(v&(1<>>=B,S-=B),S<15&&(v+=l[o++]<>>=B=j>>>24,S-=B,!(16&(B=j>>>16&255))){if((64&B)==0){j=E[(65535&j)+(v&(1<>>=B,S-=B,(B=p-k)>3,v&=(1<<(S-=Z<<3))-1,r.next_in=o,r.next_out=p,r.avail_in=o>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(_){var T;return _&&_.state?(T=_.state,_.total_in=_.total_out=T.total=0,_.msg="",T.wrap&&(_.adler=1&T.wrap),T.mode=g,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new r.Buf32(h),T.distcode=T.distdyn=new r.Buf32(m),T.sane=1,T.back=-1,y):c}function x(_){var T;return _&&_.state?((T=_.state).wsize=0,T.whave=0,T.wnext=0,S(_)):c}function E(_,T){var l,O;return _&&_.state?(O=_.state,T<0?(l=0,T=-T):(l=1+(T>>4),T<48&&(T&=15)),T&&(T<8||15=U.wsize?(r.arraySet(U.window,T,l-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(O<(Q=U.wsize-U.wnext)&&(Q=O),r.arraySet(U.window,T,l-O,Q,U.wnext),(O-=Q)?(r.arraySet(U.window,T,l-O,O,0),U.wnext=O,U.whave=U.wsize):(U.wnext+=Q,U.wnext===U.wsize&&(U.wnext=0),U.whave>>8&255,l.check=s(l.check,C,2,0),P=z=0,l.mode=2;break}if(l.flags=0,l.head&&(l.head.done=!1),!(1&l.wrap)||(((255&z)<<8)+(z>>8))%31){_.msg="incorrect header check",l.mode=30;break}if((15&z)!=8){_.msg="unknown compression method",l.mode=30;break}if(P-=4,i=8+(15&(z>>>=4)),l.wbits===0)l.wbits=i;else if(i>l.wbits){_.msg="invalid window size",l.mode=30;break}l.dmax=1<>8&1),512&l.flags&&(C[0]=255&z,C[1]=z>>>8&255,l.check=s(l.check,C,2,0)),P=z=0,l.mode=3;case 3:for(;P<32;){if($===0)break t;$--,z+=O[U++]<>>8&255,C[2]=z>>>16&255,C[3]=z>>>24&255,l.check=s(l.check,C,4,0)),P=z=0,l.mode=4;case 4:for(;P<16;){if($===0)break t;$--,z+=O[U++]<>8),512&l.flags&&(C[0]=255&z,C[1]=z>>>8&255,l.check=s(l.check,C,2,0)),P=z=0,l.mode=5;case 5:if(1024&l.flags){for(;P<16;){if($===0)break t;$--,z+=O[U++]<>>8&255,l.check=s(l.check,C,2,0)),P=z=0}else l.head&&(l.head.extra=null);l.mode=6;case 6:if(1024&l.flags&&($<(V=l.length)&&(V=$),V&&(l.head&&(i=l.head.extra_len-l.length,l.head.extra||(l.head.extra=new Array(l.head.extra_len)),r.arraySet(l.head.extra,O,U,V,i)),512&l.flags&&(l.check=s(l.check,O,V,U)),$-=V,U+=V,l.length-=V),l.length))break t;l.length=0,l.mode=7;case 7:if(2048&l.flags){if($===0)break t;for(V=0;i=O[U+V++],l.head&&i&&l.length<65536&&(l.head.name+=String.fromCharCode(i)),i&&V<$;);if(512&l.flags&&(l.check=s(l.check,O,V,U)),$-=V,U+=V,i)break t}else l.head&&(l.head.name=null);l.length=0,l.mode=8;case 8:if(4096&l.flags){if($===0)break t;for(V=0;i=O[U+V++],l.head&&i&&l.length<65536&&(l.head.comment+=String.fromCharCode(i)),i&&V<$;);if(512&l.flags&&(l.check=s(l.check,O,V,U)),$-=V,U+=V,i)break t}else l.head&&(l.head.comment=null);l.mode=9;case 9:if(512&l.flags){for(;P<16;){if($===0)break t;$--,z+=O[U++]<>9&1,l.head.done=!0),_.adler=l.check=0,l.mode=12;break;case 10:for(;P<32;){if($===0)break t;$--,z+=O[U++]<>>=7&P,P-=7&P,l.mode=27;break}for(;P<3;){if($===0)break t;$--,z+=O[U++]<>>=1)){case 0:l.mode=14;break;case 1:if(Z(l),l.mode=20,T!==6)break;z>>>=2,P-=2;break t;case 2:l.mode=17;break;case 3:_.msg="invalid block type",l.mode=30}z>>>=2,P-=2;break;case 14:for(z>>>=7&P,P-=7&P;P<32;){if($===0)break t;$--,z+=O[U++]<>>16^65535)){_.msg="invalid stored block lengths",l.mode=30;break}if(l.length=65535&z,P=z=0,l.mode=15,T===6)break t;case 15:l.mode=16;case 16:if(V=l.length){if($>>=5,P-=5,l.ndist=1+(31&z),z>>>=5,P-=5,l.ncode=4+(15&z),z>>>=4,P-=4,286>>=3,P-=3}for(;l.have<19;)l.lens[L[l.have++]]=0;if(l.lencode=l.lendyn,l.lenbits=7,M={bits:l.lenbits},I=d(0,l.lens,0,19,l.lencode,0,l.work,M),l.lenbits=M.bits,I){_.msg="invalid code lengths set",l.mode=30;break}l.have=0,l.mode=19;case 19:for(;l.have>>16&255,dt=65535&f,!((rt=f>>>24)<=P);){if($===0)break t;$--,z+=O[U++]<>>=rt,P-=rt,l.lens[l.have++]=dt;else{if(dt===16){for(b=rt+2;P>>=rt,P-=rt,l.have===0){_.msg="invalid bit length repeat",l.mode=30;break}i=l.lens[l.have-1],V=3+(3&z),z>>>=2,P-=2}else if(dt===17){for(b=rt+3;P>>=rt)),z>>>=3,P-=3}else{for(b=rt+7;P>>=rt)),z>>>=7,P-=7}if(l.have+V>l.nlen+l.ndist){_.msg="invalid bit length repeat",l.mode=30;break}for(;V--;)l.lens[l.have++]=i}}if(l.mode===30)break;if(l.lens[256]===0){_.msg="invalid code -- missing end-of-block",l.mode=30;break}if(l.lenbits=9,M={bits:l.lenbits},I=d(p,l.lens,0,l.nlen,l.lencode,0,l.work,M),l.lenbits=M.bits,I){_.msg="invalid literal/lengths set",l.mode=30;break}if(l.distbits=6,l.distcode=l.distdyn,M={bits:l.distbits},I=d(k,l.lens,l.nlen,l.ndist,l.distcode,0,l.work,M),l.distbits=M.bits,I){_.msg="invalid distances set",l.mode=30;break}if(l.mode=20,T===6)break t;case 20:l.mode=21;case 21:if(6<=$&&258<=J){_.next_out=tt,_.avail_out=J,_.next_in=U,_.avail_in=$,l.hold=z,l.bits=P,o(_,G),tt=_.next_out,Q=_.output,J=_.avail_out,U=_.next_in,O=_.input,$=_.avail_in,z=l.hold,P=l.bits,l.mode===12&&(l.back=-1);break}for(l.back=0;at=(f=l.lencode[z&(1<>>16&255,dt=65535&f,!((rt=f>>>24)<=P);){if($===0)break t;$--,z+=O[U++]<>lt)])>>>16&255,dt=65535&f,!(lt+(rt=f>>>24)<=P);){if($===0)break t;$--,z+=O[U++]<>>=lt,P-=lt,l.back+=lt}if(z>>>=rt,P-=rt,l.back+=rt,l.length=dt,at===0){l.mode=26;break}if(32&at){l.back=-1,l.mode=12;break}if(64&at){_.msg="invalid literal/length code",l.mode=30;break}l.extra=15&at,l.mode=22;case 22:if(l.extra){for(b=l.extra;P>>=l.extra,P-=l.extra,l.back+=l.extra}l.was=l.length,l.mode=23;case 23:for(;at=(f=l.distcode[z&(1<>>16&255,dt=65535&f,!((rt=f>>>24)<=P);){if($===0)break t;$--,z+=O[U++]<>lt)])>>>16&255,dt=65535&f,!(lt+(rt=f>>>24)<=P);){if($===0)break t;$--,z+=O[U++]<>>=lt,P-=lt,l.back+=lt}if(z>>>=rt,P-=rt,l.back+=rt,64&at){_.msg="invalid distance code",l.mode=30;break}l.offset=dt,l.extra=15&at,l.mode=24;case 24:if(l.extra){for(b=l.extra;P>>=l.extra,P-=l.extra,l.back+=l.extra}if(l.offset>l.dmax){_.msg="invalid distance too far back",l.mode=30;break}l.mode=25;case 25:if(J===0)break t;if(V=G-J,l.offset>V){if((V=l.offset-V)>l.whave&&l.sane){_.msg="invalid distance too far back",l.mode=30;break}ot=V>l.wnext?(V-=l.wnext,l.wsize-V):l.wnext-V,V>l.length&&(V=l.length),ft=l.window}else ft=Q,ot=tt-l.offset,V=l.length;for(JR?(B=ot[ft+m[T]],P[K+m[T]]):(B=96,0),v=1<<_-tt,l=S=1<>tt)+(S-=v)]=j<<24|B<<16|Z|0,S!==0;);for(v=1<<_-1;z&v;)v>>=1;if(v!==0?(z&=v-1,z+=v):z=0,T++,--G[_]==0){if(_===O)break;_=k[y+m[T]]}if(Q<_&&(z&E)!==x){for(tt===0&&(tt=Q),F+=l,$=1<<(U=_-tt);U+tt>>7)]}function K(f,C){f.pending_buf[f.pending++]=255&C,f.pending_buf[f.pending++]=C>>>8&255}function G(f,C,L){f.bi_valid>u-L?(f.bi_buf|=C<>u-f.bi_valid,f.bi_valid+=L-u):(f.bi_buf|=C<>>=1,L<<=1,0<--C;);return L>>>1}function ft(f,C,L){var D,A,H=new Array(m+1),X=0;for(D=1;D<=m;D++)H[D]=X=X+L[D-1]<<1;for(A=0;A<=C;A++){var W=f[2*A+1];W!==0&&(f[2*A]=ot(H[W]++,W))}}function rt(f){var C;for(C=0;C>1;1<=L;L--)lt(f,H,L);for(A=q;L=f.heap[1],f.heap[1]=f.heap[f.heap_len--],lt(f,H,1),D=f.heap[1],f.heap[--f.heap_max]=L,f.heap[--f.heap_max]=D,H[2*A]=H[2*L]+H[2*D],f.depth[A]=(f.depth[L]>=f.depth[D]?f.depth[L]:f.depth[D])+1,H[2*L+1]=H[2*D+1]=A,f.heap[1]=A++,lt(f,H,1),2<=f.heap_len;);f.heap[--f.heap_max]=f.heap[1],(function(nt,mt){var St,vt,Ct,ct,Nt,Dt,kt=mt.dyn_tree,_e=mt.max_code,We=mt.stat_desc.static_tree,Ze=mt.stat_desc.has_stree,Ve=mt.stat_desc.extra_bits,we=mt.stat_desc.extra_base,xt=mt.stat_desc.max_length,zt=0;for(ct=0;ct<=m;ct++)nt.bl_count[ct]=0;for(kt[2*nt.heap[nt.heap_max]+1]=0,St=nt.heap_max+1;St>=7;A>>=1)if(1&it&&W.dyn_ltree[2*q]!==0)return n;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return s;for(q=32;q>>3,(H=f.static_len+3+7>>>3)<=A&&(A=H)):A=H=L+5,L+4<=A&&C!==-1?b(f,C,L,D):f.strategy===4||H===A?(G(f,2+(D?1:0),3),bt(f,Y,_)):(G(f,4+(D?1:0),3),(function(W,q,it,nt){var mt;for(G(W,q-257,5),G(W,it-1,5),G(W,nt-4,4),mt=0;mt>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&C,f.pending_buf[f.l_buf+f.last_lit]=255&L,f.last_lit++,C===0?f.dyn_ltree[2*L]++:(f.matches++,C--,f.dyn_ltree[2*(l[L]+k+1)]++,f.dyn_dtree[2*P(C)]++),f.last_lit===f.lit_bufsize-1},t._tr_align=function(f){G(f,2,3),V(f,S,Y),(function(C){C.bi_valid===16?(K(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):8<=C.bi_valid&&(C.pending_buf[C.pending++]=255&C.bi_buf,C.bi_buf>>=8,C.bi_valid-=8)})(f)}},{"../utils/common":41}],53:[function(a,e,t){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,e,t){(function(r){(function(n,s){"use strict";if(!n.setImmediate){var o,d,p,k,y=1,c={},g=!1,h=n.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(n);m=m&&m.setTimeout?m:n,o={}.toString.call(n.process)==="[object process]"?function(x){process.nextTick(function(){v(x)})}:(function(){if(n.postMessage&&!n.importScripts){var x=!0,E=n.onmessage;return n.onmessage=function(){x=!1},n.postMessage("","*"),n.onmessage=E,x}})()?(k="setImmediate$"+Math.random()+"$",n.addEventListener?n.addEventListener("message",S,!1):n.attachEvent("onmessage",S),function(x){n.postMessage(k+x,"*")}):n.MessageChannel?((p=new MessageChannel).port1.onmessage=function(x){v(x.data)},function(x){p.port2.postMessage(x)}):h&&"onreadystatechange"in h.createElement("script")?(d=h.documentElement,function(x){var E=h.createElement("script");E.onreadystatechange=function(){v(x),E.onreadystatechange=null,d.removeChild(E),E=null},d.appendChild(E)}):function(x){setTimeout(v,0,x)},m.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var E=new Array(arguments.length-1),F=0;F"u"?r===void 0?this:r:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var Te=Xe(Ce(),1);var ht;(function(a){a.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",a.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",a.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",a.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",a.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",a.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",a.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",a.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",a.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",a.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",a.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",a.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",a.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",a.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",a.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",a.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",a.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",a.Comments="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",a.CommentsExtended="http://schemas.microsoft.com/office/2011/relationships/commentsExtended",a.AltChunk="http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"})(ht||(ht={}));function qe(a,e){return e.elements(a).map(t=>({id:e.attr(t,"Id"),type:e.attr(t,"Type"),target:e.attr(t,"Target"),targetMode:e.attr(t,"TargetMode")}))}function Ke(a){return a?.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}function Wt(a){return/^[^"'].*\s.*[^"']$/.test(a)?`'${a}'`:a}function Bt(a){let e=a.lastIndexOf("/")+1,t=e==0?"":a.substring(0,e),r=e==0?a:a.substring(e);return[t,r]}function Ut(a,e){try{let t="http://docx/";return new URL(a,t+e).toString().substring(t.length)}catch{return`${e}${a}`}}function _t(a,e){return a.reduce((t,r)=>(t[e(r)]=r,t),{})}function Ye(a){return new Promise((e,t)=>{let r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=()=>t(),r.readAsDataURL(a)})}function $t(a){return a&&typeof a=="object"&&!Array.isArray(a)}function Je(a){return typeof a=="string"||a instanceof String}function Tt(a,...e){if(!e.length)return a;let t=e.shift();if($t(a)&&$t(t))for(let r in t)if($t(t[r])){let n=a[r]??(a[r]={});Tt(n,t[r])}else a[r]=t[r];return Tt(a,...e)}function At(a){return Array.isArray(a)?a:[a]}function Qe(a,e,t){return e>a?e:t/,"")),a=nr(a);let t=new DOMParser().parseFromString(a,"application/xml"),r=rr(t);if(r)throw new Error(r);return t}function rr(a){return a.getElementsByTagName("parsererror")[0]?.textContent}function nr(a){return a.charCodeAt(0)===65279?a.substring(1):a}function ar(a){return new XMLSerializer().serializeToString(a)}var It=class{elements(e,t=null){let r=[];for(let n=0,s=e.childNodes.length;nor(t,e))}function or(a,e){let t={name:e.attr(a,"name"),embedFontRefs:[]};for(let r of e.elements(a))switch(r.localName){case"family":t.family=e.attr(r,"val");break;case"altName":t.altName=e.attr(r,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":t.embedFontRefs.push(lr(r,e));break}return t}function lr(a,e){return{id:e.attr(a,"id"),key:e.attr(a,"fontKey"),type:sr[a.localName]}}var Zt=class extends pt{parseXml(e){this.fonts=ir(e,this._package.xmlParser)}},Vt=class a{constructor(e,t){this._zip=e,this.options=t,this.xmlParser=new It}get(e){let t=cr(e);return this._zip.files[t]??this._zip.files[t.replace(/\//g,"\\")]}update(e,t){this._zip.file(e,t)}static async load(e,t){let r=await Te.default.loadAsync(e);return new a(r,t)}save(e="blob"){return this._zip.generateAsync({type:e})}load(e,t="string"){return this.get(e)?.async(t)??Promise.resolve(null)}async loadRelationships(e=null){let t="_rels/.rels";if(e!=null){let[n,s]=Bt(e);t=`${n}_rels/${s}.rels`}let r=await this.load(t);return r?qe(this.parseXmlDocument(r).firstElementChild,this.xmlParser):null}parseXmlDocument(e){return er(e,this.options.trimXmlDeclaration)}};function cr(a){return a.startsWith("/")?a.substr(1):a}var Gt=class extends pt{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.body=this._documentParser.parseDocumentFile(e)}};function Mt(a,e){return{type:e.attr(a,"val"),color:e.attr(a,"color"),size:e.lengthAttr(a,"sz",ut.Border),offset:e.lengthAttr(a,"space",ut.Point),frame:e.boolAttr(a,"frame"),shadow:e.boolAttr(a,"shadow")}}function hr(a,e){var t={};for(let r of e.elements(a))switch(r.localName){case"left":t.left=Mt(r,e);break;case"top":t.top=Mt(r,e);break;case"right":t.right=Mt(r,e);break;case"bottom":t.bottom=Mt(r,e);break}return t}var xe;(function(a){a.Continuous="continuous",a.NextPage="nextPage",a.NextColumn="nextColumn",a.EvenPage="evenPage",a.OddPage="oddPage"})(xe||(xe={}));function Le(a,e=w){var t={};for(let r of e.elements(a))switch(r.localName){case"pgSz":t.pageSize={width:e.lengthAttr(r,"w"),height:e.lengthAttr(r,"h"),orientation:e.attr(r,"orient")};break;case"type":t.type=e.attr(r,"val");break;case"pgMar":t.pageMargins={left:e.lengthAttr(r,"left"),right:e.lengthAttr(r,"right"),top:e.lengthAttr(r,"top"),bottom:e.lengthAttr(r,"bottom"),header:e.lengthAttr(r,"header"),footer:e.lengthAttr(r,"footer"),gutter:e.lengthAttr(r,"gutter")};break;case"cols":t.columns=ur(r,e);break;case"headerReference":(t.headerRefs??(t.headerRefs=[])).push(Ee(r,e));break;case"footerReference":(t.footerRefs??(t.footerRefs=[])).push(Ee(r,e));break;case"titlePg":t.titlePage=e.boolAttr(r,"val",!0);break;case"pgBorders":t.pageBorders=hr(r,e);break;case"pgNumType":t.pageNumber=dr(r,e);break}return t}function ur(a,e){return{numberOfColumns:e.intAttr(a,"num"),space:e.lengthAttr(a,"space"),separator:e.boolAttr(a,"sep"),equalWidth:e.boolAttr(a,"equalWidth",!0),columns:e.elements(a,"col").map(t=>({width:e.lengthAttr(t,"w"),space:e.lengthAttr(t,"space")}))}}function dr(a,e){return{chapSep:e.attr(a,"chapSep"),chapStyle:e.attr(a,"chapStyle"),format:e.attr(a,"fmt"),start:e.intAttr(a,"start")}}function Ee(a,e){return{id:e.attr(a,"id"),type:e.attr(a,"type")}}function fr(a,e){return{before:e.lengthAttr(a,"before"),after:e.lengthAttr(a,"after"),line:e.intAttr(a,"line"),lineRule:e.attr(a,"lineRule")}}function ye(a,e){let t={};for(let r of e.elements(a))pr(r,t,e);return t}function pr(a,e,t){return!!Oe(a,e,t)}function De(a,e){let t={};for(let r of e.elements(a))je(r,t,e);return t}function je(a,e,t){if(a.namespaceURI!=Ie.wordml)return!1;if(Oe(a,e,t))return!0;switch(a.localName){case"tabs":e.tabs=mr(a,t);break;case"sectPr":e.sectionProps=Le(a,t);break;case"numPr":e.numbering=gr(a,t);break;case"spacing":return e.lineSpacing=fr(a,t),!1;case"textAlignment":return e.textAlignment=t.attr(a,"val"),!1;case"keepLines":e.keepLines=t.boolAttr(a,"val",!0);break;case"keepNext":e.keepNext=t.boolAttr(a,"val",!0);break;case"pageBreakBefore":e.pageBreakBefore=t.boolAttr(a,"val",!0);break;case"outlineLvl":e.outlineLevel=t.intAttr(a,"val");break;case"pStyle":e.styleName=t.attr(a,"val");break;case"rPr":e.runProps=ye(a,t);break;default:return!1}return!0}function mr(a,e){return e.elements(a,"tab").map(t=>({position:e.lengthAttr(t,"pos"),leader:e.attr(t,"leader"),style:e.attr(t,"val")}))}function gr(a,e){var t={};for(let r of e.elements(a))switch(r.localName){case"numId":t.id=e.attr(r,"val");break;case"ilvl":t.level=e.intAttr(r,"val");break}return t}function br(a,e){let t={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let r of e.elements(a))switch(r.localName){case"num":t.numberings.push(vr(r,e));break;case"abstractNum":t.abstractNumberings.push(kr(r,e));break;case"numPicBullet":t.bulletPictures.push(_r(r,e));break}return t}function vr(a,e){let t={id:e.attr(a,"numId"),overrides:[]};for(let r of e.elements(a))switch(r.localName){case"abstractNumId":t.abstractId=e.attr(r,"val");break;case"lvlOverride":t.overrides.push(yr(r,e));break}return t}function kr(a,e){let t={id:e.attr(a,"abstractNumId"),levels:[]};for(let r of e.elements(a))switch(r.localName){case"name":t.name=e.attr(r,"val");break;case"multiLevelType":t.multiLevelType=e.attr(r,"val");break;case"numStyleLink":t.numberingStyleLink=e.attr(r,"val");break;case"styleLink":t.styleLink=e.attr(r,"val");break;case"lvl":t.levels.push(Ue(r,e));break}return t}function Ue(a,e){let t={level:e.intAttr(a,"ilvl")};for(let r of e.elements(a))switch(r.localName){case"start":t.start=e.attr(r,"val");break;case"lvlRestart":t.restart=e.intAttr(r,"val");break;case"numFmt":t.format=e.attr(r,"val");break;case"lvlText":t.text=e.attr(r,"val");break;case"lvlJc":t.justification=e.attr(r,"val");break;case"lvlPicBulletId":t.bulletPictureId=e.attr(r,"val");break;case"pStyle":t.paragraphStyle=e.attr(r,"val");break;case"pPr":t.paragraphProps=De(r,e);break;case"rPr":t.runProps=ye(r,e);break}return t}function yr(a,e){let t={level:e.intAttr(a,"ilvl")};for(let r of e.elements(a))switch(r.localName){case"startOverride":t.start=e.intAttr(r,"val");break;case"lvl":t.numberingLevel=Ue(r,e);break}return t}function _r(a,e){var t=e.element(a,"pict"),r=t&&e.element(t,"shape"),n=r&&e.element(r,"imagedata");return n?{id:e.attr(a,"numPicBulletId"),referenceId:e.attr(n,"id"),style:e.attr(r,"style")}:null}var Xt=class extends pt{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){Object.assign(this,br(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}},qt=class extends pt{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.styles=this._documentParser.parseStylesFile(e)}},N;(function(a){a.Document="document",a.Paragraph="paragraph",a.Run="run",a.Break="break",a.NoBreakHyphen="noBreakHyphen",a.Table="table",a.Row="row",a.Cell="cell",a.Hyperlink="hyperlink",a.SmartTag="smartTag",a.Drawing="drawing",a.Image="image",a.Text="text",a.Tab="tab",a.Symbol="symbol",a.BookmarkStart="bookmarkStart",a.BookmarkEnd="bookmarkEnd",a.Footer="footer",a.Header="header",a.FootnoteReference="footnoteReference",a.EndnoteReference="endnoteReference",a.Footnote="footnote",a.Endnote="endnote",a.SimpleField="simpleField",a.ComplexField="complexField",a.Instruction="instruction",a.VmlPicture="vmlPicture",a.MmlMath="mmlMath",a.MmlMathParagraph="mmlMathParagraph",a.MmlFraction="mmlFraction",a.MmlFunction="mmlFunction",a.MmlFunctionName="mmlFunctionName",a.MmlNumerator="mmlNumerator",a.MmlDenominator="mmlDenominator",a.MmlRadical="mmlRadical",a.MmlBase="mmlBase",a.MmlDegree="mmlDegree",a.MmlSuperscript="mmlSuperscript",a.MmlSubscript="mmlSubscript",a.MmlPreSubSuper="mmlPreSubSuper",a.MmlSubArgument="mmlSubArgument",a.MmlSuperArgument="mmlSuperArgument",a.MmlNary="mmlNary",a.MmlDelimiter="mmlDelimiter",a.MmlRun="mmlRun",a.MmlEquationArray="mmlEquationArray",a.MmlLimit="mmlLimit",a.MmlLimitLower="mmlLimitLower",a.MmlMatrix="mmlMatrix",a.MmlMatrixRow="mmlMatrixRow",a.MmlBox="mmlBox",a.MmlBar="mmlBar",a.MmlGroupChar="mmlGroupChar",a.VmlElement="vmlElement",a.Inserted="inserted",a.Deleted="deleted",a.DeletedText="deletedText",a.Comment="comment",a.CommentReference="commentReference",a.CommentRangeStart="commentRangeStart",a.CommentRangeEnd="commentRangeEnd",a.AltChunk="altChunk"})(N||(N={}));var yt=class{constructor(){this.children=[],this.cssStyle={}}},Kt=class extends yt{constructor(){super(...arguments),this.type=N.Header}},Yt=class extends yt{constructor(){super(...arguments),this.type=N.Footer}},Ft=class extends pt{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}},Jt=class extends Ft{createRootElement(){return new Kt}},Qt=class extends Ft{createRootElement(){return new Yt}};function wr(a,e){let t={};for(let r of e.elements(a))switch(r.localName){case"Template":t.template=r.textContent;break;case"Pages":t.pages=Pt(r.textContent);break;case"Words":t.words=Pt(r.textContent);break;case"Characters":t.characters=Pt(r.textContent);break;case"Application":t.application=r.textContent;break;case"Lines":t.lines=Pt(r.textContent);break;case"Paragraphs":t.paragraphs=Pt(r.textContent);break;case"Company":t.company=r.textContent;break;case"AppVersion":t.appVersion=r.textContent;break}return t}function Pt(a){if(!(typeof a>"u"))return parseInt(a)}var te=class extends pt{parseXml(e){this.props=wr(e,this._package.xmlParser)}};function Sr(a,e){let t={};for(let r of e.elements(a))switch(r.localName){case"title":t.title=r.textContent;break;case"description":t.description=r.textContent;break;case"subject":t.subject=r.textContent;break;case"creator":t.creator=r.textContent;break;case"keywords":t.keywords=r.textContent;break;case"language":t.language=r.textContent;break;case"lastModifiedBy":t.lastModifiedBy=r.textContent;break;case"revision":r.textContent&&(t.revision=parseInt(r.textContent));break}return t}var ee=class extends pt{parseXml(e){this.props=Sr(e,this._package.xmlParser)}},re=class{};function Cr(a,e){var t=new re,r=e.element(a,"themeElements");for(let n of e.elements(r))switch(n.localName){case"clrScheme":t.colorScheme=xr(n,e);break;case"fontScheme":t.fontScheme=Er(n,e);break}return t}function xr(a,e){var t={name:e.attr(a,"name"),colors:{}};for(let s of e.elements(a)){var r=e.element(s,"srgbClr"),n=e.element(s,"sysClr");r?t.colors[s.localName]=e.attr(r,"val"):n&&(t.colors[s.localName]=e.attr(n,"lastClr"))}return t}function Er(a,e){var t={name:e.attr(a,"name")};for(let r of e.elements(a))switch(r.localName){case"majorFont":t.majorFont=Ae(r,e);break;case"minorFont":t.minorFont=Ae(r,e);break}return t}function Ae(a,e){return{latinTypeface:e.elementAttr(a,"latin","typeface"),eaTypeface:e.elementAttr(a,"ea","typeface"),csTypeface:e.elementAttr(a,"cs","typeface")}}var ne=class extends pt{constructor(e,t){super(e,t)}parseXml(e){this.theme=Cr(e,this._package.xmlParser)}},Ot=class{},ae=class extends Ot{constructor(){super(...arguments),this.type=N.Footnote}},se=class extends Ot{constructor(){super(...arguments),this.type=N.Endnote}},Lt=class extends pt{constructor(e,t,r){super(e,t),this._documentParser=r}},ie=class extends Lt{constructor(e,t,r){super(e,t,r)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"footnote",ae)}},oe=class extends Lt{constructor(e,t,r){super(e,t,r)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"endnote",se)}};function Ar(a,e){var t={};for(let r of e.elements(a))switch(r.localName){case"defaultTabStop":t.defaultTabStop=e.lengthAttr(r,"val");break;case"footnotePr":t.footnoteProps=Pe(r,e);break;case"endnotePr":t.endnoteProps=Pe(r,e);break;case"autoHyphenation":t.autoHyphenation=e.boolAttr(r,"val");break}return t}function Pe(a,e){var t={defaultNoteIds:[]};for(let r of e.elements(a))switch(r.localName){case"numFmt":t.nummeringFormat=e.attr(r,"val");break;case"footnote":case"endnote":t.defaultNoteIds.push(e.attr(r,"id"));break}return t}var le=class extends pt{constructor(e,t){super(e,t)}parseXml(e){this.settings=Ar(e,this._package.xmlParser)}};function Pr(a,e){return e.elements(a,"property").map(t=>{let r=t.firstChild;return{formatId:e.attr(t,"fmtid"),name:e.attr(t,"name"),type:r.nodeName,value:r.textContent}})}var ce=class extends pt{parseXml(e){this.props=Pr(e,this._package.xmlParser)}},he=class extends pt{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.comments=this._documentParser.parseComments(e),this.commentMap=_t(this.comments,t=>t.id)}},ue=class extends pt{constructor(e,t){super(e,t),this.comments=[]}parseXml(e){let t=this._package.xmlParser;for(let r of t.elements(e,"commentEx"))this.comments.push({paraId:t.attr(r,"paraId"),paraIdParent:t.attr(r,"paraIdParent"),done:t.boolAttr(r,"done")});this.commentMap=_t(this.comments,r=>r.paraId)}},Nr=[{type:ht.OfficeDocument,target:"word/document.xml"},{type:ht.ExtendedProperties,target:"docProps/app.xml"},{type:ht.CoreProperties,target:"docProps/core.xml"},{type:ht.CustomProperties,target:"docProps/custom.xml"}],de=class a{constructor(){this.parts=[],this.partsMap={}}static async load(e,t,r){var n=new a;return n._options=r,n._parser=t,n._package=await Vt.load(e,r),n.rels=await n._package.loadRelationships(),await Promise.all(Nr.map(s=>{let o=n.rels.find(d=>d.type===s.type)??s;return n.loadRelationshipPart(o.target,o.type)})),n}save(e="blob"){return this._package.save(e)}async loadRelationshipPart(e,t){if(this.partsMap[e])return this.partsMap[e];if(!this._package.get(e))return null;let r=null;switch(t){case ht.OfficeDocument:this.documentPart=r=new Gt(this._package,e,this._parser);break;case ht.FontTable:this.fontTablePart=r=new Zt(this._package,e);break;case ht.Numbering:this.numberingPart=r=new Xt(this._package,e,this._parser);break;case ht.Styles:this.stylesPart=r=new qt(this._package,e,this._parser);break;case ht.Theme:this.themePart=r=new ne(this._package,e);break;case ht.Footnotes:this.footnotesPart=r=new ie(this._package,e,this._parser);break;case ht.Endnotes:this.endnotesPart=r=new oe(this._package,e,this._parser);break;case ht.Footer:r=new Qt(this._package,e,this._parser);break;case ht.Header:r=new Jt(this._package,e,this._parser);break;case ht.CoreProperties:this.corePropsPart=r=new ee(this._package,e);break;case ht.ExtendedProperties:this.extendedPropsPart=r=new te(this._package,e);break;case ht.CustomProperties:r=new ce(this._package,e);break;case ht.Settings:this.settingsPart=r=new le(this._package,e);break;case ht.Comments:this.commentsPart=r=new he(this._package,e,this._parser);break;case ht.CommentsExtended:this.commentsExtendedPart=r=new ue(this._package,e);break}if(r==null)return Promise.resolve(null);if(this.partsMap[e]=r,this.parts.push(r),await r.load(),r.rels?.length>0){let[n]=Bt(r.path);await Promise.all(r.rels.map(s=>this.loadRelationshipPart(Ut(s.target,n),s.type)))}return r}async loadDocumentImage(e,t){let r=await this.loadResource(t??this.documentPart,e,"blob");return this.blobToURL(r)}async loadNumberingImage(e){let t=await this.loadResource(this.numberingPart,e,"blob");return this.blobToURL(t)}async loadFont(e,t){let r=await this.loadResource(this.fontTablePart,e,"uint8array");return r&&this.blobToURL(new Blob([zr(r,t)]))}async loadAltChunk(e,t){return await this.loadResource(t??this.documentPart,e,"string")}blobToURL(e){return e?this._options.useBase64URL?Ye(e):URL.createObjectURL(e):null}findPartByRelId(e,t=null){var r=(t.rels??this.rels).find(s=>s.id==e);let n=t?Bt(t.path)[0]:"";return r?this.partsMap[Ut(r.target,n)]:null}getPathById(e,t){let r=e.rels.find(s=>s.id==t),[n]=Bt(e.path);return r?Ut(r.target,n):null}loadResource(e,t,r){let n=this.getPathById(e,t);return n?this._package.load(n,r):Promise.resolve(null)}};function zr(a,e){let r=e.replace(/{|}|-/g,""),n=new Array(16);for(let s=0;s<16;s++)n[16-s-1]=parseInt(r.substring(s*2,s*2+2),16);for(let s=0;s<32;s++)a[s]=a[s]^n[s%16];return a}function Mr(a,e){return{type:N.BookmarkStart,id:e.attr(a,"id"),name:e.attr(a,"name"),colFirst:e.intAttr(a,"colFirst"),colLast:e.intAttr(a,"colLast")}}function Br(a,e){return{type:N.BookmarkEnd,id:e.attr(a,"id")}}var fe=class extends yt{constructor(){super(...arguments),this.type=N.VmlElement,this.attrs={}}};function $e(a,e){var t=new fe;switch(a.localName){case"rect":t.tagName="rect",Object.assign(t.attrs,{width:"100%",height:"100%"});break;case"oval":t.tagName="ellipse",Object.assign(t.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":t.tagName="line";break;case"shape":t.tagName="g";break;case"textbox":t.tagName="foreignObject",Object.assign(t.attrs,{width:"100%",height:"100%"});break;default:return null}for(let r of w.attrs(a))switch(r.localName){case"style":t.cssStyleText=r.value;break;case"fillcolor":t.attrs.fill=r.value;break;case"from":let[n,s]=Ne(r.value);Object.assign(t.attrs,{x1:n,y1:s});break;case"to":let[o,d]=Ne(r.value);Object.assign(t.attrs,{x2:o,y2:d});break}for(let r of w.elements(a))switch(r.localName){case"stroke":Object.assign(t.attrs,Rr(r));break;case"fill":Object.assign(t.attrs,Tr());break;case"imagedata":t.tagName="image",Object.assign(t.attrs,{width:"100%",height:"100%"}),t.imageHref={id:w.attr(r,"id"),title:w.attr(r,"title")};break;case"txbxContent":t.children.push(...e.parseBodyElements(r));break;default:let n=$e(r,e);n&&t.children.push(n);break}return t}function Rr(a){return{stroke:w.attr(a,"color"),"stroke-width":w.lengthAttr(a,"weight",ut.Emu)??"1px"}}function Tr(a){return{}}function Ne(a){return a.split(",")}var pe=class extends yt{constructor(){super(...arguments),this.type=N.Comment}},me=class extends yt{constructor(e){super(),this.id=e,this.type=N.CommentReference}},ge=class extends yt{constructor(e){super(),this.id=e,this.type=N.CommentRangeStart}},be=class extends yt{constructor(e){super(),this.id=e,this.type=N.CommentRangeEnd}},Rt={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"},Ir=[],ze={oMath:N.MmlMath,oMathPara:N.MmlMathParagraph,f:N.MmlFraction,func:N.MmlFunction,fName:N.MmlFunctionName,num:N.MmlNumerator,den:N.MmlDenominator,rad:N.MmlRadical,deg:N.MmlDegree,e:N.MmlBase,sSup:N.MmlSuperscript,sSub:N.MmlSubscript,sPre:N.MmlPreSubSuper,sup:N.MmlSuperArgument,sub:N.MmlSubArgument,d:N.MmlDelimiter,nary:N.MmlNary,eqArr:N.MmlEquationArray,lim:N.MmlLimit,limLow:N.MmlLimitLower,m:N.MmlMatrix,mr:N.MmlMatrixRow,box:N.MmlBox,bar:N.MmlBar,groupChr:N.MmlGroupChar},ve=class{constructor(e){this.options={ignoreWidth:!1,debug:!1,...e}}parseNotes(e,t,r){var n=[];for(let s of w.elements(e,t)){let o=new r;o.id=w.attr(s,"id"),o.noteType=w.attr(s,"type"),o.children=this.parseBodyElements(s),n.push(o)}return n}parseComments(e){var t=[];for(let r of w.elements(e,"comment")){let n=new pe;n.id=w.attr(r,"id"),n.author=w.attr(r,"author"),n.initials=w.attr(r,"initials"),n.date=w.attr(r,"date"),n.children=this.parseBodyElements(r),t.push(n)}return t}parseDocumentFile(e){var t=w.element(e,"body"),r=w.element(e,"background"),n=w.element(t,"sectPr");return{type:N.Document,children:this.parseBodyElements(t),props:n?Le(n,w):{},cssStyle:r?this.parseBackground(r):{}}}parseBackground(e){var t={},r=wt.colorAttr(e,"color");return r&&(t["background-color"]=r),t}parseBodyElements(e){var t=[];for(let r of w.elements(e))switch(r.localName){case"p":t.push(this.parseParagraph(r));break;case"altChunk":t.push(this.parseAltChunk(r));break;case"tbl":t.push(this.parseTable(r));break;case"sdt":t.push(...this.parseSdt(r,n=>this.parseBodyElements(n)));break}return t}parseStylesFile(e){var t=[];for(let r of w.elements(e))switch(r.localName){case"style":t.push(this.parseStyle(r));break;case"docDefaults":t.push(this.parseDefaultStyles(r));break}return t}parseDefaultStyles(e){var t={id:null,name:null,target:null,basedOn:null,styles:[]};for(let s of w.elements(e))switch(s.localName){case"rPrDefault":var r=w.element(s,"rPr");r&&t.styles.push({target:"span",values:this.parseDefaultProperties(r,{})});break;case"pPrDefault":var n=w.element(s,"pPr");n&&t.styles.push({target:"p",values:this.parseDefaultProperties(n,{})});break}return t}parseStyle(e){var t={id:w.attr(e,"styleId"),isDefault:w.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(w.attr(e,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span";break}for(let r of w.elements(e))switch(r.localName){case"basedOn":t.basedOn=w.attr(r,"val");break;case"name":t.name=w.attr(r,"val");break;case"link":t.linked=w.attr(r,"val");break;case"next":t.next=w.attr(r,"val");break;case"aliases":t.aliases=w.attr(r,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(r,{})}),t.paragraphProps=De(r,w);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(r,{})}),t.runProps=ye(r,w);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(r,{})});break;case"tblStylePr":for(let n of this.parseTableStyle(r))t.styles.push(n);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${r.localName}`)}return t}parseTableStyle(e){var t=[],r=w.attr(e,"type"),n="",s="";switch(r){case"firstRow":s=".first-row",n="tr.first-row td";break;case"lastRow":s=".last-row",n="tr.last-row td";break;case"firstCol":s=".first-col",n="td.first-col";break;case"lastCol":s=".last-col",n="td.last-col";break;case"band1Vert":s=":not(.no-vband)",n="td.odd-col";break;case"band2Vert":s=":not(.no-vband)",n="td.even-col";break;case"band1Horz":s=":not(.no-hband)",n="tr.odd-row";break;case"band2Horz":s=":not(.no-hband)",n="tr.even-row";break;default:return[]}for(let o of w.elements(e))switch(o.localName){case"pPr":t.push({target:`${n} p`,mod:s,values:this.parseDefaultProperties(o,{})});break;case"rPr":t.push({target:`${n} span`,mod:s,values:this.parseDefaultProperties(o,{})});break;case"tblPr":case"tcPr":t.push({target:n,mod:s,values:this.parseDefaultProperties(o,{})});break}return t}parseNumberingFile(e){var t=[],r={},n=[];for(let d of w.elements(e))switch(d.localName){case"abstractNum":this.parseAbstractNumbering(d,n).forEach(p=>t.push(p));break;case"numPicBullet":n.push(this.parseNumberingPicBullet(d));break;case"num":var s=w.attr(d,"numId"),o=w.elementAttr(d,"abstractNumId","val");r[o]=s;break}return t.forEach(d=>d.id=r[d.id]),t}parseNumberingPicBullet(e){var t=w.element(e,"pict"),r=t&&w.element(t,"shape"),n=r&&w.element(r,"imagedata");return n?{id:w.intAttr(e,"numPicBulletId"),src:w.attr(n,"id"),style:w.attr(r,"style")}:null}parseAbstractNumbering(e,t){var r=[],n=w.attr(e,"abstractNumId");for(let s of w.elements(e))switch(s.localName){case"lvl":r.push(this.parseNumberingLevel(n,s,t));break}return r}parseNumberingLevel(e,t,r){var n={id:e,level:w.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};for(let o of w.elements(t))switch(o.localName){case"start":n.start=w.intAttr(o,"val");break;case"pPr":this.parseDefaultProperties(o,n.pStyle);break;case"rPr":this.parseDefaultProperties(o,n.rStyle);break;case"lvlPicBulletId":var s=w.intAttr(o,"val");n.bullet=r.find(d=>d?.id==s);break;case"lvlText":n.levelText=w.attr(o,"val");break;case"pStyle":n.pStyleName=w.attr(o,"val");break;case"numFmt":n.format=w.attr(o,"val");break;case"suff":n.suff=w.attr(o,"val");break}return n}parseSdt(e,t){let r=w.element(e,"sdtContent");return r?t(r):[]}parseInserted(e,t){return{type:N.Inserted,children:t(e)?.children??[]}}parseDeleted(e,t){return{type:N.Deleted,children:t(e)?.children??[]}}parseAltChunk(e){return{type:N.AltChunk,children:[],id:w.attr(e,"id")}}parseParagraph(e){var t={type:N.Paragraph,children:[]};for(let r of w.elements(e))switch(r.localName){case"pPr":this.parseParagraphProperties(r,t);break;case"r":t.children.push(this.parseRun(r,t));break;case"hyperlink":t.children.push(this.parseHyperlink(r,t));break;case"smartTag":t.children.push(this.parseSmartTag(r,t));break;case"bookmarkStart":t.children.push(Mr(r,w));break;case"bookmarkEnd":t.children.push(Br(r,w));break;case"commentRangeStart":t.children.push(new ge(w.attr(r,"id")));break;case"commentRangeEnd":t.children.push(new be(w.attr(r,"id")));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(r));break;case"sdt":t.children.push(...this.parseSdt(r,n=>this.parseParagraph(n).children));break;case"ins":t.children.push(this.parseInserted(r,n=>this.parseParagraph(n)));break;case"del":t.children.push(this.parseDeleted(r,n=>this.parseParagraph(n)));break}return t}parseParagraphProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,r=>{if(je(r,t,w))return!0;switch(r.localName){case"pStyle":t.styleName=w.attr(r,"val");break;case"cnfStyle":t.className=st.classNameOfCnfStyle(r);break;case"framePr":this.parseFrame(r,t);break;case"rPr":break;default:return!1}return!0})}parseFrame(e,t){var r=w.attr(e,"dropCap");r=="drop"&&(t.cssStyle.float="left")}parseHyperlink(e,t){var r={type:N.Hyperlink,parent:t,children:[]};r.anchor=w.attr(e,"anchor"),r.id=w.attr(e,"id");for(let n of w.elements(e))switch(n.localName){case"r":r.children.push(this.parseRun(n,r));break}return r}parseSmartTag(e,t){var r={type:N.SmartTag,parent:t,children:[]},n=w.attr(e,"uri"),s=w.attr(e,"element");n&&(r.uri=n),s&&(r.element=s);for(let o of w.elements(e))switch(o.localName){case"r":r.children.push(this.parseRun(o,r));break}return r}parseRun(e,t){var r={type:N.Run,parent:t,children:[]};for(let n of w.elements(e))switch(n=this.checkAlternateContent(n),n.localName){case"t":r.children.push({type:N.Text,text:n.textContent});break;case"delText":r.children.push({type:N.DeletedText,text:n.textContent});break;case"commentReference":r.children.push(new me(w.attr(n,"id")));break;case"fldSimple":r.children.push({type:N.SimpleField,instruction:w.attr(n,"instr"),lock:w.boolAttr(n,"lock",!1),dirty:w.boolAttr(n,"dirty",!1)});break;case"instrText":r.fieldRun=!0,r.children.push({type:N.Instruction,text:n.textContent});break;case"fldChar":r.fieldRun=!0,r.children.push({type:N.ComplexField,charType:w.attr(n,"fldCharType"),lock:w.boolAttr(n,"lock",!1),dirty:w.boolAttr(n,"dirty",!1)});break;case"noBreakHyphen":r.children.push({type:N.NoBreakHyphen});break;case"br":r.children.push({type:N.Break,break:w.attr(n,"type")||"textWrapping"});break;case"lastRenderedPageBreak":r.children.push({type:N.Break,break:"lastRenderedPageBreak"});break;case"sym":r.children.push({type:N.Symbol,font:Wt(w.attr(n,"font")),char:w.attr(n,"char")});break;case"tab":r.children.push({type:N.Tab});break;case"footnoteReference":r.children.push({type:N.FootnoteReference,id:w.attr(n,"id")});break;case"endnoteReference":r.children.push({type:N.EndnoteReference,id:w.attr(n,"id")});break;case"drawing":let s=this.parseDrawing(n);s&&(r.children=[s]);break;case"pict":r.children.push(this.parseVmlPicture(n));break;case"rPr":this.parseRunProperties(n,r);break}return r}parseMathElement(e){let t=`${e.localName}Pr`,r={type:ze[e.localName],children:[]};for(let s of w.elements(e))if(ze[s.localName])r.children.push(this.parseMathElement(s));else if(s.localName=="r"){var n=this.parseRun(s);n.type=N.MmlRun,r.children.push(n)}else s.localName==t&&(r.props=this.parseMathProperies(s));return r}parseMathProperies(e){let t={};for(let r of w.elements(e))switch(r.localName){case"chr":t.char=w.attr(r,"val");break;case"vertJc":t.verticalJustification=w.attr(r,"val");break;case"pos":t.position=w.attr(r,"val");break;case"degHide":t.hideDegree=w.boolAttr(r,"val");break;case"begChr":t.beginChar=w.attr(r,"val");break;case"endChr":t.endChar=w.attr(r,"val");break}return t}parseRunProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,r=>{switch(r.localName){case"rStyle":t.styleName=w.attr(r,"val");break;case"vertAlign":t.verticalAlign=st.valueOfVertAlign(r,!0);break;default:return!1}return!0})}parseVmlPicture(e){let t={type:N.VmlPicture,children:[]};for(let r of w.elements(e)){let n=$e(r,this);n&&t.children.push(n)}return t}checkAlternateContent(e){if(e.localName!="AlternateContent")return e;var t=w.element(e,"Choice");if(t){var r=w.attr(t,"Requires"),n=e.lookupNamespaceURI(r);if(Ir.includes(n))return t.firstElementChild}return w.element(e,"Fallback")?.firstElementChild}parseDrawing(e){for(var t of w.elements(e))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(e){var t={type:N.Drawing,children:[],cssStyle:{}},r=e.localName=="anchor";let n=null,s=w.boolAttr(e,"simplePos");w.boolAttr(e,"behindDoc");let o={relative:"page",align:"left",offset:"0"},d={relative:"page",align:"top",offset:"0"};for(var p of w.elements(e))switch(p.localName){case"simplePos":s&&(o.offset=w.lengthAttr(p,"x",ut.Emu),d.offset=w.lengthAttr(p,"y",ut.Emu));break;case"extent":t.cssStyle.width=w.lengthAttr(p,"cx",ut.Emu),t.cssStyle.height=w.lengthAttr(p,"cy",ut.Emu);break;case"positionH":case"positionV":if(!s){let g=p.localName=="positionH"?o:d;var k=w.element(p,"align"),y=w.element(p,"posOffset");g.relative=w.attr(p,"relativeFrom")??g.relative,k&&(g.align=k.textContent),y&&(g.offset=Fe(y.textContent,ut.Emu))}break;case"wrapTopAndBottom":n="wrapTopAndBottom";break;case"wrapNone":n="wrapNone";break;case"graphic":var c=this.parseGraphic(p);c&&t.children.push(c);break}return n=="wrapTopAndBottom"?(t.cssStyle.display="block",o.align&&(t.cssStyle["text-align"]=o.align,t.cssStyle.width="100%")):n=="wrapNone"?(t.cssStyle.display="block",t.cssStyle.position="relative",t.cssStyle.width="0px",t.cssStyle.height="0px",o.offset&&(t.cssStyle.left=o.offset),d.offset&&(t.cssStyle.top=d.offset)):r&&(o.align=="left"||o.align=="right")&&(t.cssStyle.float=o.align),t}parseGraphic(e){var t=w.element(e,"graphicData");for(let r of w.elements(t))switch(r.localName){case"pic":return this.parsePicture(r)}return null}parsePicture(e){var t={type:N.Image,src:"",cssStyle:{}},r=w.element(e,"blipFill"),n=w.element(r,"blip"),s=w.element(r,"srcRect");t.src=w.attr(n,"embed"),s&&(t.srcRect=[w.intAttr(s,"l",0)/1e5,w.intAttr(s,"t",0)/1e5,w.intAttr(s,"r",0)/1e5,w.intAttr(s,"b",0)/1e5]);var o=w.element(e,"spPr"),d=w.element(o,"xfrm");if(t.cssStyle.position="relative",d){t.rotation=w.intAttr(d,"rot",0)/6e4;for(var p of w.elements(d))switch(p.localName){case"ext":t.cssStyle.width=w.lengthAttr(p,"cx",ut.Emu),t.cssStyle.height=w.lengthAttr(p,"cy",ut.Emu);break;case"off":t.cssStyle.left=w.lengthAttr(p,"x",ut.Emu),t.cssStyle.top=w.lengthAttr(p,"y",ut.Emu);break}}return t}parseTable(e){var t={type:N.Table,children:[]};for(let r of w.elements(e))switch(r.localName){case"tr":t.children.push(this.parseTableRow(r));break;case"tblGrid":t.columns=this.parseTableColumns(r);break;case"tblPr":this.parseTableProperties(r,t);break}return t}parseTableColumns(e){var t=[];for(let r of w.elements(e))switch(r.localName){case"gridCol":t.push({width:w.lengthAttr(r,"w")});break}return t}parseTableProperties(e,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,r=>{switch(r.localName){case"tblStyle":t.styleName=w.attr(r,"val");break;case"tblLook":t.className=st.classNameOftblLook(r);break;case"tblpPr":this.parseTablePosition(r,t);break;case"tblStyleColBandSize":t.colBandSize=w.intAttr(r,"val");break;case"tblStyleRowBandSize":t.rowBandSize=w.intAttr(r,"val");break;case"hidden":t.cssStyle.display="none";break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto";break}}parseTablePosition(e,t){var r=w.lengthAttr(e,"topFromText"),n=w.lengthAttr(e,"bottomFromText"),s=w.lengthAttr(e,"rightFromText"),o=w.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=st.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=st.addSize(t.cssStyle["margin-left"],o),t.cssStyle["margin-right"]=st.addSize(t.cssStyle["margin-right"],s),t.cssStyle["margin-top"]=st.addSize(t.cssStyle["margin-top"],r)}parseTableRow(e){var t={type:N.Row,children:[]};for(let r of w.elements(e))switch(r.localName){case"tc":t.children.push(this.parseTableCell(r));break;case"trPr":case"tblPrEx":this.parseTableRowProperties(r,t);break}return t}parseTableRowProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,r=>{switch(r.localName){case"cnfStyle":t.className=st.classNameOfCnfStyle(r);break;case"tblHeader":t.isHeader=w.boolAttr(r,"val");break;case"gridBefore":t.gridBefore=w.intAttr(r,"val");break;case"gridAfter":t.gridAfter=w.intAttr(r,"val");break;default:return!1}return!0})}parseTableCell(e){var t={type:N.Cell,children:[]};for(let r of w.elements(e))switch(r.localName){case"tbl":t.children.push(this.parseTable(r));break;case"p":t.children.push(this.parseParagraph(r));break;case"tcPr":this.parseTableCellProperties(r,t);break}return t}parseTableCellProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,r=>{switch(r.localName){case"gridSpan":t.span=w.intAttr(r,"val",null);break;case"vMerge":t.verticalMerge=w.attr(r,"val")??"continue";break;case"cnfStyle":t.className=st.classNameOfCnfStyle(r);break;default:return!1}return!0}),this.parseTableCellVerticalText(e,t)}parseTableCellVerticalText(e,t){let r={btLr:{writingMode:"vertical-rl",transform:"rotate(180deg)"},lrTb:{writingMode:"vertical-lr",transform:"none"},tbRl:{writingMode:"vertical-rl",transform:"none"}};for(let n of w.elements(e))if(n.localName==="textDirection"){let s=w.attr(n,"val"),o=r[s]||{writingMode:"horizontal-tb"};t.cssStyle["writing-mode"]=o.writingMode,t.cssStyle.transform=o.transform}}parseDefaultProperties(e,t=null,r=null,n=null){t=t||{};for(let s of w.elements(e))if(!n?.(s))switch(s.localName){case"jc":t["text-align"]=st.valueOfJc(s);break;case"textAlignment":t["vertical-align"]=st.valueOfTextAlignment(s);break;case"color":t.color=wt.colorAttr(s,"val",null,Rt.color);break;case"sz":t["font-size"]=t["min-height"]=w.lengthAttr(s,"val",ut.FontSize);break;case"shd":t["background-color"]=wt.colorAttr(s,"fill",null,Rt.shd);break;case"highlight":t["background-color"]=wt.colorAttr(s,"val",null,Rt.highlight);break;case"vertAlign":break;case"position":t.verticalAlign=w.lengthAttr(s,"val",ut.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":t.width=st.valueOfSize(s,"w");break;case"trHeight":this.parseTrHeight(s,t);break;case"strike":t["text-decoration"]=w.boolAttr(s,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=w.boolAttr(s,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=w.boolAttr(s,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=w.boolAttr(s,"val",!0)?"uppercase":"none";break;case"smallCaps":t["font-variant"]=w.boolAttr(s,"val",!0)?"small-caps":"none";break;case"u":this.parseUnderline(s,t);break;case"ind":case"tblInd":this.parseIndentation(s,t);break;case"rFonts":this.parseFont(s,t);break;case"tblBorders":this.parseBorderProperties(s,r||t);break;case"tblCellSpacing":t["border-spacing"]=st.valueOfMargin(s),t["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(s,t);break;case"bdr":t.border=st.valueOfBorder(s);break;case"tcBorders":this.parseBorderProperties(s,t);break;case"vanish":w.boolAttr(s,"val",!0)&&(t.display="none");break;case"kern":break;case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(s,r||t);break;case"tblLayout":t["table-layout"]=st.valueOfTblLayout(s);break;case"vAlign":t["vertical-align"]=st.valueOfTextAlignment(s);break;case"spacing":e.localName=="pPr"&&this.parseSpacing(s,t);break;case"wordWrap":w.boolAttr(s,"val")&&(t["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":t.hyphens=w.boolAttr(s,"val",!0)?"none":"auto";break;case"lang":t.$lang=w.attr(s,"val");break;case"rtl":case"bidi":w.boolAttr(s,"val",!0)&&(t.direction="rtl");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${e.localName}.${s.localName}`);break}return t}parseUnderline(e,t){var r=w.attr(e,"val");if(r!=null){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":t["text-decoration"]="underline dotted";break;case"double":t["text-decoration"]="underline double";break;case"single":case"thick":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration"]="underline wavy";break;case"words":t["text-decoration"]="underline";break;case"none":t["text-decoration"]="none";break}var n=wt.colorAttr(e,"color");n&&(t["text-decoration-color"]=n)}}parseFont(e,t){var r=w.attr(e,"ascii"),n=st.themeValue(e,"asciiTheme"),s=w.attr(e,"eastAsia"),o=[r,n,s].filter(d=>d).map(d=>Wt(d));o.length>0&&(t["font-family"]=[...new Set(o)].join(", "))}parseIndentation(e,t){var r=w.lengthAttr(e,"firstLine"),n=w.lengthAttr(e,"hanging"),s=w.lengthAttr(e,"left"),o=w.lengthAttr(e,"start"),d=w.lengthAttr(e,"right"),p=w.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]=`-${n}`),(s||o)&&(t["margin-inline-start"]=s||o),(d||p)&&(t["margin-inline-end"]=d||p)}parseSpacing(e,t){var r=w.lengthAttr(e,"before"),n=w.lengthAttr(e,"after"),s=w.intAttr(e,"line",null),o=w.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),s!==null)switch(o){case"auto":t["line-height"]=`${(s/240).toFixed(2)}`;break;case"atLeast":t["line-height"]=`calc(100% + ${s/20}pt)`;break;default:t["line-height"]=t["min-height"]=`${s/20}pt`;break}}parseMarginProperties(e,t){for(let r of w.elements(e))switch(r.localName){case"left":t["padding-left"]=st.valueOfMargin(r);break;case"right":t["padding-right"]=st.valueOfMargin(r);break;case"top":t["padding-top"]=st.valueOfMargin(r);break;case"bottom":t["padding-bottom"]=st.valueOfMargin(r);break}}parseTrHeight(e,t){switch(w.attr(e,"hRule")){case"exact":t.height=w.lengthAttr(e,"val");break;case"atLeast":default:t.height=w.lengthAttr(e,"val");break}}parseBorderProperties(e,t){for(let r of w.elements(e))switch(r.localName){case"start":case"left":t["border-left"]=st.valueOfBorder(r);break;case"end":case"right":t["border-right"]=st.valueOfBorder(r);break;case"top":t["border-top"]=st.valueOfBorder(r);break;case"bottom":t["border-bottom"]=st.valueOfBorder(r);break}}},Fr=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],wt=class{static colorAttr(e,t,r=null,n="black"){var s=w.attr(e,t);if(s)return s=="auto"?n:Fr.includes(s)?s:`#${s}`;var o=w.attr(e,"themeColor");return o?`var(--docx-${o}-color)`:r}},st=class a{static themeValue(e,t){var r=w.attr(e,t);return r?`var(--docx-${r}-font)`:null}static valueOfSize(e,t){var r=ut.Dxa;switch(w.attr(e,"type")){case"dxa":break;case"pct":r=ut.Percent;break;case"auto":return"auto"}return w.lengthAttr(e,t,r)}static valueOfMargin(e){return w.lengthAttr(e,"w")}static valueOfBorder(e){var t=a.parseBorderType(w.attr(e,"val"));if(t=="none")return"none";var r=wt.colorAttr(e,"color"),n=w.lengthAttr(e,"sz",ut.Border);return`${n} ${t} ${r=="auto"?Rt.borderColor:r}`}static parseBorderType(e){switch(e){case"single":return"solid";case"dashDotStroked":return"solid";case"dashed":return"dashed";case"dashSmallGap":return"dashed";case"dotDash":return"dotted";case"dotDotDash":return"dotted";case"dotted":return"dotted";case"double":return"double";case"doubleWave":return"double";case"inset":return"inset";case"nil":return"none";case"none":return"none";case"outset":return"outset";case"thick":return"solid";case"thickThinLargeGap":return"solid";case"thickThinMediumGap":return"solid";case"thickThinSmallGap":return"solid";case"thinThickLargeGap":return"solid";case"thinThickMediumGap":return"solid";case"thinThickSmallGap":return"solid";case"thinThickThinLargeGap":return"solid";case"thinThickThinMediumGap":return"solid";case"thinThickThinSmallGap":return"solid";case"threeDEmboss":return"solid";case"threeDEngrave":return"solid";case"triple":return"double";case"wave":return"solid"}return"solid"}static valueOfTblLayout(e){var t=w.attr(e,"val");return t=="fixed"?"fixed":"auto"}static classNameOfCnfStyle(e){let t=w.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((n,s)=>t[s]=="1").join(" ")}static valueOfJc(e){var t=w.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return t}static valueOfVertAlign(e,t=!1){var r=w.attr(e,"val");switch(r){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:r}static valueOfTextAlignment(e){var t=w.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return t}static addSize(e,t){return e==null?t:t==null?e:`calc(${e} + ${t})`}static classNameOftblLook(e){let t=w.hexAttr(e,"val",0),r="";return(w.boolAttr(e,"firstRow")||t&32)&&(r+=" first-row"),(w.boolAttr(e,"lastRow")||t&64)&&(r+=" last-row"),(w.boolAttr(e,"firstColumn")||t&128)&&(r+=" first-col"),(w.boolAttr(e,"lastColumn")||t&256)&&(r+=" last-col"),(w.boolAttr(e,"noHBand")||t&512)&&(r+=" no-hband"),(w.boolAttr(e,"noVBand")||t&1024)&&(r+=" no-vband"),r.trim()}},Me={pos:0,leader:"none",style:"left"},Or=50;function Lr(a=document.body){let e=document.createElement("div");e.style.width="100pt",a.appendChild(e);let t=100/e.offsetWidth;return a.removeChild(e),t}function Dr(a,e,t,r=72/96){let n=a.closest("p"),s=a.getBoundingClientRect(),o=n.getBoundingClientRect(),d=getComputedStyle(n),p=e?.length>0?e.map(x=>({pos:Be(x.position),leader:x.leader,style:x.style})).sort((x,E)=>x.pos-E.pos):[Me],k=p[p.length-1],y=o.width*r,c=Be(t),g=k.pos+c;if(gx.style!="clear"&&x.pos>u);if(v==null)return;let S=1;if(v.style=="right"||v.style=="center"){let x=Array.from(n.querySelectorAll(`.${a.className}`)),E=x.indexOf(a)+1,F=document.createRange();F.setStart(a,1),Eo.id)),e.endnotesPart&&(this.endnoteMap=_t(e.endnotesPart.notes,o=>o.id)),e.settingsPart&&(this.defaultTabSize=e.settingsPart.settings?.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r);var s=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(s)):Ht(t,s),this.commentHighlight&&n.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),this.postRenderTasks.forEach(o=>o()),await Promise.allSettled(this.tasks),this.refreshTabStops()}renderTheme(e,t){let r={},n=e.theme?.fontScheme;n&&(n.majorFont&&(r["--docx-majorHAnsi-font"]=n.majorFont.latinTypeface),n.minorFont&&(r["--docx-minorHAnsi-font"]=n.minorFont.latinTypeface));let s=e.theme?.colorScheme;if(s)for(let[d,p]of Object.entries(s.colors))r[`--docx-${d}-color`]=`#${p}`;let o=this.styleToString(`.${this.className}`,r);t.appendChild(this.createStyleElement(o))}renderFontTable(e,t){for(let r of e.fonts)for(let n of r.embedFontRefs)this.tasks.push(this.document.loadFont(n.id,n.key).then(s=>{let o={"font-family":Wt(r.name),src:`url(${s})`};(n.type=="bold"||n.type=="boldItalic")&&(o["font-weight"]="bold"),(n.type=="italic"||n.type=="boldItalic")&&(o["font-style"]="italic");let d=this.styleToString("@font-face",o);t.appendChild(this.createComment(`docxjs ${r.name} font`)),t.appendChild(this.createStyleElement(d))}))}processStyleName(e){return e?`${this.className}_${Ke(e)}`:this.className}processStyles(e){let t=_t(e.filter(n=>n.id!=null),n=>n.id);for(let n of e.filter(s=>s.basedOn)){var r=t[n.basedOn];if(r){n.paragraphProps=Tt(n.paragraphProps,r.paragraphProps),n.runProps=Tt(n.runProps,r.runProps);for(let s of r.styles){let o=n.styles.find(d=>d.target==s.target);o?this.copyStyleProperties(s.values,o.values):n.styles.push({...s,values:{...s.values}})}}else this.options.debug&&console.warn(`Can't find base style ${n.basedOn}`)}for(let n of e)n.cssName=this.processStyleName(n.id);return t}prodessNumberings(e){for(let t of e.filter(r=>r.pStyleName)){let r=this.findStyle(t.pStyleName);r?.paragraphProps?.numbering&&(r.paragraphProps.numbering.level=t.level)}}processElement(e){if(e.children)for(var t of e.children)t.parent=e,t.type==N.Table?this.processTable(t):this.processElement(t)}processTable(e){for(var t of e.children)for(var r of t.children)r.cssStyle=this.copyStyleProperties(e.cellStyle,r.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(r)}copyStyleProperties(e,t,r=null){if(!e)return t;t==null&&(t={}),r==null&&(r=Object.getOwnPropertyNames(e));for(var n of r)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}createPageElement(e,t){var r=this.createElement("section",{className:e});return t&&(t.pageMargins&&(r.style.paddingLeft=t.pageMargins.left,r.style.paddingRight=t.pageMargins.right,r.style.paddingTop=t.pageMargins.top,r.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(r.style.width=t.pageSize.width),this.options.ignoreHeight||(r.style.minHeight=t.pageSize.height))),r}createSectionContent(e){var t=this.createElement("article");return e.columns&&e.columns.numberOfColumns&&(t.style.columnCount=`${e.columns.numberOfColumns}`,t.style.columnGap=e.columns.space,e.columns.separator&&(t.style.columnRule="1px solid black")),t}renderSections(e){let t=[];this.processElement(e);let r=this.splitBySection(e.children,e.props),n=this.groupByPageBreaks(r),s=null;for(let d=0,p=n.length;dp.type=="first"):null)??(r%2==1?e.find(p=>p.type=="even"):null)??e.find(p=>p.type=="default"),d=o&&this.document.findPartByRelId(o.id,this.document.documentPart);if(d){this.currentPart=d,this.usedHederFooterParts.includes(d.path)||(this.processElement(d.rootElement),this.usedHederFooterParts.push(d.path));let[p]=this.renderElements([d.rootElement],s);t?.pageMargins&&(d.rootElement.type===N.Header?(p.style.marginTop=`calc(${t.pageMargins.header} - ${t.pageMargins.top})`,p.style.minHeight=`calc(${t.pageMargins.top} - ${t.pageMargins.header})`):d.rootElement.type===N.Footer&&(p.style.marginBottom=`calc(${t.pageMargins.footer} - ${t.pageMargins.bottom})`,p.style.minHeight=`calc(${t.pageMargins.bottom} - ${t.pageMargins.footer})`)),this.currentPart=null}}}isPageBreakElement(e){return e.type!=N.Break?!1:e.break=="lastRenderedPageBreak"?!this.options.ignoreLastRenderedPageBreak:e.break=="page"}isPageBreakSection(e,t){return!e||!t?!1:e.pageSize?.orientation!=t.pageSize?.orientation||e.pageSize?.width!=t.pageSize?.width||e.pageSize?.height!=t.pageSize?.height}splitBySection(e,t){var r={sectProps:null,elements:[],pageBreak:!1},n=[r];for(let c of e)if(c.type==N.Paragraph&&this.findStyle(c.styleName)?.paragraphProps?.pageBreakBefore&&(r.sectProps=s,r.pageBreak=!0,r={sectProps:null,elements:[],pageBreak:!1},n.push(r)),r.elements.push(c),c.type==N.Paragraph){let g=c;var s=g.sectionProps,o=-1,d=-1;if(this.options.breakPages&&g.children&&(o=g.children.findIndex(h=>(d=h.children?.findIndex(this.isPageBreakElement.bind(this))??-1,d!=-1))),(s||o!=-1)&&(r.sectProps=s,r.pageBreak=o!=-1,r={sectProps:null,elements:[],pageBreak:!1},n.push(r)),o!=-1){let h=g.children[o],m=d=0;c--)n[c].sectProps==null?n[c].sectProps=y??t:y=n[c].sectProps;return n}groupByPageBreaks(e){let t=[],r,n=[t];for(let s of e)t.push(s),(this.options.ignoreLastRenderedPageBreak||s.pageBreak||this.isPageBreakSection(r,s.sectProps))&&n.push(t=[]),r=s.sectProps;return n.filter(s=>s.length>0)}renderWrapper(e){return this.createElement("div",{className:`${this.className}-wrapper`},e)}renderDefaultStyle(){var e=this.className,t=` +.${e}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } +.${e}-wrapper>section.${e} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }`;this.options.hideWrapperOnPrint&&(t=`@media not print { ${t} }`);var r=`${t} +.${e} { color: black; hyphens: auto; text-underline-position: from-font; } +section.${e} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; } +section.${e}>article { margin-bottom: auto; z-index: 1; } +section.${e}>footer { z-index: 1; } +.${e} table { border-collapse: collapse; } +.${e} table td, .${e} table th { vertical-align: top; } +.${e} p { margin: 0pt; min-height: 1em; } +.${e} span { white-space: pre-wrap; overflow-wrap: break-word; } +.${e} a { color: inherit; text-decoration: inherit; } +.${e} svg { fill: transparent; } +`;return this.options.renderComments&&(r+=` +.${e}-comment-ref { cursor: default; } +.${e}-comment-popover { display: none; z-index: 1000; padding: 0.5rem; background: white; position: absolute; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25); width: 30ch; } +.${e}-comment-ref:hover~.${e}-comment-popover { display: block; } +.${e}-comment-author,.${e}-comment-date { font-size: 0.875rem; color: #888; } +`),this.createStyleElement(r)}renderNumbering(e,t){var r="",n=[];for(var s of e){var o=`p.${this.numberingClass(s.id,s.level)}`,d="none";if(s.bullet){let p=`--${this.className}-${s.bullet.src}`.toLowerCase();r+=this.styleToString(`${o}:before`,{content:"' '",display:"inline-block",background:`var(${p})`},s.bullet.style),this.tasks.push(this.document.loadNumberingImage(s.bullet.src).then(k=>{var y=`${this.rootSelector} { ${p}: url(${k}) }`;t.appendChild(this.createStyleElement(y))}))}else if(s.levelText){let p=this.numberingCounter(s.id,s.level),k=p+" "+(s.start-1);s.level>0&&(r+=this.styleToString(`p.${this.numberingClass(s.id,s.level-1)}`,{"counter-set":k})),n.push(k),r+=this.styleToString(`${o}:before`,{content:this.levelTextToContent(s.levelText,s.suff,s.id,this.numFormatToCssValue(s.format)),"counter-increment":p,...s.rStyle})}else d=this.numFormatToCssValue(s.format);r+=this.styleToString(o,{display:"list-item","list-style-position":"inside","list-style-type":d,...s.pStyle})}return n.length>0&&(r+=this.styleToString(this.rootSelector,{"counter-reset":n.join(" ")})),this.createStyleElement(r)}renderStyles(e){var t="";let r=this.styleMap,n=_t(e.filter(p=>p.isDefault),p=>p.target);for(let p of e){var s=p.styles;if(p.linked){var o=p.linked&&r[p.linked];o?s=s.concat(o.styles):this.options.debug&&console.warn(`Can't find linked style ${p.linked}`)}for(let k of s){var d=`${p.target??""}.${p.cssName}`;p.target!=k.target&&(d+=` ${k.target}`),n[p.target]==p&&(d=`.${this.className} ${p.target}, `+d),t+=this.styleToString(d,k.values)}}return this.createStyleElement(t)}renderNotes(e,t,r){var n=e.map(o=>t[o]).filter(o=>o);if(n.length>0){var s=this.createElement("ol",null,this.renderElements(n));r.appendChild(s)}}renderElement(e){switch(e.type){case N.Paragraph:return this.renderParagraph(e);case N.BookmarkStart:return this.renderBookmarkStart(e);case N.BookmarkEnd:return null;case N.Run:return this.renderRun(e);case N.Table:return this.renderTable(e);case N.Row:return this.renderTableRow(e);case N.Cell:return this.renderTableCell(e);case N.Hyperlink:return this.renderHyperlink(e);case N.SmartTag:return this.renderSmartTag(e);case N.Drawing:return this.renderDrawing(e);case N.Image:return this.renderImage(e);case N.Text:return this.renderText(e);case N.Text:return this.renderText(e);case N.DeletedText:return this.renderDeletedText(e);case N.Tab:return this.renderTab(e);case N.Symbol:return this.renderSymbol(e);case N.Break:return this.renderBreak(e);case N.Footer:return this.renderContainer(e,"footer");case N.Header:return this.renderContainer(e,"header");case N.Footnote:case N.Endnote:return this.renderContainer(e,"li");case N.FootnoteReference:return this.renderFootnoteReference(e);case N.EndnoteReference:return this.renderEndnoteReference(e);case N.NoBreakHyphen:return this.createElement("wbr");case N.VmlPicture:return this.renderVmlPicture(e);case N.VmlElement:return this.renderVmlElement(e);case N.MmlMath:return this.renderContainerNS(e,et.mathML,"math",{xmlns:et.mathML});case N.MmlMathParagraph:return this.renderContainer(e,"span");case N.MmlFraction:return this.renderContainerNS(e,et.mathML,"mfrac");case N.MmlBase:return this.renderContainerNS(e,et.mathML,e.parent.type==N.MmlMatrixRow?"mtd":"mrow");case N.MmlNumerator:case N.MmlDenominator:case N.MmlFunction:case N.MmlLimit:case N.MmlBox:return this.renderContainerNS(e,et.mathML,"mrow");case N.MmlGroupChar:return this.renderMmlGroupChar(e);case N.MmlLimitLower:return this.renderContainerNS(e,et.mathML,"munder");case N.MmlMatrix:return this.renderContainerNS(e,et.mathML,"mtable");case N.MmlMatrixRow:return this.renderContainerNS(e,et.mathML,"mtr");case N.MmlRadical:return this.renderMmlRadical(e);case N.MmlSuperscript:return this.renderContainerNS(e,et.mathML,"msup");case N.MmlSubscript:return this.renderContainerNS(e,et.mathML,"msub");case N.MmlDegree:case N.MmlSuperArgument:case N.MmlSubArgument:return this.renderContainerNS(e,et.mathML,"mn");case N.MmlFunctionName:return this.renderContainerNS(e,et.mathML,"ms");case N.MmlDelimiter:return this.renderMmlDelimiter(e);case N.MmlRun:return this.renderMmlRun(e);case N.MmlNary:return this.renderMmlNary(e);case N.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case N.MmlBar:return this.renderMmlBar(e);case N.MmlEquationArray:return this.renderMllList(e);case N.Inserted:return this.renderInserted(e);case N.Deleted:return this.renderDeleted(e);case N.CommentRangeStart:return this.renderCommentRangeStart(e);case N.CommentRangeEnd:return this.renderCommentRangeEnd(e);case N.CommentReference:return this.renderCommentReference(e);case N.AltChunk:return this.renderAltChunk(e)}return null}renderElements(e,t){if(e==null)return null;var r=e.flatMap(n=>this.renderElement(n)).filter(n=>n!=null);return t&&Ht(t,r),r}renderContainer(e,t,r){return this.createElement(t,r,this.renderElements(e.children))}renderContainerNS(e,t,r,n){return this.createElementNS(t,r,n,this.renderElements(e.children))}renderParagraph(e){var t=this.renderContainer(e,"p");let r=this.findStyle(e.styleName);e.tabs??(e.tabs=r?.paragraphProps?.tabs),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderCommonProperties(t.style,e);let n=e.numbering??r?.paragraphProps?.numbering;return n&&t.classList.add(this.numberingClass(n.id,n.level)),t}renderRunProperties(e,t){this.renderCommonProperties(e,t)}renderCommonProperties(e,t){t!=null&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}renderHyperlink(e){var t=this.renderContainer(e,"a");this.renderStyleValues(e.cssStyle,t);let r="";return e.id&&(r=this.document.documentPart.rels.find(s=>s.id==e.id&&s.targetMode==="External")?.target??r),e.anchor&&(r+=`#${e.anchor}`),t.href=r,t}renderSmartTag(e){return this.renderContainer(e,"span")}renderCommentRangeStart(e){if(!this.options.renderComments)return null;let t=new Range;this.commentHighlight?.add(t);let r=this.createComment(`start of comment #${e.id}`);return this.later(()=>t.setStart(r,0)),this.commentMap[e.id]=t,r}renderCommentRangeEnd(e){if(!this.options.renderComments)return null;let t=this.commentMap[e.id],r=this.createComment(`end of comment #${e.id}`);return this.later(()=>t?.setEnd(r,0)),r}renderCommentReference(e){if(!this.options.renderComments)return null;var t=this.document.commentsPart?.commentMap[e.id];if(!t)return null;let r=new DocumentFragment,n=this.createElement("span",{className:`${this.className}-comment-ref`},["\u{1F4AC}"]),s=this.createElement("div",{className:`${this.className}-comment-popover`});return this.renderCommentContent(t,s),r.appendChild(this.createComment(`comment #${t.id} by ${t.author} on ${t.date}`)),r.appendChild(n),r.appendChild(s),r}renderAltChunk(e){if(!this.options.renderAltChunks)return null;var t=this.createElement("iframe");return this.tasks.push(this.document.loadAltChunk(e.id,this.currentPart).then(r=>{t.srcdoc=r})),t}renderCommentContent(e,t){t.appendChild(this.createElement("div",{className:`${this.className}-comment-author`},[e.author])),t.appendChild(this.createElement("div",{className:`${this.className}-comment-date`},[new Date(e.date).toLocaleString()])),this.renderElements(e.children,t)}renderDrawing(e){var t=this.renderContainer(e,"div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderStyleValues(e.cssStyle,t),t}renderImage(e){let t=this.createElement("img"),r=e.cssStyle?.transform;if(this.renderStyleValues(e.cssStyle,t),e.srcRect&&e.srcRect.some(p=>p!=0)){var[n,s,o,d]=e.srcRect;r=`scale(${1/(1-n-o)}, ${1/(1-s-d)})`,t.style["clip-path"]=`rect(${(100*s).toFixed(2)}% ${(100*(1-o)).toFixed(2)}% ${(100*(1-d)).toFixed(2)}% ${(100*n).toFixed(2)}%)`}return e.rotation&&(r=`rotate(${e.rotation}deg) ${r??""}`),t.style.transform=r?.trim(),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then(p=>{t.src=p})),t}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderChanges?this.renderText(e):null}renderBreak(e){return e.break=="textWrapping"?this.createElement("br"):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderElements(e.children)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}renderSymbol(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML=`&#x${e.char};`,t}renderFootnoteReference(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent=`${this.currentFootnoteIds.length}`,t}renderEndnoteReference(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent=`${this.currentEndnoteIds.length}`,t}renderTab(e){var t=this.createElement("span");if(t.innerHTML=" ",this.options.experimental){t.className=this.tabStopClass();var r=jr(e,N.Paragraph)?.tabs;this.currentTabs.push({stops:r,span:t})}return t}renderBookmarkStart(e){return this.createElement("span",{id:e.name})}renderRun(e){if(e.fieldRun)return null;let t=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){let r=this.createElement(e.verticalAlign);this.renderElements(e.children,r),t.appendChild(r)}else this.renderElements(e.children,t);return t}renderTable(e){let t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderElements(e.children,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}renderTableColumns(e){let t=this.createElement("colgroup");for(let r of e){let n=this.createElement("col");r.width&&(n.style.width=r.width),t.appendChild(n)}return t}renderTableRow(e){let t=this.createElement("tr");return this.currentCellPosition.col=0,e.gridBefore&&t.appendChild(this.renderTableCellPlaceholder(e.gridBefore)),this.renderClass(e,t),this.renderElements(e.children,t),this.renderStyleValues(e.cssStyle,t),e.gridAfter&&t.appendChild(this.renderTableCellPlaceholder(e.gridAfter)),this.currentCellPosition.row++,t}renderTableCellPlaceholder(e){let t=this.createElement("td",{colSpan:e});return t.style.border="none",t}renderTableCell(e){let t=this.renderContainer(e,"td"),r=this.currentCellPosition.col;return e.verticalMerge?e.verticalMerge=="restart"?(this.currentVerticalMerge[r]=t,t.rowSpan=1):this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}renderVmlPicture(e){return this.renderContainer(e,"div")}renderVmlElement(e){var t=this.createSvgElement("svg");t.setAttribute("style",e.cssStyleText);let r=this.renderVmlChildElement(e);return e.imageHref?.id&&this.tasks.push(this.document?.loadDocumentImage(e.imageHref.id,this.currentPart).then(n=>r.setAttribute("href",n))),t.appendChild(r),requestAnimationFrame(()=>{let n=t.firstElementChild.getBBox();t.setAttribute("width",`${Math.ceil(n.x+n.width)}`),t.setAttribute("height",`${Math.ceil(n.y+n.height)}`)}),t}renderVmlChildElement(e){let t=this.createSvgElement(e.tagName);Object.entries(e.attrs).forEach(([r,n])=>t.setAttribute(r,n));for(let r of e.children)r.type==N.VmlElement?t.appendChild(this.renderVmlChildElement(r)):t.appendChild(...At(this.renderElement(r)));return t}renderMmlRadical(e){let t=e.children.find(n=>n.type==N.MmlBase);if(e.props?.hideDegree)return this.createElementNS(et.mathML,"msqrt",null,this.renderElements([t]));let r=e.children.find(n=>n.type==N.MmlDegree);return this.createElementNS(et.mathML,"mroot",null,this.renderElements([t,r]))}renderMmlDelimiter(e){let t=[];return t.push(this.createElementNS(et.mathML,"mo",null,[e.props.beginChar??"("])),t.push(...this.renderElements(e.children)),t.push(this.createElementNS(et.mathML,"mo",null,[e.props.endChar??")"])),this.createElementNS(et.mathML,"mrow",null,t)}renderMmlNary(e){let t=[],r=_t(e.children,k=>k.type),n=r[N.MmlSuperArgument],s=r[N.MmlSubArgument],o=n?this.createElementNS(et.mathML,"mo",null,At(this.renderElement(n))):null,d=s?this.createElementNS(et.mathML,"mo",null,At(this.renderElement(s))):null,p=this.createElementNS(et.mathML,"mo",null,[e.props?.char??"\u222B"]);return o||d?t.push(this.createElementNS(et.mathML,"munderover",null,[p,d,o])):o?t.push(this.createElementNS(et.mathML,"mover",null,[p,o])):d?t.push(this.createElementNS(et.mathML,"munder",null,[p,d])):t.push(p),t.push(...this.renderElements(r[N.MmlBase].children)),this.createElementNS(et.mathML,"mrow",null,t)}renderMmlPreSubSuper(e){let t=[],r=_t(e.children,k=>k.type),n=r[N.MmlSuperArgument],s=r[N.MmlSubArgument],o=n?this.createElementNS(et.mathML,"mo",null,At(this.renderElement(n))):null,d=s?this.createElementNS(et.mathML,"mo",null,At(this.renderElement(s))):null,p=this.createElementNS(et.mathML,"mo",null);return t.push(this.createElementNS(et.mathML,"msubsup",null,[p,d,o])),t.push(...this.renderElements(r[N.MmlBase].children)),this.createElementNS(et.mathML,"mrow",null,t)}renderMmlGroupChar(e){let t=e.props.verticalJustification==="bot"?"mover":"munder",r=this.renderContainerNS(e,et.mathML,t);return e.props.char&&r.appendChild(this.createElementNS(et.mathML,"mo",null,[e.props.char])),r}renderMmlBar(e){let t=this.renderContainerNS(e,et.mathML,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline";break}return t}renderMmlRun(e){let t=this.createElementNS(et.mathML,"ms",null,this.renderElements(e.children));return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),t}renderMllList(e){let t=this.createElementNS(et.mathML,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t);for(let r of this.renderElements(e.children))t.appendChild(this.createElementNS(et.mathML,"mtr",null,[this.createElementNS(et.mathML,"mtd",null,[r])]));return t}renderStyleValues(e,t){for(let r in e)r.startsWith("$")?t.setAttribute(r.slice(1),e[r]):t.style[r]=e[r]}renderClass(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}findStyle(e){return e&&this.styleMap?.[e]}numberingClass(e,t){return`${this.className}-num-${e}-${t}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(e,t,r=null){let n=`${e} {\r +`;for(let s in t)s.startsWith("$")||(n+=` ${s}: ${t[s]};\r +`);return r&&(n+=r),n+`}\r +`}numberingCounter(e,t){return`${this.className}-num-${e}-${t}`}levelTextToContent(e,t,r,n){let s={tab:"\\9",space:"\\a0"};var o=e.replace(/%\d*/g,d=>{let p=parseInt(d.substring(1),10)-1;return`"counter(${this.numberingCounter(r,p)}, ${n})"`});return`"${o}${s[t]??""}"`}numFormatToCssValue(e){var t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"};return t[e]??e}refreshTabStops(){this.options.experimental&&setTimeout(()=>{let e=Lr();for(let t of this.currentTabs)Dr(t.span,t.stops,this.defaultTabSize,e)},500)}createElementNS(e,t,r,n){var s=e?this.htmlDocument.createElementNS(e,t):this.htmlDocument.createElement(t);return Object.assign(s,r),n&&Ht(s,n),s}createElement(e,t,r){return this.createElementNS(void 0,e,t,r)}createSvgElement(e,t,r){return this.createElementNS(et.svg,e,t,r)}createStyleElement(e){return this.createElement("style",{innerHTML:e})}createComment(e){return this.htmlDocument.createComment(e)}later(e){this.postRenderTasks.push(e)}};function Re(a){a.innerHTML=""}function Ht(a,e){e.forEach(t=>a.appendChild(Je(t)?document.createTextNode(t):t))}function jr(a,e){for(var t=a.parent;t!=null&&t.type!=e;)t=t.parent;return t}var He={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,hideWrapperOnPrint:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1,renderAltChunks:!0};function Ur(a,e){let t={...He,...e};return de.load(a,new ve(t),t)}async function $r(a,e,t,r){let n={...He,...r};return await new ke(window.document).render(a,e,t,n)}async function Wr(a,e,t,r){let n=await Ur(a,r);return await $r(n,e,t,r),n}export{He as defaultOptions,Ur as parseAsync,Wr as renderAsync,$r as renderDocument}; +/*! Bundled license information: + +jszip/dist/jszip.min.js: + (*! + + JSZip v3.10.1 - A JavaScript class for generating and reading zip files + + + (c) 2009-2016 Stuart Knightley + Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. + + JSZip uses the library pako released under the MIT license : + https://github.com/nodeca/pako/blob/main/LICENSE + *) + +docx-preview/dist/docx-preview.mjs: + (* + * @license + * docx-preview + * Released under Apache License 2.0 + * Copyright Volodymyr Baydalka + *) +*/ diff --git a/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/office-3UIRH4NA.mjs b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/office-3UIRH4NA.mjs new file mode 100644 index 0000000000..7d8944ea86 --- /dev/null +++ b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/office-3UIRH4NA.mjs @@ -0,0 +1,7 @@ +import"./chunk-OVILVMKS.mjs";var le=2e3;function fe(A,r,c=le){if(A.querySelectorAll("mark[data-office-match]").forEach(x=>x.replaceWith(...x.childNodes)),A.normalize(),!r.trim()||c<=0)return[];let e=[],z=[...A.querySelectorAll("p,td,th,li,h1,h2,h3,h4,h5,h6")].filter(x=>!x.querySelector("p,td,th,li,h1,h2,h3,h4,h5,h6"));z.length||z.push(A);let b=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");for(let x of z){if(e.length>=c)break;let y=document.createTreeWalker(x,NodeFilter.SHOW_TEXT,{acceptNode:S=>S.parentElement.closest("style,script")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),O=[],g="",k;for(;k=y.nextNode();)O.push({node:k,start:g.length}),g+=k.textContent;let n=[];for(let S of g.matchAll(new RegExp(b,"giu")))if(n.push(S),n.length>=c-e.length)break;let d=n.map(()=>[]);for(let{node:S,start:B}of O){let Q=S.textContent,W=document.createDocumentFragment(),Z=0;n.forEach((_,he)=>{let oe=Math.max(0,_.index-B),ee=Math.min(Q.length,_.index+_[0].length-B);if(oe>=ee)return;W.append(document.createTextNode(Q.slice(Z,oe)));let K=document.createElement("mark");K.dataset.officeMatch="",K.textContent=Q.slice(oe,ee),W.append(K),d[he].push(K),Z=ee}),Z&&(W.append(document.createTextNode(Q.slice(Z))),S.replaceWith(W))}e.push(...d.filter(S=>S.length))}return e}async function Ie(A,r,c,{timeoutMs:e=15e3,workerFactory:z=()=>new Worker(new URL("./office-worker.mjs",import.meta.url),{type:"module"})}={}){return c.throwIfAborted(),new Promise((b,x)=>{let y,O,g=!1,k=(d,S)=>{g||(g=!0,clearTimeout(O),c.removeEventListener("abort",n),y&&(y.onmessage=y.onerror=y.onmessageerror=null,y.terminate()),d?x(d):b(S))},n=()=>k(c.reason??new DOMException("Preview cancelled","AbortError"));try{if(y=z(),c.addEventListener("abort",n,{once:!0}),c.aborted){n();return}O=setTimeout(()=>k(new Error("Office preview parsing timed out")),e),y.onmessage=({data:S})=>{S.error?k(new Error(S.error)):Object.hasOwn(S,"result")&&k(null,S.result)},y.onerror=S=>{S.preventDefault(),k(new Error("Office preview worker failed"))},y.onmessageerror=()=>k(new Error("Office preview worker response failed"));let d=A.slice(0);y.postMessage({bytes:d,kind:r},[d])}catch(d){k(d)}})}function Be(A){return A.map(r=>({...r,_merges:Object.fromEntries(r.merges.map(c=>[`${c.top}:${c.left}`,{model:c}])),getColumn:c=>r.columns[c-1]??{},getRow:c=>({...r.rows[c-1],getCell:e=>r.rows[c-1].cells[e-1]}),getCell:(c,e)=>r.rows[c-1].cells[e-1]}))}function Ae(A,r){let c=r.startsWith("/")?[]:A.split("/").slice(0,-1);for(let e of r.split("/"))e===".."?c.pop():e&&e!=="."&&c.push(e);return c.join("/")}function Pe(A){let r=new Map,c=!1,e=(b,x)=>{if(c)return null;let y=b?.rels?.find(d=>d.id===x&&d.targetMode!=="External");if(!y)return null;let O=Ae(b.path,y.target);if(r.has(O))return r.get(O);let g=Object.hasOwn(A.images,O)?A.images[O]:null;if(!g)return null;let k=g[0]===137?"image/png":"image/jpeg",n=URL.createObjectURL(new Blob([g],{type:k}));return r.set(O,n),n},z=A.word;return{document:{...z,findPartByRelId(b,x=null){let y=(x?.rels??z.rels).find(g=>g.id===b&&g.targetMode!=="External"),O=y?Ae(x?.path??"",y.target):"";return Object.hasOwn(z.partsMap,O)?z.partsMap[O]:null},async loadDocumentImage(b,x){return e(x??z.documentPart,b)},async loadNumberingImage(b){return e(z.numberingPart,b)},async loadFont(){return null},async loadAltChunk(){return null}},dispose(){c=!0;for(let b of r.values())URL.revokeObjectURL(b);r.clear()}}}var ze=` +:host{display:block;height:100%;min-width:0}*{box-sizing:border-box}.office{height:100%;display:flex;flex-direction:column;font:13px system-ui,sans-serif;color:var(--foreground);background:var(--background)} +.bar,.tabs{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}.bar button,.tabs button{color:inherit;background:var(--background);border:1px solid var(--border);border-radius:6px;min-width:28px;height:28px;cursor:pointer}.bar button:hover,.tabs button:hover{background:var(--accent)}button:focus-visible,input:focus-visible,td:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.muted{color:var(--muted-foreground);font-size:12px}.spacer{flex:1}.bar input{min-width:80px;width:120px;background:var(--background);color:inherit;border:1px solid var(--border);border-radius:6px;padding:5px 7px}.canvas{flex:1;min-height:0;overflow:auto;background:var(--muted);padding:20px;overscroll-behavior:contain}.paper{width:max-content;min-width:100%;transform-origin:top left}.tabs{border-bottom:0;border-top:1px solid var(--border);padding:8px 12px;overflow:auto;flex-wrap:nowrap}.tabs button{white-space:nowrap;padding:3px 14px}.tabs button[aria-selected=true]{border-color:var(--ring);background:var(--accent);font-weight:600}.formula{padding:8px 12px;min-height:34px;border-bottom:1px solid var(--border);font-family:monospace;white-space:nowrap;overflow:auto}.table{border-collapse:separate;border-spacing:0;background:var(--background);table-layout:fixed;user-select:text}.table th,.table td{padding:8px 10px;min-width:90px;max-width:360px;height:32px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);white-space:pre-wrap;overflow-wrap:anywhere}.table th{position:sticky;top:0;background:var(--muted);color:var(--muted-foreground);font:11px system-ui;z-index:1;text-align:center}.table th:first-child{left:0;min-width:42px;width:42px;z-index:2}.table td:focus{box-shadow:inset 0 0 0 2px var(--ring)}.note{padding:8px 12px;background:var(--accent);color:var(--accent-foreground);font-size:12px}.empty{padding:40px;text-align:center;color:var(--muted-foreground)}mark{background:#ffe478;color:#202020}.docx-wrapper{background:transparent!important;padding:0!important}.docx-wrapper>section.docx{box-shadow:0 2px 12px #0002;margin:0 auto 24px!important}.docx a{pointer-events:none;color:inherit;text-decoration:none}.slide{border:0;display:block;background:white;box-shadow:0 2px 12px #0002}.pages{display:flex;gap:8px;align-items:center}.slides-nav{display:flex;gap:6px;max-width:100%;overflow:auto}.slides-nav button{flex-shrink:0}.slides-nav button[aria-current=true]{outline:2px solid var(--ring)} +`,De=` +button:disabled{opacity:.4;cursor:default}.bar button[aria-pressed=true]{background:var(--accent);border-color:var(--ring)}.cell-tools{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);padding:6px 12px;flex-wrap:wrap}.cell-tools form{display:flex;align-items:center;gap:4px}.cell-tools input{width:74px;min-width:0;padding:6px;border:1px solid var(--border);border-radius:6px;background:var(--background);color:inherit;font:12px monospace}.cell-tools input[aria-invalid=true]{border-color:var(--destructive)}.cell-tools button{min-height:30px;background:var(--background);color:inherit;border:1px solid var(--border);border-radius:6px;padding:3px 8px;cursor:pointer}.cell-tools .formula{flex:1;min-width:100px;padding:4px;border:0;min-height:0}.cell-status{font-size:12px;color:var(--muted-foreground)}.table td[data-selected=true]{box-shadow:inset 0 0 0 2px var(--ring)}.canvas:focus-visible{outline:2px solid var(--ring);outline-offset:-2px} +`,a=(A,r,c)=>{let e=document.createElement(A);return r&&(e.className=r),c!==void 0&&(e.textContent=c),e},q=(A,r,c)=>{let e=a("button","",A);return e.type="button",e.setAttribute("aria-label",r),e.title=r,e.addEventListener("click",c),e};async function Qe(A,r){let c=r.locale.startsWith("zh"),e=(o,L)=>c?L:o,z=a("style");z.textContent=ze+De+` +.reader-body{display:flex;flex:1;min-height:0;min-width:0}.reader-body>.canvas{min-width:0}.navigation{width:160px;flex-shrink:0;overflow:auto;padding:8px;border-right:1px solid var(--border);background:var(--background)}.navigation[hidden]{display:none}.navigation button{display:block;width:100%;text-align:left;padding:8px;margin-bottom:8px;border:1px solid var(--border);border-radius:6px;background:var(--background);color:inherit;cursor:pointer;overflow-wrap:anywhere}.navigation button[aria-current=true]{border-color:var(--ring);background:var(--accent)}.thumbnail{display:block;width:128px;height:72px;overflow:hidden;pointer-events:none;background:white;margin-bottom:6px}.thumbnail iframe{width:960px;height:540px;border:0;transform:scale(.1333333);transform-origin:top left}.find{display:flex;align-items:center;gap:6px;padding:8px 12px;flex-wrap:wrap;border-bottom:1px solid var(--border)}.find input{min-width:100px;flex:1;width:140px;background:var(--background);color:inherit;border:1px solid var(--border);border-radius:6px;padding:6px}.find button{border:1px solid var(--border);border-radius:6px;color:inherit;background:var(--background);min-width:30px;min-height:30px;cursor:pointer}.search-scope{flex-basis:100%;font-size:11px;color:var(--muted-foreground)}mark[data-current=true]{outline:2px solid var(--ring)}@media(max-width:600px){.navigation{width:120px}.thumbnail{width:96px;height:54px}.thumbnail iframe{transform:scale(.1)}}`;let b=a("div","office");b.append(a("div","empty",e("Preparing preview\u2026","\u6B63\u5728\u51C6\u5907\u9884\u89C8\u2026"))),A.replaceChildren(z,b);let x=r.filename.split(".").pop().toLowerCase(),y=await Ie(await r.readFile(),x,r.signal);r.signal.throwIfAborted();let O=r.getReadingState?.(),g=O?.version===1?O:{};r.signal.throwIfAborted(),b.replaceChildren();let k=a("div","bar");k.append(a("strong","",x==="xlsx"?"Excel":x==="docx"?"Word":"PowerPoint")),k.append(a("span","muted",e("Preview","\u9884\u89C8")),a("span","spacer"));let n=a("div","canvas"),d=a("div","paper");n.append(d);let S=a("div","tabs"),B=1,Q=a("span","muted","100%"),W=!1,Z=(o,L=!1)=>{let C=B,M=n.scrollLeft,h=n.scrollTop,p=n.scrollHeight>n.clientHeight&&n.scrollHeight-h-n.clientHeight<=2;W=L,B=Math.max(.25,Math.min(2,o)),d.style.zoom=String(B),Q.textContent=`${Math.round(B*100)}%`,he.disabled=B<=.25,oe.disabled=B>=2,ee.setAttribute("aria-pressed",String(W)),C!==B&&n.scrollTo(M*B/C,p?n.scrollHeight-n.clientHeight:h*B/C)},_=()=>{let o=d.querySelector(x==="xlsx"?"table":x==="docx"?"section.docx":"iframe");Z(Math.min(1,Math.max(1,n.clientWidth-40)/(o?.offsetWidth||794)),!0)},he=q("\u2212",e("Zoom out","\u7F29\u5C0F"),()=>Z(B-.1)),oe=q("+",e("Zoom in","\u653E\u5927"),()=>Z(B+.1)),ee=q("\u2194",e("Fit width","\u9002\u5E94\u5BBD\u5EA6"),_);ee.setAttribute("aria-pressed","false"),k.append(he,Q,oe,ee);let K=a("div","reader-body");K.append(n),b.append(k,K,S);let ne=[],me=()=>({}),Se=!1,V=()=>{Se&&!r.signal.aborted&&r.saveReadingState?.({version:1,zoom:B,fitting:W,scroll:[n.scrollLeft,n.scrollTop],...me()})};n.addEventListener("scroll",()=>queueMicrotask(V)),k.addEventListener("click",()=>queueMicrotask(V)),n.addEventListener("wheel",()=>queueMicrotask(V));let Ee=a("div","find"),R=a("input");R.type="search",R.disabled=!0,R.setAttribute("aria-label",e("Find in file","\u5728\u6587\u4EF6\u4E2D\u67E5\u627E")),R.placeholder=e("Find in file\u2026","\u5728\u6587\u4EF6\u4E2D\u67E5\u627E\u2026");let de=a("span","muted");de.setAttribute("role","status"),de.setAttribute("aria-label",e("Search matches","\u641C\u7D22\u5339\u914D"));let Ce=a("span","search-scope",x==="xlsx"?e("Search visible cells across all visible sheets, within the first 500 rows and 50 columns per sheet. Hidden cells and formulas are excluded.","\u641C\u7D22\u6240\u6709\u53EF\u89C1\u5DE5\u4F5C\u8868\u524D 500 \u884C\u300150 \u5217\u4E2D\u7684\u53EF\u89C1\u5355\u5143\u683C\u5185\u5BB9\uFF1B\u4E0D\u542B\u9690\u85CF\u5355\u5143\u683C\u548C\u516C\u5F0F\u3002"):x==="docx"?e("Search rendered document text; embedded objects are excluded.","\u641C\u7D22\u5DF2\u6E32\u67D3\u7684\u6587\u6863\u6587\u5B57\uFF0C\u4E0D\u542B\u5D4C\u5165\u5BF9\u8C61\u3002"):e("Search slide text; text inside images, charts and embedded objects is excluded.","\u641C\u7D22\u5E7B\u706F\u7247\u6587\u5B57\uFF0C\u4E0D\u542B\u56FE\u7247\u3001\u56FE\u8868\u548C\u5D4C\u5165\u5BF9\u8C61\u5185\u7684\u6587\u5B57\u3002"));Ce.textContent+=e(" Shows up to 2,000 matches."," \u6700\u591A\u663E\u793A 2,000 \u5904\u5339\u914D\u3002");let J=[],ae=-1,ie=()=>{},te,Ne=()=>te===void 0?!1:(clearTimeout(te),te=void 0,ie(),!0);ne.push(()=>clearTimeout(te));let ge=o=>{J=o,ae=-1,xe.disabled=we.disabled=!o.length,de.textContent=R.value?e(`${o.length} matches`,`${o.length} \u5904\u5339\u914D`):e("Find text","\u67E5\u627E\u6587\u5B57")},be=o=>{J.length&&(ae=ae<0?o<0?J.length-1:0:(ae+o+J.length)%J.length,Promise.resolve(J[ae]()).catch(()=>{r.signal.aborted||r.onError()}),de.textContent=`${ae+1} / ${J.length}`,V())},xe=q("\u2191",e("Previous match","\u4E0A\u4E00\u5904\u5339\u914D"),()=>be(-1)),we=q("\u2193",e("Next match","\u4E0B\u4E00\u5904\u5339\u914D"),()=>be(1));xe.disabled=we.disabled=!0,Ee.append(R,de,xe,we,Ce),b.insertBefore(Ee,K),R.addEventListener("input",()=>{clearTimeout(te),ge([]),te=setTimeout(()=>{te=void 0,ie(),J.length&&be(1)},200)}),R.addEventListener("keydown",o=>{o.key==="Enter"&&(o.preventDefault(),Ne(),be(o.shiftKey?-1:1)),o.key==="Escape"&&(R.value="",Ne()||ie())}),b.addEventListener("keydown",o=>{(o.ctrlKey||o.metaKey)&&o.key.toLowerCase()==="f"&&(o.preventDefault(),R.focus(),R.select())});let Me=(o,L)=>{d.querySelectorAll("mark[data-current]").forEach(C=>delete C.dataset.current);for(let C of o[L]??[])C.dataset.current="true";o[L]?.[0]?.scrollIntoView({block:"center",inline:"nearest"})};if(n.addEventListener("wheel",o=>{(o.ctrlKey||o.metaKey)&&(o.preventDefault(),Z(B+(o.deltaY<0?.1:-.1)))},{passive:!1}),x==="xlsx"){let o=Be(y.sheets),L=a("div","cell-tools"),C=a("form"),M=a("input");M.setAttribute("aria-label",e("Go to cell","\u8DF3\u8F6C\u5230\u5355\u5143\u683C")),M.placeholder="A1",M.autocomplete="off",M.maxLength=12;let h=q(e("Go","\u8DF3\u8F6C"),e("Go to cell address","\u8DF3\u8F6C\u5230\u5355\u5143\u683C\u5730\u5740"),()=>C.requestSubmit()),p=a("output","formula");p.setAttribute("aria-label",e("Cell value or formula","\u5355\u5143\u683C\u5185\u5BB9\u6216\u516C\u5F0F"));let P=a("span","cell-status");P.setAttribute("role","status"),P.setAttribute("aria-label",e("Cell action status","\u5355\u5143\u683C\u64CD\u4F5C\u72B6\u6001"));let F,v=q(e("Copy","\u590D\u5236"),e("Copy cell value","\u590D\u5236\u5355\u5143\u683C\u5185\u5BB9"),async()=>{if(F)try{await navigator.clipboard.writeText(F.text),r.signal.aborted||(P.textContent=e("Copied","\u5DF2\u590D\u5236"))}catch{r.signal.aborted||(P.textContent=e("Select the value to copy manually.","\u8BF7\u9009\u62E9\u5185\u5BB9\u540E\u624B\u52A8\u590D\u5236\u3002"))}});v.disabled=!0,C.append(M,h),L.append(C,p,v,P),b.insertBefore(L,K);let U=a("div","slides-nav");U.setAttribute("role","tablist"),U.setAttribute("aria-label",e("Worksheets","\u5DE5\u4F5C\u8868")),S.append(U);let G=new Map(Array.isArray(g.sheets)?g.sheets:[]),D,u=()=>{let t=new Map,s=le,i=R.value.trim(),f=i?new RegExp(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"iu"):null;for(let m of d.querySelectorAll("td"))if(m.querySelector("mark[data-office-match]")||f?.test(m.textContent)){let $=fe(m,i,s);s-=$.length,t.set(m.dataset.address,$)}return t},l=0,w=async t=>{let s=++l;r.signal.throwIfAborted(),D&&G.set(D.id,{scroll:[n.scrollLeft,n.scrollTop],address:F?.address}),D=t,F=void 0,p.textContent=e("Select a cell to inspect its value or formula","\u9009\u62E9\u5355\u5143\u683C\u67E5\u770B\u5185\u5BB9\u6216\u516C\u5F0F"),v.disabled=!0,M.value="",P.textContent="",M.removeAttribute("aria-invalid");for(let E of U.children){let X=E.dataset.sheet===String(t.id);E.setAttribute("aria-selected",String(X)),E.tabIndex=X?0:-1}d.replaceChildren();let i=Math.min(t.rowCount,500),f=Math.min(t.columnCount,50),m=a("table","table");m.setAttribute("aria-label",t.name);let $=a("thead"),T=a("tr");T.append(a("th","",""));let H=E=>{let X="";for(let Y=E;Y;Y=Math.floor((Y-1)/26))X=String.fromCharCode(65+(Y-1)%26)+X;return X};for(let E=1;E<=f;E++)t.getColumn(E).hidden||T.append(a("th","",H(E)));$.append(T),m.append($);let se=a("tbody");m.append(se),i&&f&&d.append(m);for(let E=1;E<=i;E++){if(E%16===0&&(await new Promise(j=>setTimeout(j,0)),r.signal.throwIfAborted(),s!==l))return;let X=t.getRow(E);if(X.hidden)continue;let Y=a("tr");Y.append(a("th","",String(E)));for(let j=1;j<=f;j++){if(t.getColumn(j).hidden)continue;let I=X.getCell(j);if(I.isMerged&&I.master.address!==I.address)continue;let N=a("td","",I.text),ve=E,ye=j,$e=t._merges[`${E}:${j}`];if($e){let re=$e.model;re.top===E&&re.left===j&&(ve=Math.min(re.bottom,i),ye=Math.min(re.right,f),N.rowSpan=Array.from({length:ve-E+1},(pe,ke)=>E+ke).filter(pe=>!t.getRow(pe).hidden).length,N.colSpan=Array.from({length:ye-j+1},(pe,ke)=>j+ke).filter(pe=>!t.getColumn(pe).hidden).length)}N.tabIndex=-1,N.dataset.address=I.address,N.dataset.row=String(E),N.dataset.col=String(j),N.dataset.rowEnd=String(ve),N.dataset.colEnd=String(ye),N.style.width=`${Math.max(80,Math.min(360,(t.getColumn(j).width??12)*8))}px`,t.getColumn(j).hidden&&(N.hidden=!0),N.style.fontWeight=I.font?.bold?"600":"normal",N.style.fontStyle=I.font?.italic?"italic":"normal";let Oe=I.font?.color?.argb,Re=I.fill?.fgColor?.argb;/^[A-Fa-f0-9]{8}$/.test(Oe??"")&&(N.style.color=`#${Oe.slice(2)}`),/^[A-Fa-f0-9]{8}$/.test(Re??"")&&(N.style.backgroundColor=`#${Re.slice(2)}`),["left","center","right"].includes(I.alignment?.horizontal)&&(N.style.textAlign=I.alignment.horizontal),N.selectCell=()=>{for(let re of d.querySelectorAll("td[data-selected=true]"))re.tabIndex=-1,delete re.dataset.selected;N.tabIndex=0,N.dataset.selected="true",F=I,v.disabled=!1,M.value=I.address,M.removeAttribute("aria-invalid"),P.textContent="",p.textContent=`${I.address} ${I.formula?`= ${I.formula} \u2192 `:""}${I.text}`},N.addEventListener("focus",N.selectCell),Y.append(N)}se.append(Y)}(!i||!f)&&d.append(a("div","empty",e("This worksheet is empty.","\u6B64\u5DE5\u4F5C\u8868\u4E3A\u7A7A\u3002")));let ce=b.querySelector(".note");ce?.remove(),(t.rowCount>i||t.columnCount>f)&&(ce=a("div","note",e(`Showing the first ${i} rows and ${f} columns. Download for the complete workbook.`,`\u4EC5\u9884\u89C8\u524D ${i} \u884C\u3001${f} \u5217\uFF0C\u53EF\u4E0B\u8F7D\u5B8C\u6574\u5DE5\u4F5C\u7C3F\u3002`)),b.insertBefore(ce,K));let ue=G.get(t.id);(ue?.address&&d.querySelector(`td[data-address="${ue.address}"]`)||d.querySelector("td"))?.selectCell();let Le=ue?.scroll??[0,0];n.scrollTo(Le[0],Le[1]),W&&_(),u(),V()};for(let t of o){let s=q(t.name,t.name,()=>{w(t).catch(i=>{!r.signal.aborted&&i.name!=="AbortError"&&r.onError()})});s.setAttribute("role","tab"),s.dataset.sheet=String(t.id),U.append(s)}o.length?await w(o.find(t=>t.id===g.sheet)??o[0]):d.append(a("div","empty",e("No visible worksheets.","\u6CA1\u6709\u53EF\u89C1\u5DE5\u4F5C\u8868\u3002"))),me=()=>({sheet:D?.id,sheets:[...[...G.entries()].filter(([t])=>t!==D?.id),...D?[[D.id,{address:F?.address,scroll:[n.scrollLeft,n.scrollTop]}]]:[]].slice(-50)}),ie=()=>{let t=[],s=R.value.trim();if(s){let i=new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"giu");e:for(let f of o)for(let m=1;m<=Math.min(f.rowCount,500);m++)if(!f.getRow(m).hidden)for(let $=1;$<=Math.min(f.columnCount,50);$++){if(f.getColumn($).hidden)continue;let T=f.getCell(m,$);if(T.isMerged&&T.master.address!==T.address)continue;let H=0;for(let se of T.text.matchAll(i)){if(t.length>=le)break e;let ce=H++;t.push(async()=>{if(D!==f&&await w(f),r.signal.aborted||D!==f)return;let ue=u().get(T.address);d.querySelector(`td[data-address="${T.address}"]`)?.selectCell(),Me(ue??[],ce)})}}}u(),ge(t)},d.addEventListener("focusin",()=>queueMicrotask(V)),C.addEventListener("submit",t=>{t.preventDefault();let s=M.value.trim().toUpperCase(),i=/^([A-Z]{1,3})([1-9][0-9]{0,5})$/.exec(s),f=i?Number(i[2]):0,m=i?[...i[1]].reduce((T,H)=>T*26+H.charCodeAt(0)-64,0):0,$=i&&[...d.querySelectorAll("td")].find(T=>Number(T.dataset.row)<=f&&Number(T.dataset.rowEnd)>=f&&Number(T.dataset.col)<=m&&Number(T.dataset.colEnd)>=m);$?($.focus(),$.scrollIntoView({block:"nearest",inline:"nearest"})):(M.setAttribute("aria-invalid","true"),P.textContent=e("Cell is outside the visible preview.","\u6B64\u5355\u5143\u683C\u4E0D\u5728\u53EF\u89C1\u9884\u89C8\u8303\u56F4\u5185\u3002"))}),U.addEventListener("keydown",t=>{let s=[...U.children],i=s.indexOf(t.target);if(i<0||!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();let f=t.key==="Home"?0:t.key==="End"?s.length-1:(i+(t.key==="ArrowLeft"?-1:1)+s.length)%s.length;s[f].click(),s[f].focus()}),d.addEventListener("keydown",t=>{let s={ArrowUp:[-1,0],ArrowDown:[1,0],ArrowLeft:[0,-1],ArrowRight:[0,1]}[t.key],i=t.target.closest("td");if(!s||!i)return;let f=[...d.querySelectorAll("td")],m=Number(i.dataset.row),$=Number(i.dataset.col),T=f.filter(H=>s[0]?Number(H.dataset.col)<=$&&Number(H.dataset.colEnd)>=$&&(Number(H.dataset.row)-m)*s[0]>0:Number(H.dataset.row)<=m&&Number(H.dataset.rowEnd)>=m&&(Number(H.dataset.col)-$)*s[1]>0).sort((H,se)=>s[0]?(Number(H.dataset.row)-Number(se.dataset.row))*s[0]:(Number(H.dataset.col)-Number(se.dataset.col))*s[1])[0];t.preventDefault(),T&&(t.preventDefault(),T.focus())})}else if(x==="docx"){let{renderDocument:o}=await import("./docx-preview-VUQTZ67Q.mjs"),L=y.headings,C=Pe(y);ne.push(()=>C.dispose());let M=()=>C.dispose();r.signal.addEventListener("abort",M,{once:!0}),ne.push(()=>r.signal.removeEventListener("abort",M)),await new Promise(l=>setTimeout(l,0)),r.signal.throwIfAborted();try{await o(C.document,d,d,{inWrapper:!0,breakPages:!0,ignoreWidth:!1,ignoreHeight:!1,renderAltChunks:!1,useBase64URL:!1,ignoreFonts:!0})}catch(l){throw C.dispose(),l}r.signal.throwIfAborted(),d.querySelectorAll("a").forEach(l=>l.removeAttribute("href"));let h=[...d.querySelectorAll("section.docx")],p=a("nav","navigation");p.setAttribute("aria-label",e("Document outline","\u6587\u6863\u5927\u7EB2")),K.prepend(p),p.hidden=g.navigationOpen===!1;let P=q(e("Outline","\u5927\u7EB2"),e("Toggle document outline","\u5C55\u5F00\u6216\u6536\u8D77\u6587\u6863\u5927\u7EB2"),()=>{p.hidden=!p.hidden,P.setAttribute("aria-expanded",String(!p.hidden)),W&&_(),V()});P.setAttribute("aria-expanded",String(!p.hidden)),k.insertBefore(P,k.children[2]);for(let l of L){let w=d.querySelector(`[id="${l.id}"]`);if(!w)continue;let t=q(l.title,l.title,()=>{n.scrollTop+=w.getBoundingClientRect().top-n.getBoundingClientRect().top-20,p.querySelectorAll("button").forEach(s=>s.setAttribute("aria-current",String(s===t))),V()});t.style.paddingLeft=`${8+l.level*10}px`,p.append(t)}p.children.length||p.append(a("p","muted",e("No document headings.","\u6587\u6863\u6CA1\u6709\u6807\u9898\u5927\u7EB2\u3002")));let F=a("span","muted"),v=0;F.setAttribute("aria-live","polite");let U=()=>{F.textContent=`${h.length?v+1:0} / ${h.length}`,D.disabled=v<=0,u.disabled=v>=h.length-1},G=l=>{v=Math.max(0,Math.min(h.length-1,l)),h[v]&&(n.scrollTop+=h[v].getBoundingClientRect().top-n.getBoundingClientRect().top-20),U(),V()},D=q("\u2039",e("Previous page","\u4E0A\u4E00\u9875"),()=>G(v-1)),u=q("\u203A",e("Next page","\u4E0B\u4E00\u9875"),()=>G(v+1));S.append(D,F,u),me=()=>({page:v,navigationOpen:!p.hidden}),ie=()=>{let l=fe(d,R.value.trim());ge(l.map((w,t)=>()=>Me(l,t)))},U(),n.addEventListener("scroll",()=>{let l=n.getBoundingClientRect().top+24,w=0;for(let t=0;tn.clientHeight&&n.scrollHeight-n.scrollTop-n.clientHeight<=2&&(w=h.length-1),w!==v&&(v=w,U())}),_()}else{let o=y.slides;r.signal.throwIfAborted();let L=a("iframe","slide");L.width="960",L.height="540",L.setAttribute("sandbox",""),L.setAttribute("title",r.filename);let C=(u,l=!1,w=-1)=>{let t=new DOMParser().parseFromString(u,"text/html");t.querySelectorAll("script,iframe,object,embed,link,base,meta,form,audio,video").forEach(s=>s.remove()),t.querySelectorAll("*").forEach(s=>{for(let i of[...s.attributes])(i.name.startsWith("on")||["href","srcdoc","action"].includes(i.name)||i.name==="src"&&!/^data:image\/(png|jpe?g|gif|webp|svg\+xml);base64,/i.test(i.value))&&s.removeAttribute(i.name)});for(let s of t.querySelectorAll("div")){if(!["flex","inline-flex"].includes(s.style.display))continue;let i=[],f=()=>{if(i.some(m=>m.textContent.trim())){let m=t.createElement("div");m.style.minWidth="0",i[0].before(m),m.append(...i)}i=[]};for(let m of[...s.childNodes])m.nodeType===3||/^(SPAN|B|I|U|S|EM|STRONG|BR|A|SUB|SUP)$/.test(m.nodeName)?i.push(m):f();f()}if(l){let s=fe(t.body,R.value.trim());for(let i of s[w]??[])i.dataset.current="true"}return t.body.innerHTML},M=a("span","muted");M.setAttribute("aria-live","polite");let h=0,p=a("nav","navigation");p.setAttribute("aria-label",e("Slide thumbnails","\u5E7B\u706F\u7247\u7F29\u7565\u56FE")),p.hidden=g.navigationOpen===!1,K.prepend(p);let P=q(e("Thumbnails","\u7F29\u7565\u56FE"),e("Toggle slide thumbnails","\u5C55\u5F00\u6216\u6536\u8D77\u5E7B\u706F\u7247\u7F29\u7565\u56FE"),()=>{p.hidden=!p.hidden,P.setAttribute("aria-expanded",String(!p.hidden)),W&&_(),V()});P.setAttribute("aria-expanded",String(!p.hidden)),k.insertBefore(P,k.children[2]);let F=u=>`${u}`,v=(u,l=-1)=>{h=Math.max(0,Math.min(o.length-1,u)),L.srcdoc=F(C(o[h]??"",!0,l)),M.textContent=`${h+1} / ${o.length}`,U.disabled=h===0,G.disabled=h===o.length-1;for(let w=0;wv(h-1)),G=q("\u203A",e("Next slide","\u4E0B\u4E00\u9875"),()=>v(h+1)),D=new IntersectionObserver(u=>{if(!r.signal.aborted)for(let l of u){let w=l.target.querySelector(".thumbnail");if(l.isIntersecting&&!w.children.length){let t=a("iframe");t.setAttribute("sandbox",""),t.tabIndex=-1,t.setAttribute("aria-hidden","true"),t.srcdoc=F(C(o[Number(l.target.dataset.slide)])),w.append(t)}else l.isIntersecting||w.replaceChildren()}},{root:p,rootMargin:"100px"});ne.push(()=>D.disconnect());for(let u=0;uv(u));l.dataset.slide=String(u),l.append(a("span","thumbnail"),a("span","muted",String(u+1))),p.append(l),D.observe(l)}if(d.append(L),S.append(U,M,G),me=()=>({page:h,navigationOpen:!p.hidden}),ie=()=>{let u=[];o.forEach((l,w)=>{if(u.length>=le)return;let t=new DOMParser().parseFromString(C(l),"text/html");fe(t.body,R.value.trim(),le-u.length).forEach((i,f)=>u.push(()=>v(w,f)))}),ge(u),v(h)},n.tabIndex=0,n.setAttribute("aria-label",e("Slide preview. Use arrow keys to change slides.","\u5E7B\u706F\u7247\u9884\u89C8\uFF0C\u53EF\u4F7F\u7528\u65B9\u5411\u952E\u7FFB\u9875\u3002")),b.addEventListener("keydown",u=>{if(u.ctrlKey||u.metaKey||u.altKey||u.target.closest(".bar,.find,input,textarea"))return;let l={ArrowLeft:h-1,ArrowUp:h-1,PageUp:h-1,ArrowRight:h+1,ArrowDown:h+1,PageDown:h+1,Home:0,End:o.length-1}[u.key];l!==void 0&&(u.preventDefault(),v(l))}),o.length)v(Number.isInteger(g.page)?g.page:0);else throw new Error("Empty presentation");_()}Number.isFinite(g.zoom)&&(g.fitting?_():Z(g.zoom)),Array.isArray(g.scroll)&&g.scroll.every(Number.isFinite)&&n.scrollTo(g.scroll[0],g.scroll[1]),Se=!0,R.disabled=!1,V();let Te=new ResizeObserver(()=>{W&&!r.signal.aborted&&_()});return Te.observe(n),ne.push(()=>Te.disconnect()),r.signal.aborted?(A.replaceChildren(),()=>{}):()=>{for(let o of ne)o();A.replaceChildren()}}export{Qe as mountOffice}; diff --git a/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/office-worker.mjs b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/office-worker.mjs new file mode 100644 index 0000000000..6f2efc433d --- /dev/null +++ b/examples/deerflow-extension-office-preview/deerflow_extension_office_preview/static/dist/chunks/office-worker.mjs @@ -0,0 +1,293 @@ +var Zl=Object.create;var Pi=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Kl=Object.getOwnPropertyNames;var Ql=Object.getPrototypeOf,Jl=Object.prototype.hasOwnProperty;var hr=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(i,o)=>(typeof require<"u"?require:i)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Pr=(t,i)=>()=>(t&&(i=t(t=0)),i);var Xe=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Bi=(t,i)=>{for(var o in i)Pi(t,o,{get:i[o],enumerable:!0})},tu=(t,i,o,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of Kl(i))!Jl.call(t,n)&&n!==o&&Pi(t,n,{get:()=>i[n],enumerable:!(e=Yl(i,n))||e.enumerable});return t};var qr=(t,i,o)=>(o=t!=null?Zl(Ql(t)):{},tu(i||!t||!t.__esModule?Pi(o,"default",{value:t,enumerable:!0}):o,t));var Qn=Xe((ma,Fi)=>{(function(t){typeof ma=="object"&&typeof Fi<"u"?Fi.exports=t():typeof define=="function"&&define.amd?define([],t):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=t()})(function(){return(function t(i,o,e){function n(r,l){if(!o[r]){if(!i[r]){var h=typeof hr=="function"&&hr;if(!l&&h)return h(r,!0);if(s)return s(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var u=o[r]={exports:{}};i[r][0].call(u.exports,function(p){var d=i[r][1][p];return n(d||p)},u,u.exports,t,i,o,e)}return o[r].exports}for(var s=typeof hr=="function"&&hr,a=0;a>2,u=(3&r)<<4|l>>4,p=1>6:64,d=2>4,l=(15&c)<<4|(u=s.indexOf(a.charAt(d++)))>>2,h=(3&u)<<6|(p=s.indexOf(a.charAt(d++))),m[f++]=r,u!==64&&(m[f++]=l),p!==64&&(m[f++]=h);return m}},{"./support":30,"./utils":32}],2:[function(t,i,o){"use strict";var e=t("./external"),n=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function r(l,h,c,u,p){this.compressedSize=l,this.uncompressedSize=h,this.crc32=c,this.compression=u,this.compressedContent=p}r.prototype={getContentWorker:function(){var l=new n(e.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new n(e.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},r.createWorkerFrom=function(l,h,c){return l.pipe(new s).pipe(new a("uncompressedSize")).pipe(h.compressWorker(c)).pipe(new a("compressedSize")).withStreamInfo("compression",h)},i.exports=r},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,o){"use strict";var e=t("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new e("STORE compression")},uncompressWorker:function(){return new e("STORE decompression")}},o.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,o){"use strict";var e=t("./utils"),n=(function(){for(var s,a=[],r=0;r<256;r++){s=r;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;a[r]=s}return a})();i.exports=function(s,a){return s!==void 0&&s.length?e.getTypeOf(s)!=="string"?(function(r,l,h,c){var u=n,p=c+h;r^=-1;for(var d=c;d>>8^u[255&(r^l[d])];return-1^r})(0|a,s,s.length,0):(function(r,l,h,c){var u=n,p=c+h;r^=-1;for(var d=c;d>>8^u[255&(r^l.charCodeAt(d))];return-1^r})(0|a,s,s.length,0):0}},{"./utils":32}],5:[function(t,i,o){"use strict";o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(t,i,o){"use strict";var e=null;e=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:e}},{lie:37}],7:[function(t,i,o){"use strict";var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",n=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),r=e?"uint8array":"array";function l(h,c){a.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=c,this.meta={}}o.magic="\b\0",s.inherits(l,a),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(r,h.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(c){h.push({data:c,meta:h.meta})}},o.compressWorker=function(h){return new l("Deflate",h)},o.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i,o){"use strict";function e(u,p){var d,f="";for(d=0;d>>=8;return f}function n(u,p,d,f,g,m){var v,x,A=u.file,D=u.compression,F=m!==r.utf8encode,O=s.transformTo("string",m(A.name)),I=s.transformTo("string",r.utf8encode(A.name)),j=A.comment,U=s.transformTo("string",m(j)),R=s.transformTo("string",r.utf8encode(j)),k=I.length!==A.name.length,S=R.length!==j.length,P="",b="",y="",_=A.dir,w=A.date,E={crc32:0,compressedSize:0,uncompressedSize:0};p&&!d||(E.crc32=u.crc32,E.compressedSize=u.compressedSize,E.uncompressedSize=u.uncompressedSize);var C=0;p&&(C|=8),F||!k&&!S||(C|=2048);var M=0,z=0;_&&(M|=16),g==="UNIX"?(z=798,M|=(function(V,B){var W=V;return V||(W=B?16893:33204),(65535&W)<<16})(A.unixPermissions,_)):(z=20,M|=(function(V){return 63&(V||0)})(A.dosPermissions)),v=w.getUTCHours(),v<<=6,v|=w.getUTCMinutes(),v<<=5,v|=w.getUTCSeconds()/2,x=w.getUTCFullYear()-1980,x<<=4,x|=w.getUTCMonth()+1,x<<=5,x|=w.getUTCDate(),k&&(b=e(1,1)+e(l(O),4)+I,P+="up"+e(b.length,2)+b),S&&(y=e(1,1)+e(l(U),4)+R,P+="uc"+e(y.length,2)+y);var H="";return H+=` +\0`,H+=e(C,2),H+=D.magic,H+=e(v,2),H+=e(x,2),H+=e(E.crc32,4),H+=e(E.compressedSize,4),H+=e(E.uncompressedSize,4),H+=e(O.length,2),H+=e(P.length,2),{fileRecord:h.LOCAL_FILE_HEADER+H+O+P,dirRecord:h.CENTRAL_FILE_HEADER+e(z,2)+H+e(U.length,2)+"\0\0\0\0"+e(M,4)+e(f,4)+O+P+U}}var s=t("../utils"),a=t("../stream/GenericWorker"),r=t("../utf8"),l=t("../crc32"),h=t("../signature");function c(u,p,d,f){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=d,this.encodeFileName=f,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(c,a),c.prototype.push=function(u){var p=u.meta.percent||0,d=this.entriesCount,f=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,a.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:d?(p+100*(d-f-1))/d:100}}))},c.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var p=this.streamFiles&&!u.file.dir;if(p){var d=n(u,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:d.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(u){this.accumulate=!1;var p=this.streamFiles&&!u.file.dir,d=n(u,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(d.dirRecord),p)this.push({data:(function(f){return h.DATA_DESCRIPTOR+e(f.crc32,4)+e(f.compressedSize,4)+e(f.uncompressedSize,4)})(u),meta:{percent:100}});else for(this.push({data:d.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var u=this.bytesWritten,p=0;p=this.index;a--)r=(r<<8)+this.byteAt(a);return this.index+=s,r},readString:function(s){return e.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},i.exports=n},{"../utils":32}],19:[function(t,i,o){"use strict";var e=t("./Uint8ArrayReader");function n(s){e.call(this,s)}t("../utils").inherits(n,e),n.prototype.readData=function(s){this.checkOffset(s);var a=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,a},i.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,o){"use strict";var e=t("./DataReader");function n(s){e.call(this,s)}t("../utils").inherits(n,e),n.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},n.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},n.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},n.prototype.readData=function(s){this.checkOffset(s);var a=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,a},i.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,i,o){"use strict";var e=t("./ArrayReader");function n(s){e.call(this,s)}t("../utils").inherits(n,e),n.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,a},i.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,o){"use strict";var e=t("../utils"),n=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),r=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");i.exports=function(h){var c=e.getTypeOf(h);return e.checkSupport(c),c!=="string"||n.uint8array?c==="nodebuffer"?new r(h):n.uint8array?new l(e.transformTo("uint8array",h)):new s(e.transformTo("array",h)):new a(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,o){"use strict";o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,o){"use strict";var e=t("./GenericWorker"),n=t("../utils");function s(a){e.call(this,"ConvertWorker to "+a),this.destType=a}n.inherits(s,e),s.prototype.processChunk=function(a){this.push({data:n.transformTo(this.destType,a.data),meta:a.meta})},i.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,o){"use strict";var e=t("./GenericWorker"),n=t("../crc32");function s(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,e),s.prototype.processChunk=function(a){this.streamInfo.crc32=n(a.data,this.streamInfo.crc32||0),this.push(a)},i.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,o){"use strict";var e=t("../utils"),n=t("./GenericWorker");function s(a){n.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}e.inherits(s,n),s.prototype.processChunk=function(a){if(a){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+a.data.length}n.prototype.processChunk.call(this,a)},i.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,o){"use strict";var e=t("../utils"),n=t("./GenericWorker");function s(a){n.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(l){r.dataIsReady=!0,r.data=l,r.max=l&&l.length||0,r.type=e.getTypeOf(l),r.isPaused||r._tickAndRepeat()},function(l){r.error(l)})}e.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,e.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(e.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,r=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,r);break;case"uint8array":a=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":a=this.data.slice(this.index,r)}return this.index=r,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,o){"use strict";function e(n){this.name=n||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}e.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,s){return this._listeners[n].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,s){if(this._listeners[n])for(var a=0;a "+n:n}},i.exports=e},{}],29:[function(t,i,o){"use strict";var e=t("../utils"),n=t("./ConvertWorker"),s=t("./GenericWorker"),a=t("../base64"),r=t("../support"),l=t("../external"),h=null;if(r.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function c(p,d){return new l.Promise(function(f,g){var m=[],v=p._internalType,x=p._outputType,A=p._mimeType;p.on("data",function(D,F){m.push(D),d&&d(F)}).on("error",function(D){m=[],g(D)}).on("end",function(){try{var D=(function(F,O,I){switch(F){case"blob":return e.newBlob(e.transformTo("arraybuffer",O),I);case"base64":return a.encode(O);default:return e.transformTo(F,O)}})(x,(function(F,O){var I,j=0,U=null,R=0;for(I=0;I"u")o.blob=!1;else{var e=new ArrayBuffer(0);try{o.blob=new Blob([e],{type:"application/zip"}).size===0}catch{try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(e),o.blob=n.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!t("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,o){"use strict";for(var e=t("./utils"),n=t("./support"),s=t("./nodejsUtils"),a=t("./stream/GenericWorker"),r=new Array(256),l=0;l<256;l++)r[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;r[254]=r[254]=1;function h(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}o.utf8encode=function(u){return n.nodebuffer?s.newBufferFrom(u,"utf-8"):(function(p){var d,f,g,m,v,x=p.length,A=0;for(m=0;m>>6:(f<65536?d[v++]=224|f>>>12:(d[v++]=240|f>>>18,d[v++]=128|f>>>12&63),d[v++]=128|f>>>6&63),d[v++]=128|63&f);return d})(u)},o.utf8decode=function(u){return n.nodebuffer?e.transformTo("nodebuffer",u).toString("utf-8"):(function(p){var d,f,g,m,v=p.length,x=new Array(2*v);for(d=f=0;d>10&1023,x[f++]=56320|1023&g)}return x.length!==f&&(x.subarray?x=x.subarray(0,f):x.length=f),e.applyFromCharCode(x)})(u=e.transformTo(n.uint8array?"uint8array":"array",u))},e.inherits(h,a),h.prototype.processChunk=function(u){var p=e.transformTo(n.uint8array?"uint8array":"array",u.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var d=p;(p=new Uint8Array(d.length+this.leftOver.length)).set(this.leftOver,0),p.set(d,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var f=(function(m,v){var x;for((v=v||m.length)>m.length&&(v=m.length),x=v-1;0<=x&&(192&m[x])==128;)x--;return x<0||x===0?v:x+r[m[x]]>v?x:v})(p),g=p;f!==p.length&&(n.uint8array?(g=p.subarray(0,f),this.leftOver=p.subarray(f,p.length)):(g=p.slice(0,f),this.leftOver=p.slice(f,p.length))),this.push({data:o.utf8decode(g),meta:u.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=h,e.inherits(c,a),c.prototype.processChunk=function(u){this.push({data:o.utf8encode(u.data),meta:u.meta})},o.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,o){"use strict";var e=t("./support"),n=t("./base64"),s=t("./nodejsUtils"),a=t("./external");function r(d){return d}function l(d,f){for(var g=0;g>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=e(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var p,d,f,g=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4>>6:(u<65536?c[f++]=224|u>>>12:(c[f++]=240|u>>>18,c[f++]=128|u>>>12&63),c[f++]=128|u>>>6&63),c[f++]=128|63&u);return c},o.buf2binstring=function(h){return l(h,h.length)},o.binstring2buf=function(h){for(var c=new e.Buf8(h.length),u=0,p=c.length;u>10&1023,m[p++]=56320|1023&d)}return l(m,p)},o.utf8border=function(h,c){var u;for((c=c||h.length)>h.length&&(c=h.length),u=c-1;0<=u&&(192&h[u])==128;)u--;return u<0||u===0?c:u+a[h[u]]>c?u:c}},{"./common":41}],43:[function(t,i,o){"use strict";i.exports=function(e,n,s,a){for(var r=65535&e|0,l=e>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3>>1:n>>>1;s[a]=n}return s})();i.exports=function(n,s,a,r){var l=e,h=r+a;n^=-1;for(var c=r;c>>8^l[255&(n^s[c])];return-1^n}},{}],46:[function(t,i,o){"use strict";var e,n=t("../utils/common"),s=t("./trees"),a=t("./adler32"),r=t("./crc32"),l=t("./messages"),h=0,c=4,u=0,p=-2,d=-1,f=4,g=2,m=8,v=9,x=286,A=30,D=19,F=2*x+1,O=15,I=3,j=258,U=j+I+1,R=42,k=113,S=1,P=2,b=3,y=4;function _(L,tt){return L.msg=l[tt],tt}function w(L){return(L<<1)-(4L.avail_out&&(K=L.avail_out),K!==0&&(n.arraySet(L.output,tt.pending_buf,tt.pending_out,K,L.next_out),L.next_out+=K,tt.pending_out+=K,L.total_out+=K,L.avail_out-=K,tt.pending-=K,tt.pending===0&&(tt.pending_out=0))}function M(L,tt){s._tr_flush_block(L,0<=L.block_start?L.block_start:-1,L.strstart-L.block_start,tt),L.block_start=L.strstart,C(L.strm)}function z(L,tt){L.pending_buf[L.pending++]=tt}function H(L,tt){L.pending_buf[L.pending++]=tt>>>8&255,L.pending_buf[L.pending++]=255&tt}function V(L,tt){var K,q,X=L.max_chain_length,Z=L.strstart,et=L.prev_length,rt=L.nice_match,J=L.strstart>L.w_size-U?L.strstart-(L.w_size-U):0,it=L.window,lt=L.w_mask,ot=L.prev,ct=L.strstart+j,_t=it[Z+et-1],mt=it[Z+et];L.prev_length>=L.good_match&&(X>>=2),rt>L.lookahead&&(rt=L.lookahead);do if(it[(K=tt)+et]===mt&&it[K+et-1]===_t&&it[K]===it[Z]&&it[++K]===it[Z+1]){Z+=2,K++;do;while(it[++Z]===it[++K]&&it[++Z]===it[++K]&&it[++Z]===it[++K]&&it[++Z]===it[++K]&&it[++Z]===it[++K]&&it[++Z]===it[++K]&&it[++Z]===it[++K]&&it[++Z]===it[++K]&&ZJ&&--X!=0);return et<=L.lookahead?et:L.lookahead}function B(L){var tt,K,q,X,Z,et,rt,J,it,lt,ot=L.w_size;do{if(X=L.window_size-L.lookahead-L.strstart,L.strstart>=ot+(ot-U)){for(n.arraySet(L.window,L.window,ot,ot,0),L.match_start-=ot,L.strstart-=ot,L.block_start-=ot,tt=K=L.hash_size;q=L.head[--tt],L.head[tt]=ot<=q?q-ot:0,--K;);for(tt=K=ot;q=L.prev[--tt],L.prev[tt]=ot<=q?q-ot:0,--K;);X+=ot}if(L.strm.avail_in===0)break;if(et=L.strm,rt=L.window,J=L.strstart+L.lookahead,it=X,lt=void 0,lt=et.avail_in,it=I)for(Z=L.strstart-L.insert,L.ins_h=L.window[Z],L.ins_h=(L.ins_h<=I&&(L.ins_h=(L.ins_h<=I)if(q=s._tr_tally(L,L.strstart-L.match_start,L.match_length-I),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=I){for(L.match_length--;L.strstart++,L.ins_h=(L.ins_h<=I&&(L.ins_h=(L.ins_h<=I&&L.match_length<=L.prev_length){for(X=L.strstart+L.lookahead-I,q=s._tr_tally(L,L.strstart-1-L.prev_match,L.prev_length-I),L.lookahead-=L.prev_length-1,L.prev_length-=2;++L.strstart<=X&&(L.ins_h=(L.ins_h<L.pending_buf_size-5&&(K=L.pending_buf_size-5);;){if(L.lookahead<=1){if(B(L),L.lookahead===0&&tt===h)return S;if(L.lookahead===0)break}L.strstart+=L.lookahead,L.lookahead=0;var q=L.block_start+K;if((L.strstart===0||L.strstart>=q)&&(L.lookahead=L.strstart-q,L.strstart=q,M(L,!1),L.strm.avail_out===0)||L.strstart-L.block_start>=L.w_size-U&&(M(L,!1),L.strm.avail_out===0))return S}return L.insert=0,tt===c?(M(L,!0),L.strm.avail_out===0?b:y):(L.strstart>L.block_start&&(M(L,!1),L.strm.avail_out),S)}),new T(4,4,8,4,W),new T(4,5,16,8,W),new T(4,6,32,32,W),new T(4,4,16,16,N),new T(8,16,32,32,N),new T(8,16,128,128,N),new T(8,32,128,256,N),new T(32,128,258,1024,N),new T(32,258,258,4096,N)],o.deflateInit=function(L,tt){return Y(L,tt,m,15,8,0)},o.deflateInit2=Y,o.deflateReset=Q,o.deflateResetKeep=G,o.deflateSetHeader=function(L,tt){return L&&L.state?L.state.wrap!==2?p:(L.state.gzhead=tt,u):p},o.deflate=function(L,tt){var K,q,X,Z;if(!L||!L.state||5>8&255),z(q,q.gzhead.time>>16&255),z(q,q.gzhead.time>>24&255),z(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),z(q,255&q.gzhead.os),q.gzhead.extra&&q.gzhead.extra.length&&(z(q,255&q.gzhead.extra.length),z(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(L.adler=r(L.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=69):(z(q,0),z(q,0),z(q,0),z(q,0),z(q,0),z(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),z(q,3),q.status=k);else{var et=m+(q.w_bits-8<<4)<<8;et|=(2<=q.strategy||q.level<2?0:q.level<6?1:q.level===6?2:3)<<6,q.strstart!==0&&(et|=32),et+=31-et%31,q.status=k,H(q,et),q.strstart!==0&&(H(q,L.adler>>>16),H(q,65535&L.adler)),L.adler=1}if(q.status===69)if(q.gzhead.extra){for(X=q.pending;q.gzindex<(65535&q.gzhead.extra.length)&&(q.pending!==q.pending_buf_size||(q.gzhead.hcrc&&q.pending>X&&(L.adler=r(L.adler,q.pending_buf,q.pending-X,X)),C(L),X=q.pending,q.pending!==q.pending_buf_size));)z(q,255&q.gzhead.extra[q.gzindex]),q.gzindex++;q.gzhead.hcrc&&q.pending>X&&(L.adler=r(L.adler,q.pending_buf,q.pending-X,X)),q.gzindex===q.gzhead.extra.length&&(q.gzindex=0,q.status=73)}else q.status=73;if(q.status===73)if(q.gzhead.name){X=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>X&&(L.adler=r(L.adler,q.pending_buf,q.pending-X,X)),C(L),X=q.pending,q.pending===q.pending_buf_size)){Z=1;break}Z=q.gzindexX&&(L.adler=r(L.adler,q.pending_buf,q.pending-X,X)),Z===0&&(q.gzindex=0,q.status=91)}else q.status=91;if(q.status===91)if(q.gzhead.comment){X=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>X&&(L.adler=r(L.adler,q.pending_buf,q.pending-X,X)),C(L),X=q.pending,q.pending===q.pending_buf_size)){Z=1;break}Z=q.gzindexX&&(L.adler=r(L.adler,q.pending_buf,q.pending-X,X)),Z===0&&(q.status=103)}else q.status=103;if(q.status===103&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&C(L),q.pending+2<=q.pending_buf_size&&(z(q,255&L.adler),z(q,L.adler>>8&255),L.adler=0,q.status=k)):q.status=k),q.pending!==0){if(C(L),L.avail_out===0)return q.last_flush=-1,u}else if(L.avail_in===0&&w(tt)<=w(K)&&tt!==c)return _(L,-5);if(q.status===666&&L.avail_in!==0)return _(L,-5);if(L.avail_in!==0||q.lookahead!==0||tt!==h&&q.status!==666){var rt=q.strategy===2?(function(J,it){for(var lt;;){if(J.lookahead===0&&(B(J),J.lookahead===0)){if(it===h)return S;break}if(J.match_length=0,lt=s._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++,lt&&(M(J,!1),J.strm.avail_out===0))return S}return J.insert=0,it===c?(M(J,!0),J.strm.avail_out===0?b:y):J.last_lit&&(M(J,!1),J.strm.avail_out===0)?S:P})(q,tt):q.strategy===3?(function(J,it){for(var lt,ot,ct,_t,mt=J.window;;){if(J.lookahead<=j){if(B(J),J.lookahead<=j&&it===h)return S;if(J.lookahead===0)break}if(J.match_length=0,J.lookahead>=I&&0J.lookahead&&(J.match_length=J.lookahead)}if(J.match_length>=I?(lt=s._tr_tally(J,1,J.match_length-I),J.lookahead-=J.match_length,J.strstart+=J.match_length,J.match_length=0):(lt=s._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++),lt&&(M(J,!1),J.strm.avail_out===0))return S}return J.insert=0,it===c?(M(J,!0),J.strm.avail_out===0?b:y):J.last_lit&&(M(J,!1),J.strm.avail_out===0)?S:P})(q,tt):e[q.level].func(q,tt);if(rt!==b&&rt!==y||(q.status=666),rt===S||rt===b)return L.avail_out===0&&(q.last_flush=-1),u;if(rt===P&&(tt===1?s._tr_align(q):tt!==5&&(s._tr_stored_block(q,0,0,!1),tt===3&&(E(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),C(L),L.avail_out===0))return q.last_flush=-1,u}return tt!==c?u:q.wrap<=0?1:(q.wrap===2?(z(q,255&L.adler),z(q,L.adler>>8&255),z(q,L.adler>>16&255),z(q,L.adler>>24&255),z(q,255&L.total_in),z(q,L.total_in>>8&255),z(q,L.total_in>>16&255),z(q,L.total_in>>24&255)):(H(q,L.adler>>>16),H(q,65535&L.adler)),C(L),0=K.w_size&&(Z===0&&(E(K.head),K.strstart=0,K.block_start=0,K.insert=0),it=new n.Buf8(K.w_size),n.arraySet(it,tt,lt-K.w_size,K.w_size,0),tt=it,lt=K.w_size),et=L.avail_in,rt=L.next_in,J=L.input,L.avail_in=lt,L.next_in=0,L.input=tt,B(K);K.lookahead>=I;){for(q=K.strstart,X=K.lookahead-(I-1);K.ins_h=(K.ins_h<>>=I=O>>>24,v-=I,(I=O>>>16&255)===0)P[l++]=65535&O;else{if(!(16&I)){if((64&I)==0){O=x[(65535&O)+(m&(1<>>=I,v-=I),v<15&&(m+=S[a++]<>>=I=O>>>24,v-=I,!(16&(I=O>>>16&255))){if((64&I)==0){O=A[(65535&O)+(m&(1<>>=I,v-=I,(I=l-h)>3,m&=(1<<(v-=j<<3))-1,e.next_in=a,e.next_out=l,e.avail_in=a>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(R){var k;return R&&R.state?(k=R.state,R.total_in=R.total_out=k.total=0,R.msg="",k.wrap&&(R.adler=1&k.wrap),k.mode=p,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new e.Buf32(d),k.distcode=k.distdyn=new e.Buf32(f),k.sane=1,k.back=-1,c):u}function x(R){var k;return R&&R.state?((k=R.state).wsize=0,k.whave=0,k.wnext=0,v(R)):u}function A(R,k){var S,P;return R&&R.state?(P=R.state,k<0?(S=0,k=-k):(S=1+(k>>4),k<48&&(k&=15)),k&&(k<8||15=y.wsize?(e.arraySet(y.window,k,S-y.wsize,y.wsize,0),y.wnext=0,y.whave=y.wsize):(P<(b=y.wsize-y.wnext)&&(b=P),e.arraySet(y.window,k,S-P,b,y.wnext),(P-=b)?(e.arraySet(y.window,k,S-P,P,0),y.wnext=P,y.whave=y.wsize):(y.wnext+=b,y.wnext===y.wsize&&(y.wnext=0),y.whave>>8&255,S.check=s(S.check,Z,2,0),M=C=0,S.mode=2;break}if(S.flags=0,S.head&&(S.head.done=!1),!(1&S.wrap)||(((255&C)<<8)+(C>>8))%31){R.msg="incorrect header check",S.mode=30;break}if((15&C)!=8){R.msg="unknown compression method",S.mode=30;break}if(M-=4,L=8+(15&(C>>>=4)),S.wbits===0)S.wbits=L;else if(L>S.wbits){R.msg="invalid window size",S.mode=30;break}S.dmax=1<>8&1),512&S.flags&&(Z[0]=255&C,Z[1]=C>>>8&255,S.check=s(S.check,Z,2,0)),M=C=0,S.mode=3;case 3:for(;M<32;){if(w===0)break t;w--,C+=P[y++]<>>8&255,Z[2]=C>>>16&255,Z[3]=C>>>24&255,S.check=s(S.check,Z,4,0)),M=C=0,S.mode=4;case 4:for(;M<16;){if(w===0)break t;w--,C+=P[y++]<>8),512&S.flags&&(Z[0]=255&C,Z[1]=C>>>8&255,S.check=s(S.check,Z,2,0)),M=C=0,S.mode=5;case 5:if(1024&S.flags){for(;M<16;){if(w===0)break t;w--,C+=P[y++]<>>8&255,S.check=s(S.check,Z,2,0)),M=C=0}else S.head&&(S.head.extra=null);S.mode=6;case 6:if(1024&S.flags&&(w<(V=S.length)&&(V=w),V&&(S.head&&(L=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),e.arraySet(S.head.extra,P,y,V,L)),512&S.flags&&(S.check=s(S.check,P,V,y)),w-=V,y+=V,S.length-=V),S.length))break t;S.length=0,S.mode=7;case 7:if(2048&S.flags){if(w===0)break t;for(V=0;L=P[y+V++],S.head&&L&&S.length<65536&&(S.head.name+=String.fromCharCode(L)),L&&V>9&1,S.head.done=!0),R.adler=S.check=0,S.mode=12;break;case 10:for(;M<32;){if(w===0)break t;w--,C+=P[y++]<>>=7&M,M-=7&M,S.mode=27;break}for(;M<3;){if(w===0)break t;w--,C+=P[y++]<>>=1)){case 0:S.mode=14;break;case 1:if(j(S),S.mode=20,k!==6)break;C>>>=2,M-=2;break t;case 2:S.mode=17;break;case 3:R.msg="invalid block type",S.mode=30}C>>>=2,M-=2;break;case 14:for(C>>>=7&M,M-=7&M;M<32;){if(w===0)break t;w--,C+=P[y++]<>>16^65535)){R.msg="invalid stored block lengths",S.mode=30;break}if(S.length=65535&C,M=C=0,S.mode=15,k===6)break t;case 15:S.mode=16;case 16:if(V=S.length){if(w>>=5,M-=5,S.ndist=1+(31&C),C>>>=5,M-=5,S.ncode=4+(15&C),C>>>=4,M-=4,286>>=3,M-=3}for(;S.have<19;)S.lens[et[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,K={bits:S.lenbits},tt=r(0,S.lens,0,19,S.lencode,0,S.work,K),S.lenbits=K.bits,tt){R.msg="invalid code lengths set",S.mode=30;break}S.have=0,S.mode=19;case 19:for(;S.have>>16&255,$=65535&X,!((N=X>>>24)<=M);){if(w===0)break t;w--,C+=P[y++]<>>=N,M-=N,S.lens[S.have++]=$;else{if($===16){for(q=N+2;M>>=N,M-=N,S.have===0){R.msg="invalid bit length repeat",S.mode=30;break}L=S.lens[S.have-1],V=3+(3&C),C>>>=2,M-=2}else if($===17){for(q=N+3;M>>=N)),C>>>=3,M-=3}else{for(q=N+7;M>>=N)),C>>>=7,M-=7}if(S.have+V>S.nlen+S.ndist){R.msg="invalid bit length repeat",S.mode=30;break}for(;V--;)S.lens[S.have++]=L}}if(S.mode===30)break;if(S.lens[256]===0){R.msg="invalid code -- missing end-of-block",S.mode=30;break}if(S.lenbits=9,K={bits:S.lenbits},tt=r(l,S.lens,0,S.nlen,S.lencode,0,S.work,K),S.lenbits=K.bits,tt){R.msg="invalid literal/lengths set",S.mode=30;break}if(S.distbits=6,S.distcode=S.distdyn,K={bits:S.distbits},tt=r(h,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,K),S.distbits=K.bits,tt){R.msg="invalid distances set",S.mode=30;break}if(S.mode=20,k===6)break t;case 20:S.mode=21;case 21:if(6<=w&&258<=E){R.next_out=_,R.avail_out=E,R.next_in=y,R.avail_in=w,S.hold=C,S.bits=M,a(R,H),_=R.next_out,b=R.output,E=R.avail_out,y=R.next_in,P=R.input,w=R.avail_in,C=S.hold,M=S.bits,S.mode===12&&(S.back=-1);break}for(S.back=0;T=(X=S.lencode[C&(1<>>16&255,$=65535&X,!((N=X>>>24)<=M);){if(w===0)break t;w--,C+=P[y++]<>G)])>>>16&255,$=65535&X,!(G+(N=X>>>24)<=M);){if(w===0)break t;w--,C+=P[y++]<>>=G,M-=G,S.back+=G}if(C>>>=N,M-=N,S.back+=N,S.length=$,T===0){S.mode=26;break}if(32&T){S.back=-1,S.mode=12;break}if(64&T){R.msg="invalid literal/length code",S.mode=30;break}S.extra=15&T,S.mode=22;case 22:if(S.extra){for(q=S.extra;M>>=S.extra,M-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=23;case 23:for(;T=(X=S.distcode[C&(1<>>16&255,$=65535&X,!((N=X>>>24)<=M);){if(w===0)break t;w--,C+=P[y++]<>G)])>>>16&255,$=65535&X,!(G+(N=X>>>24)<=M);){if(w===0)break t;w--,C+=P[y++]<>>=G,M-=G,S.back+=G}if(C>>>=N,M-=N,S.back+=N,64&T){R.msg="invalid distance code",S.mode=30;break}S.offset=$,S.extra=15&T,S.mode=24;case 24:if(S.extra){for(q=S.extra;M>>=S.extra,M-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){R.msg="invalid distance too far back",S.mode=30;break}S.mode=25;case 25:if(E===0)break t;if(V=H-E,S.offset>V){if((V=S.offset-V)>S.whave&&S.sane){R.msg="invalid distance too far back",S.mode=30;break}B=V>S.wnext?(V-=S.wnext,S.wsize-V):S.wnext-V,V>S.length&&(V=S.length),W=S.window}else W=b,B=_-S.offset,V=S.length;for(EF?(I=B[W+f[k]],M[z+f[k]]):(I=96,0),m=1<>_)+(v-=m)]=O<<24|I<<16|j|0,v!==0;);for(m=1<>=1;if(m!==0?(C&=m-1,C+=m):C=0,k++,--H[R]==0){if(R===P)break;R=h[c+f[k]]}if(b>>7)]}function z(X,Z){X.pending_buf[X.pending++]=255&Z,X.pending_buf[X.pending++]=Z>>>8&255}function H(X,Z,et){X.bi_valid>g-et?(X.bi_buf|=Z<>g-X.bi_valid,X.bi_valid+=et-g):(X.bi_buf|=Z<>>=1,et<<=1,0<--Z;);return et>>>1}function W(X,Z,et){var rt,J,it=new Array(f+1),lt=0;for(rt=1;rt<=f;rt++)it[rt]=lt=lt+et[rt-1]<<1;for(J=0;J<=Z;J++){var ot=X[2*J+1];ot!==0&&(X[2*J]=B(it[ot]++,ot))}}function N(X){var Z;for(Z=0;Z>1;1<=et;et--)G(X,it,et);for(J=ct;et=X.heap[1],X.heap[1]=X.heap[X.heap_len--],G(X,it,1),rt=X.heap[1],X.heap[--X.heap_max]=et,X.heap[--X.heap_max]=rt,it[2*J]=it[2*et]+it[2*rt],X.depth[J]=(X.depth[et]>=X.depth[rt]?X.depth[et]:X.depth[rt])+1,it[2*et+1]=it[2*rt+1]=J,X.heap[1]=J++,G(X,it,1),2<=X.heap_len;);X.heap[--X.heap_max]=X.heap[1],(function(mt,xt){var Wt,At,St,Et,vt,yt,jt=xt.dyn_tree,Tt=xt.max_code,It=xt.stat_desc.static_tree,Je=xt.stat_desc.has_stree,Ot=xt.stat_desc.extra_bits,Ft=xt.stat_desc.extra_base,be=xt.stat_desc.max_length,zt=0;for(Et=0;Et<=f;Et++)mt.bl_count[Et]=0;for(jt[2*mt.heap[mt.heap_max]+1]=0,Wt=mt.heap_max+1;Wt>=7;J>>=1)if(1&_t&&ot.dyn_ltree[2*ct]!==0)return n;if(ot.dyn_ltree[18]!==0||ot.dyn_ltree[20]!==0||ot.dyn_ltree[26]!==0)return s;for(ct=32;ct>>3,(it=X.static_len+3+7>>>3)<=J&&(J=it)):J=it=et+5,et+4<=J&&Z!==-1?q(X,Z,et,rt):X.strategy===4||it===J?(H(X,2+(rt?1:0),3),Q(X,U,R)):(H(X,4+(rt?1:0),3),(function(ot,ct,_t,mt){var xt;for(H(ot,ct-257,5),H(ot,_t-1,5),H(ot,mt-4,4),xt=0;xt>>8&255,X.pending_buf[X.d_buf+2*X.last_lit+1]=255&Z,X.pending_buf[X.l_buf+X.last_lit]=255&et,X.last_lit++,Z===0?X.dyn_ltree[2*et]++:(X.matches++,Z--,X.dyn_ltree[2*(S[et]+h+1)]++,X.dyn_dtree[2*M(Z)]++),X.last_lit===X.lit_bufsize-1},o._tr_align=function(X){H(X,2,3),V(X,v,U),(function(Z){Z.bi_valid===16?(z(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)})(X)}},{"../utils/common":41}],53:[function(t,i,o){"use strict";i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,i,o){(function(e){(function(n,s){"use strict";if(!n.setImmediate){var a,r,l,h,c=1,u={},p=!1,d=n.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(n);f=f&&f.setTimeout?f:n,a={}.toString.call(n.process)==="[object process]"?function(x){process.nextTick(function(){m(x)})}:(function(){if(n.postMessage&&!n.importScripts){var x=!0,A=n.onmessage;return n.onmessage=function(){x=!1},n.postMessage("","*"),n.onmessage=A,x}})()?(h="setImmediate$"+Math.random()+"$",n.addEventListener?n.addEventListener("message",v,!1):n.attachEvent("onmessage",v),function(x){n.postMessage(h+x,"*")}):n.MessageChannel?((l=new MessageChannel).port1.onmessage=function(x){m(x.data)},function(x){l.port2.postMessage(x)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,function(x){var A=d.createElement("script");A.onreadystatechange=function(){m(x),A.onreadystatechange=null,r.removeChild(A),A=null},r.appendChild(A)}):function(x){setTimeout(m,0,x)},f.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var A=new Array(arguments.length-1),D=0;D"u"?e===void 0?this:e:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var ba=Xe(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.CHAR=` +\r -\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}`;ye.S=` \r +`;ye.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}";ye.NAME_CHAR="-"+ye.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040";ye.CHAR_RE=new RegExp("^["+ye.CHAR+"]$","u");ye.S_RE=new RegExp("^["+ye.S+"]+$","u");ye.NAME_START_CHAR_RE=new RegExp("^["+ye.NAME_START_CHAR+"]$","u");ye.NAME_CHAR_RE=new RegExp("^["+ye.NAME_CHAR+"]$","u");ye.NAME_RE=new RegExp("^["+ye.NAME_START_CHAR+"]["+ye.NAME_CHAR+"]*$","u");ye.NMTOKEN_RE=new RegExp("^["+ye.NAME_CHAR+"]+$","u");var ji=9,Li=10,zi=13,$i=32;ye.S_LIST=[$i,Li,zi,ji];function eu(t){return t>=$i&&t<=55295||t===Li||t===zi||t===ji||t>=57344&&t<=65533||t>=65536&&t<=1114111}ye.isChar=eu;function ru(t){return t===$i||t===Li||t===zi||t===ji}ye.isS=ru;function ga(t){return t>=65&&t<=90||t>=97&&t<=122||t===58||t===95||t===8204||t===8205||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}ye.isNameStartChar=ga;function nu(t){return ga(t)||t>=48&&t<=57||t===45||t===46||t===183||t>=768&&t<=879||t>=8255&&t<=8256}ye.isNameChar=nu});var Sa=Xe(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.CHAR="-\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}";ce.RESTRICTED_CHAR="-\b\v\f-\x7F-\x84\x86-\x9F";ce.S=` \r +`;ce.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}";ce.NAME_CHAR="-"+ce.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040";ce.CHAR_RE=new RegExp("^["+ce.CHAR+"]$","u");ce.RESTRICTED_CHAR_RE=new RegExp("^["+ce.RESTRICTED_CHAR+"]$","u");ce.S_RE=new RegExp("^["+ce.S+"]+$","u");ce.NAME_START_CHAR_RE=new RegExp("^["+ce.NAME_START_CHAR+"]$","u");ce.NAME_CHAR_RE=new RegExp("^["+ce.NAME_CHAR+"]$","u");ce.NAME_RE=new RegExp("^["+ce.NAME_START_CHAR+"]["+ce.NAME_CHAR+"]*$","u");ce.NMTOKEN_RE=new RegExp("^["+ce.NAME_CHAR+"]+$","u");var ya=9,va=10,wa=13,_a=32;ce.S_LIST=[_a,va,wa,ya];function iu(t){return t>=1&&t<=55295||t>=57344&&t<=65533||t>=65536&&t<=1114111}ce.isChar=iu;function su(t){return t>=1&&t<=8||t===11||t===12||t>=14&&t<=31||t>=127&&t<=132||t>=134&&t<=159}ce.isRestrictedChar=su;function au(t){return t===9||t===10||t===13||t>31&&t<127||t===133||t>159&&t<=55295||t>=57344&&t<=65533||t>=65536&&t<=1114111}ce.isCharAndNotRestricted=au;function ou(t){return t===_a||t===va||t===wa||t===ya}ce.isS=ou;function xa(t){return t>=65&&t<=90||t>=97&&t<=122||t===58||t===95||t===8204||t===8205||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}ce.isNameStartChar=xa;function lu(t){return xa(t)||t>=48&&t<=57||t===45||t===46||t===183||t>=768&&t<=879||t>=8255&&t<=8256}ce.isNameChar=lu});var ka=Xe(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.NC_NAME_START_CHAR="A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}";Ge.NC_NAME_CHAR="-"+Ge.NC_NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040";Ge.NC_NAME_START_CHAR_RE=new RegExp("^["+Ge.NC_NAME_START_CHAR+"]$","u");Ge.NC_NAME_CHAR_RE=new RegExp("^["+Ge.NC_NAME_CHAR+"]$","u");Ge.NC_NAME_RE=new RegExp("^["+Ge.NC_NAME_START_CHAR+"]["+Ge.NC_NAME_CHAR+"]*$","u");function Ea(t){return t>=65&&t<=90||t===95||t>=97&&t<=122||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}Ge.isNCNameStartChar=Ea;function uu(t){return Ea(t)||t===45||t===46||t>=48&&t<=57||t===183||t>=768&&t<=879||t>=8255&&t<=8256}Ge.isNCNameChar=uu});var Va=Xe(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.SaxesParser=Zr.EVENTS=void 0;var Yr=ba(),cu=Sa(),es=ka(),Ze=Yr.isS,hu=Yr.isChar,vn=Yr.isNameStartChar,Ca=Yr.isNameChar,za=Yr.S_LIST,fu=Yr.NAME_RE,du=cu.isChar,pu=es.isNCNameStartChar,mu=es.isNCNameChar,gu=es.NC_NAME_RE,ii="http://www.w3.org/XML/1998/namespace",Gr="http://www.w3.org/2000/xmlns/",bu={__proto__:null,xml:ii,xmlns:Gr},yu={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ve=-1,fr=-2,Aa=0,vu=1,Ui=2,wu=3,Vr=4,_u=5,xu=6,Su=7,Hi=8,Eu=9,ku=10,Cu=11,Au=12,He=13,Jn=14,qi=15,Tu=16,Vi=17,Nu=18,Mu=19,Wi=20,Du=21,Ru=22,Ou=23,Ta=24,Xi=25,ti=26,Na=27,Iu=28,Pu=29,Ma=30,Bu=31,Fu=32,Br=33,ju=34,Gi=35,wn=36,Zi=37,Lu=38,Da=39,Ra=40,zu=41,Oa=42,$u=43,Uu=44,Yi=9,lr=10,Ki=13,Ia=32,Pa=33,$a=34,_n=38,Ua=39,ei=45,ri=47,Hu=59,Er=60,Wr=61,De=62,Fe=63,Ha=91,Xr=93,Ba=133,Fa=8232,ni=t=>t===$a||t===Ua,qa=[$a,Ua],qu=[...qa,Ha,De],Vu=[...qa,Er,Xr],Wu=[Wr,Fe,...za],Xu=[...za,De,_n,Er];function Ji(t,i,o){switch(i){case"xml":o!==ii&&t.fail(`xml prefix must be bound to ${ii}.`);break;case"xmlns":o!==Gr&&t.fail(`xmlns prefix must be bound to ${Gr}.`);break;default:}switch(o){case Gr:t.fail(i===""?`the default namespace may not be set to ${o}.`:`may not assign a prefix (even "xmlns") to the URI ${Gr}.`);break;case ii:switch(i){case"xml":break;case"":t.fail(`the default namespace may not be set to ${o}.`);break;default:t.fail("may not assign the xml namespace to another prefix.")}break;default:}}function Gu(t,i){for(let o of Object.keys(i))Ji(t,o,i[o])}var Zu=t=>gu.test(t),Yu=t=>fu.test(t),Fr=0,ja=1,Qi=2;Zr.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var La={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},ts=class{constructor(i){this.opt=i??{},this.fragmentOpt=!!this.opt.fragment;let o=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,o){this.nameStartCheck=pu,this.nameCheck=mu,this.isName=Zu,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},bu);let e=this.opt.additionalNamespaces;e!=null&&(Gu(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=vn,this.nameCheck=Ca,this.isName=Yu,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var i;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=Fr,this.attribList=[];let{fragmentOpt:o}=this;this.state=o?He:Aa,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=o,this.xmlDeclPossible=!o,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:e}=this.opt;if(e===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");e="1.0"}this.setXMLVersion(e),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(yu),(i=this.readyHandler)===null||i===void 0||i.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(i,o){this[La[i]]=o}off(i){this[La[i]]=void 0}makeError(i){var o;let e=(o=this.fileName)!==null&&o!==void 0?o:"";return this.trackPosition&&(e.length>0&&(e+=":"),e+=`${this.line}:${this.column}`),e.length>0&&(e+=": "),new Error(e+i)}fail(i){let o=this.makeError(i),e=this.errorHandler;if(e===void 0)throw o;return e(o),this}write(i){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let o=!1;i===null?(o=!0,i=""):typeof i=="object"&&(i=i.toString()),this.carriedFromPrevious!==void 0&&(i=`${this.carriedFromPrevious}${i}`,this.carriedFromPrevious=void 0);let e=i.length,n=i.charCodeAt(e-1);!o&&(n===Ki||n>=55296&&n<=56319)&&(this.carriedFromPrevious=i[e-1],e--,i=i.slice(0,e));let{stateTable:s}=this;for(this.chunk=i,this.i=0;this.i=i.length)return ve;let e=i.charCodeAt(o);if(this.column++,e<55296){if(e>=Ia||e===Yi)return e;switch(e){case lr:return this.line++,this.column=0,this.positionAtNewLine=this.position,lr;case Ki:return i.charCodeAt(o+1)===lr&&(this.i=o+2),this.line++,this.column=0,this.positionAtNewLine=this.position,fr;default:return this.fail("disallowed character."),e}}if(e>56319)return e>=57344&&e<=65533||this.fail("disallowed character."),e;let n=65536+(e-55296)*1024+(i.charCodeAt(o+1)-56320);return this.i=o+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){let{chunk:i,i:o}=this;if(this.prevI=o,this.i=o+1,o>=i.length)return ve;let e=i.charCodeAt(o);if(this.column++,e<55296){if(e>31&&e<127||e>159&&e!==Fa||e===Yi)return e;switch(e){case lr:return this.line++,this.column=0,this.positionAtNewLine=this.position,lr;case Ki:{let s=i.charCodeAt(o+1);(s===lr||s===Ba)&&(this.i=o+2)}case Ba:case Fa:return this.line++,this.column=0,this.positionAtNewLine=this.position,fr;default:return this.fail("disallowed character."),e}}if(e>56319)return e>=57344&&e<=65533||this.fail("disallowed character."),e;let n=65536+(e-55296)*1024+(i.charCodeAt(o+1)-56320);return this.i=o+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){let i=this.getCode();return i===fr?lr:i}unget(){this.i=this.prevI,this.column--}captureTo(i){let{i:o}=this,{chunk:e}=this;for(;;){let n=this.getCode(),s=n===fr,a=s?lr:n;if(a===ve||i.includes(a))return this.text+=e.slice(o,this.prevI),a;s&&(this.text+=`${e.slice(o,this.prevI)} +`,o=this.i)}}captureToChar(i){let{i:o}=this,{chunk:e}=this;for(;;){let n=this.getCode();switch(n){case fr:this.text+=`${e.slice(o,this.prevI)} +`,o=this.i,n=lr;break;case ve:return this.text+=e.slice(o),!1;default:}if(n===i)return this.text+=e.slice(o,this.prevI),!0}}captureNameChars(){let{chunk:i,i:o}=this;for(;;){let e=this.getCode();if(e===ve)return this.name+=i.slice(o),ve;if(!Ca(e))return this.name+=i.slice(o,this.prevI),e===fr?lr:e}}skipSpaces(){for(;;){let i=this.getCodeNorm();if(i===ve||!Ze(i))return i}}setXMLVersion(i){this.currentXMLVersion=i,i==="1.0"?(this.isChar=hu,this.getCode=this.getCode10):(this.isChar=du,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=vu}sBeginWhitespace(){let i=this.i,o=this.skipSpaces();switch(this.prevI!==i&&(this.xmlDeclPossible=!1),o){case Er:if(this.state=qi,this.text.length!==0)throw new Error("no-empty text at start");break;case ve:break;default:this.unget(),this.state=He,this.xmlDeclPossible=!1}}sDoctype(){var i;let o=this.captureTo(qu);switch(o){case De:{(i=this.doctypeHandler)===null||i===void 0||i.call(this,this.text),this.text="",this.state=He,this.doctype=!0;break}case ve:break;default:this.text+=String.fromCodePoint(o),o===Ha?this.state=Vr:ni(o)&&(this.state=wu,this.q=o)}}sDoctypeQuote(){let i=this.q;this.captureToChar(i)&&(this.text+=String.fromCodePoint(i),this.q=null,this.state=Ui)}sDTD(){let i=this.captureTo(Vu);i!==ve&&(this.text+=String.fromCodePoint(i),i===Xr?this.state=Ui:i===Er?this.state=xu:ni(i)&&(this.state=_u,this.q=i))}sDTDQuoted(){let i=this.q;this.captureToChar(i)&&(this.text+=String.fromCodePoint(i),this.state=Vr,this.q=null)}sDTDOpenWaka(){let i=this.getCodeNorm();switch(this.text+=String.fromCodePoint(i),i){case Pa:this.state=Su,this.openWakaBang="";break;case Fe:this.state=Cu;break;default:this.state=Vr}}sDTDOpenWakaBang(){let i=String.fromCodePoint(this.getCodeNorm()),o=this.openWakaBang+=i;this.text+=i,o!=="-"&&(this.state=o==="--"?Hi:Vr,this.openWakaBang="")}sDTDComment(){this.captureToChar(ei)&&(this.text+="-",this.state=Eu)}sDTDCommentEnding(){let i=this.getCodeNorm();this.text+=String.fromCodePoint(i),this.state=i===ei?ku:Hi}sDTDCommentEnded(){let i=this.getCodeNorm();this.text+=String.fromCodePoint(i),i===De?this.state=Vr:(this.fail("malformed comment."),this.state=Hi)}sDTDPI(){this.captureToChar(Fe)&&(this.text+="?",this.state=Au)}sDTDPIEnding(){let i=this.getCodeNorm();this.text+=String.fromCodePoint(i),i===De&&(this.state=Vr)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i}=this,{chunk:o}=this;t:for(;;)switch(this.getCode()){case fr:this.entity+=`${o.slice(i,this.prevI)} +`,i=this.i;break;case Hu:{let{entityReturnState:e}=this,n=this.entity+o.slice(i,this.prevI);this.state=e;let s;n===""?(this.fail("empty entity name."),s="&;"):(s=this.parseEntity(n),this.entity=""),(e!==He||this.textHandler!==void 0)&&(this.text+=s);break t}case ve:this.entity+=o.slice(i);break t;default:}}sOpenWaka(){let i=this.getCode();if(vn(i))this.state=ju,this.unget(),this.xmlDeclPossible=!1;else switch(i){case ri:this.state=$u,this.xmlDeclPossible=!1;break;case Pa:this.state=Tu,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Fe:this.state=Ou;break;default:this.fail("disallowed character in tag name"),this.state=He,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=Wi,this.openWakaBang="";break;case"--":this.state=Vi,this.openWakaBang="";break;case"DOCTYPE":this.state=Ui,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(ei)&&(this.state=Nu)}sCommentEnding(){var i;let o=this.getCodeNorm();o===ei?(this.state=Mu,(i=this.commentHandler)===null||i===void 0||i.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(o)}`,this.state=Vi)}sCommentEnded(){let i=this.getCodeNorm();i!==De?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(i)}`,this.state=Vi):this.state=He}sCData(){this.captureToChar(Xr)&&(this.state=Du)}sCDataEnding(){let i=this.getCodeNorm();i===Xr?this.state=Ru:(this.text+=`]${String.fromCodePoint(i)}`,this.state=Wi)}sCDataEnding2(){var i;let o=this.getCodeNorm();switch(o){case De:{(i=this.cdataHandler)===null||i===void 0||i.call(this,this.text),this.text="",this.state=He;break}case Xr:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(o)}`,this.state=Wi}}sPIFirstChar(){let i=this.getCodeNorm();this.nameStartCheck(i)?(this.piTarget+=String.fromCodePoint(i),this.state=Ta):i===Fe||Ze(i)?(this.fail("processing instruction without a target."),this.state=i===Fe?ti:Xi):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(i),this.state=Ta)}sPIRest(){let{chunk:i,i:o}=this;for(;;){let e=this.getCodeNorm();if(e===ve){this.piTarget+=i.slice(o);return}if(!this.nameCheck(e)){this.piTarget+=i.slice(o,this.prevI);let n=e===Fe;n||Ze(e)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Br:Na):this.state=n?ti:Xi:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e));break}}}sPIBody(){if(this.text.length===0){let i=this.getCodeNorm();i===Fe?this.state=ti:Ze(i)||(this.text=String.fromCodePoint(i))}else this.captureToChar(Fe)&&(this.state=ti)}sPIEnding(){var i;let o=this.getCodeNorm();if(o===De){let{piTarget:e}=this;e.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(i=this.piHandler)===null||i===void 0||i.call(this,{target:e,body:this.text}),this.piTarget=this.text="",this.state=He}else o===Fe?this.text+="?":(this.text+=`?${String.fromCodePoint(o)}`,this.state=Xi);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let i=this.skipSpaces();if(i===Fe){this.state=Br;return}i!==ve&&(this.state=Iu,this.name=String.fromCodePoint(i))}sXMLDeclName(){let i=this.captureTo(Wu);if(i===Fe){this.state=Br,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(Ze(i)||i===Wr){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=i===Wr?Ma:Pu}}sXMLDeclEq(){let i=this.getCodeNorm();if(i===Fe){this.state=Br,this.fail("XML declaration is incomplete.");return}Ze(i)||(i!==Wr&&this.fail("value required."),this.state=Ma)}sXMLDeclValueStart(){let i=this.getCodeNorm();if(i===Fe){this.state=Br,this.fail("XML declaration is incomplete.");return}Ze(i)||(ni(i)?this.q=i:(this.fail("value must be quoted."),this.q=Ia),this.state=Bu)}sXMLDeclValue(){let i=this.captureTo([this.q,Fe]);if(i===Fe){this.state=Br,this.text="",this.fail("XML declaration is incomplete.");return}if(i===ve)return;let o=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];let e=o;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(o)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=o;break;case"standalone":o!=="yes"&&o!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=o;break;default:}this.name="",this.state=Fu}sXMLDeclSeparator(){let i=this.getCodeNorm();if(i===Fe){this.state=Br;return}Ze(i)||(this.fail("whitespace required."),this.unget()),this.state=Na}sXMLDeclEnding(){var i;this.getCodeNorm()===De?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(i=this.xmldeclHandler)===null||i===void 0||i.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=He):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var i;let o=this.captureNameChars();if(o===ve)return;let e=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=e.ns=Object.create(null)),(i=this.openTagStartHandler)===null||i===void 0||i.call(this,e),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),o){case De:this.openTag();break;case ri:this.state=Gi;break;default:Ze(o)||this.fail("disallowed character in tag name."),this.state=wn}}sOpenTagSlash(){this.getCode()===De?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=wn)}sAttrib(){let i=this.skipSpaces();i!==ve&&(vn(i)?(this.unget(),this.state=Zi):i===De?this.openTag():i===ri?this.state=Gi:this.fail("disallowed character in attribute name."))}sAttribName(){let i=this.captureNameChars();i===Wr?this.state=Da:Ze(i)?this.state=Lu:i===De?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):i!==ve&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){let i=this.skipSpaces();switch(i){case ve:return;case Wr:this.state=Da;break;default:this.fail("attribute without value."),this.text="",this.name="",i===De?this.openTag():vn(i)?(this.unget(),this.state=Zi):(this.fail("disallowed character in attribute name."),this.state=wn)}}sAttribValue(){let i=this.getCodeNorm();ni(i)?(this.q=i,this.state=Ra):Ze(i)||(this.fail("unquoted attribute value."),this.state=Oa,this.unget())}sAttribValueQuoted(){let{q:i,chunk:o}=this,{i:e}=this;for(;;)switch(this.getCode()){case i:this.pushAttrib(this.name,this.text+o.slice(e,this.prevI)),this.name=this.text="",this.q=null,this.state=zu;return;case _n:this.text+=o.slice(e,this.prevI),this.state=Jn,this.entityReturnState=Ra;return;case lr:case fr:case Yi:this.text+=`${o.slice(e,this.prevI)} `,e=this.i;break;case Er:this.text+=o.slice(e,this.prevI),this.fail("disallowed character.");return;case ve:this.text+=o.slice(e);return;default:}}sAttribValueClosed(){let i=this.getCodeNorm();Ze(i)?this.state=wn:i===De?this.openTag():i===ri?this.state=Gi:vn(i)?(this.fail("no whitespace between attributes."),this.unget(),this.state=Zi):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){let i=this.captureTo(Xu);switch(i){case _n:this.state=Jn,this.entityReturnState=Oa;break;case Er:this.fail("disallowed character.");break;case ve:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",i===De?this.openTag():this.state=wn}}sCloseTag(){let i=this.captureNameChars();i===De?this.closeTag():Ze(i)?this.state=Uu:i!==ve&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case De:this.closeTag();break;case ve:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i,forbiddenState:o}=this,{chunk:e,textHandler:n}=this;t:for(;;)switch(this.getCode()){case Er:{if(this.state=qi,n!==void 0){let{text:s}=this,a=e.slice(i,this.prevI);s.length!==0?(n(s+a),this.text=""):a.length!==0&&n(a)}o=Fr;break t}case _n:this.state=Jn,this.entityReturnState=He,n!==void 0&&(this.text+=e.slice(i,this.prevI)),o=Fr;break t;case Xr:switch(o){case Fr:o=ja;break;case ja:o=Qi;break;case Qi:break;default:throw new Error("impossible state")}break;case De:o===Qi&&this.fail('the string "]]>" is disallowed in char data.'),o=Fr;break;case fr:n!==void 0&&(this.text+=`${e.slice(i,this.prevI)} +`),i=this.i,o=Fr;break;case ve:n!==void 0&&(this.text+=e.slice(i));break t;default:o=Fr}this.forbiddenState=o}handleTextOutsideRoot(){let{i}=this,{chunk:o,textHandler:e}=this,n=!1;t:for(;;){let s=this.getCode();switch(s){case Er:{if(this.state=qi,e!==void 0){let{text:a}=this,r=o.slice(i,this.prevI);a.length!==0?(e(a+r),this.text=""):r.length!==0&&e(r)}break t}case _n:this.state=Jn,this.entityReturnState=He,e!==void 0&&(this.text+=o.slice(i,this.prevI)),n=!0;break t;case fr:e!==void 0&&(this.text+=`${o.slice(i,this.prevI)} +`),i=this.i;break;case ve:e!==void 0&&(this.text+=o.slice(i));break t;default:Ze(s)||(n=!0)}}n&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(i,o){var e;let{prefix:n,local:s}=this.qname(i),a={name:i,prefix:n,local:s,value:o};if(this.attribList.push(a),(e=this.attributeHandler)===null||e===void 0||e.call(this,a),n==="xmlns"){let r=o.trim();this.currentXMLVersion==="1.0"&&r===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[s]=r,Ji(this,s,r)}else if(i==="xmlns"){let r=o.trim();this.topNS[""]=r,Ji(this,"",r)}}pushAttribPlain(i,o){var e;let n={name:i,value:o};this.attribList.push(n),(e=this.attributeHandler)===null||e===void 0||e.call(this,n)}end(){var i,o;this.sawRoot||this.fail("document must contain a root element.");let{tags:e}=this;for(;e.length>0;){let s=e.pop();this.fail(`unclosed tag: ${s.name}`)}this.state!==Aa&&this.state!==He&&this.fail("unexpected end.");let{text:n}=this;return n.length!==0&&((i=this.textHandler)===null||i===void 0||i.call(this,n),this.text=""),this._closed=!0,(o=this.endHandler)===null||o===void 0||o.call(this),this._init(),this}resolve(i){var o,e;let n=this.topNS[i];if(n!==void 0)return n;let{tags:s}=this;for(let a=s.length-1;a>=0;a--)if(n=s[a].ns[i],n!==void 0)return n;return n=this.ns[i],n!==void 0?n:(e=(o=this.opt).resolvePrefix)===null||e===void 0?void 0:e.call(o,i)}qname(i){let o=i.indexOf(":");if(o===-1)return{prefix:"",local:i};let e=i.slice(o+1),n=i.slice(0,o);return(n===""||e===""||e.includes(":"))&&this.fail(`malformed name: ${i}.`),{prefix:n,local:e}}processAttribsNS(){var i;let{attribList:o}=this,e=this.tag;{let{prefix:a,local:r}=this.qname(e.name);e.prefix=a,e.local=r;let l=e.uri=(i=this.resolve(a))!==null&&i!==void 0?i:"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),l===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),e.uri=a))}if(o.length===0)return;let{attributes:n}=e,s=new Set;for(let a of o){let{name:r,prefix:l,local:h}=a,c,u;l===""?(c=r==="xmlns"?Gr:"",u=r):(c=this.resolve(l),c===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(l)}.`),c=l),u=`{${c}}${h}`),s.has(u)&&this.fail(`duplicate attribute: ${u}.`),s.add(u),a.uri=c,n[r]=a}this.attribList=[]}processAttribsPlain(){let{attribList:i}=this,o=this.tag.attributes;for(let{name:e,value:n}of i)o[e]!==void 0&&this.fail(`duplicate attribute: ${e}.`),o[e]=n;this.attribList=[]}openTag(){var i;this.processAttribs();let{tags:o}=this,e=this.tag;e.isSelfClosing=!1,(i=this.openTagHandler)===null||i===void 0||i.call(this,e),o.push(e),this.state=He,this.name=""}openSelfClosingTag(){var i,o,e;this.processAttribs();let{tags:n}=this,s=this.tag;s.isSelfClosing=!0,(i=this.openTagHandler)===null||i===void 0||i.call(this,s),(o=this.closeTagHandler)===null||o===void 0||o.call(this,s),(this.tag=(e=n[n.length-1])!==null&&e!==void 0?e:null)===null&&(this.closedRoot=!0),this.state=He,this.name=""}closeTag(){let{tags:i,name:o}=this;if(this.state=He,this.name="",o===""){this.fail("weird empty close tag."),this.text+="";return}let e=this.closeTagHandler,n=i.length;for(;n-- >0;){let s=this.tag=i.pop();if(this.topNS=s.ns,e?.(s),s.name===o)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${o}.`),this.text+=``)}parseEntity(i){if(i[0]!=="#"){let e=this.ENTITIES[i];return e!==void 0?e:(this.fail(this.isName(i)?"undefined entity.":"disallowed character in entity name."),`&${i};`)}let o=NaN;return i[1]==="x"&&/^#x[0-9a-f]+$/i.test(i)?o=parseInt(i.slice(2),16):/^#[0-9]+$/.test(i)&&(o=parseInt(i.slice(1),10)),this.isChar(o)?String.fromCodePoint(o):(this.fail("malformed character entity."),`&${i};`)}};Zr.SaxesParser=ts});var Lr=Xe(je=>{"use strict";function Ku(t,i,o){if(o===void 0&&(o=Array.prototype),t&&typeof o.find=="function")return o.find.call(t,i);for(var e=0;e-1}var ac=Kr({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});je.assign=Qu;je.find=Ku;je.freeze=Kr;je.HTML_BOOLEAN_ATTRIBUTES=Ya;je.HTML_RAW_TEXT_ELEMENTS=xn;je.HTML_VOID_ELEMENTS=Ka;je.hasDefaultHTMLNamespace=nc;je.hasOwn=jr;je.isHTMLBooleanAttribute=Ju;je.isHTMLRawTextElement=ec;je.isHTMLEscapableRawTextElement=rc;je.isHTMLMimeType=Qa;je.isHTMLVoidElement=tc;je.isValidMimeType=sc;je.MIME_TYPE=Sn;je.NAMESPACE=ac});var Tn=Xe(An=>{"use strict";var oc=Lr();function to(t,i){t.prototype=Object.create(Error.prototype,{constructor:{value:t},name:{value:t.name,enumerable:!0,writable:i}})}var kn=oc.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),eo=Object.keys(kn);function ro(t){return typeof t=="number"&&t>=1&&t<=25}function lc(t){return typeof t=="string"&&t.substring(t.length-kn.Error.length)===kn.Error}function Cn(t,i){ro(t)?(this.name=eo[t],this.message=i||""):(this.message=t,this.name=lc(i)?i:kn.Error),Error.captureStackTrace&&Error.captureStackTrace(this,Cn)}to(Cn,!0);Object.defineProperties(Cn.prototype,{code:{enumerable:!0,get:function(){var t=eo.indexOf(this.name);return ro(t)?t:0}}});var no={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},rs=Object.entries(no);for(En=0;En{"use strict";function uo(t){try{typeof t!="function"&&(t=RegExp);var i=new t("\u{1D306}","u").exec("\u{1D306}");return!!i&&i[0].length===2}catch{}return!1}var tn=uo();function kr(t){if(t.source[0]!=="[")throw new Error(t+" can not be used with chars");return t.source.slice(1,t.source.lastIndexOf("]"))}function Qr(t,i){if(t.source[0]!=="[")throw new Error("/"+t.source+"/ can not be used with chars_without");if(!i||typeof i!="string")throw new Error(JSON.stringify(i)+" is not a valid search");if(t.source.indexOf(i)===-1)throw new Error('"'+i+'" is not is /'+t.source+"/");if(i==="-"&&t.source.indexOf(i)!==1)throw new Error('"'+i+'" is not at the first postion of /'+t.source+"/");return new RegExp(t.source.replace(i,""),tn?"u":"")}function Jt(t){var i=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(o){var e=typeof o=="string";if(e&&i===void 0&&o==="|")throw new Error("use regg instead of reg to wrap expressions with `|`!");return e?o:o.source}).join(""),tn?"u":"")}function qt(t){if(arguments.length===0)throw new Error("no parameters provided");return Jt.apply(qt,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var uc="\uFFFD",Cr=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;tn&&(Cr=Jt("[",kr(Cr),"\\u{10000}-\\u{10FFFF}","]"));var cc=new RegExp("[^"+kr(Cr)+"]",tn?"u":""),si=/[\x20\x09\x0D\x0A]/,hc=kr(si),de=Jt(si,"+"),_e=Jt(si,"*"),Nn=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;tn&&(Nn=Jt("[",kr(Nn),"\\u{10000}-\\u{10FFFF}","]"));var fc=kr(Nn),as=Jt("[",fc,kr(/[-.0-9\xB7]/),kr(/[\u0300-\u036F\u203F-\u2040]/),"]"),rr=Jt(Nn,as,"*"),dc=Jt("^",rr,"$"),io=Jt(as,"+"),pc=Jt("&",rr,";"),mc=qt(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),Mn=qt(pc,"|",mc),Dn=Jt("%",rr,";"),os=qt(Jt('"',qt(/[^%&"]/,"|",Dn,"|",Mn),"*",'"'),"|",Jt("'",qt(/[^%&']/,"|",Dn,"|",Mn),"*","'")),gc=qt('"',qt(/[^<&"]/,"|",Mn),"*",'"',"|","'",qt(/[^<&']/,"|",Mn),"*","'"),bc=Qr(Nn,":"),yc=Qr(as,":"),is=Jt(bc,yc,"*"),vc=Jt("^",is,"$"),Rn=Jt(is,qt(":",is),"?"),wc=Jt("^",Rn,"$"),_c=Jt("(",Rn,")"),Jr=qt(/"[^"]*"|'[^']*'/),xc=Jt(/^<\?/,"(",rr,")",qt(de,"(?!",si,")(",Cr,"*?)"),"?",/\?>/),so=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,On=qt('"',so,'*"',"|","'",Qr(so,"'"),"*'"),co="",Sc=Jt(co,qt(Qr(Cr,"-"),"|",Jt("-",Qr(Cr,"-"))),"*",ho),ao="#PCDATA",Ec=qt(Jt(/\(/,_e,ao,qt(_e,/\|/,_e,Rn),"*",_e,/\)\*/),"|",Jt(/\(/,_e,ao,_e,/\)/)),kc=/[?*+]?/,Cc=Jt(/\([^>]+\)/,kc),Ac=qt("EMPTY","|","ANY","|",Ec,"|",Cc),Tc=""),Mc=Jt("NOTATION",de,/\(/,_e,rr,qt(_e,/\|/,_e,rr),"*",_e,/\)/),Dc=Jt(/\(/,_e,io,qt(_e,/\|/,_e,io),"*",_e,/\)/),Rc=qt(Mc,"|",Dc),Oc=qt(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",Rc),Ic=qt(/#REQUIRED|#IMPLIED/,"|",qt(qt("#FIXED",de),"?",gc)),Pc=qt(de,rr,de,Oc,de,Ic),Bc=""),ss="about:legacy-compat",jc=qt('"'+ss+'"',"|","'"+ss+"'"),ls="SYSTEM",ai="PUBLIC",oi=qt(qt(ls,de,Jr),"|",qt(ai,de,On,de,Jr)),Lc=Jt("^",qt(qt(ls,de,"(?",Jr,")"),"|",qt(ai,de,"(?",On,")",de,"(?",Jr,")"))),zc=Jt("^",On,"$"),$c=Jt("^",Jr,"$"),Uc=qt(de,"NDATA",de,rr),Hc=qt(os,"|",qt(oi,Uc,"?")),fo=""),Vc=qt(os,"|",oi),Wc=Jt(fo,de,"%",de,rr,de,Vc,_e,">"),Xc=qt(qc,"|",Wc),Gc=Jt(ai,de,On),Zc=Jt(""),us=Jt(_e,"=",_e),oo=/1[.]\d+/,Yc=Jt(de,"version",us,qt("'",oo,"'","|",'"',oo,'"')),lo=/[A-Za-z][-A-Za-z0-9._]*/,Kc=qt(de,"encoding",us,qt('"',lo,'"',"|","'",lo,"'")),Qc=qt(de,"standalone",us,qt("'",qt("yes","|","no"),"'","|",'"',qt("yes","|","no"),'"')),Jc=Jt(/^<\?xml/,Yc,Kc,"?",Qc,"?",_e,/\?>/),th="",nh=//,sh=Jt(Cr,"*?",ih),ah=Jt(nh,sh);Kt.chars=kr;Kt.chars_without=Qr;Kt.detectUnicodeSupport=uo;Kt.reg=Jt;Kt.regg=qt;Kt.ABOUT_LEGACY_COMPAT=ss;Kt.ABOUT_LEGACY_COMPAT_SystemLiteral=jc;Kt.AttlistDecl=Fc;Kt.CDATA_START=eh;Kt.CDATA_END=rh;Kt.CDSect=ah;Kt.Char=Cr;Kt.Comment=Sc;Kt.COMMENT_START=co;Kt.COMMENT_END=ho;Kt.DOCTYPE_DECL_START=th;Kt.elementdecl=Nc;Kt.EntityDecl=Xc;Kt.EntityValue=os;Kt.ExternalID=oi;Kt.ExternalID_match=Lc;Kt.Name=rr;Kt.Name_exact=dc;Kt.NCName_exact=vc;Kt.NotationDecl=Zc;Kt.Reference=Mn;Kt.PEReference=Dn;Kt.PI=xc;Kt.PUBLIC=ai;Kt.PubidLiteral=On;Kt.PubidLiteral_match=zc;Kt.QName=Rn;Kt.QName_exact=wc;Kt.QName_group=_c;Kt.S=de;Kt.SChar_s=hc;Kt.S_OPT=_e;Kt.SYSTEM=ls;Kt.SystemLiteral=Jr;Kt.SystemLiteral_match=$c;Kt.InvalidChar=cc;Kt.UNICODE_REPLACEMENT_CHARACTER=uc;Kt.UNICODE_SUPPORT=tn;Kt.XMLDecl=Jc});var ws=Xe(Ce=>{"use strict";var ar=Lr(),pr=ar.find,oh=ar.hasDefaultHTMLNamespace,rn=ar.hasOwn,lh=ar.isHTMLMimeType,uh=ar.isHTMLRawTextElement,ch=ar.isHTMLVoidElement,In=ar.MIME_TYPE,mr=ar.NAMESPACE,qe=Symbol(),wo=Tn(),Mt=wo.DOMException,$e=wo.DOMExceptionName,ke=cs();function Ye(t){if(t!==qe)throw new TypeError("Illegal constructor")}function hh(t){return t!==""}function fh(t){return t?t.split(/[\t\n\f\r ]+/).filter(hh):[]}function dh(t,i){return rn(t,i)||(t[i]=!0),t}function po(t){if(!t)return[];var i=fh(t);return Object.keys(i.reduce(dh,{}))}function ph(t){return function(i){return t&&t.indexOf(i)!==-1}}function _o(t){if(!ke.QName_exact.test(t))throw new Mt(Mt.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+t+'"')}function fs(t,i){_o(i),t=t||null;var o=null,e=i;if(i.indexOf(":")>=0){var n=i.split(":");o=n[0],e=n[1]}if(o!==null&&t===null)throw new Mt(Mt.NAMESPACE_ERR,"prefix is non-null and namespace is null");if(o==="xml"&&t!==ar.NAMESPACE.XML)throw new Mt(Mt.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if((o==="xmlns"||i==="xmlns")&&t!==ar.NAMESPACE.XMLNS)throw new Mt(Mt.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(t===ar.NAMESPACE.XMLNS&&o!=="xmlns"&&i!=="xmlns")throw new Mt(Mt.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[t,o,e]}function an(t,i){for(var o in t)rn(t,o)&&(i[o]=t[o])}function Ke(t,i){var o=t.prototype;if(!(o instanceof i)){let e=function(){};e.prototype=i.prototype,e=new e,an(o,e),t.prototype=o=e}o.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),o.constructor=t)}var Qe={},sr=Qe.ELEMENT_NODE=1,nn=Qe.ATTRIBUTE_NODE=2,Pn=Qe.TEXT_NODE=3,xo=Qe.CDATA_SECTION_NODE=4,So=Qe.ENTITY_REFERENCE_NODE=5,mh=Qe.ENTITY_NODE=6,ds=Qe.PROCESSING_INSTRUCTION_NODE=7,ps=Qe.COMMENT_NODE=8,en=Qe.DOCUMENT_NODE=9,Eo=Qe.DOCUMENT_TYPE_NODE=10,Ar=Qe.DOCUMENT_FRAGMENT_NODE=11,gh=Qe.NOTATION_NODE=12,Ee=ar.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function ko(t,i){if(i.length=0&&t=0){for(var n=i.length-1;e<=n;)i[e]=i[++e];if(i.length=n,vh(i,o),t){var s=t.ownerDocument;s&&No(s,t,o),o.ownerElement=null}}}sn.prototype={length:0,item:Re.prototype.item,getNamedItem:function(t){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase());for(var i=0;i0;){var o=i.pop(),e=o.node,n=o.other;if(e.nodeType!==n.nodeType)return!1;switch(e.nodeType){case e.DOCUMENT_TYPE_NODE:if(e.name!==n.name||e.publicId!==n.publicId||e.systemId!==n.systemId)return!1;break;case e.ELEMENT_NODE:if(e.namespaceURI!==n.namespaceURI||e.prefix!==n.prefix||e.localName!==n.localName||e.attributes.length!==n.attributes.length)return!1;for(var s=0;s=0;s--)i.push({node:e.childNodes[s],other:n.childNodes[s]})}return!0},isSameNode:function(t){return this===t},insertBefore:function(t,i){return ci(this,t,i)},replaceChild:function(t,i){ci(this,t,i,Ro),i&&this.removeChild(i)},removeChild:function(t){return Mo(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Po(this.ownerDocument||this,this,t)},normalize:function(){Le(this,null,{enter:function(t){for(var i=t.firstChild;i;){var o=i.nextSibling;if(o!==null&&o.nodeType===Pn&&i.nodeType===Pn){for(var e=[],n=o;n!==null&&n.nodeType===Pn;)e.push(n.data),n=n.nextSibling;for(var s=i.nextSibling;s!==n;){var a=s.nextSibling;s.parentNode=null,s.previousSibling=null,s.nextSibling=null,s=a}i.nextSibling=n,n!==null?n.previousSibling=i:t.lastChild=i,i.appendData(e.join("")),gs(t.ownerDocument,t),i=n}else i=o}return!0}})},isSupported:function(t,i){return this.ownerDocument.implementation.hasFeature(t,i)},lookupPrefix:function(t){for(var i=this;i;){var o=i._nsMap;if(o){for(var e in o)if(rn(o,e)&&o[e]===t)return e}i=i.nodeType==nn?i.ownerDocument:i.parentNode}return null},lookupNamespaceURI:function(t){for(var i=this;i;){var o=i._nsMap;if(o&&rn(o,t))return o[t];i=i.nodeType==nn?i.ownerDocument:i.parentNode}return null},isDefaultNamespace:function(t){var i=this.lookupPrefix(t);return i==null},compareDocumentPosition:function(t){if(this===t)return 0;var i=t,o=this,e=null,n=null;if(i instanceof zr&&(e=i,i=e.ownerElement),o instanceof zr&&(n=o,o=n.ownerElement,e&&i&&o===i))for(var s=0,a;a=o.attributes[s];s++){if(a===e)return Ee.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+Ee.DOCUMENT_POSITION_PRECEDING;if(a===n)return Ee.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+Ee.DOCUMENT_POSITION_FOLLOWING}if(!i||!o||o.ownerDocument!==i.ownerDocument)return Ee.DOCUMENT_POSITION_DISCONNECTED+Ee.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(mo(o.ownerDocument)>mo(i.ownerDocument)?Ee.DOCUMENT_POSITION_FOLLOWING:Ee.DOCUMENT_POSITION_PRECEDING);if(n&&i===o)return Ee.DOCUMENT_POSITION_CONTAINS+Ee.DOCUMENT_POSITION_PRECEDING;if(e&&i===o)return Ee.DOCUMENT_POSITION_CONTAINED_BY+Ee.DOCUMENT_POSITION_FOLLOWING;for(var r=[],l=i.parentNode;l;){if(!n&&l===o)return Ee.DOCUMENT_POSITION_CONTAINED_BY+Ee.DOCUMENT_POSITION_FOLLOWING;r.push(l),l=l.parentNode}r.reverse();for(var h=[],c=o.parentNode;c;){if(!e&&c===i)return Ee.DOCUMENT_POSITION_CONTAINS+Ee.DOCUMENT_POSITION_PRECEDING;h.push(c),c=c.parentNode}h.reverse();var u=ko(r,h);for(var p in u.childNodes){var d=u.childNodes[p];if(d===o)return Ee.DOCUMENT_POSITION_FOLLOWING;if(d===i)return Ee.DOCUMENT_POSITION_PRECEDING;if(h.indexOf(d)>=0)return Ee.DOCUMENT_POSITION_FOLLOWING;if(r.indexOf(d)>=0)return Ee.DOCUMENT_POSITION_PRECEDING}return 0}};function To(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}an(Qe,se);an(Qe,se.prototype);an(Ee,se);an(Ee,se.prototype);function ui(t,i){Le(t,null,{enter:function(o){return i(o)?Le.STOP:!0}})}function Le(t,i,o){for(var e=[{node:t,context:i,phase:Le.ENTER}];e.length>0;){var n=e.pop();if(n.phase===Le.ENTER){var s=o.enter(n.node,n.context);if(s===Le.STOP)return Le.STOP;if(e.push({node:n.node,context:s,phase:Le.EXIT}),s==null)continue;for(var a=n.node.lastChild;a;)e.push({node:a,context:s,phase:Le.ENTER}),a=a.previousSibling}else o.exit&&o.exit(n.node,n.context)}}Le.STOP=Symbol("walkDOM.STOP");Le.ENTER=0;Le.EXIT=1;function vr(t,i){Ye(t);var o=i||{};this.ownerDocument=this,this.contentType=o.contentType||In.XML_APPLICATION,this.type=lh(this.contentType)?"html":"xml"}function _h(t,i,o){t&&t._inc++;var e=o.namespaceURI;e===mr.XMLNS&&(i._nsMap[o.prefix?o.localName:""]=o.value)}function No(t,i,o,e){t&&t._inc++;var n=o.namespaceURI;n===mr.XMLNS&&delete i._nsMap[o.prefix?o.localName:""]}function gs(t,i,o){if(t&&t._inc){t._inc++;var e=i.childNodes;if(o&&!o.nextSibling)e[e.length++]=o;else{for(var n=i.firstChild,s=0;n;)e[s++]=n,n=n.nextSibling;e.length=s,delete e[e.length]}}}function Mo(t,i){if(t!==i.parentNode)throw new Mt(Mt.NOT_FOUND_ERR,"child's parent is not parent");var o=i.previousSibling,e=i.nextSibling;return o?o.nextSibling=e:t.firstChild=e,e?e.previousSibling=o:t.lastChild=o,gs(t.ownerDocument,t),i.parentNode=null,i.previousSibling=null,i.nextSibling=null,i}function xh(t){return t&&(t.nodeType===se.DOCUMENT_NODE||t.nodeType===se.DOCUMENT_FRAGMENT_NODE||t.nodeType===se.ELEMENT_NODE)}function Sh(t){return t&&(t.nodeType===se.CDATA_SECTION_NODE||t.nodeType===se.COMMENT_NODE||t.nodeType===se.DOCUMENT_FRAGMENT_NODE||t.nodeType===se.DOCUMENT_TYPE_NODE||t.nodeType===se.ELEMENT_NODE||t.nodeType===se.PROCESSING_INSTRUCTION_NODE||t.nodeType===se.TEXT_NODE)}function Tr(t){return t&&t.nodeType===se.DOCUMENT_TYPE_NODE}function yr(t){return t&&t.nodeType===se.ELEMENT_NODE}function Do(t){return t&&t.nodeType===se.TEXT_NODE}function bo(t,i){var o=t.childNodes||[];if(pr(o,yr)||Tr(i))return!1;var e=pr(o,Tr);return!(i&&e&&o.indexOf(e)>o.indexOf(i))}function yo(t,i){var o=t.childNodes||[];function e(s){return yr(s)&&s!==i}if(pr(o,e))return!1;var n=pr(o,Tr);return!(i&&n&&o.indexOf(n)>o.indexOf(i))}function Eh(t,i,o){if(!xh(t))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+t.nodeType);if(o&&o.parentNode!==t)throw new Mt(Mt.NOT_FOUND_ERR,"child not in parent");if(!Sh(i)||Tr(i)&&t.nodeType!==se.DOCUMENT_NODE)throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Unexpected node type "+i.nodeType+" for parent node type "+t.nodeType)}function kh(t,i,o){var e=t.childNodes||[],n=i.childNodes||[];if(i.nodeType===se.DOCUMENT_FRAGMENT_NODE){var s=n.filter(yr);if(s.length>1||pr(n,Do))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(s.length===1&&!bo(t,o))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(yr(i)&&!bo(t,o))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Tr(i)){if(pr(e,Tr))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=pr(e,yr);if(o&&e.indexOf(a)1||pr(n,Do))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(s.length===1&&!yo(t,o))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(yr(i)&&!yo(t,o))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Tr(i)){if(pr(e,function(l){return Tr(l)&&l!==o}))throw new Mt(Mt.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=pr(e,yr);if(o&&e.indexOf(a)")!==-1)throw new Mt(Mt.INVALID_CHARACTER_ERR,'data contains "]]>"');var i=new di(qe);return i.ownerDocument=this,i.childNodes=new Re,i.appendData(t),i},createProcessingInstruction:function(t,i){var o=new gi(qe);return o.ownerDocument=this,o.childNodes=new Re,o.nodeName=o.target=t,o.nodeValue=o.data=i,o},createAttribute:function(t){if(!ke.QName_exact.test(t))throw new Mt(Mt.INVALID_CHARACTER_ERR,'invalid character in name "'+t+'"');return this.type==="html"&&(t=t.toLowerCase()),this._createAttribute(t)},_createAttribute:function(t){var i=new zr(qe);return i.ownerDocument=this,i.childNodes=new Re,i.name=t,i.nodeName=t,i.localName=t,i.specified=!0,i},createEntityReference:function(t){if(!ke.Name_exact.test(t))throw new Mt(Mt.INVALID_CHARACTER_ERR,'not a valid xml name "'+t+'"');if(this.type==="html")throw new Mt("document is an html document",$e.NotSupportedError);var i=new mi(qe);return i.ownerDocument=this,i.childNodes=new Re,i.nodeName=t,i},createElementNS:function(t,i){var o=fs(t,i),e=new wr(qe),n=e.attributes=new sn;return e.childNodes=new Re,e.ownerDocument=this,e.nodeName=i,e.tagName=i,e.namespaceURI=o[0],e.prefix=o[1],e.localName=o[2],n._ownerElement=e,e},createAttributeNS:function(t,i){var o=fs(t,i),e=new zr(qe);return e.ownerDocument=this,e.childNodes=new Re,e.nodeName=i,e.name=i,e.specified=!0,e.namespaceURI=o[0],e.prefix=o[1],e.localName=o[2],e}};Ke(vr,se);function wr(t){Ye(t),this._nsMap=Object.create(null)}wr.prototype={nodeType:sr,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type==="html"&&this.namespaceURI===mr.HTML},hasAttributes:function(){return!!(this.attributes&&this.attributes.length)},hasAttribute:function(t){return!!this.getAttributeNode(t)},getAttribute:function(t){var i=this.getAttributeNode(t);return i?i.value:null},getAttributeNode:function(t){return this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase()),this.attributes.getNamedItem(t)},setAttribute:function(t,i){this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase());var o=this.getAttributeNode(t);o?o.value=o.nodeValue=""+i:(o=this.ownerDocument._createAttribute(t),o.value=o.nodeValue=""+i,this.setAttributeNode(o))},removeAttribute:function(t){var i=this.getAttributeNode(t);i&&this.removeAttributeNode(i)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,i){var o=this.getAttributeNodeNS(t,i);o&&this.removeAttributeNode(o)},hasAttributeNS:function(t,i){return this.getAttributeNodeNS(t,i)!=null},getAttributeNS:function(t,i){var o=this.getAttributeNodeNS(t,i);return o?o.value:null},setAttributeNS:function(t,i,o){var e=fs(t,i),n=e[2],s=this.getAttributeNodeNS(t,n);s?s.value=s.nodeValue=""+o:(s=this.ownerDocument.createAttributeNS(t,i),s.value=s.nodeValue=""+o,this.setAttributeNode(s))},getAttributeNodeNS:function(t,i){return this.attributes.getNamedItemNS(t,i)},getElementsByClassName:function(t){var i=po(t);return new dr(this,function(o){var e=[];return i.length>0&&ui(o,function(n){if(n!==o&&n.nodeType===sr){var s=n.getAttribute("class");if(s){var a=t===s;if(!a){var r=po(s);a=i.every(ph(r))}a&&e.push(n)}}}),e})},getElementsByTagName:function(t){var i=(this.nodeType===en?this:this.ownerDocument).type==="html",o=t.toLowerCase();return new dr(this,function(e){var n=[];return ui(e,function(s){if(!(s===e||s.nodeType!==sr))if(t==="*")n.push(s);else{var a=s.getQualifiedName(),r=i&&s.namespaceURI===mr.HTML?o:t;a===r&&n.push(s)}}),n})},getElementsByTagNameNS:function(t,i){return new dr(this,function(o){var e=[];return ui(o,function(n){n!==o&&n.nodeType===sr&&(t==="*"||n.namespaceURI===t)&&(i==="*"||n.localName==i)&&e.push(n)}),e})}};vr.prototype.getElementsByClassName=wr.prototype.getElementsByClassName;vr.prototype.getElementsByTagName=wr.prototype.getElementsByTagName;vr.prototype.getElementsByTagNameNS=wr.prototype.getElementsByTagNameNS;Ke(wr,se);function zr(t){Ye(t),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}zr.prototype.nodeType=nn;Ke(zr,se);function Nr(t){Ye(t)}Nr.prototype={data:"",substringData:function(t,i){return this.data.substring(t,t+i)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,i){this.replaceData(t,0,i)},deleteData:function(t,i){this.replaceData(t,i,"")},replaceData:function(t,i,o){var e=this.data.substring(0,t),n=this.data.substring(t+i);o=e+o+n,this.nodeValue=this.data=o,this.length=o.length}};Ke(Nr,se);function Bn(t){Ye(t)}Bn.prototype={nodeName:"#text",nodeType:Pn,splitText:function(t){var i=this.data,o=i.substring(t);i=i.substring(0,t),this.data=this.nodeValue=i,this.length=i.length;var e=this.ownerDocument.createTextNode(o);return this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling),e}};Ke(Bn,Nr);function fi(t){Ye(t)}fi.prototype={nodeName:"#comment",nodeType:ps};Ke(fi,Nr);function di(t){Ye(t)}di.prototype={nodeName:"#cdata-section",nodeType:xo};Ke(di,Bn);function pi(t){Ye(t)}pi.prototype.nodeType=Eo;Ke(pi,se);function bs(t){Ye(t)}bs.prototype.nodeType=gh;Ke(bs,se);function ys(t){Ye(t)}ys.prototype.nodeType=mh;Ke(ys,se);function mi(t){Ye(t)}mi.prototype.nodeType=So;Ke(mi,se);function on(t){Ye(t)}on.prototype.nodeName="#document-fragment";on.prototype.nodeType=Ar;Ke(on,se);function gi(t){Ye(t)}gi.prototype.nodeType=ds;Ke(gi,Nr);function Oo(){}Oo.prototype.serializeToString=function(t,i){return Io.call(t,i)};se.prototype.toString=Io;function Io(t){var i;typeof t=="function"?i={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:t}:t!=null?i={requireWellFormed:!!t.requireWellFormed,splitCDATASections:t.splitCDATASections!==!1,nodeFilter:t.nodeFilter||null}:i={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var o=[],e=this.nodeType===en&&this.documentElement||this,n=e.prefix,s=e.namespaceURI;if(s&&n==null){var n=e.lookupPrefix(s);if(n==null)var a=[{namespace:s,prefix:null}]}return vs(this,o,a,i),o.join("")}function vo(t,i,o){var e=t.prefix||"",n=t.namespaceURI;if(!n||e==="xml"&&n===mr.XML||n===mr.XMLNS)return!1;for(var s=o.length;s--;){var a=o[s];if(a.prefix===e)return a.namespace!==n}return!0}function li(t,i,o,e){if(e&&!ke.QName_exact.test(i))throw new Mt('The attribute name "'+i+'" is not a valid XML QName',$e.InvalidStateError);t.push(" ",i,'="',o.replace(/[<>&"\t\n\r]/g,To),'"')}function vs(t,i,o,e){o||(o=[]);var n=e.nodeFilter,s=e.requireWellFormed,a=e.splitCDATASections,r=t.nodeType===en?t:t.ownerDocument,l=r.type==="html";Le(t,{ns:o},{enter:function(h,c){var u=c.ns;if(n)if(h=n(h),h){if(typeof h=="string")return i.push(h),null}else return null;switch(h.nodeType){case sr:var p=h.attributes,d=p.length,f=h.tagName,g=f;if(!l&&!h.prefix&&h.namespaceURI){for(var m,v=0;v=0;x--){var A=u[x];if(A.prefix===""&&A.namespace===h.namespaceURI){m=A.namespace;break}}if(m!==h.namespaceURI)for(var x=u.length-1;x>=0;x--){var A=u[x];if(A.namespace===h.namespaceURI){A.prefix&&(g=A.prefix+":"+f);break}}}if(s&&!ke.QName_exact.test(g))throw new Mt('The element name "'+g+'" is not a valid XML QName',$e.InvalidStateError);i.push("<",g);for(var D=u.slice(),F=0;F"),null;if(i.push(">"),l&&uh(f)){for(var S=h.firstChild;S;)S.data?i.push(S.data):vs(S,i,D.slice(),e),S=S.nextSibling;return i.push(""),null}return{ns:D,tag:g};case en:case Ar:if(s&&h.nodeType===en&&h.documentElement==null)throw new Mt("The Document has no documentElement",$e.InvalidStateError);return{ns:u};case nn:return li(i,h.name,h.value,s),null;case Pn:if(s&&ke.InvalidChar.test(h.data))throw new Mt("The Text node data contains characters outside the XML Char production",$e.InvalidStateError);return i.push(h.data.replace(/[<&>]/g,To)),null;case xo:if(s&&h.data.indexOf("]]>")!==-1)throw new Mt('The CDATASection data contains "]]>"',$e.InvalidStateError);return a?i.push(ke.CDATA_START,h.data.replace(/]]>/g,"]]]]>"),ke.CDATA_END):i.push(ke.CDATA_START,h.data,ke.CDATA_END),null;case ps:if(s){if(ke.InvalidChar.test(h.data))throw new Mt("The comment node data contains characters outside the XML Char production",$e.InvalidStateError);if(h.data.indexOf("--")!==-1||h.data[h.data.length-1]==="-")throw new Mt('The comment node data contains "--" or ends with "-"',$e.InvalidStateError)}return i.push(ke.COMMENT_START,h.data,ke.COMMENT_END),null;case Eo:var P=h.publicId,b=h.systemId;if(s){if(!ke.Name_exact.test(h.name))throw new Mt('The doctype name "'+h.name+'" is not a valid XML Name',$e.InvalidStateError);if(P&&!ke.PubidLiteral_match.test(P))throw new Mt("DocumentType publicId is not a valid PubidLiteral",$e.InvalidStateError);if(b&&b!=="."&&!ke.SystemLiteral_match.test(b))throw new Mt("DocumentType systemId is not a valid SystemLiteral",$e.InvalidStateError);if(h.internalSubset&&h.internalSubset.indexOf("]>")!==-1)throw new Mt('DocumentType internalSubset contains "]>"',$e.InvalidStateError)}return i.push(ke.DOCTYPE_DECL_START," ",h.name),P?(i.push(" ",ke.PUBLIC," ",P),b&&b!=="."&&i.push(" ",b)):b&&b!=="."&&i.push(" ",ke.SYSTEM," ",b),h.internalSubset&&i.push(" [",h.internalSubset,"]"),i.push(">"),null;case ds:if(s){if(!ke.NCName_exact.test(h.target)||h.target.toLowerCase()==="xml")throw new Mt('The processing instruction target "'+h.target+'" is not a valid XML NCName or is reserved',$e.InvalidStateError);if(ke.InvalidChar.test(h.data))throw new Mt("The ProcessingInstruction data contains characters outside the XML Char production",$e.InvalidStateError);if(h.data.indexOf("?>")!==-1)throw new Mt('The ProcessingInstruction data contains "?>"',$e.InvalidStateError)}return i.push(""),null;case So:if(s&&!ke.Name_exact.test(h.nodeName))throw new Mt('The entity reference name "'+h.nodeName+'" is not a valid XML Name',$e.InvalidStateError);return i.push("&",h.nodeName,";"),null;default:return i.push("??",h.nodeName),null}},exit:function(h,c){c&&c.tag&&i.push("")}})}function Ch(t,i,o){var e;return Le(i,null,{enter:function(n,s){var a=n.cloneNode(!1);a.ownerDocument=t,a.parentNode=null,s===null?e=a:s.appendChild(a);var r=n.nodeType===nn||o;return r?a:null}}),e}function Po(t,i,o){var e;return Le(i,null,{enter:function(n,s){var a=new n.constructor(qe);for(var r in n)if(rn(n,r)){var l=n[r];typeof l!="object"&&l!=a[r]&&(a[r]=l)}n.childNodes&&(a.childNodes=new Re),a.ownerDocument=t;var h=o;switch(a.nodeType){case sr:var c=n.attributes,u=a.attributes=new sn,p=c.length;u._ownerElement=a;for(var d=0;d{"use strict";var Fo=Lr().freeze;Fn.XML_ENTITIES=Fo({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});Fn.HTML_ENTITIES=Fo({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});Fn.entityMap=Fn.HTML_ENTITIES});var Xo=Xe(yi=>{"use strict";var fn=Lr(),Qt=cs(),Uo=Tn(),Ah=fn.isHTMLEscapableRawTextElement,Th=fn.isHTMLMimeType,Nh=fn.isHTMLRawTextElement,zn=fn.hasOwn,Lo=fn.NAMESPACE,Mh=Uo.ParseError,Dh=Uo.DOMException,ln=0,Mr=1,un=2,jn=3,cn=4,hn=5,Ln=6,bi=7;function Ho(){}Ho.prototype={parse:function(t,i,o){var e=this.domBuilder;e.startDocument(),Ph(i,i=Object.create(null)),Rh(t,i,o,e,this.errorHandler),e.endDocument()}};var _s=/&#?\w+;?/g;function Rh(t,i,o,e,n){var s=Th(e.mimeType);t.indexOf(Qt.UNICODE_REPLACEMENT_CHARACTER)>=0&&n.warning("Unicode replacement character detected, source encoding issues?");function a(z){if(z>65535){z-=65536;var H=55296+(z>>10),V=56320+(z&1023);return String.fromCharCode(H,V)}else return String.fromCharCode(z)}function r(z){var H=z[z.length-1]===";"?z:z+";";if(!s&&H!==z)return n.error("EntityRef: expecting ;"),z;var V=Qt.Reference.exec(H);if(!V||V[0].length!==H.length)return n.error("entity not matching Reference production: "+z),z;var B=H.slice(1,-1);return zn(o,B)?o[B]:B.charAt(0)==="#"?a(parseInt(B.substring(1).replace("x","0x"))):(n.error("entity not found:"+z),z)}function l(z){if(z>m){var H=t.substring(m,z).replace(_s,r);p&&d(m),e.characters(H,0,z-m),m=z}}var h=0,c=0,u=/\r\n?|\n|$/g,p=e.locator;function d(z,H){for(;z>=c&&(H=u.exec(t));)h=c,c=H.index+H[0].length,p.lineNumber++;p.columnNumber=z-h+1}for(var f=[{currentNSMap:i}],g=[],m=0;;){try{var v=t.indexOf("<",m);if(v<0){if(!s&&g.length>0)return n.fatalError("unclosed xml tag(s): "+g.join(", "));if(!t.substring(m).match(/^\s*$/)){var x=e.doc,A=x.createTextNode(t.substring(m));if(x.documentElement)return n.error("Extra content at the end of the document");x.appendChild(A),e.currentElement=A}return}if(v>m){var D=t.substring(m,v);!s&&g.length===0&&(D=D.replace(new RegExp(Qt.S_OPT.source,"g"),""),D&&n.error("Unexpected content outside root element: '"+D+"'")),l(v)}switch(t.charAt(v+1)){case"/":var _=t.indexOf(">",v+2),F=t.substring(v+2,_>0?_:void 0);if(!F)return n.fatalError("end tag name missing");var O=Qt.reg("^",Qt.QName_group,Qt.S_OPT,"$"),I=_>0&&O.exec(F);if(!I){var j=_>0&&Qt.reg("^",Qt.QName_group).exec(F);if(s&&j)n.warning('end tag name contains invalid trailing characters: "'+F+'"'),I=j;else if(j&&new RegExp(O.source,O.flags+"m").test(F))n.error('end tag name is followed by a line break and trailing content: "'+F+'"'),I=j;else return n.fatalError('end tag name contains invalid characters: "'+F+'"')}if(!e.currentElement&&!e.doc.documentElement)return;var U=g[g.length-1]||e.currentElement.tagName||e.doc.documentElement.tagName||"";if(U!==I[1]){var R=I[1].toLowerCase();if(!s||U.toLowerCase()!==R)return n.fatalError('Opening and ending tag mismatch: "'+U+'" != "'+F+'"')}var k=f.pop();g.pop();var S=k.localNSMap;if(e.endElement(k.uri,k.localName,U),S)for(var P in S)zn(S,P)&&e.endPrefixMapping(P);_++;break;case"?":p&&d(v),_=Fh(t,v,e,n);break;case"!":p&&d(v),_=Vo(t,v,e,n,s);break;default:p&&d(v);var b=new Wo,y=f[f.length-1].currentNSMap,_=Oh(t,v,b,y,r,n,s),w=b.length;if(b.closed||(s&&fn.isHTMLVoidElement(b.tagName)?b.closed=!0:g.push(b.tagName)),p&&w){for(var E=zo(p,{}),C=0;Cm?m=_:l(Math.max(v,m)+1)}}function zo(t,i){return i.lineNumber=t.lineNumber,i.columnNumber=t.columnNumber,i}function Oh(t,i,o,e,n,s,a){function r(d,f,g){if(zn(o.attributeNames,d))return s.fatalError("Attribute "+d+" redefined");if(!a&&f.indexOf("<")>=0)return s.fatalError("Unescaped '<' not allowed in attributes values");o.addValue(d,f.replace(/[\t\n\r]/g," ").replace(_s,n),g)}for(var l,h,c=++i,u=ln;;){var p=t.charAt(c);if(u===ln&&p==="<")throw new Error("unexpected < in tag name: "+t.slice(i,c));switch(p){case"=":if(u===Mr)l=t.slice(i,c),u=jn;else if(u===un)u=jn;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(u===jn||u===Mr)if(u===Mr&&(s.warning('attribute value must after "="'),l=t.slice(i,c)),i=c+1,c=t.indexOf(p,i),c>0)h=t.slice(i,c),r(l,h,i-1),u=hn;else throw new Error("attribute value no end '"+p+"' match");else if(u==cn)h=t.slice(i,c),r(l,h,i),s.warning('attribute "'+l+'" missed start quot('+p+")!!"),i=c+1,u=hn;else throw new Error('attribute value must after "="');break;case"/":switch(u){case ln:o.setTagName(t.slice(i,c));case hn:case Ln:case bi:u=bi,o.closed=!0;case cn:case Mr:break;case un:o.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),u==ln&&o.setTagName(t.slice(i,c)),c;case">":switch(u){case ln:o.setTagName(t.slice(i,c));case hn:case Ln:case bi:break;case cn:case Mr:h=t.slice(i,c),h.slice(-1)==="/"&&(o.closed=!0,h=h.slice(0,-1));case un:u===un&&(h=l),u==cn?(s.warning('attribute "'+h+'" missed quot(")!'),r(l,h,i)):(a||s.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),r(h,h,i));break;case jn:if(!a)return s.fatalError(`AttValue: ' or " expected`)}return c;case"\x80":p=" ";default:if(p<=" ")switch(u){case ln:o.setTagName(t.slice(i,c)),u=Ln;break;case Mr:l=t.slice(i,c),u=un;break;case cn:var h=t.slice(i,c);s.warning('attribute "'+h+'" missed quot(")!!'),r(l,h,i);case hn:u=Ln;break}else switch(u){case un:a||s.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),r(l,l,i),i=c,u=Mr;break;case hn:s.warning('attribute space is required"'+l+'"!!');case Ln:u=Mr,i=c;break;case jn:u=cn,i=c;break;case bi:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function $o(t,i,o){for(var e=t.tagName,n=null,u=t.length;u--;){var s=t[u],a=s.qName,r=s.value,p=a.indexOf(":");if(p>0)var l=s.prefix=a.slice(0,p),h=a.slice(p+1),c=l==="xmlns"&&h;else h=a,l=null,c=a==="xmlns"&&"";s.localName=h,c!==!1&&(n==null&&(n=Object.create(null),o=Object.create(o)),o[c]=n[c]=r,s.uri=Lo.XMLNS,i.startPrefixMapping(c,r))}for(var u=t.length;u--;)s=t[u],s.prefix&&(s.prefix==="xml"&&(s.uri=Lo.XML),s.prefix!=="xmlns"&&(s.uri=o[s.prefix]));var p=e.indexOf(":");p>0?(l=t.prefix=e.slice(0,p),h=t.localName=e.slice(p+1)):(l=null,h=t.localName=e);var d=t.uri=o[l||""];if(i.startElement(d,h,e,t),t.closed){if(i.endElement(d,h,e),n)for(l in n)zn(n,l)&&i.endPrefixMapping(l)}else return t.currentNSMap=o,t.localNSMap=n,!0}function Ih(t,i,o,e,n){var s=Ah(o);if(s||Nh(o)){var a=new RegExp("","ig");a.lastIndex=i;var r=a.exec(t),l=r?r.index:-1;if(l<0)return i+1;var h=t.substring(i+1,l);return s&&(h=h.replace(_s,e)),n.characters(h,0,h.length),l}return i+1}function Ph(t,i){for(var o in t)zn(t,o)&&(i[o]=t[o])}function qo(t,i){var o=i;function e(c){return c=c||0,t.charAt(o+c)}function n(c){c=c||1,o+=c}function s(){for(var c=0;o"?e.fatalError("doctype not terminated with > at position "+s.getIndex()):(s.skip(1),o.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),o.endDTD(),s.getIndex())}default:return e.fatalError('Not well-formed XML starting with "0)return e.fatalError("processing instruction at position "+i+" is an xml declaration which is only at the start of the document");if(!Qt.XMLDecl.test(t.substring(i)))return e.fatalError("xml declaration is not well-formed")}return o.processingInstruction(n[1],n[2]),i+n[0].length}function Wo(){this.attributeNames=Object.create(null)}Wo.prototype={setTagName:function(t){if(!Qt.QName_exact.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,i,o){if(!Qt.QName_exact.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:i,offset:o}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};yi.XMLReader=Ho;yi.parseUtils=qo;yi.parseDoctypeCommentOrCData=Vo});var tl=Xe(pn=>{"use strict";var $r=Lr(),jh=ws(),Lh=Tn(),Go=jo(),zh=Xo(),$h=jh.DOMImplementation,Uh=$r.hasDefaultHTMLNamespace,Hh=$r.isHTMLMimeType,qh=$r.isValidMimeType,Ko=$r.MIME_TYPE,xs=$r.NAMESPACE,Zo=Lh.ParseError,Vh=zh.XMLReader;function Qo(t){return t.replace(/\r[\n\u0085]/g,` +`).replace(/[\r\u0085\u2028\u2029]/g,` +`)}function Jo(t){if(t=t||{},t.locator===void 0&&(t.locator=!0),this.assign=t.assign||$r.assign,this.domHandler=t.domHandler||wi,this.onError=t.onError||t.errorHandler,t.errorHandler&&typeof t.errorHandler!="function")throw new TypeError("errorHandler object is no longer supported, switch to onError!");t.errorHandler&&t.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=t.normalizeLineEndings||Qo,this.locator=!!t.locator,this.xmlns=this.assign(Object.create(null),t.xmlns)}Jo.prototype.parseFromString=function(t,i){if(!qh(i))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+i+'" is not valid.');var o=this.assign(Object.create(null),this.xmlns),e=Go.XML_ENTITIES,n=o[""]||null;Uh(i)?(e=Go.HTML_ENTITIES,n=xs.HTML):i===Ko.XML_SVG_IMAGE&&(n=xs.SVG),o[""]=n,o.xml=o.xml||xs.XML;var s=new this.domHandler({mimeType:i,defaultNamespace:n,onError:this.onError}),a=this.locator?{}:void 0;this.locator&&s.setDocumentLocator(a);var r=new Vh;r.errorHandler=s,r.domBuilder=s;var l=!$r.isHTMLMimeType(i);return l&&typeof t!="string"&&r.errorHandler.fatalError("source is not a string"),r.parse(this.normalizeLineEndings(String(t)),o,e),s.doc.documentElement||r.errorHandler.fatalError("missing root element"),s.doc};function wi(t){var i=t||{};this.mimeType=i.mimeType||Ko.XML_APPLICATION,this.defaultNamespace=i.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=i.onError}function dn(t,i){i.lineNumber=t.lineNumber,i.columnNumber=t.columnNumber}wi.prototype={startDocument:function(){var t=new $h;this.doc=Hh(this.mimeType)?t.createHTMLDocument(!1):t.createDocument(this.defaultNamespace,"")},startElement:function(t,i,o,e){var n=this.doc,s=n.createElementNS(t,o||i),a=e.length;vi(this,s),this.currentElement=s,this.locator&&dn(this.locator,s);for(var r=0;r=i+o||i?new java.lang.String(t,i,o)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){wi.prototype[t]=function(){return null}});function vi(t,i){t.currentElement?t.currentElement.appendChild(i):t.doc.appendChild(i)}function Xh(t){if(t==="error")throw"onErrorStopParsing"}function Gh(){throw"onWarningStopParsing"}pn.__DOMHandler=wi;pn.DOMParser=Jo;pn.normalizeLineEndings=Qo;pn.onErrorStopParsing=Xh;pn.onWarningStopParsing=Gh});var el=Xe(ae=>{"use strict";var mn=Lr();ae.assign=mn.assign;ae.hasDefaultHTMLNamespace=mn.hasDefaultHTMLNamespace;ae.isHTMLMimeType=mn.isHTMLMimeType;ae.isValidMimeType=mn.isValidMimeType;ae.MIME_TYPE=mn.MIME_TYPE;ae.NAMESPACE=mn.NAMESPACE;var _i=Tn();ae.DOMException=_i.DOMException;ae.DOMExceptionName=_i.DOMExceptionName;ae.ExceptionCode=_i.ExceptionCode;ae.ParseError=_i.ParseError;var Oe=ws();ae.Attr=Oe.Attr;ae.CDATASection=Oe.CDATASection;ae.CharacterData=Oe.CharacterData;ae.Comment=Oe.Comment;ae.Document=Oe.Document;ae.DocumentFragment=Oe.DocumentFragment;ae.DocumentType=Oe.DocumentType;ae.DOMImplementation=Oe.DOMImplementation;ae.Element=Oe.Element;ae.Entity=Oe.Entity;ae.EntityReference=Oe.EntityReference;ae.LiveNodeList=Oe.LiveNodeList;ae.NamedNodeMap=Oe.NamedNodeMap;ae.Node=Oe.Node;ae.NodeList=Oe.NodeList;ae.Notation=Oe.Notation;ae.ProcessingInstruction=Oe.ProcessingInstruction;ae.Text=Oe.Text;ae.XMLSerializer=Oe.XMLSerializer;var xi=tl();ae.DOMParser=xi.DOMParser;ae.normalizeLineEndings=xi.normalizeLineEndings;ae.onErrorStopParsing=xi.onErrorStopParsing;ae.onWarningStopParsing=xi.onWarningStopParsing});function Zh(t){return t.split(",").map(i=>i.trim().split(/\s+/).map(o=>{let e=o.replaceAll("\\:",":");if(!/^(?:\*\|)?[A-Za-z_][\w.:-]*$/.test(e))throw new Error("Unsupported Office XML selector");return e}))}function rl(t,i){return i.startsWith("*|")?t.localName===i.slice(2):t.tagName===i}function nl(t,i){let o=Zh(i),e=[];for(let n of t.getElementsByTagName("*"))o.some(s=>{if(!rl(n,s.at(-1)))return!1;let a=n.parentElement;for(let r=s.length-2;r>=0;r--){for(;a&&a!==t.parentElement&&!rl(a,s[r]);)a=a.parentElement;if(!a||a===t.parentElement)return!1;a=a.parentElement}return!0})&&e.push(n);return e}function Ss(){globalThis.DOMParser=gn,globalThis.XMLSerializer=Si.XMLSerializer,globalThis.Node={ELEMENT_NODE:1}}var Si,gn,il=Pr(()=>{Si=qr(el(),1);gn=class extends Si.DOMParser{constructor(){super({onError:()=>{throw new Error("Invalid Office XML")}})}parseFromString(i,o){let e=super.parseFromString(i,o);for(let n of[Object.getPrototypeOf(e),Object.getPrototypeOf(e.documentElement)])Object.getOwnPropertyDescriptor(n,"firstElementChild")||Object.defineProperty(n,"firstElementChild",{get(){return[...this.childNodes].find(s=>s.nodeType===1)??null}}),n.querySelectorAll||Object.defineProperties(n,{querySelectorAll:{value(s){return nl(this,s)}},querySelector:{value(s){return nl(this,s)[0]??null}}});return e}}});function Es(t,i="",o=0){let e=new Set(t),n=o;return()=>{let s;do s=`${i}${n++}`;while(e.has(s));return e.add(s),s}}var sl=Pr(()=>{});async function al(t){let i=d=>new DOMParser().parseFromString(d,"application/xml"),o=(d,f)=>d?.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main",f),e=(d,f)=>[...d?.children??[]].find(g=>g.localName===f),n=new Map,s=t.file("word/styles.xml");if(s)for(let d of i(await s.async("string")).getElementsByTagNameNS("*","style"))n.set(o(d,"styleId"),{level:o(e(e(d,"pPr"),"outlineLvl"),"val"),base:o(e(d,"basedOn"),"val")});let a=(d,f=new Set)=>{if(!d||f.has(d))return;f.add(d);let g=n.get(d);return g?.level??a(g?.base,f)},r=t.file("word/document.xml");if(!r)return[];let l=i(await r.async("string")),h=[],c=[...l.getElementsByTagNameNS("*","bookmarkStart")],u=Es(c.map(d=>o(d,"name")??""),"office-"),p=Es([...c,...l.getElementsByTagNameNS("*","bookmarkEnd")].map(d=>o(d,"id")??""),"",1e5);for(let d of l.getElementsByTagNameNS("*","p")){let f=e(d,"pPr"),g=Number(o(e(f,"outlineLvl"),"val")??a(o(e(f,"pStyle"),"val"))??9),m=[...d.getElementsByTagNameNS("*","t")].map(F=>F.textContent).join("").trim();if(g<0||g>8||!m)continue;let v=u(),x=p(),A=l.createElementNS(d.namespaceURI,"w:bookmarkStart");A.setAttributeNS(d.namespaceURI,"w:name",v),A.setAttributeNS(d.namespaceURI,"w:id",x),d.insertBefore(A,f?.nextSibling??d.firstChild);let D=l.createElementNS(d.namespaceURI,"w:bookmarkEnd");D.setAttributeNS(d.namespaceURI,"w:id",x),d.appendChild(D),h.push({id:v,title:m,level:g})}return t.file("word/document.xml",new XMLSerializer().serializeToString(l)),h}var ol=Pr(()=>{sl()});function ll(t,i){let o=i.startsWith("/")?[]:t.split("/").slice(0,-1);for(let e of i.split("/"))e===".."?o.pop():e&&e!=="."&&o.push(e);return o.join("/")}function ks(t){let i=new Set,o=[t],e=0,n=0;for(;o.length;){let s=o.pop();if(typeof s=="string")n+=s.length*2;else if(s&&typeof s=="object"&&!i.has(s)){if(i.add(s),++e>1e5)throw new Error("Office model node limit exceeded");if(s instanceof ArrayBuffer)n+=s.byteLength;else if(ArrayBuffer.isView(s))i.has(s.buffer)||(i.add(s.buffer),n+=s.buffer.byteLength);else{if(Array.isArray(s)&&s.length>1e5)throw new Error("Office model array limit exceeded");for(let[a,r]of Object.entries(s))n+=a.length*2,o.push(r)}}if(n>32*1024*1024)throw new Error("Office model size limit exceeded")}}function ul(t){let i=new Set,o=new Set,e=[t];for(;e.length;){let n=e.pop();!n||typeof n!="object"||i.has(n)||(i.add(n),n instanceof ArrayBuffer?o.add(n):ArrayBuffer.isView(n)?o.add(n.buffer):e.push(...Object.values(n)))}return[...o]}var Cs=Pr(()=>{});var Ml={};Bi(Ml,{defaultOptions:()=>oa,parseAsync:()=>Tl,renderAsync:()=>Hf,renderDocument:()=>Nl});function Yh(t,i){return i.elements(t).map(o=>({id:i.attr(o,"Id"),type:i.attr(o,"Type"),target:i.attr(o,"Target"),targetMode:i.attr(o,"TargetMode")}))}function Kh(t){return t?.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}function Ms(t){return/^[^"'].*\s.*[^"']$/.test(t)?`'${t}'`:t}function ki(t){let i=t.lastIndexOf("/")+1,o=i==0?"":t.substring(0,i),e=i==0?t:t.substring(i);return[o,e]}function As(t,i){try{let o="http://docx/";return new URL(t,o+i).toString().substring(o.length)}catch{return`${i}${t}`}}function Dr(t,i){return t.reduce((o,e)=>(o[i(e)]=e,o),{})}function Qh(t){return new Promise((i,o)=>{let e=new FileReader;e.onloadend=()=>i(e.result),e.onerror=()=>o(),e.readAsDataURL(t)})}function Ts(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Jh(t){return typeof t=="string"||t instanceof String}function Ai(t,...i){if(!i.length)return t;let o=i.shift();if(Ts(t)&&Ts(o))for(let e in o)if(Ts(o[e])){let n=t[e]??(t[e]={});Ai(n,o[e])}else t[e]=o[e];return Ai(t,...i)}function $n(t){return Array.isArray(t)?t:[t]}function tf(t,i,o){return i>t?i:o/,"")),t=sf(t);let o=new DOMParser().parseFromString(t,"application/xml"),e=nf(o);if(e)throw new Error(e);return o}function nf(t){return t.getElementsByTagName("parsererror")[0]?.textContent}function sf(t){return t.charCodeAt(0)===65279?t.substring(1):t}function af(t){return new XMLSerializer().serializeToString(t)}function lf(t,i){return i.elements(t).map(o=>uf(o,i))}function uf(t,i){let o={name:i.attr(t,"name"),embedFontRefs:[]};for(let e of i.elements(t))switch(e.localName){case"family":o.family=i.attr(e,"val");break;case"altName":o.altName=i.attr(e,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":o.embedFontRefs.push(cf(e,i));break}return o}function cf(t,i){return{id:i.attr(t,"id"),key:i.attr(t,"fontKey"),type:of[t.localName]}}function hf(t){return t.startsWith("/")?t.substr(1):t}function Ei(t,i){return{type:i.attr(t,"val"),color:i.attr(t,"color"),size:i.lengthAttr(t,"sz",Ne.Border),offset:i.lengthAttr(t,"space",Ne.Point),frame:i.boolAttr(t,"frame"),shadow:i.boolAttr(t,"shadow")}}function ff(t,i){var o={};for(let e of i.elements(t))switch(e.localName){case"left":o.left=Ei(e,i);break;case"top":o.top=Ei(e,i);break;case"right":o.right=Ei(e,i);break;case"bottom":o.bottom=Ei(e,i);break}return o}function Sl(t,i=at){var o={};for(let e of i.elements(t))switch(e.localName){case"pgSz":o.pageSize={width:i.lengthAttr(e,"w"),height:i.lengthAttr(e,"h"),orientation:i.attr(e,"orient")};break;case"type":o.type=i.attr(e,"val");break;case"pgMar":o.pageMargins={left:i.lengthAttr(e,"left"),right:i.lengthAttr(e,"right"),top:i.lengthAttr(e,"top"),bottom:i.lengthAttr(e,"bottom"),header:i.lengthAttr(e,"header"),footer:i.lengthAttr(e,"footer"),gutter:i.lengthAttr(e,"gutter")};break;case"cols":o.columns=df(e,i);break;case"headerReference":(o.headerRefs??(o.headerRefs=[])).push(hl(e,i));break;case"footerReference":(o.footerRefs??(o.footerRefs=[])).push(hl(e,i));break;case"titlePg":o.titlePage=i.boolAttr(e,"val",!0);break;case"pgBorders":o.pageBorders=ff(e,i);break;case"pgNumType":o.pageNumber=pf(e,i);break}return o}function df(t,i){return{numberOfColumns:i.intAttr(t,"num"),space:i.lengthAttr(t,"space"),separator:i.boolAttr(t,"sep"),equalWidth:i.boolAttr(t,"equalWidth",!0),columns:i.elements(t,"col").map(o=>({width:i.lengthAttr(o,"w"),space:i.lengthAttr(o,"space")}))}}function pf(t,i){return{chapSep:i.attr(t,"chapSep"),chapStyle:i.attr(t,"chapStyle"),format:i.attr(t,"fmt"),start:i.intAttr(t,"start")}}function hl(t,i){return{id:i.attr(t,"id"),type:i.attr(t,"type")}}function mf(t,i){return{before:i.lengthAttr(t,"before"),after:i.lengthAttr(t,"after"),line:i.intAttr(t,"line"),lineRule:i.attr(t,"lineRule")}}function aa(t,i){let o={};for(let e of i.elements(t))gf(e,o,i);return o}function gf(t,i,o){return!!xl(t,i,o)}function El(t,i){let o={};for(let e of i.elements(t))kl(e,o,i);return o}function kl(t,i,o){if(t.namespaceURI!=wl.wordml)return!1;if(xl(t,i,o))return!0;switch(t.localName){case"tabs":i.tabs=bf(t,o);break;case"sectPr":i.sectionProps=Sl(t,o);break;case"numPr":i.numbering=yf(t,o);break;case"spacing":return i.lineSpacing=mf(t,o),!1;case"textAlignment":return i.textAlignment=o.attr(t,"val"),!1;case"keepLines":i.keepLines=o.boolAttr(t,"val",!0);break;case"keepNext":i.keepNext=o.boolAttr(t,"val",!0);break;case"pageBreakBefore":i.pageBreakBefore=o.boolAttr(t,"val",!0);break;case"outlineLvl":i.outlineLevel=o.intAttr(t,"val");break;case"pStyle":i.styleName=o.attr(t,"val");break;case"rPr":i.runProps=aa(t,o);break;default:return!1}return!0}function bf(t,i){return i.elements(t,"tab").map(o=>({position:i.lengthAttr(o,"pos"),leader:i.attr(o,"leader"),style:i.attr(o,"val")}))}function yf(t,i){var o={};for(let e of i.elements(t))switch(e.localName){case"numId":o.id=i.attr(e,"val");break;case"ilvl":o.level=i.intAttr(e,"val");break}return o}function vf(t,i){let o={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let e of i.elements(t))switch(e.localName){case"num":o.numberings.push(wf(e,i));break;case"abstractNum":o.abstractNumberings.push(_f(e,i));break;case"numPicBullet":o.bulletPictures.push(Sf(e,i));break}return o}function wf(t,i){let o={id:i.attr(t,"numId"),overrides:[]};for(let e of i.elements(t))switch(e.localName){case"abstractNumId":o.abstractId=i.attr(e,"val");break;case"lvlOverride":o.overrides.push(xf(e,i));break}return o}function _f(t,i){let o={id:i.attr(t,"abstractNumId"),levels:[]};for(let e of i.elements(t))switch(e.localName){case"name":o.name=i.attr(e,"val");break;case"multiLevelType":o.multiLevelType=i.attr(e,"val");break;case"numStyleLink":o.numberingStyleLink=i.attr(e,"val");break;case"styleLink":o.styleLink=i.attr(e,"val");break;case"lvl":o.levels.push(Cl(e,i));break}return o}function Cl(t,i){let o={level:i.intAttr(t,"ilvl")};for(let e of i.elements(t))switch(e.localName){case"start":o.start=i.attr(e,"val");break;case"lvlRestart":o.restart=i.intAttr(e,"val");break;case"numFmt":o.format=i.attr(e,"val");break;case"lvlText":o.text=i.attr(e,"val");break;case"lvlJc":o.justification=i.attr(e,"val");break;case"lvlPicBulletId":o.bulletPictureId=i.attr(e,"val");break;case"pStyle":o.paragraphStyle=i.attr(e,"val");break;case"pPr":o.paragraphProps=El(e,i);break;case"rPr":o.runProps=aa(e,i);break}return o}function xf(t,i){let o={level:i.intAttr(t,"ilvl")};for(let e of i.elements(t))switch(e.localName){case"startOverride":o.start=i.intAttr(e,"val");break;case"lvl":o.numberingLevel=Cl(e,i);break}return o}function Sf(t,i){var o=i.element(t,"pict"),e=o&&i.element(o,"shape"),n=e&&i.element(e,"imagedata");return n?{id:i.attr(t,"numPicBulletId"),referenceId:i.attr(n,"id"),style:i.attr(e,"style")}:null}function Ef(t,i){let o={};for(let e of i.elements(t))switch(e.localName){case"Template":o.template=e.textContent;break;case"Pages":o.pages=Un(e.textContent);break;case"Words":o.words=Un(e.textContent);break;case"Characters":o.characters=Un(e.textContent);break;case"Application":o.application=e.textContent;break;case"Lines":o.lines=Un(e.textContent);break;case"Paragraphs":o.paragraphs=Un(e.textContent);break;case"Company":o.company=e.textContent;break;case"AppVersion":o.appVersion=e.textContent;break}return o}function Un(t){if(!(typeof t>"u"))return parseInt(t)}function kf(t,i){let o={};for(let e of i.elements(t))switch(e.localName){case"title":o.title=e.textContent;break;case"description":o.description=e.textContent;break;case"subject":o.subject=e.textContent;break;case"creator":o.creator=e.textContent;break;case"keywords":o.keywords=e.textContent;break;case"language":o.language=e.textContent;break;case"lastModifiedBy":o.lastModifiedBy=e.textContent;break;case"revision":e.textContent&&(o.revision=parseInt(e.textContent));break}return o}function Cf(t,i){var o=new Us,e=i.element(t,"themeElements");for(let n of i.elements(e))switch(n.localName){case"clrScheme":o.colorScheme=Af(n,i);break;case"fontScheme":o.fontScheme=Tf(n,i);break}return o}function Af(t,i){var o={name:i.attr(t,"name"),colors:{}};for(let s of i.elements(t)){var e=i.element(s,"srgbClr"),n=i.element(s,"sysClr");e?o.colors[s.localName]=i.attr(e,"val"):n&&(o.colors[s.localName]=i.attr(n,"lastClr"))}return o}function Tf(t,i){var o={name:i.attr(t,"name")};for(let e of i.elements(t))switch(e.localName){case"majorFont":o.majorFont=fl(e,i);break;case"minorFont":o.minorFont=fl(e,i);break}return o}function fl(t,i){return{latinTypeface:i.elementAttr(t,"latin","typeface"),eaTypeface:i.elementAttr(t,"ea","typeface"),csTypeface:i.elementAttr(t,"cs","typeface")}}function Nf(t,i){var o={};for(let e of i.elements(t))switch(e.localName){case"defaultTabStop":o.defaultTabStop=i.lengthAttr(e,"val");break;case"footnotePr":o.footnoteProps=dl(e,i);break;case"endnotePr":o.endnoteProps=dl(e,i);break;case"autoHyphenation":o.autoHyphenation=i.boolAttr(e,"val");break}return o}function dl(t,i){var o={defaultNoteIds:[]};for(let e of i.elements(t))switch(e.localName){case"numFmt":o.nummeringFormat=i.attr(e,"val");break;case"footnote":case"endnote":o.defaultNoteIds.push(i.attr(e,"id"));break}return o}function Mf(t,i){return i.elements(t,"property").map(o=>{let e=o.firstChild;return{formatId:i.attr(o,"fmtid"),name:i.attr(o,"name"),type:e.nodeName,value:e.textContent}})}function Rf(t,i){let e=i.replace(/{|}|-/g,""),n=new Array(16);for(let s=0;s<16;s++)n[16-s-1]=parseInt(e.substring(s*2,s*2+2),16);for(let s=0;s<32;s++)t[s]=t[s]^n[s%16];return t}function Of(t,i){return{type:ft.BookmarkStart,id:i.attr(t,"id"),name:i.attr(t,"name"),colFirst:i.intAttr(t,"colFirst"),colLast:i.intAttr(t,"colLast")}}function If(t,i){return{type:ft.BookmarkEnd,id:i.attr(t,"id")}}function Al(t,i){var o=new Js;switch(t.localName){case"rect":o.tagName="rect",Object.assign(o.attrs,{width:"100%",height:"100%"});break;case"oval":o.tagName="ellipse",Object.assign(o.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":o.tagName="line";break;case"shape":o.tagName="g";break;case"textbox":o.tagName="foreignObject",Object.assign(o.attrs,{width:"100%",height:"100%"});break;default:return null}for(let e of at.attrs(t))switch(e.localName){case"style":o.cssStyleText=e.value;break;case"fillcolor":o.attrs.fill=e.value;break;case"from":let[n,s]=pl(e.value);Object.assign(o.attrs,{x1:n,y1:s});break;case"to":let[a,r]=pl(e.value);Object.assign(o.attrs,{x2:a,y2:r});break}for(let e of at.elements(t))switch(e.localName){case"stroke":Object.assign(o.attrs,Pf(e));break;case"fill":Object.assign(o.attrs,Bf());break;case"imagedata":o.tagName="image",Object.assign(o.attrs,{width:"100%",height:"100%"}),o.imageHref={id:at.attr(e,"id"),title:at.attr(e,"title")};break;case"txbxContent":o.children.push(...i.parseBodyElements(e));break;default:let n=Al(e,i);n&&o.children.push(n);break}return o}function Pf(t){return{stroke:at.attr(t,"color"),"stroke-width":at.lengthAttr(t,"weight",Ne.Emu)??"1px"}}function Bf(t){return{}}function pl(t){return t.split(",")}function zf(t=document.body){let i=document.createElement("div");i.style.width="100pt",t.appendChild(i);let o=100/i.offsetWidth;return t.removeChild(i),o}function $f(t,i,o,e=72/96){let n=t.closest("p"),s=t.getBoundingClientRect(),a=n.getBoundingClientRect(),r=getComputedStyle(n),l=i?.length>0?i.map(x=>({pos:bl(x.position),leader:x.leader,style:x.style})).sort((x,A)=>x.pos-A.pos):[gl],h=l[l.length-1],c=a.width*e,u=bl(o),p=h.pos+u;if(px.style!="clear"&&x.pos>g);if(m==null)return;let v=1;if(m.style=="right"||m.style=="center"){let x=Array.from(n.querySelectorAll(`.${t.className}`)),A=x.indexOf(t)+1,D=document.createRange();D.setStart(t,1),At.appendChild(Jh(o)?document.createTextNode(o):o))}function Uf(t,i){for(var o=t.parent;o!=null&&o.type!=i;)o=o.parent;return o}function Tl(t,i){let o={...oa,...i};return Qs.load(t,new ia(o),o)}async function Nl(t,i,o,e){let n={...oa,...e};return await new sa(window.document).render(t,i,o,n)}async function Hf(t,i,o,e){let n=await Tl(t,e);return await Nl(n,i,o,e),n}var vl,Te,wl,Ne,Ti,at,Ve,of,Ds,Rs,Os,cl,Is,Ps,ft,_r,Bs,Fs,Ni,js,Ls,zs,$s,Us,Hs,Mi,qs,Vs,Di,Ws,Xs,Gs,Zs,Ys,Ks,Df,Qs,Js,ta,ea,ra,na,Ci,Ff,ml,ia,jf,Rr,ge,gl,Lf,ne,sa,oa,Dl=Pr(()=>{vl=qr(Qn(),1);(function(t){t.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",t.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",t.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",t.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",t.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",t.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",t.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",t.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",t.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",t.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",t.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",t.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",t.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",t.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",t.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",t.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",t.Comments="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",t.CommentsExtended="http://schemas.microsoft.com/office/2011/relationships/commentsExtended",t.AltChunk="http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"})(Te||(Te={}));wl={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},Ne={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt",min:.25,max:12},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"}};Ti=class{elements(i,o=null){let e=[];for(let n=0,s=i.childNodes.length;no.id)}},Ks=class extends Ve{constructor(i,o){super(i,o),this.comments=[]}parseXml(i){let o=this._package.xmlParser;for(let e of o.elements(i,"commentEx"))this.comments.push({paraId:o.attr(e,"paraId"),paraIdParent:o.attr(e,"paraIdParent"),done:o.boolAttr(e,"done")});this.commentMap=Dr(this.comments,e=>e.paraId)}},Df=[{type:Te.OfficeDocument,target:"word/document.xml"},{type:Te.ExtendedProperties,target:"docProps/app.xml"},{type:Te.CoreProperties,target:"docProps/core.xml"},{type:Te.CustomProperties,target:"docProps/custom.xml"}],Qs=class t{constructor(){this.parts=[],this.partsMap={}}static async load(i,o,e){var n=new t;return n._options=e,n._parser=o,n._package=await Rs.load(i,e),n.rels=await n._package.loadRelationships(),await Promise.all(Df.map(s=>{let a=n.rels.find(r=>r.type===s.type)??s;return n.loadRelationshipPart(a.target,a.type)})),n}save(i="blob"){return this._package.save(i)}async loadRelationshipPart(i,o){if(this.partsMap[i])return this.partsMap[i];if(!this._package.get(i))return null;let e=null;switch(o){case Te.OfficeDocument:this.documentPart=e=new Os(this._package,i,this._parser);break;case Te.FontTable:this.fontTablePart=e=new Ds(this._package,i);break;case Te.Numbering:this.numberingPart=e=new Is(this._package,i,this._parser);break;case Te.Styles:this.stylesPart=e=new Ps(this._package,i,this._parser);break;case Te.Theme:this.themePart=e=new Hs(this._package,i);break;case Te.Footnotes:this.footnotesPart=e=new Ws(this._package,i,this._parser);break;case Te.Endnotes:this.endnotesPart=e=new Xs(this._package,i,this._parser);break;case Te.Footer:e=new Ls(this._package,i,this._parser);break;case Te.Header:e=new js(this._package,i,this._parser);break;case Te.CoreProperties:this.corePropsPart=e=new $s(this._package,i);break;case Te.ExtendedProperties:this.extendedPropsPart=e=new zs(this._package,i);break;case Te.CustomProperties:e=new Zs(this._package,i);break;case Te.Settings:this.settingsPart=e=new Gs(this._package,i);break;case Te.Comments:this.commentsPart=e=new Ys(this._package,i,this._parser);break;case Te.CommentsExtended:this.commentsExtendedPart=e=new Ks(this._package,i);break}if(e==null)return Promise.resolve(null);if(this.partsMap[i]=e,this.parts.push(e),await e.load(),e.rels?.length>0){let[n]=ki(e.path);await Promise.all(e.rels.map(s=>this.loadRelationshipPart(As(s.target,n),s.type)))}return e}async loadDocumentImage(i,o){let e=await this.loadResource(o??this.documentPart,i,"blob");return this.blobToURL(e)}async loadNumberingImage(i){let o=await this.loadResource(this.numberingPart,i,"blob");return this.blobToURL(o)}async loadFont(i,o){let e=await this.loadResource(this.fontTablePart,i,"uint8array");return e&&this.blobToURL(new Blob([Rf(e,o)]))}async loadAltChunk(i,o){return await this.loadResource(o??this.documentPart,i,"string")}blobToURL(i){return i?this._options.useBase64URL?Qh(i):URL.createObjectURL(i):null}findPartByRelId(i,o=null){var e=(o.rels??this.rels).find(s=>s.id==i);let n=o?ki(o.path)[0]:"";return e?this.partsMap[As(e.target,n)]:null}getPathById(i,o){let e=i.rels.find(s=>s.id==o),[n]=ki(i.path);return e?As(e.target,n):null}loadResource(i,o,e){let n=this.getPathById(i,o);return n?this._package.load(n,e):Promise.resolve(null)}};Js=class extends _r{constructor(){super(...arguments),this.type=ft.VmlElement,this.attrs={}}};ta=class extends _r{constructor(){super(...arguments),this.type=ft.Comment}},ea=class extends _r{constructor(i){super(),this.id=i,this.type=ft.CommentReference}},ra=class extends _r{constructor(i){super(),this.id=i,this.type=ft.CommentRangeStart}},na=class extends _r{constructor(i){super(),this.id=i,this.type=ft.CommentRangeEnd}},Ci={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"},Ff=[],ml={oMath:ft.MmlMath,oMathPara:ft.MmlMathParagraph,f:ft.MmlFraction,func:ft.MmlFunction,fName:ft.MmlFunctionName,num:ft.MmlNumerator,den:ft.MmlDenominator,rad:ft.MmlRadical,deg:ft.MmlDegree,e:ft.MmlBase,sSup:ft.MmlSuperscript,sSub:ft.MmlSubscript,sPre:ft.MmlPreSubSuper,sup:ft.MmlSuperArgument,sub:ft.MmlSubArgument,d:ft.MmlDelimiter,nary:ft.MmlNary,eqArr:ft.MmlEquationArray,lim:ft.MmlLimit,limLow:ft.MmlLimitLower,m:ft.MmlMatrix,mr:ft.MmlMatrixRow,box:ft.MmlBox,bar:ft.MmlBar,groupChr:ft.MmlGroupChar},ia=class{constructor(i){this.options={ignoreWidth:!1,debug:!1,...i}}parseNotes(i,o,e){var n=[];for(let s of at.elements(i,o)){let a=new e;a.id=at.attr(s,"id"),a.noteType=at.attr(s,"type"),a.children=this.parseBodyElements(s),n.push(a)}return n}parseComments(i){var o=[];for(let e of at.elements(i,"comment")){let n=new ta;n.id=at.attr(e,"id"),n.author=at.attr(e,"author"),n.initials=at.attr(e,"initials"),n.date=at.attr(e,"date"),n.children=this.parseBodyElements(e),o.push(n)}return o}parseDocumentFile(i){var o=at.element(i,"body"),e=at.element(i,"background"),n=at.element(o,"sectPr");return{type:ft.Document,children:this.parseBodyElements(o),props:n?Sl(n,at):{},cssStyle:e?this.parseBackground(e):{}}}parseBackground(i){var o={},e=Rr.colorAttr(i,"color");return e&&(o["background-color"]=e),o}parseBodyElements(i){var o=[];for(let e of at.elements(i))switch(e.localName){case"p":o.push(this.parseParagraph(e));break;case"altChunk":o.push(this.parseAltChunk(e));break;case"tbl":o.push(this.parseTable(e));break;case"sdt":o.push(...this.parseSdt(e,n=>this.parseBodyElements(n)));break}return o}parseStylesFile(i){var o=[];for(let e of at.elements(i))switch(e.localName){case"style":o.push(this.parseStyle(e));break;case"docDefaults":o.push(this.parseDefaultStyles(e));break}return o}parseDefaultStyles(i){var o={id:null,name:null,target:null,basedOn:null,styles:[]};for(let s of at.elements(i))switch(s.localName){case"rPrDefault":var e=at.element(s,"rPr");e&&o.styles.push({target:"span",values:this.parseDefaultProperties(e,{})});break;case"pPrDefault":var n=at.element(s,"pPr");n&&o.styles.push({target:"p",values:this.parseDefaultProperties(n,{})});break}return o}parseStyle(i){var o={id:at.attr(i,"styleId"),isDefault:at.boolAttr(i,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(at.attr(i,"type")){case"paragraph":o.target="p";break;case"table":o.target="table";break;case"character":o.target="span";break}for(let e of at.elements(i))switch(e.localName){case"basedOn":o.basedOn=at.attr(e,"val");break;case"name":o.name=at.attr(e,"val");break;case"link":o.linked=at.attr(e,"val");break;case"next":o.next=at.attr(e,"val");break;case"aliases":o.aliases=at.attr(e,"val").split(",");break;case"pPr":o.styles.push({target:"p",values:this.parseDefaultProperties(e,{})}),o.paragraphProps=El(e,at);break;case"rPr":o.styles.push({target:"span",values:this.parseDefaultProperties(e,{})}),o.runProps=aa(e,at);break;case"tblPr":case"tcPr":o.styles.push({target:"td",values:this.parseDefaultProperties(e,{})});break;case"tblStylePr":for(let n of this.parseTableStyle(e))o.styles.push(n);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${e.localName}`)}return o}parseTableStyle(i){var o=[],e=at.attr(i,"type"),n="",s="";switch(e){case"firstRow":s=".first-row",n="tr.first-row td";break;case"lastRow":s=".last-row",n="tr.last-row td";break;case"firstCol":s=".first-col",n="td.first-col";break;case"lastCol":s=".last-col",n="td.last-col";break;case"band1Vert":s=":not(.no-vband)",n="td.odd-col";break;case"band2Vert":s=":not(.no-vband)",n="td.even-col";break;case"band1Horz":s=":not(.no-hband)",n="tr.odd-row";break;case"band2Horz":s=":not(.no-hband)",n="tr.even-row";break;default:return[]}for(let a of at.elements(i))switch(a.localName){case"pPr":o.push({target:`${n} p`,mod:s,values:this.parseDefaultProperties(a,{})});break;case"rPr":o.push({target:`${n} span`,mod:s,values:this.parseDefaultProperties(a,{})});break;case"tblPr":case"tcPr":o.push({target:n,mod:s,values:this.parseDefaultProperties(a,{})});break}return o}parseNumberingFile(i){var o=[],e={},n=[];for(let r of at.elements(i))switch(r.localName){case"abstractNum":this.parseAbstractNumbering(r,n).forEach(l=>o.push(l));break;case"numPicBullet":n.push(this.parseNumberingPicBullet(r));break;case"num":var s=at.attr(r,"numId"),a=at.elementAttr(r,"abstractNumId","val");e[a]=s;break}return o.forEach(r=>r.id=e[r.id]),o}parseNumberingPicBullet(i){var o=at.element(i,"pict"),e=o&&at.element(o,"shape"),n=e&&at.element(e,"imagedata");return n?{id:at.intAttr(i,"numPicBulletId"),src:at.attr(n,"id"),style:at.attr(e,"style")}:null}parseAbstractNumbering(i,o){var e=[],n=at.attr(i,"abstractNumId");for(let s of at.elements(i))switch(s.localName){case"lvl":e.push(this.parseNumberingLevel(n,s,o));break}return e}parseNumberingLevel(i,o,e){var n={id:i,level:at.intAttr(o,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};for(let a of at.elements(o))switch(a.localName){case"start":n.start=at.intAttr(a,"val");break;case"pPr":this.parseDefaultProperties(a,n.pStyle);break;case"rPr":this.parseDefaultProperties(a,n.rStyle);break;case"lvlPicBulletId":var s=at.intAttr(a,"val");n.bullet=e.find(r=>r?.id==s);break;case"lvlText":n.levelText=at.attr(a,"val");break;case"pStyle":n.pStyleName=at.attr(a,"val");break;case"numFmt":n.format=at.attr(a,"val");break;case"suff":n.suff=at.attr(a,"val");break}return n}parseSdt(i,o){let e=at.element(i,"sdtContent");return e?o(e):[]}parseInserted(i,o){return{type:ft.Inserted,children:o(i)?.children??[]}}parseDeleted(i,o){return{type:ft.Deleted,children:o(i)?.children??[]}}parseAltChunk(i){return{type:ft.AltChunk,children:[],id:at.attr(i,"id")}}parseParagraph(i){var o={type:ft.Paragraph,children:[]};for(let e of at.elements(i))switch(e.localName){case"pPr":this.parseParagraphProperties(e,o);break;case"r":o.children.push(this.parseRun(e,o));break;case"hyperlink":o.children.push(this.parseHyperlink(e,o));break;case"smartTag":o.children.push(this.parseSmartTag(e,o));break;case"bookmarkStart":o.children.push(Of(e,at));break;case"bookmarkEnd":o.children.push(If(e,at));break;case"commentRangeStart":o.children.push(new ra(at.attr(e,"id")));break;case"commentRangeEnd":o.children.push(new na(at.attr(e,"id")));break;case"oMath":case"oMathPara":o.children.push(this.parseMathElement(e));break;case"sdt":o.children.push(...this.parseSdt(e,n=>this.parseParagraph(n).children));break;case"ins":o.children.push(this.parseInserted(e,n=>this.parseParagraph(n)));break;case"del":o.children.push(this.parseDeleted(e,n=>this.parseParagraph(n)));break}return o}parseParagraphProperties(i,o){this.parseDefaultProperties(i,o.cssStyle={},null,e=>{if(kl(e,o,at))return!0;switch(e.localName){case"pStyle":o.styleName=at.attr(e,"val");break;case"cnfStyle":o.className=ge.classNameOfCnfStyle(e);break;case"framePr":this.parseFrame(e,o);break;case"rPr":break;default:return!1}return!0})}parseFrame(i,o){var e=at.attr(i,"dropCap");e=="drop"&&(o.cssStyle.float="left")}parseHyperlink(i,o){var e={type:ft.Hyperlink,parent:o,children:[]};e.anchor=at.attr(i,"anchor"),e.id=at.attr(i,"id");for(let n of at.elements(i))switch(n.localName){case"r":e.children.push(this.parseRun(n,e));break}return e}parseSmartTag(i,o){var e={type:ft.SmartTag,parent:o,children:[]},n=at.attr(i,"uri"),s=at.attr(i,"element");n&&(e.uri=n),s&&(e.element=s);for(let a of at.elements(i))switch(a.localName){case"r":e.children.push(this.parseRun(a,e));break}return e}parseRun(i,o){var e={type:ft.Run,parent:o,children:[]};for(let n of at.elements(i))switch(n=this.checkAlternateContent(n),n.localName){case"t":e.children.push({type:ft.Text,text:n.textContent});break;case"delText":e.children.push({type:ft.DeletedText,text:n.textContent});break;case"commentReference":e.children.push(new ea(at.attr(n,"id")));break;case"fldSimple":e.children.push({type:ft.SimpleField,instruction:at.attr(n,"instr"),lock:at.boolAttr(n,"lock",!1),dirty:at.boolAttr(n,"dirty",!1)});break;case"instrText":e.fieldRun=!0,e.children.push({type:ft.Instruction,text:n.textContent});break;case"fldChar":e.fieldRun=!0,e.children.push({type:ft.ComplexField,charType:at.attr(n,"fldCharType"),lock:at.boolAttr(n,"lock",!1),dirty:at.boolAttr(n,"dirty",!1)});break;case"noBreakHyphen":e.children.push({type:ft.NoBreakHyphen});break;case"br":e.children.push({type:ft.Break,break:at.attr(n,"type")||"textWrapping"});break;case"lastRenderedPageBreak":e.children.push({type:ft.Break,break:"lastRenderedPageBreak"});break;case"sym":e.children.push({type:ft.Symbol,font:Ms(at.attr(n,"font")),char:at.attr(n,"char")});break;case"tab":e.children.push({type:ft.Tab});break;case"footnoteReference":e.children.push({type:ft.FootnoteReference,id:at.attr(n,"id")});break;case"endnoteReference":e.children.push({type:ft.EndnoteReference,id:at.attr(n,"id")});break;case"drawing":let s=this.parseDrawing(n);s&&(e.children=[s]);break;case"pict":e.children.push(this.parseVmlPicture(n));break;case"rPr":this.parseRunProperties(n,e);break}return e}parseMathElement(i){let o=`${i.localName}Pr`,e={type:ml[i.localName],children:[]};for(let s of at.elements(i))if(ml[s.localName])e.children.push(this.parseMathElement(s));else if(s.localName=="r"){var n=this.parseRun(s);n.type=ft.MmlRun,e.children.push(n)}else s.localName==o&&(e.props=this.parseMathProperies(s));return e}parseMathProperies(i){let o={};for(let e of at.elements(i))switch(e.localName){case"chr":o.char=at.attr(e,"val");break;case"vertJc":o.verticalJustification=at.attr(e,"val");break;case"pos":o.position=at.attr(e,"val");break;case"degHide":o.hideDegree=at.boolAttr(e,"val");break;case"begChr":o.beginChar=at.attr(e,"val");break;case"endChr":o.endChar=at.attr(e,"val");break}return o}parseRunProperties(i,o){this.parseDefaultProperties(i,o.cssStyle={},null,e=>{switch(e.localName){case"rStyle":o.styleName=at.attr(e,"val");break;case"vertAlign":o.verticalAlign=ge.valueOfVertAlign(e,!0);break;default:return!1}return!0})}parseVmlPicture(i){let o={type:ft.VmlPicture,children:[]};for(let e of at.elements(i)){let n=Al(e,this);n&&o.children.push(n)}return o}checkAlternateContent(i){if(i.localName!="AlternateContent")return i;var o=at.element(i,"Choice");if(o){var e=at.attr(o,"Requires"),n=i.lookupNamespaceURI(e);if(Ff.includes(n))return o.firstElementChild}return at.element(i,"Fallback")?.firstElementChild}parseDrawing(i){for(var o of at.elements(i))switch(o.localName){case"inline":case"anchor":return this.parseDrawingWrapper(o)}}parseDrawingWrapper(i){var o={type:ft.Drawing,children:[],cssStyle:{}},e=i.localName=="anchor";let n=null,s=at.boolAttr(i,"simplePos");at.boolAttr(i,"behindDoc");let a={relative:"page",align:"left",offset:"0"},r={relative:"page",align:"top",offset:"0"};for(var l of at.elements(i))switch(l.localName){case"simplePos":s&&(a.offset=at.lengthAttr(l,"x",Ne.Emu),r.offset=at.lengthAttr(l,"y",Ne.Emu));break;case"extent":o.cssStyle.width=at.lengthAttr(l,"cx",Ne.Emu),o.cssStyle.height=at.lengthAttr(l,"cy",Ne.Emu);break;case"positionH":case"positionV":if(!s){let p=l.localName=="positionH"?a:r;var h=at.element(l,"align"),c=at.element(l,"posOffset");p.relative=at.attr(l,"relativeFrom")??p.relative,h&&(p.align=h.textContent),c&&(p.offset=_l(c.textContent,Ne.Emu))}break;case"wrapTopAndBottom":n="wrapTopAndBottom";break;case"wrapNone":n="wrapNone";break;case"graphic":var u=this.parseGraphic(l);u&&o.children.push(u);break}return n=="wrapTopAndBottom"?(o.cssStyle.display="block",a.align&&(o.cssStyle["text-align"]=a.align,o.cssStyle.width="100%")):n=="wrapNone"?(o.cssStyle.display="block",o.cssStyle.position="relative",o.cssStyle.width="0px",o.cssStyle.height="0px",a.offset&&(o.cssStyle.left=a.offset),r.offset&&(o.cssStyle.top=r.offset)):e&&(a.align=="left"||a.align=="right")&&(o.cssStyle.float=a.align),o}parseGraphic(i){var o=at.element(i,"graphicData");for(let e of at.elements(o))switch(e.localName){case"pic":return this.parsePicture(e)}return null}parsePicture(i){var o={type:ft.Image,src:"",cssStyle:{}},e=at.element(i,"blipFill"),n=at.element(e,"blip"),s=at.element(e,"srcRect");o.src=at.attr(n,"embed"),s&&(o.srcRect=[at.intAttr(s,"l",0)/1e5,at.intAttr(s,"t",0)/1e5,at.intAttr(s,"r",0)/1e5,at.intAttr(s,"b",0)/1e5]);var a=at.element(i,"spPr"),r=at.element(a,"xfrm");if(o.cssStyle.position="relative",r){o.rotation=at.intAttr(r,"rot",0)/6e4;for(var l of at.elements(r))switch(l.localName){case"ext":o.cssStyle.width=at.lengthAttr(l,"cx",Ne.Emu),o.cssStyle.height=at.lengthAttr(l,"cy",Ne.Emu);break;case"off":o.cssStyle.left=at.lengthAttr(l,"x",Ne.Emu),o.cssStyle.top=at.lengthAttr(l,"y",Ne.Emu);break}}return o}parseTable(i){var o={type:ft.Table,children:[]};for(let e of at.elements(i))switch(e.localName){case"tr":o.children.push(this.parseTableRow(e));break;case"tblGrid":o.columns=this.parseTableColumns(e);break;case"tblPr":this.parseTableProperties(e,o);break}return o}parseTableColumns(i){var o=[];for(let e of at.elements(i))switch(e.localName){case"gridCol":o.push({width:at.lengthAttr(e,"w")});break}return o}parseTableProperties(i,o){switch(o.cssStyle={},o.cellStyle={},this.parseDefaultProperties(i,o.cssStyle,o.cellStyle,e=>{switch(e.localName){case"tblStyle":o.styleName=at.attr(e,"val");break;case"tblLook":o.className=ge.classNameOftblLook(e);break;case"tblpPr":this.parseTablePosition(e,o);break;case"tblStyleColBandSize":o.colBandSize=at.intAttr(e,"val");break;case"tblStyleRowBandSize":o.rowBandSize=at.intAttr(e,"val");break;case"hidden":o.cssStyle.display="none";break;default:return!1}return!0}),o.cssStyle["text-align"]){case"center":delete o.cssStyle["text-align"],o.cssStyle["margin-left"]="auto",o.cssStyle["margin-right"]="auto";break;case"right":delete o.cssStyle["text-align"],o.cssStyle["margin-left"]="auto";break}}parseTablePosition(i,o){var e=at.lengthAttr(i,"topFromText"),n=at.lengthAttr(i,"bottomFromText"),s=at.lengthAttr(i,"rightFromText"),a=at.lengthAttr(i,"leftFromText");o.cssStyle.float="left",o.cssStyle["margin-bottom"]=ge.addSize(o.cssStyle["margin-bottom"],n),o.cssStyle["margin-left"]=ge.addSize(o.cssStyle["margin-left"],a),o.cssStyle["margin-right"]=ge.addSize(o.cssStyle["margin-right"],s),o.cssStyle["margin-top"]=ge.addSize(o.cssStyle["margin-top"],e)}parseTableRow(i){var o={type:ft.Row,children:[]};for(let e of at.elements(i))switch(e.localName){case"tc":o.children.push(this.parseTableCell(e));break;case"trPr":case"tblPrEx":this.parseTableRowProperties(e,o);break}return o}parseTableRowProperties(i,o){o.cssStyle=this.parseDefaultProperties(i,{},null,e=>{switch(e.localName){case"cnfStyle":o.className=ge.classNameOfCnfStyle(e);break;case"tblHeader":o.isHeader=at.boolAttr(e,"val");break;case"gridBefore":o.gridBefore=at.intAttr(e,"val");break;case"gridAfter":o.gridAfter=at.intAttr(e,"val");break;default:return!1}return!0})}parseTableCell(i){var o={type:ft.Cell,children:[]};for(let e of at.elements(i))switch(e.localName){case"tbl":o.children.push(this.parseTable(e));break;case"p":o.children.push(this.parseParagraph(e));break;case"tcPr":this.parseTableCellProperties(e,o);break}return o}parseTableCellProperties(i,o){o.cssStyle=this.parseDefaultProperties(i,{},null,e=>{switch(e.localName){case"gridSpan":o.span=at.intAttr(e,"val",null);break;case"vMerge":o.verticalMerge=at.attr(e,"val")??"continue";break;case"cnfStyle":o.className=ge.classNameOfCnfStyle(e);break;default:return!1}return!0}),this.parseTableCellVerticalText(i,o)}parseTableCellVerticalText(i,o){let e={btLr:{writingMode:"vertical-rl",transform:"rotate(180deg)"},lrTb:{writingMode:"vertical-lr",transform:"none"},tbRl:{writingMode:"vertical-rl",transform:"none"}};for(let n of at.elements(i))if(n.localName==="textDirection"){let s=at.attr(n,"val"),a=e[s]||{writingMode:"horizontal-tb"};o.cssStyle["writing-mode"]=a.writingMode,o.cssStyle.transform=a.transform}}parseDefaultProperties(i,o=null,e=null,n=null){o=o||{};for(let s of at.elements(i))if(!n?.(s))switch(s.localName){case"jc":o["text-align"]=ge.valueOfJc(s);break;case"textAlignment":o["vertical-align"]=ge.valueOfTextAlignment(s);break;case"color":o.color=Rr.colorAttr(s,"val",null,Ci.color);break;case"sz":o["font-size"]=o["min-height"]=at.lengthAttr(s,"val",Ne.FontSize);break;case"shd":o["background-color"]=Rr.colorAttr(s,"fill",null,Ci.shd);break;case"highlight":o["background-color"]=Rr.colorAttr(s,"val",null,Ci.highlight);break;case"vertAlign":break;case"position":o.verticalAlign=at.lengthAttr(s,"val",Ne.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":o.width=ge.valueOfSize(s,"w");break;case"trHeight":this.parseTrHeight(s,o);break;case"strike":o["text-decoration"]=at.boolAttr(s,"val",!0)?"line-through":"none";break;case"b":o["font-weight"]=at.boolAttr(s,"val",!0)?"bold":"normal";break;case"i":o["font-style"]=at.boolAttr(s,"val",!0)?"italic":"normal";break;case"caps":o["text-transform"]=at.boolAttr(s,"val",!0)?"uppercase":"none";break;case"smallCaps":o["font-variant"]=at.boolAttr(s,"val",!0)?"small-caps":"none";break;case"u":this.parseUnderline(s,o);break;case"ind":case"tblInd":this.parseIndentation(s,o);break;case"rFonts":this.parseFont(s,o);break;case"tblBorders":this.parseBorderProperties(s,e||o);break;case"tblCellSpacing":o["border-spacing"]=ge.valueOfMargin(s),o["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(s,o);break;case"bdr":o.border=ge.valueOfBorder(s);break;case"tcBorders":this.parseBorderProperties(s,o);break;case"vanish":at.boolAttr(s,"val",!0)&&(o.display="none");break;case"kern":break;case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(s,e||o);break;case"tblLayout":o["table-layout"]=ge.valueOfTblLayout(s);break;case"vAlign":o["vertical-align"]=ge.valueOfTextAlignment(s);break;case"spacing":i.localName=="pPr"&&this.parseSpacing(s,o);break;case"wordWrap":at.boolAttr(s,"val")&&(o["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":o.hyphens=at.boolAttr(s,"val",!0)?"none":"auto";break;case"lang":o.$lang=at.attr(s,"val");break;case"rtl":case"bidi":at.boolAttr(s,"val",!0)&&(o.direction="rtl");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${i.localName}.${s.localName}`);break}return o}parseUnderline(i,o){var e=at.attr(i,"val");if(e!=null){switch(e){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":o["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":o["text-decoration"]="underline dotted";break;case"double":o["text-decoration"]="underline double";break;case"single":case"thick":o["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":o["text-decoration"]="underline wavy";break;case"words":o["text-decoration"]="underline";break;case"none":o["text-decoration"]="none";break}var n=Rr.colorAttr(i,"color");n&&(o["text-decoration-color"]=n)}}parseFont(i,o){var e=at.attr(i,"ascii"),n=ge.themeValue(i,"asciiTheme"),s=at.attr(i,"eastAsia"),a=[e,n,s].filter(r=>r).map(r=>Ms(r));a.length>0&&(o["font-family"]=[...new Set(a)].join(", "))}parseIndentation(i,o){var e=at.lengthAttr(i,"firstLine"),n=at.lengthAttr(i,"hanging"),s=at.lengthAttr(i,"left"),a=at.lengthAttr(i,"start"),r=at.lengthAttr(i,"right"),l=at.lengthAttr(i,"end");e&&(o["text-indent"]=e),n&&(o["text-indent"]=`-${n}`),(s||a)&&(o["margin-inline-start"]=s||a),(r||l)&&(o["margin-inline-end"]=r||l)}parseSpacing(i,o){var e=at.lengthAttr(i,"before"),n=at.lengthAttr(i,"after"),s=at.intAttr(i,"line",null),a=at.attr(i,"lineRule");if(e&&(o["margin-top"]=e),n&&(o["margin-bottom"]=n),s!==null)switch(a){case"auto":o["line-height"]=`${(s/240).toFixed(2)}`;break;case"atLeast":o["line-height"]=`calc(100% + ${s/20}pt)`;break;default:o["line-height"]=o["min-height"]=`${s/20}pt`;break}}parseMarginProperties(i,o){for(let e of at.elements(i))switch(e.localName){case"left":o["padding-left"]=ge.valueOfMargin(e);break;case"right":o["padding-right"]=ge.valueOfMargin(e);break;case"top":o["padding-top"]=ge.valueOfMargin(e);break;case"bottom":o["padding-bottom"]=ge.valueOfMargin(e);break}}parseTrHeight(i,o){switch(at.attr(i,"hRule")){case"exact":o.height=at.lengthAttr(i,"val");break;case"atLeast":default:o.height=at.lengthAttr(i,"val");break}}parseBorderProperties(i,o){for(let e of at.elements(i))switch(e.localName){case"start":case"left":o["border-left"]=ge.valueOfBorder(e);break;case"end":case"right":o["border-right"]=ge.valueOfBorder(e);break;case"top":o["border-top"]=ge.valueOfBorder(e);break;case"bottom":o["border-bottom"]=ge.valueOfBorder(e);break}}},jf=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],Rr=class{static colorAttr(i,o,e=null,n="black"){var s=at.attr(i,o);if(s)return s=="auto"?n:jf.includes(s)?s:`#${s}`;var a=at.attr(i,"themeColor");return a?`var(--docx-${a}-color)`:e}},ge=class t{static themeValue(i,o){var e=at.attr(i,o);return e?`var(--docx-${e}-font)`:null}static valueOfSize(i,o){var e=Ne.Dxa;switch(at.attr(i,"type")){case"dxa":break;case"pct":e=Ne.Percent;break;case"auto":return"auto"}return at.lengthAttr(i,o,e)}static valueOfMargin(i){return at.lengthAttr(i,"w")}static valueOfBorder(i){var o=t.parseBorderType(at.attr(i,"val"));if(o=="none")return"none";var e=Rr.colorAttr(i,"color"),n=at.lengthAttr(i,"sz",Ne.Border);return`${n} ${o} ${e=="auto"?Ci.borderColor:e}`}static parseBorderType(i){switch(i){case"single":return"solid";case"dashDotStroked":return"solid";case"dashed":return"dashed";case"dashSmallGap":return"dashed";case"dotDash":return"dotted";case"dotDotDash":return"dotted";case"dotted":return"dotted";case"double":return"double";case"doubleWave":return"double";case"inset":return"inset";case"nil":return"none";case"none":return"none";case"outset":return"outset";case"thick":return"solid";case"thickThinLargeGap":return"solid";case"thickThinMediumGap":return"solid";case"thickThinSmallGap":return"solid";case"thinThickLargeGap":return"solid";case"thinThickMediumGap":return"solid";case"thinThickSmallGap":return"solid";case"thinThickThinLargeGap":return"solid";case"thinThickThinMediumGap":return"solid";case"thinThickThinSmallGap":return"solid";case"threeDEmboss":return"solid";case"threeDEngrave":return"solid";case"triple":return"double";case"wave":return"solid"}return"solid"}static valueOfTblLayout(i){var o=at.attr(i,"val");return o=="fixed"?"fixed":"auto"}static classNameOfCnfStyle(i){let o=at.attr(i,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((n,s)=>o[s]=="1").join(" ")}static valueOfJc(i){var o=at.attr(i,"val");switch(o){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return o}static valueOfVertAlign(i,o=!1){var e=at.attr(i,"val");switch(e){case"subscript":return"sub";case"superscript":return o?"sup":"super"}return o?null:e}static valueOfTextAlignment(i){var o=at.attr(i,"val");switch(o){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return o}static addSize(i,o){return i==null?o:o==null?i:`calc(${i} + ${o})`}static classNameOftblLook(i){let o=at.hexAttr(i,"val",0),e="";return(at.boolAttr(i,"firstRow")||o&32)&&(e+=" first-row"),(at.boolAttr(i,"lastRow")||o&64)&&(e+=" last-row"),(at.boolAttr(i,"firstColumn")||o&128)&&(e+=" first-col"),(at.boolAttr(i,"lastColumn")||o&256)&&(e+=" last-col"),(at.boolAttr(i,"noHBand")||o&512)&&(e+=" no-hband"),(at.boolAttr(i,"noVBand")||o&1024)&&(e+=" no-vband"),e.trim()}},gl={pos:0,leader:"none",style:"left"},Lf=50;ne={svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML"},sa=class{constructor(i){this.htmlDocument=i,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.commentMap={},this.tasks=[],this.postRenderTasks=[]}async render(i,o,e=null,n){this.document=i,this.options=n,this.className=n.className,this.rootSelector=n.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,this.tasks=[],this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight),e=e||o,yl(e),yl(o),e.appendChild(this.createComment("docxjs library predefined styles")),e.appendChild(this.renderDefaultStyle()),i.themePart&&(e.appendChild(this.createComment("docxjs document theme values")),this.renderTheme(i.themePart,e)),i.stylesPart!=null&&(this.styleMap=this.processStyles(i.stylesPart.styles),e.appendChild(this.createComment("docxjs document styles")),e.appendChild(this.renderStyles(i.stylesPart.styles))),i.numberingPart&&(this.prodessNumberings(i.numberingPart.domNumberings),e.appendChild(this.createComment("docxjs document numbering styles")),e.appendChild(this.renderNumbering(i.numberingPart.domNumberings,e))),i.footnotesPart&&(this.footnoteMap=Dr(i.footnotesPart.notes,a=>a.id)),i.endnotesPart&&(this.endnoteMap=Dr(i.endnotesPart.notes,a=>a.id)),i.settingsPart&&(this.defaultTabSize=i.settingsPart.settings?.defaultTabStop),!n.ignoreFonts&&i.fontTablePart&&this.renderFontTable(i.fontTablePart,e);var s=this.renderSections(i.documentPart.body);this.options.inWrapper?o.appendChild(this.renderWrapper(s)):Ns(o,s),this.commentHighlight&&n.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),this.postRenderTasks.forEach(a=>a()),await Promise.allSettled(this.tasks),this.refreshTabStops()}renderTheme(i,o){let e={},n=i.theme?.fontScheme;n&&(n.majorFont&&(e["--docx-majorHAnsi-font"]=n.majorFont.latinTypeface),n.minorFont&&(e["--docx-minorHAnsi-font"]=n.minorFont.latinTypeface));let s=i.theme?.colorScheme;if(s)for(let[r,l]of Object.entries(s.colors))e[`--docx-${r}-color`]=`#${l}`;let a=this.styleToString(`.${this.className}`,e);o.appendChild(this.createStyleElement(a))}renderFontTable(i,o){for(let e of i.fonts)for(let n of e.embedFontRefs)this.tasks.push(this.document.loadFont(n.id,n.key).then(s=>{let a={"font-family":Ms(e.name),src:`url(${s})`};(n.type=="bold"||n.type=="boldItalic")&&(a["font-weight"]="bold"),(n.type=="italic"||n.type=="boldItalic")&&(a["font-style"]="italic");let r=this.styleToString("@font-face",a);o.appendChild(this.createComment(`docxjs ${e.name} font`)),o.appendChild(this.createStyleElement(r))}))}processStyleName(i){return i?`${this.className}_${Kh(i)}`:this.className}processStyles(i){let o=Dr(i.filter(n=>n.id!=null),n=>n.id);for(let n of i.filter(s=>s.basedOn)){var e=o[n.basedOn];if(e){n.paragraphProps=Ai(n.paragraphProps,e.paragraphProps),n.runProps=Ai(n.runProps,e.runProps);for(let s of e.styles){let a=n.styles.find(r=>r.target==s.target);a?this.copyStyleProperties(s.values,a.values):n.styles.push({...s,values:{...s.values}})}}else this.options.debug&&console.warn(`Can't find base style ${n.basedOn}`)}for(let n of i)n.cssName=this.processStyleName(n.id);return o}prodessNumberings(i){for(let o of i.filter(e=>e.pStyleName)){let e=this.findStyle(o.pStyleName);e?.paragraphProps?.numbering&&(e.paragraphProps.numbering.level=o.level)}}processElement(i){if(i.children)for(var o of i.children)o.parent=i,o.type==ft.Table?this.processTable(o):this.processElement(o)}processTable(i){for(var o of i.children)for(var e of o.children)e.cssStyle=this.copyStyleProperties(i.cellStyle,e.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(e)}copyStyleProperties(i,o,e=null){if(!i)return o;o==null&&(o={}),e==null&&(e=Object.getOwnPropertyNames(i));for(var n of e)i.hasOwnProperty(n)&&!o.hasOwnProperty(n)&&(o[n]=i[n]);return o}createPageElement(i,o){var e=this.createElement("section",{className:i});return o&&(o.pageMargins&&(e.style.paddingLeft=o.pageMargins.left,e.style.paddingRight=o.pageMargins.right,e.style.paddingTop=o.pageMargins.top,e.style.paddingBottom=o.pageMargins.bottom),o.pageSize&&(this.options.ignoreWidth||(e.style.width=o.pageSize.width),this.options.ignoreHeight||(e.style.minHeight=o.pageSize.height))),e}createSectionContent(i){var o=this.createElement("article");return i.columns&&i.columns.numberOfColumns&&(o.style.columnCount=`${i.columns.numberOfColumns}`,o.style.columnGap=i.columns.space,i.columns.separator&&(o.style.columnRule="1px solid black")),o}renderSections(i){let o=[];this.processElement(i);let e=this.splitBySection(i.children,i.props),n=this.groupByPageBreaks(e),s=null;for(let r=0,l=n.length;rl.type=="first"):null)??(e%2==1?i.find(l=>l.type=="even"):null)??i.find(l=>l.type=="default"),r=a&&this.document.findPartByRelId(a.id,this.document.documentPart);if(r){this.currentPart=r,this.usedHederFooterParts.includes(r.path)||(this.processElement(r.rootElement),this.usedHederFooterParts.push(r.path));let[l]=this.renderElements([r.rootElement],s);o?.pageMargins&&(r.rootElement.type===ft.Header?(l.style.marginTop=`calc(${o.pageMargins.header} - ${o.pageMargins.top})`,l.style.minHeight=`calc(${o.pageMargins.top} - ${o.pageMargins.header})`):r.rootElement.type===ft.Footer&&(l.style.marginBottom=`calc(${o.pageMargins.footer} - ${o.pageMargins.bottom})`,l.style.minHeight=`calc(${o.pageMargins.bottom} - ${o.pageMargins.footer})`)),this.currentPart=null}}}isPageBreakElement(i){return i.type!=ft.Break?!1:i.break=="lastRenderedPageBreak"?!this.options.ignoreLastRenderedPageBreak:i.break=="page"}isPageBreakSection(i,o){return!i||!o?!1:i.pageSize?.orientation!=o.pageSize?.orientation||i.pageSize?.width!=o.pageSize?.width||i.pageSize?.height!=o.pageSize?.height}splitBySection(i,o){var e={sectProps:null,elements:[],pageBreak:!1},n=[e];for(let u of i)if(u.type==ft.Paragraph&&this.findStyle(u.styleName)?.paragraphProps?.pageBreakBefore&&(e.sectProps=s,e.pageBreak=!0,e={sectProps:null,elements:[],pageBreak:!1},n.push(e)),e.elements.push(u),u.type==ft.Paragraph){let p=u;var s=p.sectionProps,a=-1,r=-1;if(this.options.breakPages&&p.children&&(a=p.children.findIndex(d=>(r=d.children?.findIndex(this.isPageBreakElement.bind(this))??-1,r!=-1))),(s||a!=-1)&&(e.sectProps=s,e.pageBreak=a!=-1,e={sectProps:null,elements:[],pageBreak:!1},n.push(e)),a!=-1){let d=p.children[a],f=r=0;u--)n[u].sectProps==null?n[u].sectProps=c??o:c=n[u].sectProps;return n}groupByPageBreaks(i){let o=[],e,n=[o];for(let s of i)o.push(s),(this.options.ignoreLastRenderedPageBreak||s.pageBreak||this.isPageBreakSection(e,s.sectProps))&&n.push(o=[]),e=s.sectProps;return n.filter(s=>s.length>0)}renderWrapper(i){return this.createElement("div",{className:`${this.className}-wrapper`},i)}renderDefaultStyle(){var i=this.className,o=` +.${i}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } +.${i}-wrapper>section.${i} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }`;this.options.hideWrapperOnPrint&&(o=`@media not print { ${o} }`);var e=`${o} +.${i} { color: black; hyphens: auto; text-underline-position: from-font; } +section.${i} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; } +section.${i}>article { margin-bottom: auto; z-index: 1; } +section.${i}>footer { z-index: 1; } +.${i} table { border-collapse: collapse; } +.${i} table td, .${i} table th { vertical-align: top; } +.${i} p { margin: 0pt; min-height: 1em; } +.${i} span { white-space: pre-wrap; overflow-wrap: break-word; } +.${i} a { color: inherit; text-decoration: inherit; } +.${i} svg { fill: transparent; } +`;return this.options.renderComments&&(e+=` +.${i}-comment-ref { cursor: default; } +.${i}-comment-popover { display: none; z-index: 1000; padding: 0.5rem; background: white; position: absolute; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25); width: 30ch; } +.${i}-comment-ref:hover~.${i}-comment-popover { display: block; } +.${i}-comment-author,.${i}-comment-date { font-size: 0.875rem; color: #888; } +`),this.createStyleElement(e)}renderNumbering(i,o){var e="",n=[];for(var s of i){var a=`p.${this.numberingClass(s.id,s.level)}`,r="none";if(s.bullet){let l=`--${this.className}-${s.bullet.src}`.toLowerCase();e+=this.styleToString(`${a}:before`,{content:"' '",display:"inline-block",background:`var(${l})`},s.bullet.style),this.tasks.push(this.document.loadNumberingImage(s.bullet.src).then(h=>{var c=`${this.rootSelector} { ${l}: url(${h}) }`;o.appendChild(this.createStyleElement(c))}))}else if(s.levelText){let l=this.numberingCounter(s.id,s.level),h=l+" "+(s.start-1);s.level>0&&(e+=this.styleToString(`p.${this.numberingClass(s.id,s.level-1)}`,{"counter-set":h})),n.push(h),e+=this.styleToString(`${a}:before`,{content:this.levelTextToContent(s.levelText,s.suff,s.id,this.numFormatToCssValue(s.format)),"counter-increment":l,...s.rStyle})}else r=this.numFormatToCssValue(s.format);e+=this.styleToString(a,{display:"list-item","list-style-position":"inside","list-style-type":r,...s.pStyle})}return n.length>0&&(e+=this.styleToString(this.rootSelector,{"counter-reset":n.join(" ")})),this.createStyleElement(e)}renderStyles(i){var o="";let e=this.styleMap,n=Dr(i.filter(l=>l.isDefault),l=>l.target);for(let l of i){var s=l.styles;if(l.linked){var a=l.linked&&e[l.linked];a?s=s.concat(a.styles):this.options.debug&&console.warn(`Can't find linked style ${l.linked}`)}for(let h of s){var r=`${l.target??""}.${l.cssName}`;l.target!=h.target&&(r+=` ${h.target}`),n[l.target]==l&&(r=`.${this.className} ${l.target}, `+r),o+=this.styleToString(r,h.values)}}return this.createStyleElement(o)}renderNotes(i,o,e){var n=i.map(a=>o[a]).filter(a=>a);if(n.length>0){var s=this.createElement("ol",null,this.renderElements(n));e.appendChild(s)}}renderElement(i){switch(i.type){case ft.Paragraph:return this.renderParagraph(i);case ft.BookmarkStart:return this.renderBookmarkStart(i);case ft.BookmarkEnd:return null;case ft.Run:return this.renderRun(i);case ft.Table:return this.renderTable(i);case ft.Row:return this.renderTableRow(i);case ft.Cell:return this.renderTableCell(i);case ft.Hyperlink:return this.renderHyperlink(i);case ft.SmartTag:return this.renderSmartTag(i);case ft.Drawing:return this.renderDrawing(i);case ft.Image:return this.renderImage(i);case ft.Text:return this.renderText(i);case ft.Text:return this.renderText(i);case ft.DeletedText:return this.renderDeletedText(i);case ft.Tab:return this.renderTab(i);case ft.Symbol:return this.renderSymbol(i);case ft.Break:return this.renderBreak(i);case ft.Footer:return this.renderContainer(i,"footer");case ft.Header:return this.renderContainer(i,"header");case ft.Footnote:case ft.Endnote:return this.renderContainer(i,"li");case ft.FootnoteReference:return this.renderFootnoteReference(i);case ft.EndnoteReference:return this.renderEndnoteReference(i);case ft.NoBreakHyphen:return this.createElement("wbr");case ft.VmlPicture:return this.renderVmlPicture(i);case ft.VmlElement:return this.renderVmlElement(i);case ft.MmlMath:return this.renderContainerNS(i,ne.mathML,"math",{xmlns:ne.mathML});case ft.MmlMathParagraph:return this.renderContainer(i,"span");case ft.MmlFraction:return this.renderContainerNS(i,ne.mathML,"mfrac");case ft.MmlBase:return this.renderContainerNS(i,ne.mathML,i.parent.type==ft.MmlMatrixRow?"mtd":"mrow");case ft.MmlNumerator:case ft.MmlDenominator:case ft.MmlFunction:case ft.MmlLimit:case ft.MmlBox:return this.renderContainerNS(i,ne.mathML,"mrow");case ft.MmlGroupChar:return this.renderMmlGroupChar(i);case ft.MmlLimitLower:return this.renderContainerNS(i,ne.mathML,"munder");case ft.MmlMatrix:return this.renderContainerNS(i,ne.mathML,"mtable");case ft.MmlMatrixRow:return this.renderContainerNS(i,ne.mathML,"mtr");case ft.MmlRadical:return this.renderMmlRadical(i);case ft.MmlSuperscript:return this.renderContainerNS(i,ne.mathML,"msup");case ft.MmlSubscript:return this.renderContainerNS(i,ne.mathML,"msub");case ft.MmlDegree:case ft.MmlSuperArgument:case ft.MmlSubArgument:return this.renderContainerNS(i,ne.mathML,"mn");case ft.MmlFunctionName:return this.renderContainerNS(i,ne.mathML,"ms");case ft.MmlDelimiter:return this.renderMmlDelimiter(i);case ft.MmlRun:return this.renderMmlRun(i);case ft.MmlNary:return this.renderMmlNary(i);case ft.MmlPreSubSuper:return this.renderMmlPreSubSuper(i);case ft.MmlBar:return this.renderMmlBar(i);case ft.MmlEquationArray:return this.renderMllList(i);case ft.Inserted:return this.renderInserted(i);case ft.Deleted:return this.renderDeleted(i);case ft.CommentRangeStart:return this.renderCommentRangeStart(i);case ft.CommentRangeEnd:return this.renderCommentRangeEnd(i);case ft.CommentReference:return this.renderCommentReference(i);case ft.AltChunk:return this.renderAltChunk(i)}return null}renderElements(i,o){if(i==null)return null;var e=i.flatMap(n=>this.renderElement(n)).filter(n=>n!=null);return o&&Ns(o,e),e}renderContainer(i,o,e){return this.createElement(o,e,this.renderElements(i.children))}renderContainerNS(i,o,e,n){return this.createElementNS(o,e,n,this.renderElements(i.children))}renderParagraph(i){var o=this.renderContainer(i,"p");let e=this.findStyle(i.styleName);i.tabs??(i.tabs=e?.paragraphProps?.tabs),this.renderClass(i,o),this.renderStyleValues(i.cssStyle,o),this.renderCommonProperties(o.style,i);let n=i.numbering??e?.paragraphProps?.numbering;return n&&o.classList.add(this.numberingClass(n.id,n.level)),o}renderRunProperties(i,o){this.renderCommonProperties(i,o)}renderCommonProperties(i,o){o!=null&&(o.color&&(i.color=o.color),o.fontSize&&(i["font-size"]=o.fontSize))}renderHyperlink(i){var o=this.renderContainer(i,"a");this.renderStyleValues(i.cssStyle,o);let e="";return i.id&&(e=this.document.documentPart.rels.find(s=>s.id==i.id&&s.targetMode==="External")?.target??e),i.anchor&&(e+=`#${i.anchor}`),o.href=e,o}renderSmartTag(i){return this.renderContainer(i,"span")}renderCommentRangeStart(i){if(!this.options.renderComments)return null;let o=new Range;this.commentHighlight?.add(o);let e=this.createComment(`start of comment #${i.id}`);return this.later(()=>o.setStart(e,0)),this.commentMap[i.id]=o,e}renderCommentRangeEnd(i){if(!this.options.renderComments)return null;let o=this.commentMap[i.id],e=this.createComment(`end of comment #${i.id}`);return this.later(()=>o?.setEnd(e,0)),e}renderCommentReference(i){if(!this.options.renderComments)return null;var o=this.document.commentsPart?.commentMap[i.id];if(!o)return null;let e=new DocumentFragment,n=this.createElement("span",{className:`${this.className}-comment-ref`},["\u{1F4AC}"]),s=this.createElement("div",{className:`${this.className}-comment-popover`});return this.renderCommentContent(o,s),e.appendChild(this.createComment(`comment #${o.id} by ${o.author} on ${o.date}`)),e.appendChild(n),e.appendChild(s),e}renderAltChunk(i){if(!this.options.renderAltChunks)return null;var o=this.createElement("iframe");return this.tasks.push(this.document.loadAltChunk(i.id,this.currentPart).then(e=>{o.srcdoc=e})),o}renderCommentContent(i,o){o.appendChild(this.createElement("div",{className:`${this.className}-comment-author`},[i.author])),o.appendChild(this.createElement("div",{className:`${this.className}-comment-date`},[new Date(i.date).toLocaleString()])),this.renderElements(i.children,o)}renderDrawing(i){var o=this.renderContainer(i,"div");return o.style.display="inline-block",o.style.position="relative",o.style.textIndent="0px",this.renderStyleValues(i.cssStyle,o),o}renderImage(i){let o=this.createElement("img"),e=i.cssStyle?.transform;if(this.renderStyleValues(i.cssStyle,o),i.srcRect&&i.srcRect.some(l=>l!=0)){var[n,s,a,r]=i.srcRect;e=`scale(${1/(1-n-a)}, ${1/(1-s-r)})`,o.style["clip-path"]=`rect(${(100*s).toFixed(2)}% ${(100*(1-a)).toFixed(2)}% ${(100*(1-r)).toFixed(2)}% ${(100*n).toFixed(2)}%)`}return i.rotation&&(e=`rotate(${i.rotation}deg) ${e??""}`),o.style.transform=e?.trim(),this.document&&this.tasks.push(this.document.loadDocumentImage(i.src,this.currentPart).then(l=>{o.src=l})),o}renderText(i){return this.htmlDocument.createTextNode(i.text)}renderDeletedText(i){return this.options.renderChanges?this.renderText(i):null}renderBreak(i){return i.break=="textWrapping"?this.createElement("br"):null}renderInserted(i){return this.options.renderChanges?this.renderContainer(i,"ins"):this.renderElements(i.children)}renderDeleted(i){return this.options.renderChanges?this.renderContainer(i,"del"):null}renderSymbol(i){var o=this.createElement("span");return o.style.fontFamily=i.font,o.innerHTML=`&#x${i.char};`,o}renderFootnoteReference(i){var o=this.createElement("sup");return this.currentFootnoteIds.push(i.id),o.textContent=`${this.currentFootnoteIds.length}`,o}renderEndnoteReference(i){var o=this.createElement("sup");return this.currentEndnoteIds.push(i.id),o.textContent=`${this.currentEndnoteIds.length}`,o}renderTab(i){var o=this.createElement("span");if(o.innerHTML=" ",this.options.experimental){o.className=this.tabStopClass();var e=Uf(i,ft.Paragraph)?.tabs;this.currentTabs.push({stops:e,span:o})}return o}renderBookmarkStart(i){return this.createElement("span",{id:i.name})}renderRun(i){if(i.fieldRun)return null;let o=this.createElement("span");if(i.id&&(o.id=i.id),this.renderClass(i,o),this.renderStyleValues(i.cssStyle,o),i.verticalAlign){let e=this.createElement(i.verticalAlign);this.renderElements(i.children,e),o.appendChild(e)}else this.renderElements(i.children,o);return o}renderTable(i){let o=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},i.columns&&o.appendChild(this.renderTableColumns(i.columns)),this.renderClass(i,o),this.renderElements(i.children,o),this.renderStyleValues(i.cssStyle,o),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),o}renderTableColumns(i){let o=this.createElement("colgroup");for(let e of i){let n=this.createElement("col");e.width&&(n.style.width=e.width),o.appendChild(n)}return o}renderTableRow(i){let o=this.createElement("tr");return this.currentCellPosition.col=0,i.gridBefore&&o.appendChild(this.renderTableCellPlaceholder(i.gridBefore)),this.renderClass(i,o),this.renderElements(i.children,o),this.renderStyleValues(i.cssStyle,o),i.gridAfter&&o.appendChild(this.renderTableCellPlaceholder(i.gridAfter)),this.currentCellPosition.row++,o}renderTableCellPlaceholder(i){let o=this.createElement("td",{colSpan:i});return o.style.border="none",o}renderTableCell(i){let o=this.renderContainer(i,"td"),e=this.currentCellPosition.col;return i.verticalMerge?i.verticalMerge=="restart"?(this.currentVerticalMerge[e]=o,o.rowSpan=1):this.currentVerticalMerge[e]&&(this.currentVerticalMerge[e].rowSpan+=1,o.style.display="none"):this.currentVerticalMerge[e]=null,this.renderClass(i,o),this.renderStyleValues(i.cssStyle,o),i.span&&(o.colSpan=i.span),this.currentCellPosition.col+=o.colSpan,o}renderVmlPicture(i){return this.renderContainer(i,"div")}renderVmlElement(i){var o=this.createSvgElement("svg");o.setAttribute("style",i.cssStyleText);let e=this.renderVmlChildElement(i);return i.imageHref?.id&&this.tasks.push(this.document?.loadDocumentImage(i.imageHref.id,this.currentPart).then(n=>e.setAttribute("href",n))),o.appendChild(e),requestAnimationFrame(()=>{let n=o.firstElementChild.getBBox();o.setAttribute("width",`${Math.ceil(n.x+n.width)}`),o.setAttribute("height",`${Math.ceil(n.y+n.height)}`)}),o}renderVmlChildElement(i){let o=this.createSvgElement(i.tagName);Object.entries(i.attrs).forEach(([e,n])=>o.setAttribute(e,n));for(let e of i.children)e.type==ft.VmlElement?o.appendChild(this.renderVmlChildElement(e)):o.appendChild(...$n(this.renderElement(e)));return o}renderMmlRadical(i){let o=i.children.find(n=>n.type==ft.MmlBase);if(i.props?.hideDegree)return this.createElementNS(ne.mathML,"msqrt",null,this.renderElements([o]));let e=i.children.find(n=>n.type==ft.MmlDegree);return this.createElementNS(ne.mathML,"mroot",null,this.renderElements([o,e]))}renderMmlDelimiter(i){let o=[];return o.push(this.createElementNS(ne.mathML,"mo",null,[i.props.beginChar??"("])),o.push(...this.renderElements(i.children)),o.push(this.createElementNS(ne.mathML,"mo",null,[i.props.endChar??")"])),this.createElementNS(ne.mathML,"mrow",null,o)}renderMmlNary(i){let o=[],e=Dr(i.children,h=>h.type),n=e[ft.MmlSuperArgument],s=e[ft.MmlSubArgument],a=n?this.createElementNS(ne.mathML,"mo",null,$n(this.renderElement(n))):null,r=s?this.createElementNS(ne.mathML,"mo",null,$n(this.renderElement(s))):null,l=this.createElementNS(ne.mathML,"mo",null,[i.props?.char??"\u222B"]);return a||r?o.push(this.createElementNS(ne.mathML,"munderover",null,[l,r,a])):a?o.push(this.createElementNS(ne.mathML,"mover",null,[l,a])):r?o.push(this.createElementNS(ne.mathML,"munder",null,[l,r])):o.push(l),o.push(...this.renderElements(e[ft.MmlBase].children)),this.createElementNS(ne.mathML,"mrow",null,o)}renderMmlPreSubSuper(i){let o=[],e=Dr(i.children,h=>h.type),n=e[ft.MmlSuperArgument],s=e[ft.MmlSubArgument],a=n?this.createElementNS(ne.mathML,"mo",null,$n(this.renderElement(n))):null,r=s?this.createElementNS(ne.mathML,"mo",null,$n(this.renderElement(s))):null,l=this.createElementNS(ne.mathML,"mo",null);return o.push(this.createElementNS(ne.mathML,"msubsup",null,[l,r,a])),o.push(...this.renderElements(e[ft.MmlBase].children)),this.createElementNS(ne.mathML,"mrow",null,o)}renderMmlGroupChar(i){let o=i.props.verticalJustification==="bot"?"mover":"munder",e=this.renderContainerNS(i,ne.mathML,o);return i.props.char&&e.appendChild(this.createElementNS(ne.mathML,"mo",null,[i.props.char])),e}renderMmlBar(i){let o=this.renderContainerNS(i,ne.mathML,"mrow");switch(i.props.position){case"top":o.style.textDecoration="overline";break;case"bottom":o.style.textDecoration="underline";break}return o}renderMmlRun(i){let o=this.createElementNS(ne.mathML,"ms",null,this.renderElements(i.children));return this.renderClass(i,o),this.renderStyleValues(i.cssStyle,o),o}renderMllList(i){let o=this.createElementNS(ne.mathML,"mtable");this.renderClass(i,o),this.renderStyleValues(i.cssStyle,o);for(let e of this.renderElements(i.children))o.appendChild(this.createElementNS(ne.mathML,"mtr",null,[this.createElementNS(ne.mathML,"mtd",null,[e])]));return o}renderStyleValues(i,o){for(let e in i)e.startsWith("$")?o.setAttribute(e.slice(1),i[e]):o.style[e]=i[e]}renderClass(i,o){i.className&&(o.className=i.className),i.styleName&&o.classList.add(this.processStyleName(i.styleName))}findStyle(i){return i&&this.styleMap?.[i]}numberingClass(i,o){return`${this.className}-num-${i}-${o}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(i,o,e=null){let n=`${i} {\r +`;for(let s in o)s.startsWith("$")||(n+=` ${s}: ${o[s]};\r +`);return e&&(n+=e),n+`}\r +`}numberingCounter(i,o){return`${this.className}-num-${i}-${o}`}levelTextToContent(i,o,e,n){let s={tab:"\\9",space:"\\a0"};var a=i.replace(/%\d*/g,r=>{let l=parseInt(r.substring(1),10)-1;return`"counter(${this.numberingCounter(e,l)}, ${n})"`});return`"${a}${s[o]??""}"`}numFormatToCssValue(i){var o={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"};return o[i]??i}refreshTabStops(){this.options.experimental&&setTimeout(()=>{let i=zf();for(let o of this.currentTabs)$f(o.span,o.stops,this.defaultTabSize,i)},500)}createElementNS(i,o,e,n){var s=i?this.htmlDocument.createElementNS(i,o):this.htmlDocument.createElement(o);return Object.assign(s,e),n&&Ns(s,n),s}createElement(i,o,e){return this.createElementNS(void 0,i,o,e)}createSvgElement(i,o,e){return this.createElementNS(ne.svg,i,o,e)}createStyleElement(i){return this.createElement("style",{innerHTML:i})}createComment(i){return this.htmlDocument.createComment(i)}later(i){this.postRenderTasks.push(i)}};oa={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,hideWrapperOnPrint:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1,renderAltChunks:!0}});var zl={};Bi(zl,{pptxToHtml:()=>bd});function qf(t){typeof console<"u"&&console.warn&&console.warn(`[pptx-to-html] ${t}`)}function Vf(t){let i="";for(let o of Array.from(t.childNodes)){if(o.nodeType!==1)continue;let e=o.localName;if(e==="r"){let n=o.getElementsByTagNameNS("*","t")[0]?.textContent??"";i+=n}else if(e==="br")i+=` +`;else if(e==="fld"){let n=o.getElementsByTagNameNS("*","r");for(let s of Array.from(n)){let a=s.getElementsByTagNameNS("*","t")[0]?.textContent??"";i+=a}}else e==="tab"&&(i+=" ")}return i}function Rl(t){let i=t.toLowerCase();return i.includes("alphauc")?"upper-alpha":i.includes("alphalc")?"lower-alpha":i.includes("romanu")?"upper-roman":i.includes("romanl")?"lower-roman":"decimal"}function Ol(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Fl(t){return String(t??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function gr(t,i="transparent"){let o=String(t??"").trim();return/^#[0-9a-f]{3,8}$/i.test(o)||/^(transparent|currentcolor)$/i.test(o)?o:i}function jl(t){let i=String(t??"").trim();return/^[\p{L}\p{N} ,._-]{1,100}$/u.test(i)?i:"Arial"}function Ll(t){switch(t.split(".").pop()?.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";case"gif":return"image/gif";case"svg":return"image/svg+xml";case"webp":return"image/webp";case"bmp":return"image/bmp";case"tif":case"tiff":return"image/tiff";default:return"image/png"}}function Yf(t){let i=(u,p=0)=>Number.isFinite(u)?u:p,o=i(t.position?.x,0)/9525,e=i(t.position?.y,0)/9525,n=i(t.size?.width,0)/9525,s=i(t.size?.height,0)/9525,a=t.padding||{left:0,top:0,right:0,bottom:0},r=t.align?.horizontal||"left",l=t.align?.vertical==="middle"?"center":t.align?.vertical==="bottom"?"flex-end":"flex-start",h=t.html?t.html:Kf(t.content),c=Number.isFinite(t.rotationDeg)&&t.rotationDeg?`transform:rotate(${t.rotationDeg}deg); transform-origin:center;`:"";return`
${h}
`}function Kf(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function Qf(t){let i=(c,u=0)=>Number.isFinite(c)?c:u,o=i(t.position?.x,0)/9525,e=i(t.position?.y,0)/9525,n=i(t.size?.width,0)/9525,s=i(t.size?.height,0)/9525,a=Number.isFinite(t.zIndex)?t.zIndex:0,r=Number.isFinite(t.rotationDeg)&&t.rotationDeg?`transform:rotate(${t.rotationDeg}deg); transform-origin:center;`:"",l=Fl(t.src),h=t.crop;if(h&&h.left+h.right<1e5&&h.top+h.bottom<1e5){let c=1e5-h.left-h.right,u=1e5-h.top-h.bottom,p=n*1e5/c,d=s*1e5/u;return`
+ +
`}return``}function Jf(t){switch(t){case"rightArrow":case"arrow":return"POLYGON 0,25 70,25 70,0 100,50 70,100 70,75 0,75";case"leftArrow":return"POLYGON 100,25 30,25 30,0 0,50 30,100 30,75 100,75";case"leftRightArrow":return"POLYGON 0,50 30,0 30,25 70,25 70,0 100,50 70,100 70,75 30,75 30,100";case"triangle":return"POLYGON 50,0 100,100 0,100";case"star5":return"POLYGON 50,0 61,35 98,35 68,57 79,91 50,70 21,91 32,57 2,35 39,35";case"cloud":return"PATH M20,60 C10,60 10,40 25,40 C30,20 50,20 55,35 C70,30 80,40 80,50 C90,50 90,70 75,70 H25 Z";case"straightConnector1":return"LINE_ARROW 0,50 100,50";case"bentConnector2":return"POLYLINE 0,50 50,50 50,100";case"bentConnector3":return"POLYLINE_ARROW 0,50 40,50 40,70 100,70";case"bentConnector4":return"POLYLINE 0,30 30,30 30,70 70,70 70,100";case"bentConnector5":return"POLYLINE 0,20 30,20 30,50 60,50 60,80 100,80";case"curvedConnector2":return"PATH M0,50 Q50,0 100,50";case"curvedConnector3":return"PATH M0,50 Q25,0 50,50 Q75,100 100,50";case"curvedConnector4":return"PATH M0,40 Q20,0 40,40 Q60,80 80,40 Q90,20 100,40";case"curvedConnector5":return"PATH M0,50 Q20,20 40,50 Q60,80 80,50 Q90,40 100,50";case"bentArrow":return"POLYGON 0,0 70,0 70,30 100,30 50,100 50,30 0,30";case"notchedRightArrow":return"POLYGON 0,20 60,20 60,0 100,50 60,100 60,80 0,80";case"curvedRightArrow":return"PATH M0,50 Q50,0 100,50 Q50,100 0,50 Z";default:return"POLYGON 0,0 100,0 100,100 0,100"}}function td(t,i={}){let o=(d,f=0)=>Number.isFinite(d)?d:f,e=o(t.position?.x,0)/9525,n=o(t.position?.y,0)/9525,s=o(t.size?.width,0)/9525,a=o(t.size?.height,0)/9525,r=t.rotationDeg&&!isNaN(t.rotationDeg)?t.rotationDeg:0,l=r?`transform: rotate(${r}deg); transform-origin: center;`:"",h=gr(t.fillColor),c=gr(t.borderColor),u=t.strokeWidth&&Number.isFinite(t.strokeWidth)?t.strokeWidth:1,p=` + position: absolute; + left: ${e}px; + top: ${n}px; + width: ${s}px; + height: ${a}px; + z-index: ${Number.isFinite(t.zIndex)?t.zIndex:0}; + ${l} + `;return t.shapeType==="rect"?`
`:t.shapeType==="ellipse"?`
`:t.shapeType==="roundRect"?`
`:ed(e,n,s,a,h,c,Jf(t.shapeType),t.strokeWidth&&Number.isFinite(t.strokeWidth)?t.strokeWidth:void 0,r,t.headEnd,t.tailEnd,i.scaleStrokes===!0,Number.isFinite(t.zIndex)?t.zIndex:0)}function ed(t,i,o,e,n,s,a,r,l,h,c,u,p=0){let d=nd(s,n),[f,...g]=a.trim().split(/\s+/),m=f.toUpperCase().replace("_ARROW",""),v=f.endsWith("_ARROW"),x=g.join(" "),A=e,D=o,F=r&&r>0?r:2,O=l?`transform: rotate(${l}deg); transform-origin: center;`:"",I=` + position: absolute; + left: ${t}px; + top: ${i}px; + width: ${D}px; + height: ${A}px; + z-index: ${p}; + ${O} + `;switch(m){case"PATH":{let j=Il(h,c,d||"#000"),U=j.startId?`marker-start="url(#${j.startId})"`:"",R=j.endId?`marker-end="url(#${j.endId})"`:"";return` + ${j.defs} + + `}case"POLYLINE":case"LINE":{let j=x.split(/[\s,]+/).map(w=>parseFloat(w)).filter(w=>!isNaN(w));if(j.length<4||j.length%2!==0)return typeof console<"u"&&console.warn&&console.warn(`[pptx-to-html] Invalid POLYLINE/LINE shape data: "${x}"`),"";let U=[];for(let w=0;w0?o:Math.max(F*2,2),k=e>0?e:Math.max(F*2,2),S=Il(h,c??(v?{type:"triangle",w:"med",len:"med"}:void 0),d||"#000"),P=S.startId?`marker-start="url(#${S.startId})"`:"",b=S.endId?`marker-end="url(#${S.endId})"`:"",y=[];for(let w=0;w + ${S.defs} + + `}default:return` + + `}}function Il(t,i,o){let e=[],n,s;return t&&t.type&&t.type!=="none"&&(n=`mstart-${Math.random().toString(36).slice(2,8)}`,e.push(Pl(n,t,o))),i&&i.type&&i.type!=="none"&&(s=`mend-${Math.random().toString(36).slice(2,8)}`,e.push(Pl(s,i,o))),{defs:e.length?`${e.join(` +`)}`:"",startId:n,endId:s}}function Pl(t,i,o){let e=4*rd(i.len),n=e,s=e/2;switch((i.type||"triangle").toLowerCase()){case"diamond":return` + + `;case"oval":return` + + `;case"stealth":return` + + `;default:return` + + `}}function rd(t){switch((t||"med").toLowerCase()){case"sm":case"small":return 1.5;case"lg":case"large":return 2.5;default:return 2}}function nd(t,i){if(t&&t!=="transparent")return t;if(i&&i!=="transparent")return i}function id(t){let i=(d,f=0)=>Number.isFinite(d)?d:f,o=i(t.position?.x,0)/9525,e=i(t.position?.y,0)/9525,n=i(t.size?.width,0)/9525,s=i(t.size?.height,0)/9525,a=Number.isFinite(t.rotationDeg)&&t.rotationDeg?`transform:rotate(${t.rotationDeg}deg); transform-origin:center;`:"",r=t.columns.map(d=>i(d,0)/9525),l=r.reduce((d,f)=>d+f,0)||1,h=r.map(d=>``).join(""),c=t.tableFillColor||t.style?.fills?.wholeTbl,u=0,p=t.rows.map(d=>{let f=0,g=d.cells.map(v=>{let x=v.padding||{left:6,top:2,right:6,bottom:2},A=v.align?.horizontal||"left",D=v.align?.vertical||"top",F=sd(t,v,u,f),{bg:O,fontColor:I,emphasize:j}=od(t,u,f),U=j,R=` + padding:${x.top}px ${x.right}px ${x.bottom}px ${x.left}px; + text-align:${A}; + vertical-align:${D==="middle"?"middle":D}; + ${v.fillColor?`background-color:${gr(v.fillColor)};`:""} + ${!v.fillColor&&O?`background-color:${gr(O)};`:""} + ${v.font?.color?`color:${gr(v.font.color,"#000")};`:I?`color:${gr(I,"#000")};`:""} + ${v.font?.name?`font-family:${jl(v.font.name)};`:""} + ${v.font?.size?`font-size:${v.font.size}pt;`:""} + ${F} + ${U?"font-weight:600;":""} + overflow:hidden; word-break: break-word; white-space: pre-wrap;`,k=`${ad(v.text).replace(/\n/g,"
")}`;return f+=v.colSpan||1,k}).join(""),m=`${g}`;return u+=1,m}).join("");return`
+ + ${h} + ${p} +
+
`}function sd(t,i,o,e){let n=[],s=["top","right","bottom","left"],a=(c,u)=>{if(!u)return;let p=u.width??1,d=gr(u.color,"#000"),f=u.style==="dashed"||u.style==="dotted"?u.style:"solid";n.push(`border-${c}: ${Math.max(1,Math.round(p))}px ${f} ${d};`)};for(let c of s){let u=i.borders?.[c];u&&a(c,u)}let r=t.tableBorders||{},l=o===t.rows.length-1,h=e===t.columns.length-1;return!i.borders?.top&&o===0&&a("top",r.top),!i.borders?.bottom&&l&&a("bottom",r.bottom),!i.borders?.left&&e===0&&a("left",r.left),!i.borders?.right&&h&&a("right",r.right),!i.borders?.top&&o>0&&a("top",r.insideH),!i.borders?.left&&e>0&&a("left",r.insideV),n.join(" ")}function ad(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function od(t,i,o){let e=i===t.rows.length-1,n=o===t.columns.length-1,s=t.style||{},a=s.fills||{},r=s.fontColors||{},l=!1;if(t.tableStyle?.firstRow&&i===0)return l=!0,{bg:a.firstRow||a.wholeTbl||"#f0f0f0",fontColor:r.firstRow||r.wholeTbl,emphasize:l};if(t.tableStyle?.lastRow&&e)return{bg:a.lastRow||a.wholeTbl||"#f0f0f0",fontColor:r.lastRow||r.wholeTbl,emphasize:l};if(t.tableStyle?.firstCol&&o===0)return l=!0,{bg:a.firstCol||a.wholeTbl||"#f0f0f0",fontColor:r.firstCol||r.wholeTbl,emphasize:l};if(t.tableStyle?.lastCol&&n)return{bg:a.lastCol||a.wholeTbl||"#f0f0f0",fontColor:r.lastCol||r.wholeTbl,emphasize:l};if(t.tableStyle?.bandRow){let h=(t.tableStyle?.firstRow?i-1:i)%2===0?"band1H":"band2H";return{bg:a[h]||a.wholeTbl||(i%2===1?"#fafafa":void 0),fontColor:r[h]||r.wholeTbl,emphasize:l}}if(t.tableStyle?.bandCol){let h=o%2===0?"band1V":"band2V";return{bg:a[h]||a.wholeTbl||(o%2===1?"#fafafa":void 0),fontColor:r[h]||r.wholeTbl,emphasize:l}}return{bg:a.wholeTbl,fontColor:r.wholeTbl,emphasize:l}}function ld(t){let i=(c,u=0)=>Number.isFinite(c)?c:u,o=i(t.position?.x,0)/9525,e=i(t.position?.y,0)/9525,n=Math.max(1,i(t.size?.width,0)/9525),s=Math.max(1,i(t.size?.height,0)/9525),a=24,r=t.palette&&t.palette.length>0?t.palette:["#4e79a7","#f28e2b","#e15759","#76b7b2","#59a14f","#edc949"],l="";t.chartType==="column"||t.chartType==="bar"?l=ud(t,n,s,a,r):t.chartType==="line"?l=cd(t,n,s,a,r):t.chartType==="area"?l=hd(t,n,s,a,r):t.chartType==="pie"?l=fd(t,n,s,r):t.chartType==="scatter"&&(l=dd(t,n,s,a,r));let h=Number.isFinite(t.zIndex)?t.zIndex:0;return`${t.title?`
${bn(t.title)}
`:""}
+ + ${l} + +
`}function ud(t,i,o,e,n){let s=Math.max(1,t.categories.length,...t.series.map(g=>g.values?.length||0)),a=i-e*2,r=o-e*2,l=t.chartType==="bar",h=t.stackedMode&&t.stackedMode!=="none",c=t.stackedMode==="percent",u=ha(t,s,!!h,c),p=Math.max(1e-9,u.max-u.min),d=g=>(g-u.min)/p,f=[];if(l?(f.push(``),f.push(``),Hn(u.min,u.max,4).forEach(g=>{let m=e+d(g)*a,v=o-e;f.push(``),f.push(`${ur(g,c?"0%":t.valueFormat)}`)})):(f.push(``),f.push(``),Hn(u.min,u.max,4).forEach(g=>{let m=o-e-d(g)*r;f.push(``),f.push(`${ur(g,c?"0%":t.valueFormat)}`),f.push(``)})),l){let g=r/s,m=Math.max(2,g*.8/(h?1:t.series.length));t.series.forEach((x,A)=>{let D=x.color||n[A%n.length];(x.values||[]).forEach((F,O)=>{let I=e+O*g+(g-(h?m:t.series.length*m))/2;if(h){let j=t.series.reduce((w,E)=>w+((E.values||[])[O]||0),0)||1,U=Ri(t,A,O,F),R=c?U/j:U,k=R+(c?F/j:F),S=d(R)*a,P=d(k)*a,b=e+Math.min(S,P),y=Math.abs(P-S),_=I;if(f.push(``),t.showDataLabels){let w=x.valueFormat||t.valueFormat;f.push(`${ur(c?F/j:F,c?"0%":w)}`)}}else{let j=d(0)*a,U=d(F)*a,R=Math.abs(U-j),k=I+A*m;if(f.push(``),t.showDataLabels){let S=x.valueFormat||t.valueFormat;f.push(`${ur(F,S)}`)}}})});let v=Math.max(10,Math.min(12,r/(s*2)));t.categories.forEach((x,A)=>{let D=e+A*g+g/2+4;f.push(`${bn(String(x))}`)})}else{let g=a/s,m=Math.max(2,g*.8/(h?1:t.series.length));t.series.forEach((x,A)=>{let D=x.color||n[A%n.length];(x.values||[]).forEach((F,O)=>{let I=e+O*g+(g-(h?m:t.series.length*m))/2;if(h){let j=t.series.reduce((y,_)=>y+((_.values||[])[O]||0),0)||1,U=Ri(t,A,O,F),R=d(c?U/j:U)*r,k=d((c?U/j:U)+(c?F/j:F))*r,S=Math.abs(k-R),P=I,b=o-e-Math.max(R,k);if(f.push(``),t.showDataLabels){let y=x.valueFormat||t.valueFormat;f.push(`${ur(c?F/j:F,c?"0%":y)}`)}}else{let j=d(0)*r,U=d(F)*r,R=Math.abs(U-j),k=I+A*m,S=o-e-Math.max(j,U);if(f.push(``),t.showDataLabels){let P=x.valueFormat||t.valueFormat;f.push(`${ur(F,P)}`)}}})});let v=Math.max(10,Math.min(12,a/(s*4)));t.categories.forEach((x,A)=>{let D=e+A*g+g/2,F=o-e+14;f.push(`${bn(String(x))}`)})}return t.showLegend&&f.push(md(t,i,e,n)),f.join(` +`)}function cd(t,i,o,e,n){let s=Math.max(1,t.categories.length,...t.series.map(m=>m.values?.length||0)),a=i-e*2,r=o-e*2,l=t.stackedMode&&t.stackedMode!=="none",h=t.stackedMode==="percent",c=ha(t,s,!!l,h),u=Math.max(1e-9,c.max-c.min),p=m=>(m-c.min)/u,d=a/Math.max(1,s-1),f=[];f.push(``),f.push(``),Hn(c.min,c.max,4).forEach(m=>{let v=o-e-p(m)*r;f.push(``),f.push(`${ur(m,t.valueFormat)}`),f.push(``)});let g=h?new Array(s).fill(0).map((m,v)=>t.series.reduce((x,A)=>x+((A.values||[])[v]||0),0)):void 0;if(t.series.forEach((m,v)=>{let x=m.color||n[v%n.length],A="";(m.values||[]).forEach((D,F)=>{let O=e+F*d,I=D;l&&(I=Ri(t,v,F,D)+D,h&&g&&(I=g[F]?I/g[F]:0));let j=o-e-p(I)*r;A+=F===0?`M ${O} ${j}`:` L ${O} ${j}`}),f.push(``),t.showDataLabels&&(m.values||[]).forEach((D,F)=>{let O=e+F*d,I=l?Ri(t,v,F,D):0,j=h&&g?D/(g[F]||1):D,U=l?I+D:D,R=o-e-p(h&&g?g[F]?U/g[F]:0:U)*r;f.push(``);let k=m.valueFormat||t.valueFormat;f.push(`${ur(j,h?"0%":k)}`)})}),t.categories.length>0){let m=Math.max(10,Math.min(12,a/(s*4)));t.categories.forEach((v,x)=>{let A=e+x*d;f.push(`${bn(String(v))}`)})}return f.join(` +`)}function hd(t,i,o,e,n){let s=Math.max(1,t.categories.length,...t.series.map(x=>x.values?.length||0)),a=i-e*2,r=o-e*2,l=t.stackedMode&&t.stackedMode!=="none",h=t.stackedMode==="percent",c=ha(t,s,!!l,h),u=Math.max(1e-9,c.max-c.min),p=x=>(x-c.min)/u,d=a/Math.max(1,s-1),f=[];f.push(``),f.push(``);let g=h?new Array(s).fill(0).map((x,A)=>t.series.reduce((D,F)=>D+((F.values||[])[A]||0),0)):void 0,m=new Array(s).fill(0),v=new Array(s).fill(0);return t.series.forEach((x,A)=>{let D=x.color||n[A%n.length],F=[],O=[];(x.values||[]).forEach((j,U)=>{let R=l?j>=0?m[U]:v[U]:0,k=l?R+(h&&g?g[U]?j/g[U]:0:j):j,S=o-e-p(k)*r,P=o-e-p(R)*r;F.push(S),O.push(P),l&&(j>=0?m[U]=h&&g?k:R+j:v[U]=h&&g?k:R+j)});let I="";for(let j=0;j=0;j--){let U=e+j*d;I+=` L ${U} ${O[j]}`}I+=" Z",f.push(``)}),f.join(` +`)}function Ri(t,i,o,e){return t.series.slice(0,i).reduce((n,s)=>{let a=(s.values||[])[o]||0;return n+(e>=0?Math.max(0,a):Math.min(0,a))},0)}function ha(t,i,o,e){if(e)return{min:0,max:1};let n=0,s=0;if(o)for(let a=0;a=0?r+=c:l+=c}n=Math.min(n,l),s=Math.max(s,r)}else for(let a of t.series)for(let r of a.values||[])n=Math.min(n,r),s=Math.max(s,r);return n===s?{min:n-1,max:s+1}:{min:n,max:s}}function fd(t,i,o,e){let n=t.series[0],s=n&&n.values?n.values:[],a=s.reduce((p,d)=>p+Math.max(0,d),0)||1,r=i/2,l=o/2,h=Math.min(i,o)*.35,c=0,u=[];return s.forEach((p,d)=>{let f=Math.max(0,p)/a,g=c+f*2*Math.PI,m=r+h*Math.cos(c),v=l+h*Math.sin(c),x=r+h*Math.cos(g),A=l+h*Math.sin(g),D=g-c>Math.PI?1:0,F=n&&n.ptColors&&n.ptColors[d]||n&&n.color||e[d%e.length],O=f>=1?``:``;if(u.push(O),t.showDataLabels&&f>0){let I=(c+g)/2,j=r+(h+12)*Math.cos(I),U=l+(h+12)*Math.sin(I),R=String(t.categories[d]||""),k=R?`${bn(R)} ${(f*100).toFixed(0)}%`:`${(f*100).toFixed(0)}%`;u.push(`${k}`)}c=g}),u.join(` +`)}function dd(t,i,o,e,n){let s=i-e*2,a=o-e*2,r=[];for(let d of t.series){let f=d.points||[];for(let g of f)r.push(g)}let l=Math.min(...r.map(d=>d.x)),h=Math.max(...r.map(d=>d.x)),c=Math.min(...r.map(d=>d.y)),u=Math.max(...r.map(d=>d.y));(!Number.isFinite(l)||!Number.isFinite(h))&&(l=0,h=1),(!Number.isFinite(c)||!Number.isFinite(u))&&(c=0,u=1),l===h&&(l-=.5,h+=.5),c===u&&(c-=.5,u+=.5);let p=[];return p.push(``),p.push(``),Hn(l,h,4).forEach(d=>{let f=e+(d-l)/Math.max(1e-9,h-l)*s,g=o-e;p.push(``),p.push(`${ur(d,t.valueFormat)}`)}),Hn(c,u,4).forEach(d=>{let f=o-e-(d-c)/Math.max(1e-9,u-c)*a;p.push(``),p.push(`${ur(d,t.valueFormat)}`),p.push(``)}),t.series.forEach((d,f)=>{let g=d.color||n[f%n.length];(d.points||[]).forEach(m=>{let v=e+(m.x-l)/Math.max(1e-9,h-l)*s,x=o-e-(m.y-c)/Math.max(1e-9,u-c)*a;if(p.push(``),t.showDataLabels){let A=d.valueFormat||t.valueFormat;p.push(`${ur(m.y,A)}`)}})}),p.join(` +`)}function bn(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function Hn(t,i,o){let e=i-t;if(e<=0)return[t,i];let n=pd(e/o,!0),s=[],a=Math.ceil(t/n)*n;for(;a<=i+1e-9;)s.push(Number(a.toFixed(10))),a+=n;return s}function pd(t,i){let o=Math.floor(Math.log10(t)),e=t/Math.pow(10,o),n;return i?e<1.5?n=1:e<3?n=2:e<7?n=5:n=10:e<=1?n=1:e<=2?n=2:e<=5?n=5:n=10,n*Math.pow(10,o)}function ur(t,i){if(!i)return Math.abs(t)>=1e3?`${Math.round(t)}`:Math.abs(t)>=10?t.toFixed(0):Math.abs(t)>=1?t.toFixed(1):t.toFixed(2);let o=/%/.test(i),e=0,n=i.match(/\.([0#]+)/);n&&(e=n[1].length);let s=i.match(/([$€£¥])/),a=s?s[1]:"",r=/#,##0/.test(i),l=t;o&&(l=l*100);let h=l.toFixed(e);if(r){let[c,u]=h.split("."),p=c.replace(/\B(?=(\d{3})+(?!\d))/g,",");h=u!==void 0?`${p}.${u}`:p}return a&&(h=a+h),o&&(h=h+"%"),h}function md(t,i,o,e){let n=o,s=o-12,a=[];return t.series.forEach((r,l)=>{let h=r.color||e[l%e.length],c=r.name||`Series ${l+1}`;a.push(``),a.push(`${bn(c)}`),n+=14+c.length*6+10}),a.join(` +`)}async function bd(t,i){i?.domParserFactory&&Bt.setDomParser(i.domParserFactory);let o=new Zf,e=await o.load(t),n=await o.getBaseSizePx(),s={...i||{},baseWidth:n.width,baseHeight:n.height};return e.map(a=>gd.render(a,s))}var Bl,Bt,la,ua,ca,Wf,Xf,Gf,Zf,gd,$l=Pr(()=>{Bl=qr(Qn(),1);Bt=class Pe{static domParserFactory=null;static parseXml(i){if(Pe.domParserFactory)return Pe.domParserFactory().parseFromString(i,"application/xml");let o=globalThis?.DOMParser;if(typeof o=="function")return new o().parseFromString(i,"application/xml");throw qf("No DOMParser available. Provide one through XmlHelper.setDomParser() or pptxToHtml({ domParserFactory })."),new Error("DOMParser not available in this environment")}static getDirectChildrenByTagName(i,o){return Array.from(i.children).filter(e=>e.localName===o)}static getAttrAsNumber(i,o){let e=i.getAttribute(o);if(e==null||e==="")return 0;let n=Number(e);return Number.isFinite(n)?n:0}static getZIndex(i,o){let e=i;for(;e?.parentElement&&e.parentElement!==o;)e=e.parentElement;return!e||e.parentElement!==o?0:Array.from(o.children).indexOf(e)}static getAbsoluteTransform(i,o){let e=u=>{let p=u.getElementsByTagNameNS("*","xfrm")[0]??null,d=p?.getElementsByTagNameNS("*","off")[0]??null,f=p?.getElementsByTagNameNS("*","ext")[0]??null,g=p?.getElementsByTagNameNS("*","chOff")[0]??null,m=p?.getElementsByTagNameNS("*","chExt")[0]??null;return{xfrm:p,x:d?Pe.getAttrAsNumber(d,"x"):0,y:d?Pe.getAttrAsNumber(d,"y"):0,cx:f?Pe.getAttrAsNumber(f,"cx"):1e6,cy:f?Pe.getAttrAsNumber(f,"cy"):5e5,chX:g?Pe.getAttrAsNumber(g,"x"):0,chY:g?Pe.getAttrAsNumber(g,"y"):0,chCx:m?Pe.getAttrAsNumber(m,"cx"):0,chCy:m?Pe.getAttrAsNumber(m,"cy"):0,rotationDeg:p?.getAttribute("rot")?Number(p.getAttribute("rot"))/6e4:0}},n=e(i),{x:s,y:a,cx:r,cy:l}=n,h=n.rotationDeg,c=i.parentElement;for(;c&&c!==o;){if(c.localName==="grpSp"){let u=e(c),p=u.chCx>0?u.cx/u.chCx:1,d=u.chCy>0?u.cy/u.chCy:1;s=u.x+(s-u.chX)*p,a=u.y+(a-u.chY)*d,r*=p,l*=d,h+=u.rotationDeg}c=c.parentElement}return{x:s,y:a,cx:r,cy:l,rotationDeg:h||void 0}}static getColorFromElement(i,o){if(!i)return;let e=i.getElementsByTagNameNS("*","srgbClr")[0];if(e){let a=e.getAttribute("val");return a?`#${a}`:void 0}let n=i.getElementsByTagNameNS("*","schemeClr")[0];if(n){let a=n.getAttribute("val");return a&&o?o[{bg1:"lt1",bg2:"lt2",tx1:"dk1",tx2:"dk2"}[a]||a]:void 0}let s=i.getElementsByTagNameNS("*","sysClr")[0];if(s){let a=s.getAttribute("lastClr");return a?`#${a}`:void 0}}static extractThemeColors(i){if(!i)return{};let o="http://schemas.openxmlformats.org/drawingml/2006/main",e={},n=i.getElementsByTagNameNS(o,"clrScheme")[0];if(!n)return{};for(let s of Array.from(n.children)){let a=s.localName,r=s.getElementsByTagNameNS(o,"srgbClr")[0],l=s.getElementsByTagNameNS(o,"sysClr")[0],h=r?.getAttribute("val")??l?.getAttribute("lastClr");h&&(e[a]=`#${h}`)}return e}static extractThemeTableStyles(i){let o={};if(!i)return o;let e=Pe.extractThemeColors(i),n=i.getElementsByTagNameNS("*","tblStyleLst")[0]||null;if(!n)return o;let s=Array.from(n.getElementsByTagNameNS("*","tblStyle"));for(let a of s){let r=a.getAttribute("styleId")||a.getAttribute("name")||"";if(!r)continue;let l={},h={},c=Array.from(a.getElementsByTagNameNS("*","tblStylePr"));for(let u of c){let p=u.getAttribute("type")||u.getAttribute("val")||"";if(!p)continue;let d=u.getElementsByTagNameNS("*","tcStyle")[0]||null,f=[(d?.getElementsByTagNameNS("*","tcPr")[0]||null)?.getElementsByTagNameNS("*","solidFill")[0]||null,d?.getElementsByTagNameNS("*","solidFill")[0]||null,u.getElementsByTagNameNS("*","solidFill")[0]||null],g;for(let A of f)A&&!g&&(g=Pe.getColorFromElement(A,e));if(!g){let A=d?.getElementsByTagNameNS("*","fillRef")[0]||u.getElementsByTagNameNS("*","fillRef")[0]||null;g=Pe.getColorFromElement(A,e)}g&&(l[p]=g);let m=u.getElementsByTagNameNS("*","tcTxStyle")[0]||null,v=m?.getElementsByTagNameNS("*","solidFill")[0]||null,x=Pe.getColorFromElement(v,e);if(!x){let A=m?.getElementsByTagNameNS("*","fontRef")[0]||null;x=Pe.getColorFromElement(A,e)}if(!x){let A=m?.getElementsByTagNameNS("*","schemeClr")[0]||null;x=Pe.getColorFromElement(A,e)}x&&(h[p]=x)}o[r]={fills:l,fontColors:h}}return o}static setDomParser(i){Pe.domParserFactory=i}static findRelationshipByTypeSuffix(i,o){let e=i.getElementsByTagName("Relationship");for(let n of Array.from(e))if((n.getAttribute("Type")||"").endsWith(o))return n;return null}static findRelationshipById(i,o){let e=i.getElementsByTagName("Relationship");for(let n of Array.from(e))if(n.getAttribute("Id")===o)return n;return null}},la=class{static extract(t,i,o={}){if(!t)return[];let e=[],n=t.getElementsByTagNameNS("*","sp");for(let s of Array.from(n)){let a=(s.getElementsByTagNameNS("*","nvPr")[0]??null)?.getElementsByTagNameNS("*","ph")[0]??null,r=!!a;if(o.context&&o.context!=="slide"&&r)continue;let l=s.getElementsByTagNameNS("*","txBody")[0];if(!l)continue;let h=l.getElementsByTagNameNS("*","p"),c=l.getElementsByTagNameNS("*","bodyPr")[0]??null,u=c?.getAttribute("anchor")||void 0,p=a?.getAttribute("idx")||void 0,d=a?.getAttribute("type")||(p?o.placeholderTypes?.[p]:void 0)||void 0,f=d==="title"||d==="ctrTitle",g=u==="ctr"?"middle":u==="b"||f?"bottom":"top",m=c?.getAttribute("lIns"),v=c?.getAttribute("tIns"),x=c?.getAttribute("rIns"),A=c?.getAttribute("bIns"),D={left:m?Number(m)/9525:0,top:v?Number(v)/9525:0,right:x?Number(x)/9525:0,bottom:A?Number(A)/9525:0},F=[],O="Arial",I=f?44:d==="subTitle"?24:18,j=f?"bold":"normal",U=f||d==="subTitle",R,k,S=[],P={},b=l.querySelector("*|lstStyle");if(b)for(let N of Array.from(b.children)){let T=N.localName.match(/^lvl(\d+)pPr$/);if(!T)continue;let $=parseInt(T[1],10)-1,G="p",Q;N.querySelector("*|buNone")?G="p":N.querySelector("*|buAutoNum")?(G="ol",Q=Rl(N.querySelector("*|buAutoNum")?.getAttribute("type")||"arabicPeriod")):N.querySelector("*|buChar")&&(G="ul",Q="disc"),P[$]={kind:G,listStyle:Q}}for(let N of Array.from(h)){let T=N.getElementsByTagNameNS("*","pPr")[0]??null,$=T?.getAttribute("algn")||void 0;$&&!k&&(k=$==="ctr"?"center":$==="r"?"right":$.startsWith("just")?"justify":"left");let G=N.getElementsByTagNameNS("*","r"),Q=Vf(N);Q&&Q.split(/\n+/).forEach(q=>{q&&F.push(q)});for(let q of Array.from(G)){let X=q.getElementsByTagNameNS("*","rPr")[0];if(X){O=X.getElementsByTagNameNS("*","latin")[0]?.getAttribute("typeface")??O;let Z=X.getAttribute("sz");if(Z){let it=parseInt(Z,10);Number.isFinite(it)&&(I=it/100)}let et=X.getAttribute("b");et==="1"?j="bold":et==="0"&&(j="normal");let rt=X.querySelector("*|solidFill"),J=Bt.getColorFromElement(rt||null,i);J&&(R=J)}}if(!R&&T){let q=(T.getElementsByTagNameNS("*","endParaRPr")[0]??null)?.querySelector("*|solidFill")||null,X=Bt.getColorFromElement(q,i);if(X&&(R=X),!R){let Z=(T.getElementsByTagNameNS("*","defRPr")[0]??null)?.querySelector("*|solidFill")||null,et=Bt.getColorFromElement(Z,i);et&&(R=et)}}let Y=T?.getAttribute("lvl"),L=Y?parseInt(Y,10):0,tt="p",K;T?T.querySelector("*|buNone")?tt="p":T.querySelector("*|buAutoNum")?(tt="ol",K=Rl(T.querySelector("*|buAutoNum")?.getAttribute("type")||"arabicPeriod")):T.querySelector("*|buChar")?(tt="ul",K="disc"):P[L]?(tt=P[L].kind,K=P[L].listStyle):L>0&&(tt="ul",K="disc"):P[L]?(tt=P[L].kind,K=P[L].listStyle):L>0&&(tt="ul",K="disc"),S.push({kind:tt,text:Q,lvl:isNaN(L)?0:L,listStyle:K})}if(!R){let N=l.querySelector("*|lstStyle *|defRPr")?.querySelector("*|solidFill"),T=Bt.getColorFromElement(N||null,i);T&&(R=T);let $=l.querySelector("*|defRPr")?.querySelector("*|solidFill"),G=Bt.getColorFromElement($||null,i);if(G&&(R=G),!R){let Q=s.querySelector("p\\:spPr, spPr")?.querySelector("*|solidFill"),Y=Bt.getColorFromElement(Q||null,i);Y&&(R=Y)}}let y=F.join(" ").trim();if(o.context&&o.context!=="slide"){let N=y.toLowerCase();if(N.includes("click to add")||N.includes("click to edit")||N.includes("haga clic para agregar")||N.includes("haga clic para editar")||N.includes("hacer clic para agregar")||N.includes("hacer clic para editar"))continue}if(y==="")continue;let _=s.getElementsByTagNameNS("*","xfrm")[0],w=_?.getElementsByTagNameNS("*","off")[0]??null,E=_?.getElementsByTagNameNS("*","ext")[0]??null,C,M,z,H,V;if(w&&E)({x:C,y:M,cx:z,cy:H,rotationDeg:V}=Bt.getAbsoluteTransform(s,t));else if(o.placeholderGeom){let N=(p?o.placeholderGeom[p]:void 0)??(d?o.placeholderGeom["type:"+d]:void 0);C=N?.x??0,M=N?.y??0,z=N?.cx??1e6,H=N?.cy??5e5}else C=0,M=0,z=1e6,H=5e5;if(d==="body"&&S.length>1)for(let N of S)N.kind==="p"&&(N.kind="ul",N.listStyle="disc");let B;if(S.length>1||S.some(N=>N.kind!=="p")){let N=[],T=null;for(let $ of S){if($.kind==="p"){T&&(N.push(T.kind==="ul"?"":""),T=null),$.text.trim()&&N.push(`
${Ol($.text).replace(/\n/g,"
")}
`);continue}if(!T||T.kind!==$.kind){T&&N.push(T.kind==="ul"?"":"");let G="list-style-position: inside; padding-left: 0; margin: 0;",Q=$.kind==="ol"?` style="${G} list-style-type: ${$.listStyle||"decimal"};"`:` style="${G}"`;N.push($.kind==="ul"?``:``),T={kind:$.kind,listStyle:$.listStyle}}N.push(`
  • ${Ol($.text).replace(/\n/g,"
    ")}
  • `)}T&&N.push(T.kind==="ul"?"":""),B=N.join("")}let W={type:"text",zIndex:Bt.getZIndex(s,t),rotationDeg:V,content:y,position:{x:C,y:M},size:{width:z,height:H},font:{name:O,size:I,color:R??"#000000",weight:j},align:{horizontal:k??(U?"center":"left"),vertical:g},padding:D,html:B};e.push(W)}return e}};ua=class{static async extract(t,i,o,e="ppt/slides"){if(!t)return[];let n=[],s=t.getElementsByTagNameNS("*","pic");for(let a of Array.from(s)){let r=a.getElementsByTagNameNS("*","blip")[0]?.getAttribute("r:embed")??"";if(!r)continue;let l=(i&&i.getElementsByTagName?(function(){let F=i.getElementsByTagName("Relationship");for(let O of Array.from(F))if(O.getAttribute("Id")===r)return O;return null})():null)?.getAttribute("Target");if(!l)continue;let h=this.normalizePath(l,e),c=o.file(h);if(!c)continue;let u=await c.async("base64"),p=`data:${Ll(h)};base64,${u}`,{x:d,y:f,cx:g,cy:m,rotationDeg:v}=Bt.getAbsoluteTransform(a,t),x=a.getElementsByTagNameNS("*","srcRect")[0]??null,A=x?{left:Math.max(0,Number(x.getAttribute("l")||0)),top:Math.max(0,Number(x.getAttribute("t")||0)),right:Math.max(0,Number(x.getAttribute("r")||0)),bottom:Math.max(0,Number(x.getAttribute("b")||0))}:void 0,D={type:"image",zIndex:Bt.getZIndex(a,t),relId:r,src:p,position:{x:d,y:f},size:{width:g,height:m},crop:A,rotationDeg:v};n.push(D)}return n}static normalizePath(t,i){if(t.startsWith("/"))return t.slice(1);let o=(i+"/"+t).split("/"),e=[];for(let n of o)n===".."?e.pop():n!=="."&&n!==""&&e.push(n);return e.join("/")}},ca=class{static extract(t,i){if(!t)return[];let o=[],e=[...Array.from(t.getElementsByTagNameNS("*","sp")),...Array.from(t.getElementsByTagNameNS("*","cxnSp"))];for(let n of e){let{x:s,y:a,cx:r,cy:l,rotationDeg:h}=Bt.getAbsoluteTransform(n,t),c=n.getElementsByTagNameNS("*","prstGeom")[0]?.getAttribute("prst")??"rect",u=n.getElementsByTagNameNS("*","spPr")[0],p="transparent",d="transparent",f,g,m;if(u){let x=u.getElementsByTagNameNS("*","solidFill")[0]??null;p=Bt.getColorFromElement(x,i)??"transparent";let A=u.getElementsByTagNameNS("*","ln")[0],D=A?.getElementsByTagNameNS("*","solidFill")[0]??null;d=Bt.getColorFromElement(D,i)??"transparent";let F=A?.getAttribute("w");if(F){let j=Number(F);isNaN(j)||(f=j/9525)}let O=A?.getElementsByTagNameNS("*","headEnd")[0]??null,I=A?.getElementsByTagNameNS("*","tailEnd")[0]??null;g=O?{type:O.getAttribute("type")||void 0,w:O.getAttribute("w")||void 0,len:O.getAttribute("len")||void 0}:void 0,m=I?{type:I.getAttribute("type")||void 0,w:I.getAttribute("w")||void 0,len:I.getAttribute("len")||void 0}:void 0}if(p==="transparent"){let x=n.getElementsByTagNameNS("*","style")[0]?.getElementsByTagNameNS("*","fillRef")[0]?.getElementsByTagNameNS("*","schemeClr")[0]?.getAttribute("val");x&&i[x]&&(p=i[x])}let v={type:"shape",zIndex:Bt.getZIndex(n,t),shapeType:c,position:{x:s,y:a},size:{width:r,height:l},fillColor:p,borderColor:d,strokeWidth:f,rotationDeg:h,headEnd:g,tailEnd:m};o.push(v)}return o}},Wf=class{static extract(t,i,o){if(!t)return[];let e=[],n=t.getElementsByTagNameNS("*","graphicFrame");for(let s of Array.from(n)){let a=this.findTbl(s);if(!a)continue;let{x:r,y:l,cx:h,cy:c,rotationDeg:u}=Bt.getAbsoluteTransform(s,t),p=[],d=a.getElementsByTagNameNS("*","tblGrid")[0]??null;if(d)for(let I of Array.from(d.getElementsByTagNameNS("*","gridCol"))){let j=Number(I.getAttribute("w")||0);p.push(j)}let f=a.getElementsByTagNameNS("*","tblPr")[0]??null,g=this.extractTableStyleFlags(f),m=this.extractTableBorders(f,i),v=this.extractTableStyleId(f),x=this.extractTableFill(f,i),A=v&&o?o[v]:void 0,D=this.buildFallbackTableStyle(i,g),F=D||A?{fills:{...D?.fills||{},...A?.fills||{}},fontColors:{...D?.fontColors||{},...A?.fontColors||{}}}:void 0,O=[];for(let I of Array.from(a.getElementsByTagNameNS("*","tr"))){let j=[];for(let U of Array.from(I.getElementsByTagNameNS("*","tc"))){let R=U.getElementsByTagNameNS("*","tcPr")[0]??null;if(R?.getAttribute("hMerge")==="1"||R?.getAttribute("hMerge")==="true"||R?.getAttribute("vMerge")==="1"||R?.getAttribute("vMerge")==="true"||R?.getElementsByTagNameNS("*","hMerge")[0]||R?.getElementsByTagNameNS("*","vMerge")[0])continue;let k=U.getElementsByTagNameNS("*","txBody")[0]??null,{text:S,font:P,align:b,padding:y}=this.extractCellText(k,i,U),_={text:S,font:P,align:b,padding:y,fillColor:this.extractFillColor(R,i),borders:this.extractCellBorders(R,i)},w=R?.getElementsByTagNameNS("*","gridSpan")[0]??null,E=R?.getElementsByTagNameNS("*","rowSpan")[0]??null;w&&(_.colSpan=Number(w.getAttribute("val")||1)),E&&(_.rowSpan=Number(E.getAttribute("val")||1)),j.push(_)}O.push({cells:j})}e.push({type:"table",zIndex:Bt.getZIndex(s,t),rotationDeg:u,position:{x:r,y:l},size:{width:h,height:c},columns:p,rows:O,tableStyle:g,tableBorders:m,tableStyleId:v,tableFillColor:x,style:F?{fills:F.fills,fontColors:F.fontColors}:void 0})}return e}static buildFallbackTableStyle(t,i){let o=t.accent1||t.accent2||t.dk1;if(!o)return;let e=t.lt1||"#FFFFFF",n={},s={};i?.firstRow&&(n.firstRow=o,s.firstRow=e),i?.firstCol&&(n.firstCol=this.lightenHex(o,.85),s.firstCol=void 0);let a=this.lightenHex(o,.92);return i?.bandRow&&(n.band2H=a),i?.bandCol&&(n.band2V=a),{fills:n,fontColors:s}}static lightenHex(t,i){let o=(t||"").replace("#","");if(o.length!==6||/[^0-9a-fA-F]/.test(o))return t||"#FFFFFF";let e=parseInt(o.substring(0,2),16),n=parseInt(o.substring(2,4),16),s=parseInt(o.substring(4,6),16),a=Math.round(e+(255-e)*i),r=Math.round(n+(255-n)*i),l=Math.round(s+(255-s)*i),h=c=>c.toString(16).padStart(2,"0");return`#${h(a)}${h(r)}${h(l)}`}static findTbl(t){let i=t.getElementsByTagNameNS("*","graphicData")[0]??null;return i?i.getElementsByTagNameNS("*","tbl")[0]??null:null}static extractCellText(t,i,o){if(!t)return{text:"",font:{},align:{},padding:{left:0,top:0,right:0,bottom:0}};let e=t.getElementsByTagNameNS("*","bodyPr")[0]??null,n="top",s=o?.getElementsByTagNameNS("*","tcPr")[0]??null,a=s?.getAttribute("anchor")||s?.getAttribute("vAlign")||void 0,r=e?.getAttribute("anchor")||void 0,l=a||r;l==="ctr"?n="middle":l==="b"?n="bottom":n="top";let h=e?.getAttribute("lIns"),c=e?.getAttribute("tIns"),u=e?.getAttribute("rIns"),p=e?.getAttribute("bIns"),d={left:h?Number(h)/9525:6,top:c?Number(c)/9525:2,right:u?Number(u)/9525:6,bottom:p?Number(p)/9525:2},f="left",g="Arial",m=14,v,x=[],A=t.getElementsByTagNameNS("*","p");for(let D of Array.from(A)){let F=(D.getElementsByTagNameNS("*","pPr")[0]??null)?.getAttribute("algn")||void 0;F&&(f=F==="ctr"?"center":F==="r"?"right":F.startsWith("just")?"justify":"left");for(let O of Array.from(D.childNodes))if(O.nodeType===1){let I=O.localName;if(I==="r"){let j=O.getElementsByTagNameNS("*","rPr")[0]??null;if(j){g=(j.getElementsByTagNameNS("*","latin")[0]??null)?.getAttribute("typeface")??g;let R=j.getAttribute("sz");R&&(m=parseInt(R,10)/100);let k=j.querySelector("*|solidFill"),S=Bt.getColorFromElement(k||null,i);S&&(v=S)}let U=O.getElementsByTagNameNS("*","t")[0]?.textContent??"";x.push(U)}else if(I==="br")x.push(` +`);else if(I==="fld"){let j=O.getElementsByTagNameNS("*","r");for(let U of Array.from(j)){let R=U.getElementsByTagNameNS("*","t")[0]?.textContent??"";x.push(R)}}}}return{text:x.join("").trim(),font:{name:g,size:m,color:v},align:{horizontal:f,vertical:n},padding:d}}static extractFillColor(t,i){if(!t||t.getElementsByTagNameNS("*","noFill")[0])return;let o=Array.from(t.children).find(n=>n.localName==="solidFill");if(o)return Bt.getColorFromElement(o,i);let e=Array.from(t.getElementsByTagNameNS("*","solidFill"));for(let n of e){let s=n.parentElement,a=!1;for(;s&&s!==t;){let r=s.localName;if(r==="ln"||r==="lnL"||r==="lnR"||r==="lnT"||r==="lnB"||r==="tcBorders"){a=!0;break}s=s.parentElement}if(!a){let r=Bt.getColorFromElement(n,i);if(r)return r}}}static extractCellBorders(t,i){let o={};if(!t)return o;let e={lnL:"left",lnR:"right",lnT:"top",lnB:"bottom"};for(let n of Object.keys(e)){let s=t.getElementsByTagNameNS("*",n)[0]??null;if(!s)continue;let a=s.getAttribute("w"),r=a?Number(a)/9525:void 0,l=s.getElementsByTagNameNS("*","solidFill")[0]??null,h=Bt.getColorFromElement(l,i),c=(s.getElementsByTagNameNS("*","prstDash")[0]??null)?.getAttribute("val")||"",u=this.mapPrstDashToCss(c);o[e[n]]={color:h,width:r,style:u}}return o}static extractTableStyleFlags(t){if(!t)return{};let i={};for(let o of["firstRow","firstCol","lastRow","lastCol","bandRow","bandCol"])(t.getAttribute(o)==="1"||t.getAttribute(o)==="true")&&(i[o]=!0);return i}static extractTableStyleId(t){if(!t)return;let i=t.getElementsByTagNameNS("*","tblStyleId")[0]||t.getElementsByTagNameNS("*","tblStyle")[0]||null,o=i?.getAttribute("val")||void 0,e=i?.textContent?.trim()||void 0,n=t.getAttribute("tblStyle")||void 0;return o||e||n||void 0}static extractTableBorders(t,i){if(!t)return;let o={},e=t.getElementsByTagNameNS("*","tblBorders")[0]??null;if(!e)return;let n={top:"top",right:"right",bottom:"bottom",left:"left",insideH:"insideH",insideV:"insideV"};for(let s of Object.keys(n)){let a=e.getElementsByTagNameNS("*",s)[0]??null;if(!a)continue;let r=a.getElementsByTagNameNS("*","ln")[0]??a,l=r.getAttribute("w"),h=l?Number(l)/9525:void 0,c=r.getElementsByTagNameNS("*","solidFill")[0]??null,u=Bt.getColorFromElement(c,i),p=(r.getElementsByTagNameNS("*","prstDash")[0]??null)?.getAttribute("val")||"",d=this.mapPrstDashToCss(p);o[n[s]]={color:u,width:h,style:d}}return o}static extractTableFill(t,i){if(!t)return;let o=Array.from(t.children).find(n=>n.localName==="solidFill");if(o)return Bt.getColorFromElement(o,i);let e=Array.from(t.getElementsByTagNameNS("*","solidFill"));for(let n of e){let s=n.parentElement,a=!1;for(;s&&s!==t;){if(s.localName==="tblBorders"){a=!0;break}s=s.parentElement}if(!a){let r=Bt.getColorFromElement(n,i);if(r)return r}}}static mapPrstDashToCss(t){let i=(t||"").toLowerCase();if(i){if(i==="solid")return"solid";if(i.includes("dot"))return"dotted";if(i.includes("dash"))return"dashed"}}},Xf=class{static async extract(t,i,o,e){if(!t)return[];let n=[],s=t.getElementsByTagNameNS("*","graphicFrame");for(let a of Array.from(s)){let r=a.getElementsByTagNameNS("*","graphicData")[0]??null;if(!r)continue;let l=r.getElementsByTagNameNS("*","chart")[0]??null;if(!l)continue;let h=l.getAttribute("r:id")||l.getAttribute("r:embed")||void 0;if(!h)continue;let c=Bt.findRelationshipById(i,h)?.getAttribute("Target")||void 0;if(!c)continue;let u=this.resolvePath(c,"ppt/slides"),p=o.file(u);if(!p)continue;let d=await p.async("string"),f=Bt.parseXml(d),g=this.parseChart(f,e);if(!g)continue;let{x:m,y:v,cx:x,cy:A,rotationDeg:D}=Bt.getAbsoluteTransform(a,t);n.push({type:"chart",zIndex:Bt.getZIndex(a,t),rotationDeg:D,chartType:g.type,position:{x:m,y:v},size:{width:x,height:A},categories:g.categories,series:g.series,palette:g.palette,title:g.title,showLegend:g.showLegend,showDataLabels:g.showDataLabels,stackedMode:g.stackedMode,valueFormat:g.valueFormat})}return n}static resolvePath(t,i){if(t.startsWith("/"))return t.slice(1);let o=(i+"/"+t).split("/"),e=[];for(let n of o)n===".."?e.pop():n!=="."&&n!==""&&e.push(n);return e.join("/")}static parseChart(t,i){let o=t.getElementsByTagNameNS("*","plotArea")[0]||null;if(!o)return null;let e=this.extractTitle(t),n=!!t.getElementsByTagNameNS("*","legend")[0],s=!!o.getElementsByTagNameNS("*","dLbls")[0],a=o.getElementsByTagNameNS("*","barChart")[0]||null,r=o.getElementsByTagNameNS("*","lineChart")[0]||null,l=o.getElementsByTagNameNS("*","areaChart")[0]||null,h=o.getElementsByTagNameNS("*","pieChart")[0]||null,c=o.getElementsByTagNameNS("*","doughnutChart")[0]||null,u=o.getElementsByTagNameNS("*","scatterChart")[0]||null,p=o.getElementsByTagNameNS("*","dLbls")[0]?.getElementsByTagNameNS("*","numFmt")[0]?.getAttribute("formatCode")||void 0,d=[i.accent1,i.accent2,i.accent3,i.accent4,i.accent5,i.accent6].filter(Boolean);if(a){let f=this.extractCategories(a)||[],g=this.extractSeries(a,i)||[],m=(a.getElementsByTagNameNS("*","barDir")[0]?.getAttribute("val")||"col")==="bar"?"bar":"column",v=a.getElementsByTagNameNS("*","grouping")[0]?.getAttribute("val")||"clustered";return{type:m,categories:f,series:g,palette:d,title:e,showLegend:n,showDataLabels:s,stackedMode:v==="stacked"?"stacked":v==="percentStacked"?"percent":"none",valueFormat:p}}if(r){let f=this.extractCategories(r)||[],g=this.extractSeries(r,i)||[],m=r.getElementsByTagNameNS("*","grouping")[0]?.getAttribute("val")||"standard";return{type:"line",categories:f,series:g,palette:d,title:e,showLegend:n,showDataLabels:s,stackedMode:m==="stacked"?"stacked":m==="percentStacked"?"percent":"none",valueFormat:p}}if(l){let f=this.extractCategories(l)||[],g=this.extractSeries(l,i)||[],m=l.getElementsByTagNameNS("*","grouping")[0]?.getAttribute("val")||"standard";return{type:"area",categories:f,series:g,palette:d,title:e,showLegend:n,showDataLabels:s,stackedMode:m==="stacked"?"stacked":m==="percentStacked"?"percent":"none",valueFormat:p}}if(h||c){let f=h||c;return{type:"pie",categories:this.extractCategories(f)||[],series:this.extractSeries(f,i)||[],palette:d,title:e,showLegend:n,showDataLabels:s,stackedMode:"none",valueFormat:p}}return u?{type:"scatter",categories:[],series:this.extractScatterSeries(u,i)||[],palette:d,title:e,showLegend:n,showDataLabels:s,stackedMode:"none",valueFormat:p}:null}static extractTitle(t){let i=t.getElementsByTagNameNS("*","title")[0]||null;if(!i)return;let o=i.getElementsByTagNameNS("*","tx")[0]||null,e=o?.getElementsByTagNameNS("*","rich")[0]||null;return e?Array.from(e.getElementsByTagNameNS("*","t")).map(n=>n.textContent||"").join("")||void 0:o?.getElementsByTagNameNS("*","v")[0]?.textContent||void 0}static extractCategories(t){let i=t.getElementsByTagNameNS("*","cat")[0]||null;if(!i)return null;let o=i.getElementsByTagNameNS("*","strCache")[0]||null;if(o){let s=Array.from(o.getElementsByTagNameNS("*","pt"));return this.indexedValues(s,a=>a.getElementsByTagNameNS("*","v")[0]?.textContent||"")}let e=i.getElementsByTagNameNS("*","numCache")[0]||null;if(e){let s=Array.from(e.getElementsByTagNameNS("*","pt"));return this.indexedValues(s,a=>Number(a.getElementsByTagNameNS("*","v")[0]?.textContent||0))}let n=i.getElementsByTagNameNS("*","multiLvlStrCache")[0]||null;if(n){let s=n.getElementsByTagNameNS("*","lvl")[0]||null;if(s){let a=Array.from(s.getElementsByTagNameNS("*","pt"));return this.indexedValues(a,r=>r.getElementsByTagNameNS("*","v")[0]?.textContent||"")}}return null}static extractSeries(t,i){let o=[],e=Array.from(t.getElementsByTagNameNS("*","ser")),n=0;for(let s of e){let a=s.getElementsByTagNameNS("*","tx")[0]?.getElementsByTagNameNS("*","v")[0]?.textContent||void 0,r=s.getElementsByTagNameNS("*","numCache")[0]||null,l=[];if(r){let d=Array.from(r.getElementsByTagNameNS("*","pt"));l=this.indexedValues(d,f=>Number(f.getElementsByTagNameNS("*","v")[0]?.textContent||0))}let h=s.getElementsByTagNameNS("*","dLbls")[0]?.getElementsByTagNameNS("*","numFmt")[0]?.getAttribute("formatCode")||void 0,c=(s.getElementsByTagNameNS("*","spPr")[0]||null)?.getElementsByTagNameNS("*","solidFill")[0]||null,u=Bt.getColorFromElement(c,i),p=[];for(let d of Array.from(s.getElementsByTagNameNS("*","dPt"))){let f=Number(d.getElementsByTagNameNS("*","idx")[0]?.getAttribute("val")||0),g=(d.getElementsByTagNameNS("*","spPr")[0]||null)?.getElementsByTagNameNS("*","solidFill")[0]||null,m=Bt.getColorFromElement(g,i);m&&(p[f]=m)}o.push({name:a,values:l,color:u,valueFormat:h,ptColors:p.length>0?p:void 0}),n+=1}return o}static extractScatterSeries(t,i){let o=[],e=Array.from(t.getElementsByTagNameNS("*","ser"));for(let n of e){let s=n.getElementsByTagNameNS("*","tx")[0]?.getElementsByTagNameNS("*","v")[0]?.textContent||void 0,a=n.getElementsByTagNameNS("*","xVal")[0]?.getElementsByTagNameNS("*","numCache")[0]||null,r=n.getElementsByTagNameNS("*","yVal")[0]?.getElementsByTagNameNS("*","numCache")[0]||null,l=a?Array.from(a.getElementsByTagNameNS("*","pt")):[],h=r?Array.from(r.getElementsByTagNameNS("*","pt")):[],c=this.indexedValues(l,v=>Number(v.getElementsByTagNameNS("*","v")[0]?.textContent||0)),u=this.indexedValues(h,v=>Number(v.getElementsByTagNameNS("*","v")[0]?.textContent||0)),p=Math.max(c.length,u.length),d=[];for(let v=0;v{let r=s.getAttribute("idx"),l=r!==null&&/^\d+$/.test(r)?Number(r):a;o=Math.max(o,l),e.push({index:l,value:i(s)})});let n=new Array(o+1);for(let s of e)n[s.index]=s.value;return n}},Gf=class{zip;constructor(t){this.zip=t}async extractSlides(){let t=await this.zip.file("ppt/theme/theme1.xml")?.async("string"),i=t?Bt.parseXml(t):null,o=Bt.extractThemeColors(i),e=Bt.extractThemeTableStyles(i),n=Object.keys(this.zip.files).filter(r=>/^ppt\/slides\/slide\d+\.xml$/.test(r)).sort((r,l)=>parseInt(r.match(/slide(\d+)\.xml$/)?.[1]||"0",10)-parseInt(l.match(/slide(\d+)\.xml$/)?.[1]||"0",10)),s=await this.getSlidePathsInPresentationOrder(n),a=[];for(let r of s){let l=await this.zip.file(r).async("string"),h=Bt.parseXml(l),c=h.querySelector("p\\:spTree")||h.getElementsByTagNameNS("*","spTree")[0];if(!c){console.warn(`Warning: no found in ${r}`),a.push([]);continue}let u=r.replace("slides/","slides/_rels/")+".rels",p=this.zip.file(u)?Bt.parseXml(await this.zip.file(u).async("string")):Bt.parseXml(""),d=Bt.findRelationshipByTypeSuffix(p,"/slideLayout")?.getAttribute("Target")||void 0,f=null,g=null;if(d){let B=this.resolvePath(d,"ppt/slides"),W=await this.zip.file(B)?.async("string");if(W){let N=Bt.parseXml(W);f=N.querySelector("p\\:spTree")||N.getElementsByTagNameNS("*","spTree")[0]||null;let T=B.replace("slideLayouts/","slideLayouts/_rels/")+".rels";g=this.zip.file(T)?Bt.parseXml(await this.zip.file(T).async("string")):Bt.parseXml("")}}let m=null,v=null;if(g){let B=Bt.findRelationshipByTypeSuffix(g,"/slideMaster")?.getAttribute("Target")||void 0;if(B){let W=this.resolvePath(B,"ppt/slideLayouts"),N=await this.zip.file(W)?.async("string");if(N){let T=Bt.parseXml(N);m=T.querySelector("p\\:spTree")||T.getElementsByTagNameNS("*","spTree")[0]||null;let $=W.replace("slideMasters/","slideMasters/_rels/")+".rels";v=this.zip.file($)?Bt.parseXml(await this.zip.file($).async("string")):Bt.parseXml("")}}}let x=await this.extractBackground(h,p,"ppt/slides",this.zip,o),A=g?await this.extractBackground(f?.ownerDocument||null,g,"ppt/slideLayouts",this.zip,o):null,D=v?await this.extractBackground(m?.ownerDocument||null,v,"ppt/slideMasters",this.zip,o):null,F=x||A||D;F&&(F.zIndex=-1);let O=m?la.extract(m,o,{context:"master"}):[],I=m&&v?await ua.extract(m,v,this.zip,"ppt/slideMasters"):[],j=m?ca.extract(m,o):[],U=f?la.extract(f,o,{context:"layout"}):[],R=f&&g?await ua.extract(f,g,this.zip,"ppt/slideLayouts"):[],k=f?ca.extract(f,o):[],S=this.extractPlaceholderGeom(m),P=this.extractPlaceholderGeom(f),b={...S,...P},y=this.extractPlaceholderTypes(m),_=this.extractPlaceholderTypes(f),w={...y,..._},E=la.extract(c,o,{context:"slide",placeholderGeom:b,placeholderTypes:w}),C=await ua.extract(c,p,this.zip,"ppt/slides"),M=Wf.extract(c,o,e),z=await Xf.extract(c,p,this.zip,o),H=ca.extract(c,o),V=(B,W)=>B.map(N=>({...N,zIndex:W+(N.zIndex??0)}));a.push([...F?[F]:[],...V(j,0),...V(I,0),...V(O,0),...V(k,1e4),...V(R,1e4),...V(U,1e4),...V(H,2e4),...V(M,2e4),...V(z,2e4),...V(C,2e4),...V(E,2e4)])}return a}resolvePath(t,i){if(t.startsWith("/"))return t.slice(1);let o=(i+"/"+t).split("/"),e=[];for(let n of o)n===".."?e.length&&e.pop():n!=="."&&n!==""&&e.push(n);return e.join("/")}extractPlaceholderTypes(t){let i={};if(!t)return i;let o=t.getElementsByTagNameNS("*","sp");for(let e of Array.from(o)){let n=(e.getElementsByTagNameNS("*","nvPr")[0]??null)?.getElementsByTagNameNS("*","ph")[0]??null;if(!n)continue;let s=n.getAttribute("idx")||void 0,a=n.getAttribute("type")||void 0;s&&a&&(i[s]=a)}return i}extractPlaceholderGeom(t){let i={};if(!t)return i;let o=t.getElementsByTagNameNS("*","sp");for(let e of Array.from(o)){let n=(e.getElementsByTagNameNS("*","nvPr")[0]??null)?.getElementsByTagNameNS("*","ph")[0]??null,s=n?.getAttribute("idx")||void 0,a=n?.getAttribute("type")||void 0,r=s||(a?"type:"+a:void 0);if(!r)continue;let l=e.getElementsByTagNameNS("*","xfrm")[0]??null,h=l?.getElementsByTagNameNS("*","off")[0]??null,c=l?.getElementsByTagNameNS("*","ext")[0]??null;if(!h||!c)continue;let u={x:Bt.getAttrAsNumber(h,"x"),y:Bt.getAttrAsNumber(h,"y"),cx:Bt.getAttrAsNumber(c,"cx"),cy:Bt.getAttrAsNumber(c,"cy")};i[r]=u,a==="title"?i["type:ctrTitle"]=u:a==="ctrTitle"&&(i["type:title"]=u)}return i}async extractBackground(t,i,o,e,n){if(!t)return null;let s=t.getElementsByTagNameNS("*","bg")[0];if(!s)return null;let a=s.getElementsByTagNameNS("*","bgPr")[0]||null,r=a?.getElementsByTagNameNS("*","solidFill")[0]||null,l=Bt.getColorFromElement(r,n);if(l)return{type:"background",fillColor:l};let h=((s.getElementsByTagNameNS("*","bgRef")[0]||null)?.getElementsByTagNameNS("*","schemeClr")[0]||null)?.getAttribute("val")||void 0;if(h&&n[h])return{type:"background",fillColor:n[h]};let c=((a?.getElementsByTagNameNS("*","blipFill")[0]||null)?.getElementsByTagNameNS("*","blip")[0]||null)?.getAttribute("r:embed")||void 0;if(c&&i){let u=Bt.findRelationshipById(i,c)?.getAttribute("Target")||void 0;if(u){let p=this.resolvePath(u,o),d=e.file(p);if(d){let f=await d.async("base64");return{type:"background",imageSrc:`data:${Ll(p)};base64,${f}`}}}}return null}async getSlidePathsInPresentationOrder(t){let i=this.zip.file("ppt/presentation.xml"),o=this.zip.file("ppt/_rels/presentation.xml.rels");if(!i||!o)return t;try{let[e,n]=await Promise.all([i.async("string"),o.async("string")]),s=Bt.parseXml(e),a=Bt.parseXml(n),r=[],l=Array.from(s.getElementsByTagNameNS("*","sldId"));if(l.length===0)return t;for(let h of l){let c=h.getAttribute("r:id");if(!c)continue;let u=Bt.findRelationshipById(a,c)?.getAttribute("Target");if(!u)continue;let p=this.resolvePath(u,"ppt");this.zip.file(p)&&!r.includes(p)&&r.push(p)}return r}catch{return t}}},Zf=class{zip;baseWidthPx;baseHeightPx;async load(t){return this.zip=await Bl.default.loadAsync(t),await this.computeSlideBaseSize(),new Gf(this.zip).extractSlides()}async getBaseSizePx(){return this.baseWidthPx&&this.baseHeightPx?{width:this.baseWidthPx,height:this.baseHeightPx}:(await this.computeSlideBaseSize(),{width:Number.isFinite(this.baseWidthPx)&&this.baseWidthPx>0?this.baseWidthPx:960,height:Number.isFinite(this.baseHeightPx)&&this.baseHeightPx>0?this.baseHeightPx:540})}async computeSlideBaseSize(){try{if(!this.zip)return;let t=this.zip.file("ppt/presentation.xml");if(!t)return;let i=await t.async("string"),o=Bt.parseXml(i).getElementsByTagNameNS("*","sldSz")[0],e=o?Number(o.getAttribute("cx")||0):0,n=o?Number(o.getAttribute("cy")||0):0;Number.isFinite(e)&&Number.isFinite(n)&&e>0&&n>0&&(this.baseWidthPx=e/9525,this.baseHeightPx=n/9525)}catch{}}};gd=class{static render(t,i={}){let o=(c,u)=>typeof c=="number"&&Number.isFinite(c)&&c>0?c:u,e=o(i.baseWidth,960),n=o(i.baseHeight,540),s=o(i.width,e),a=o(i.height,n),r=i.scaleToFit===!0,l=r?i.letterbox!==!1:i.letterbox===!0,h=t.map(c=>{switch(c.type){case"background":{let u=c.imageSrc?`background-image: url('${Fl(c.imageSrc)}'); background-size: cover; background-position: center; background-repeat: no-repeat;`:`background-color: ${gr(c.fillColor)};`;return`
    `}case"text":return Yf(c);case"image":return Qf(c);case"shape":return td(c,{scaleStrokes:r});case"table":return id(c);case"chart":return ld(c);default:return typeof console<"u"&&console.warn&&console.warn(`[pptx-to-html] Unsupported element type: ${c?.type}`),""}});if(r)if(l){let c=Math.min(s/e,a/n);return`
    +
    + ${h.join(` +`)} +
    +
    `}else return`
    +
    + ${h.join(` +`)} +
    +
    `;return`
    + ${h.join(` +`)} +
    `}}});var Hl={};Bi(Hl,{preparePresentation:()=>vd,prepareWord:()=>yd});function Ul(t,i=new Map){if(!t||typeof t!="object")return t;if(i.has(t))return i.get(t);let o=Array.isArray(t)?[]:Object.create(null);i.set(t,o);for(let[e,n]of Object.entries(t))if(!(e.startsWith("_")||e==="parent")){if(typeof n=="function"||n?.nodeType)throw new Error("Unsupported Word model value");o[e]=Ul(n,i)}return o}async function yd(t){Ss();let i=await al(t),{parseAsync:o}=await Promise.resolve().then(()=>(Dl(),Ml)),e=await o(await t.generateAsync({type:"arraybuffer",compression:"STORE"}),{ignoreFonts:!0,renderAltChunks:!1,useBase64URL:!1}),n={rels:e.rels,partsMap:e.partsMap};for(let[l,h]of Object.entries(e))l.endsWith("Part")&&(n[l]=h);let s=Ul(n),a={};for(let l of e.parts)for(let h of l.rels??[]){if(!h.type.endsWith("/image")||h.targetMode==="External")continue;let c=ll(l.path,h.target),u=t.file(c);u&&!Object.hasOwn(a,c)&&(a[c]=await u.async("uint8array"))}let r={kind:"docx",word:s,headings:i,images:a};return ks(r),r}async function vd(t){Ss();for(let n of Object.values(t.files).filter(s=>/^ppt\/slides\/slide\d+\.xml$/.test(s.name))){let s=new gn().parseFromString(await n.async("string"),"application/xml"),a=!1;for(let r of s.getElementsByTagNameNS("*","p")){let l=[...r.children].find(h=>h.localName==="pPr")?.getElementsByTagNameNS("*","defRPr")[0];if(l)for(let h of[...r.children].filter(c=>c.localName==="r")){let c=[...h.children].find(u=>u.localName==="rPr");c||(c=s.createElementNS(l.namespaceURI,"a:rPr"),h.insertBefore(c,h.firstChild));for(let u of l.attributes)c.hasAttribute(u.name)||c.setAttribute(u.name,u.value);for(let u of l.children)[...c.children].some(p=>p.localName===u.localName)||c.appendChild(u.cloneNode(!0));a=!0}}a&&t.file(n.name,new XMLSerializer().serializeToString(s),{createFolders:!1})}let{pptxToHtml:i}=await Promise.resolve().then(()=>($l(),zl)),o=await i(await t.generateAsync({type:"arraybuffer",compression:"STORE"}),{width:960,height:540,scaleToFit:!0,domParserFactory:()=>new gn});if(o.some(n=>n.length>512*1024))throw new Error("Office slide HTML limit exceeded");let e={kind:"pptx",slides:o};return ks(e),e}var ql=Pr(()=>{il();ol();Cs()});var Wl=Xe((Vl,fa)=>{(function(t){typeof Vl=="object"&&typeof fa<"u"?fa.exports=t():typeof define=="function"&&define.amd?define([],t):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).ExcelJS=t()})((function(){return(function t(i,o,e){function n(r,l){if(!o[r]){if(!i[r]){var h=typeof hr=="function"&&hr;if(!l&&h)return h(r,!0);if(s)return s(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var u=o[r]={exports:{}};i[r][0].call(u.exports,(function(p){return n(i[r][1][p]||p)}),u,u.exports,t,i,o,e)}return o[r].exports}for(var s=typeof hr=="function"&&hr,a=0;a{let g=this.workbook.addWorksheet(p.sheetName),m=p.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],v=p.map||function(A){if(A==="")return null;let D=Number(A);if(!Number.isNaN(D)&&D!==1/0)return D;let F=m.reduce((I,j)=>{if(I)return I;let U=r(A,j,!0);return U.isValid()?U:null},null);if(F)return new Date(F.valueOf());let O=c[A];return O!==void 0?O:A},x=n.parse(p.parserOptions).on("data",A=>{g.addRow(A.map(v))}).on("end",()=>{x.emit("worksheet",g)});x.on("worksheet",d).on("error",f),u.pipe(x)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(u,p){return new Promise((d,f)=>{p=p||{};let g=this.workbook.getWorksheet(p.sheetName||p.sheetId),m=n.format(p.formatterOptions);u.on("finish",()=>{d()}),m.on("error",f),m.pipe(u);let{dateFormat:v,dateUTC:x}=p,A=p.map||(O=>{if(O){if(O.text||O.hyperlink)return O.hyperlink||O.text||"";if(O.formula||O.result)return O.result||"";if(O instanceof Date)return v?x?r.utc(O).format(v):r(O).format(v):x?r.utc(O).format():r(O).format();if(O.error)return O.error;if(typeof O=="object")return JSON.stringify(O)}return O}),D=p.includeEmptyRows===void 0||p.includeEmptyRows,F=1;g&&g.eachRow((O,I)=>{if(D)for(;F++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=a,r)if(typeof r=="string"){let h=e.decodeAddress(r);this.nativeCol=h.col+l,this.nativeColOff=0,this.nativeRow=h.row+l,this.nativeRowOff=0}else r.nativeCol!==void 0?(this.nativeCol=r.nativeCol||0,this.nativeColOff=r.nativeColOff||0,this.nativeRow=r.nativeRow||0,this.nativeRowOff=r.nativeRowOff||0):r.col!==void 0?(this.col=r.col+l,this.row=r.row+l):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(a){return a instanceof n||a==null?a:new n(a)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(a){this.nativeCol=Math.floor(a),this.nativeColOff=Math.floor((a-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(a){this.nativeRow=Math.floor(a),this.nativeRowOff=Math.floor((a-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(a){this.nativeCol=a.nativeCol,this.nativeColOff=a.nativeColOff,this.nativeRow=a.nativeRow,this.nativeRowOff=a.nativeRowOff}}i.exports=n},{"../utils/col-cache":19}],3:[function(t,i,o){"use strict";let e=t("../utils/col-cache"),n=t("../utils/under-dash"),s=t("./enums"),{slideFormula:a}=t("../utils/shared-formula"),r=t("./note");class l{constructor(u,p,d){if(!u||!p)throw new Error("A Cell needs a Row");this._row=u,this._column=p,e.validateAddress(d),this._address=d,this._value=h.create(l.Types.Null,this),this.style=this._mergeStyle(u.style,p.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(u){this.style.numFmt=u}get font(){return this.style.font}set font(u){this.style.font=u}get alignment(){return this.style.alignment}set alignment(u){this.style.alignment=u}get border(){return this.style.border}set border(u){this.style.border=u}get fill(){return this.style.fill}set fill(u){this.style.fill=u}get protection(){return this.style.protection}set protection(u){this.style.protection=u}_mergeStyle(u,p,d){let f=u&&u.numFmt||p&&p.numFmt;f&&(d.numFmt=f);let g=u&&u.font||p&&p.font;g&&(d.font=g);let m=u&&u.alignment||p&&p.alignment;m&&(d.alignment=m);let v=u&&u.border||p&&p.border;v&&(d.border=v);let x=u&&u.fill||p&&p.fill;x&&(d.fill=x);let A=u&&u.protection||p&&p.protection;return A&&(d.protection=A),d}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge}merge(u,p){this._value.release(),this._value=h.create(l.Types.Merge,this,u),p||(this.style=u.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=h.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(u){return this._value.type===l.Types.Merge&&this._value.isMergedTo(u)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(u){this.type!==l.Types.Merge?(this._value.release(),this._value=h.create(h.getType(u),this,u)):this._value.master.value=u}get note(){return this._comment&&this._comment.note}set note(u){this._comment=new r(u)}get text(){return this._value.toString()}get html(){return n.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(u){this.type===l.Types.String&&(this._value=h.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:u}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:u}=this._row;return{sheetName:u.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(u){this.names=[u]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(u){let{definedNames:p}=this.workbook;p.removeAllNames(this.fullAddress),u.forEach(d=>{p.addEx(this.fullAddress,d)})}addName(u){this.workbook.definedNames.addEx(this.fullAddress,u)}removeName(u){this.workbook.definedNames.removeEx(this.fullAddress,u)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(u){this._dataValidations.add(this.address,u)}get model(){let{model:u}=this._value;return u.style=this.style,this._comment&&(u.comment=this._comment.model),u}set model(u){if(this._value.release(),this._value=h.create(u.type,this),this._value.model=u,u.comment)switch(u.comment.type){case"note":this._comment=r.fromModel(u.comment)}u.style?this.style=u.style:this.style={}}}l.Types=s.ValueType;let h={getType:c=>c==null?l.Types.Null:c instanceof String||typeof c=="string"?l.Types.String:typeof c=="number"?l.Types.Number:typeof c=="boolean"?l.Types.Boolean:c instanceof Date?l.Types.Date:c.text&&c.hyperlink?l.Types.Hyperlink:c.formula||c.sharedFormula?l.Types.Formula:c.richText?l.Types.RichText:c.sharedString?l.Types.SharedString:c.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(c){this.model={address:c.address,type:l.Types.Null}}get value(){return null}set value(c){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.Number,value:u}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.String,value:u}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.Date,value:u}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.Hyperlink,text:u?u.text:void 0,hyperlink:u?u.hyperlink:void 0},u&&u.tooltip&&(this.model.tooltip=u.tooltip)}get value(){let c={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(c.tooltip=this.model.tooltip),c}set value(c){this.model={text:c.text,hyperlink:c.hyperlink},c.tooltip&&(this.model.tooltip=c.tooltip)}get text(){return this.model.text}set text(c){this.model.text=c}get hyperlink(){return this.model.hyperlink}set hyperlink(c){this.model.hyperlink=c}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(c,u){this.cell=c,this.model={address:c.address,type:l.Types.Formula,shareType:u?u.shareType:void 0,ref:u?u.ref:void 0,formula:u?u.formula:void 0,sharedFormula:u?u.sharedFormula:void 0,result:u?u.result:void 0}}_copyModel(c){let u={},p=d=>{let f=c[d];f&&(u[d]=f)};return p("formula"),p("result"),p("ref"),p("shareType"),p("sharedFormula"),u}get value(){return this._copyModel(this.model)}set value(c){this.model=this._copyModel(c)}validate(c){switch(h.getType(c)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(c){this.model.formula=c}get formulaType(){return this.model.formula?s.FormulaType.Master:this.model.sharedFormula?s.FormulaType.Shared:s.FormulaType.None}get result(){return this.model.result}set result(c){this.model.result=c}get type(){return l.Types.Formula}get effectiveType(){let c=this.model.result;return c==null?s.ValueType.Null:c instanceof String||typeof c=="string"?s.ValueType.String:typeof c=="number"?s.ValueType.Number:c instanceof Date?s.ValueType.Date:c.text&&c.hyperlink?s.ValueType.Hyperlink:c.formula?s.ValueType.Formula:s.ValueType.Null}get address(){return this.model.address}set address(c){this.model.address=c}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:c}=this.cell,u=c.findCell(this.model.sharedFormula);this._translatedFormula=u&&a(u.formula,u.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.Merge,master:u?u.address:void 0},this._master=u,u&&u.addMergeRef()}get value(){return this._master.value}set value(c){c instanceof l?(this._master&&this._master.releaseMergeRef(),c.addMergeRef(),this._master=c):this._master.value=c}isMergedTo(c){return c===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.String,value:JSON.stringify(u),rawValue:u}}get value(){return this.model.rawValue}set value(c){this.model.rawValue=c,this.model.value=JSON.stringify(c)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.SharedString,value:u}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.String,value:u}}get value(){return this.model.value}set value(c){this.model.value=c}toString(){return this.model.value.richText.map(c=>c.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.Boolean,value:u}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(c,u){this.model={address:c.address,type:l.Types.Error,value:u}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((c,u)=>(c[u.t]=u.f,c),[]),create(c,u,p){let d=this.types[c];if(!d)throw new Error("Could not create Value of type "+c);return new d(u,p)}};i.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,i,o){"use strict";let e=t("../utils/under-dash"),n=t("./enums"),s=t("../utils/col-cache");class a{constructor(l,h,c){this._worksheet=l,this._number=h,c!==!1&&(this.defn=c)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:9,this.outlineLevel=l.outlineLevel,l.style?this.style=l.style:this.style={},this.header=l.header,this._hidden=!!l.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(l){l!==void 0?(this._header=l,this.headers.forEach((h,c)=>{this._worksheet.getCell(c+1,this.number).value=h})):this._header=void 0}get key(){return this._key}set key(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(l){this._hidden=l}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(l){this._outlineLevel=l}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&e.isEqual(this.style,l.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;let l=this.style;return!l||!(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection)}get headerCount(){return this.headers.length}eachCell(l,h){let c=this.number;h||(h=l,l=null),this._worksheet.eachRow(l,(u,p)=>{h(u.getCell(c),p)})}get values(){let l=[];return this.eachCell((h,c)=>{h&&h.type!==n.ValueType.Null&&(l[c]=h.value)}),l}set values(l){if(!l)return;let h=this.number,c=0;l.hasOwnProperty("0")&&(c=1),l.forEach((u,p)=>{this._worksheet.getCell(p+c,h).value=u})}_applyStyle(l,h){return this.style[l]=h,this.eachCell(c=>{c[l]=h}),h}get numFmt(){return this.style.numFmt}set numFmt(l){this._applyStyle("numFmt",l)}get font(){return this.style.font}set font(l){this._applyStyle("font",l)}get alignment(){return this.style.alignment}set alignment(l){this._applyStyle("alignment",l)}get protection(){return this.style.protection}set protection(l){this._applyStyle("protection",l)}get border(){return this.style.border}set border(l){this._applyStyle("border",l)}get fill(){return this.style.fill}set fill(l){this._applyStyle("fill",l)}static toModel(l){let h=[],c=null;return l&&l.forEach((u,p)=>{u.isDefault?c&&(c=null):c&&u.equivalentTo(c)?c.max=p+1:(c={min:p+1,max:p+1,width:u.width!==void 0?u.width:9,style:u.style,isCustomWidth:u.isCustomWidth,hidden:u.hidden,outlineLevel:u.outlineLevel,collapsed:u.collapsed},h.push(c))}),h.length?h:void 0}static fromModel(l,h){let c=[],u=1,p=0;for(h=(h=h||[]).sort((function(d,f){return d.min-f.min}));p{h.removeCellEx(l)})}forEach(l){e.each(this.matrixMap,(h,c)=>{h.forEach(u=>{l(c,u)})})}getNames(l){return this.getNamesEx(n.decodeEx(l))}getNamesEx(l){return e.map(this.matrixMap,(h,c)=>h.findCellEx(l)&&c).filter(Boolean)}_explore(l,h){h.mark=!1;let{sheetName:c}=h,u=new a(h.row,h.col,h.row,h.col,c),p,d;function f(m,v){let x=l.findCellAt(c,m,h.col);return!(!x||!x.mark)&&(u[v]=m,x.mark=!1,!0)}for(d=h.row-1;f(d,"top");d--);for(d=h.row+1;f(d,"bottom");d++);function g(m,v){let x=[];for(d=u.top;d<=u.bottom;d++){let A=l.findCellAt(c,d,m);if(!A||!A.mark)return!1;x.push(A)}u[v]=m;for(let A=0;A{c.mark=!0}),{name:l,ranges:h.map(c=>c.mark&&this._explore(h,c)).filter(Boolean).map(c=>c.$shortRange)}):{name:l,ranges:[]}}normaliseMatrix(l,h){l.forEachInSheet(h,(c,u,p)=>{c&&(c.row===u&&c.col===p||(c.row=u,c.col=p,c.address=n.n2l(p)+u))})}spliceRows(l,h,c,u){e.each(this.matrixMap,p=>{p.spliceRows(l,h,c,u),this.normaliseMatrix(p,l)})}spliceColumns(l,h,c,u){e.each(this.matrixMap,p=>{p.spliceColumns(l,h,c,u),this.normaliseMatrix(p,l)})}get model(){return e.map(this.matrixMap,(l,h)=>this.getRanges(h,l)).filter(l=>l.ranges.length)}set model(l){let h=this.matrixMap={};l.forEach(c=>{let u=h[c.name]=new s;c.ranges.forEach(p=>{r.test(p.split("!").pop()||"")&&u.addCell(p)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,i,o){"use strict";i.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,i,o){"use strict";let e=t("../utils/col-cache"),n=t("./anchor");i.exports=class{constructor(s,a){this.worksheet=s,this.model=a}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(s){let{type:a,imageId:r,range:l,hyperlinks:h}=s;if(this.type=a,this.imageId=r,a==="image")if(typeof l=="string"){let c=e.decode(l);this.range={tl:new n(this.worksheet,{col:c.left,row:c.top},-1),br:new n(this.worksheet,{col:c.right,row:c.bottom},0),editAs:"oneCell"}}else this.range={tl:new n(this.worksheet,l.tl,0),br:l.br&&new n(this.worksheet,l.br,0),ext:l.ext,editAs:l.editAs,hyperlinks:h||l.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,i,o){"use strict";let e=t("../utils/under-dash");class n{constructor(a){this.note=a}get model(){let a=null;switch(typeof this.note){case"string":a={type:"note",note:{texts:[{text:this.note}]}};break;default:a={type:"note",note:this.note}}return e.deepMerge({},n.DEFAULT_CONFIGS,a)}set model(a){let{note:r}=a,{texts:l}=r;l.length===1&&Object.keys(l[0]).length===1?this.note=l[0].text:this.note=r}static fromModel(a){let r=new n;return r.model=a,r}}n.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},i.exports=n},{"../utils/under-dash":26}],10:[function(t,i,o){"use strict";let e=t("../utils/col-cache");class n{constructor(){this.decode(arguments)}setTLBR(a,r,l,h,c){if(arguments.length<4){let u=e.decodeAddress(a),p=e.decodeAddress(r);this.model={top:Math.min(u.row,p.row),left:Math.min(u.col,p.col),bottom:Math.max(u.row,p.row),right:Math.max(u.col,p.col),sheetName:l},this.setTLBR(u.row,u.col,p.row,p.col,c)}else this.model={top:Math.min(a,l),left:Math.min(r,h),bottom:Math.max(a,l),right:Math.max(r,h),sheetName:c}}decode(a){switch(a.length){case 5:this.setTLBR(a[0],a[1],a[2],a[3],a[4]);break;case 4:this.setTLBR(a[0],a[1],a[2],a[3]);break;case 3:this.setTLBR(a[0],a[1],a[2]);break;case 2:this.setTLBR(a[0],a[1]);break;case 1:{let r=a[0];if(r instanceof n)this.model={top:r.model.top,left:r.model.left,bottom:r.model.bottom,right:r.model.right,sheetName:r.sheetName};else if(r instanceof Array)this.decode(r);else if(r.top&&r.left&&r.bottom&&r.right)this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName};else{let l=e.decodeEx(r);l.top?this.model={top:l.top,left:l.left,bottom:l.bottom,right:l.right,sheetName:l.sheetName}:this.model={top:l.row,left:l.col,bottom:l.row,right:l.col,sheetName:l.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+a.length)}}get top(){return this.model.top||1}set top(a){this.model.top=a}get left(){return this.model.left||1}set left(a){this.model.left=a}get bottom(){return this.model.bottom||1}set bottom(a){this.model.bottom=a}get right(){return this.model.right||1}set right(a){this.model.right=a}get sheetName(){return this.model.sheetName}set sheetName(a){this.model.sheetName=a}get _serialisedSheetName(){let{sheetName:a}=this.model;return a?/^[a-zA-Z0-9]*$/.test(a)?a+"!":`'${a}'!`:""}expand(a,r,l,h){(!this.model.top||athis.bottom)&&(this.bottom=l),(!this.model.right||h>this.right)&&(this.right=h)}expandRow(a){if(a){let{dimensions:r,number:l}=a;r&&this.expand(l,r.min,l,r.max)}}expandToAddress(a){let r=e.decodeEx(a);this.expand(r.row,r.col,r.row,r.col)}get tl(){return e.n2l(this.left)+this.top}get $t$l(){return`$${e.n2l(this.left)}$${this.top}`}get br(){return e.n2l(this.right)+this.bottom}get $b$r(){return`$${e.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(a){return(!a.sheetName||!this.sheetName||a.sheetName===this.sheetName)&&!(a.bottomthis.bottom)&&!(a.rightthis.right)}contains(a){let r=e.decodeEx(a);return this.containsEx(r)}containsEx(a){return(!a.sheetName||!this.sheetName||a.sheetName===this.sheetName)&&a.row>=this.top&&a.row<=this.bottom&&a.col>=this.left&&a.col<=this.right}forEachAddress(a){for(let r=this.left;r<=this.right;r++)for(let l=this.top;l<=this.bottom;l++)a(e.encodeAddress(l,r),l,r)}}i.exports=n},{"../utils/col-cache":19}],11:[function(t,i,o){"use strict";let e=t("../utils/under-dash"),n=t("./enums"),s=t("../utils/col-cache"),a=t("./cell");i.exports=class{constructor(r,l){this._worksheet=r,this._number=l,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(r){return this._cells[r-1]}getCellEx(r){let l=this._cells[r.col-1];if(!l){let h=this._worksheet.getColumn(r.col);l=new a(this,h,r.address),this._cells[r.col-1]=l}return l}getCell(r){if(typeof r=="string"){let l=this._worksheet.getColumnKey(r);r=l?l.number:s.l2n(r)}return this._cells[r-1]||this.getCellEx({address:s.encodeAddress(this._number,r),row:this._number,col:r})}splice(r,l){let h=r+l;for(var c=arguments.length,u=new Array(c>2?c-2:0),p=2;p0)for(g=f;g>=h;g--)m=this._cells[g-1],m?(v=this.getCell(g+d),v.value=m.value,v.style=m.style,v._comment=m._comment):this._cells[g+d-1]=void 0;for(g=0;g{h&&h.type!==n.ValueType.Null&&l(h,c+1)})}addPageBreak(r,l){let h=this._worksheet,c=Math.max(0,r-1)||0,u=Math.max(0,l-1)||16838,p={id:this._number,max:u,man:1};c&&(p.min=c),h.rowBreaks.push(p)}get values(){let r=[];return this._cells.forEach(l=>{l&&l.type!==n.ValueType.Null&&(r[l.col]=l.value)}),r}set values(r){if(this._cells=[],r)if(r instanceof Array){let l=0;r.hasOwnProperty("0")&&(l=1),r.forEach((h,c)=>{h!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,c+l),row:this._number,col:c+l}).value=h)})}else this._worksheet.eachColumnKey((l,h)=>{r[h]!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,l.number),row:this._number,col:l.number}).value=r[h])})}get hasValues(){return e.some(this._cells,r=>r&&r.type!==n.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let r=0;return this.eachCell(()=>{r++}),r}get dimensions(){let r=0,l=0;return this._cells.forEach(h=>{h&&h.type!==n.ValueType.Null&&((!r||r>h.col)&&(r=h.col),l0?{min:r,max:l}:null}_applyStyle(r,l){return this.style[r]=l,this._cells.forEach(h=>{h&&(h[r]=l)}),l}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let r=[],l=0,h=0;return this._cells.forEach(c=>{if(c){let u=c.model;u&&((!l||l>c.col)&&(l=c.col),h{switch(h.type){case a.Types.Merge:break;default:{let c;if(h.address)c=s.decodeAddress(h.address);else if(l){let{row:u}=l,p=l.col+1;c={row:u,col:p,address:s.encodeAddress(u,p),$col$row:`$${s.n2l(p)}$${u}`}}l=c,this.getCellEx(c).model=h;break}}}),r.height?this.height=r.height:delete this.height,this.hidden=r.hidden,this.outlineLevel=r.outlineLevel||0,this.style=r.style&&JSON.parse(JSON.stringify(r.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,i,o){"use strict";let e=t("../utils/col-cache");class n{constructor(a,r,l){this.table=a,this.column=r,this.index=l}_set(a,r){this.table.cacheState(),this.column[a]=r}get name(){return this.column.name}set name(a){this._set("name",a)}get filterButton(){return this.column.filterButton}set filterButton(a){this.column.filterButton=a}get style(){return this.column.style}set style(a){this.column.style=a}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(a){this._set("totalsRowLabel",a)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(a){this._set("totalsRowFunction",a)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(a){this._set("totalsRowResult",a)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(a){this._set("totalsRowFormula",a)}}i.exports=class{constructor(s,a){this.worksheet=s,a&&(this.table=a,this.validate(),this.store())}getFormula(s){switch(s.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${s.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${s.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${s.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${s.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${s.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${s.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${s.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${s.name}])`;case"custom":return s.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+s.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){let{table:s}=this,a=(d,f,g)=>{d[f]===void 0&&(d[f]=g)};a(s,"headerRow",!0),a(s,"totalsRow",!1),a(s,"style",{}),a(s.style,"theme","TableStyleMedium2"),a(s.style,"showFirstColumn",!1),a(s.style,"showLastColumn",!1),a(s.style,"showRowStripes",!1),a(s.style,"showColumnStripes",!1);let r=(d,f)=>{if(!d)throw new Error(f)};r(s.ref,"Table must have ref"),r(s.columns,"Table must have column definitions"),r(s.rows,"Table must have row definitions"),s.tl=e.decodeAddress(s.ref);let{row:l,col:h}=s.tl;r(l>0,"Table must be on valid row"),r(h>0,"Table must be on valid col");let{width:c,filterHeight:u,tableHeight:p}=this;s.autoFilterRef=e.encode(l,h,l+u-1,h+c-1),s.tableRef=e.encode(l,h,l+p-1,h+c-1),s.columns.forEach((d,f)=>{r(d.name,`Column ${f} must have a name`),f===0?a(d,"totalsRowLabel","Total"):(a(d,"totalsRowFunction","none"),d.totalsRowFormula=this.getFormula(d))})}store(){let s=(u,p)=>{p&&Object.keys(p).forEach(d=>{u[d]=p[d]})},{worksheet:a,table:r}=this,{row:l,col:h}=r.tl,c=0;if(r.headerRow){let u=a.getRow(l+c++);r.columns.forEach((p,d)=>{let{style:f,name:g}=p,m=u.getCell(h+d);m.value=g,s(m,f)})}if(r.rows.forEach(u=>{let p=a.getRow(l+c++);u.forEach((d,f)=>{let g=p.getCell(h+f);g.value=d,s(g,r.columns[f].style)})}),r.totalsRow){let u=a.getRow(l+c++);r.columns.forEach((p,d)=>{let f=u.getCell(h+d);if(d===0)f.value=p.totalsRowLabel;else{let g=this.getFormula(p);f.value=g?{formula:p.totalsRowFormula,result:p.totalsRowResult}:null}s(f,p.style)})}}load(s){let{table:a}=this,{row:r,col:l}=a.tl,h=0;if(a.headerRow){let c=s.getRow(r+h++);a.columns.forEach((u,p)=>{c.getCell(l+p).value=u.name})}if(a.rows.forEach(c=>{let u=s.getRow(r+h++);c.forEach((p,d)=>{u.getCell(l+d).value=p})}),a.totalsRow){let c=s.getRow(r+h++);a.columns.forEach((u,p)=>{let d=c.getCell(l+p);p===0?d.value=u.totalsRowLabel:this.getFormula(u)&&(d.value={formula:u.totalsRowFormula,result:u.totalsRowResult})})}}get model(){return this.table}set model(s){this.table=s}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();let s=e.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let a=0;a1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(s,a)}getColumn(s){let a=this.table.columns[s];return new n(this,a,s)}addColumn(s,a,r){this.cacheState(),r===void 0?(this.table.columns.push(s),this.table.rows.forEach((l,h)=>{l.push(a[h])})):(this.table.columns.splice(r,0,s),this.table.rows.forEach((l,h)=>{l.splice(r,0,a[h])}))}removeColumns(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(s,a),this.table.rows.forEach(r=>{r.splice(s,a)})}_assign(s,a,r){this.cacheState(),s[a]=r}get ref(){return this.table.ref}set ref(s){this._assign(this.table,"ref",s)}get name(){return this.table.name}set name(s){this.table.name=s}get displayName(){return this.table.displyName||this.table.name}set displayNamename(s){this.table.displayName=s}get headerRow(){return this.table.headerRow}set headerRow(s){this._assign(this.table,"headerRow",s)}get totalsRow(){return this.table.totalsRow}set totalsRow(s){this._assign(this.table,"totalsRow",s)}get theme(){return this.table.style.name}set theme(s){this.table.style.name=s}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(s){this.table.style.showFirstColumn=s}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(s){this.table.style.showLastColumn=s}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(s){this.table.style.showRowStripes=s}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(s){this.table.style.showColumnStripes=s}}},{"../utils/col-cache":19}],13:[function(t,i,o){"use strict";let e=t("./worksheet"),n=t("./defined-names"),s=t("../xlsx/xlsx"),a=t("../csv/csv");i.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new n}get xlsx(){return this._xlsx||(this._xlsx=new s(this)),this._xlsx}get csv(){return this._csv||(this._csv=new a(this)),this._csv}get nextId(){for(let r=1;r(f&&f.orderNo)>d?f.orderNo:d,0),u=Object.assign({},l,{id:h,name:r,orderNo:c+1,workbook:this}),p=new e(u);return this._worksheets[h]=p,p}removeWorksheetEx(r){delete this._worksheets[r.id]}removeWorksheet(r){let l=this.getWorksheet(r);l&&l.destroy()}getWorksheet(r){return r===void 0?this._worksheets.find(Boolean):typeof r=="number"?this._worksheets[r]:typeof r=="string"?this._worksheets.find(l=>l&&l.name===r):void 0}get worksheets(){return this._worksheets.slice(1).sort((r,l)=>r.orderNo-l.orderNo).filter(Boolean)}eachSheet(r){this.worksheets.forEach(l=>{r(l,l.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(r){let l=this.media.length;return this.media.push(Object.assign({},r,{type:"image"})),l}getImage(r){return this.media[r]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(r=>r.model),sheets:this.worksheets.map(r=>r.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(r){this.creator=r.creator,this.lastModifiedBy=r.lastModifiedBy,this.lastPrinted=r.lastPrinted,this.created=r.created,this.modified=r.modified,this.company=r.company,this.manager=r.manager,this.title=r.title,this.subject=r.subject,this.keywords=r.keywords,this.category=r.category,this.description=r.description,this.language=r.language,this.revision=r.revision,this.contentStatus=r.contentStatus,this.properties=r.properties,this.calcProperties=r.calcProperties,this._worksheets=[],r.worksheets.forEach(l=>{let{id:h,name:c,state:u}=l,p=r.sheets&&r.sheets.findIndex(d=>d.id===h);(this._worksheets[h]=new e({id:h,name:c,orderNo:p,state:u,workbook:this})).model=l}),this._definedNames.model=r.definedNames,this.views=r.views,this._themes=r.themes,this.media=r.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,i,o){"use strict";let e=t("../utils/under-dash"),n=t("../utils/col-cache"),s=t("./range"),a=t("./row"),r=t("./column"),l=t("./enums"),h=t("./image"),c=t("./table"),u=t("./data-validations"),p=t("../utils/encryptor"),{copyStyle:d}=t("../utils/copy-style");i.exports=class{constructor(f){f=f||{},this._workbook=f.workbook,this.id=f.id,this.orderNo=f.orderNo,this.name=f.name,this.state=f.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},f.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!f.pageSetup||!f.pageSetup.fitToWidth&&!f.pageSetup.fitToHeight||f.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},f.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},f.headerFooter),this.dataValidations=new u,this.views=f.views||[],this.autoFilter=f.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(f){if(f===void 0&&(f="sheet"+this.id),this._name!==f){if(typeof f!="string")throw new Error("The name has to be a string.");if(f==="")throw new Error("The name can't be empty.");if(f==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(f))throw new Error(`Worksheet name ${f} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(f))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+f);if(f&&f.length>31&&(console.warn(`Worksheet name ${f} exceeds 31 chars. This will be truncated`),f=f.substring(0,31)),this._workbook._worksheets.find(g=>g&&g.name.toLowerCase()===f.toLowerCase()))throw new Error("Worksheet name already exists: "+f);this._name=f}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let f=new s;return this._rows.forEach(g=>{if(g){let m=g.dimensions;m&&f.expand(g.number,m.min,g.number,m.max)}}),f}get columns(){return this._columns}set columns(f){this._headerRowCount=f.reduce((v,x)=>{let A=(x.header?1:x.headers&&x.headers.length)||0;return Math.max(v,A)},0);let g=1,m=this._columns=[];f.forEach(v=>{let x=new r(this,g++,!1);m.push(x),x.defn=v})}getColumnKey(f){return this._keys[f]}setColumnKey(f,g){this._keys[f]=g}deleteColumnKey(f){delete this._keys[f]}eachColumnKey(f){e.each(this._keys,f)}getColumn(f){if(typeof f=="string"){let g=this._keys[f];if(g)return g;f=n.l2n(f)}if(this._columns||(this._columns=[]),f>this._columns.length){let g=this._columns.length+1;for(;g<=f;)this._columns.push(new r(this,g++))}return this._columns[f-1]}spliceColumns(f,g){let m=this._rows.length;for(var v=arguments.length,x=new Array(v>2?v-2:0),A=2;A0)for(let I=0;I{j.push(R[I]||null)});let U=this.getRow(I+1);U.splice.apply(U,j)}else this._rows.forEach(I=>{I&&I.splice(f,g)});let D=x.length-g,F=f+g,O=this._columns.length;if(D<0)for(let I=f+x.length;I<=O;I++)this.getColumn(I).defn=this.getColumn(I-D).defn;else if(D>0)for(let I=O;I>=F;I--)this.getColumn(I+D).defn=this.getColumn(I).defn;for(let I=f;I{f=Math.max(f,g.cellCount)}),f}get actualColumnCount(){let f=[],g=0;return this.eachRow(m=>{m.eachCell(v=>{let{col:x}=v;f[x]||(f[x]=!0,g++)})}),g}_commitRow(){}get _lastRowNumber(){let f=this._rows,g=f.length;for(;g>0&&f[g-1]===void 0;)g--;return g}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(f){return this._rows[f-1]}findRows(f,g){return this._rows.slice(f-1,f-1+g)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let f=0;return this.eachRow(()=>{f++}),f}getRow(f){let g=this._rows[f-1];return g||(g=this._rows[f-1]=new a(this,f)),g}getRows(f,g){if(g<1)return;let m=[];for(let v=f;v1&&arguments[1]!==void 0?arguments[1]:"n",m=this._nextRow,v=this.getRow(m);return v.values=f,this._setStyleOption(m,g[0]==="i"?g:"n"),v}addRows(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",m=[];return f.forEach(v=>{m.push(this.addRow(v,g))}),m}insertRow(f,g){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(f,0,g),this._setStyleOption(f,m),this.getRow(f)}insertRows(f,g){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(f,0,...g),m!=="n")for(let v=0;v1&&arguments[1]!==void 0?arguments[1]:"n";g[0]==="o"&&this.findRow(f+1)!==void 0?this._copyStyle(f+1,f,g[1]==="+"):g[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f,g[1]==="+")}_copyStyle(f,g){let m=arguments.length>2&&arguments[2]!==void 0&&arguments[2],v=this.getRow(f),x=this.getRow(g);x.style=d(v.style),v.eachCell({includeEmpty:m},(A,D)=>{x.getCell(D).style=d(A.style)}),x.height=v.height}duplicateRow(f,g){let m=arguments.length>2&&arguments[2]!==void 0&&arguments[2],v=this._rows[f-1],x=new Array(g).fill(v.values);this.spliceRows(f+1,m?0:g,...x);for(let A=0;A{D.getCell(O).style=F.style})}}spliceRows(f,g){let m=f+g;for(var v=arguments.length,x=new Array(v>2?v-2:0),A=2;A{U.getCell(k).style=R.style}),this._rows[I-1]=void 0}else this._rows[I+F-1]=void 0;else if(F>0)for(I=O;I>=m;I--)if(j=this._rows[I-1],j){let U=this.getRow(I+F);U.values=j.values,U.style=j.style,U.height=j.height,j.eachCell({includeEmpty:!0},(R,k)=>{if(U.getCell(k).style=R.style,R._value.constructor.name==="MergeValue"){let S=this.getRow(R._row._number+D).getCell(k),P=R._value._master,b=this.getRow(P._row._number+D).getCell(P._column._number);S.merge(b)}})}else this._rows[I+F-1]=void 0;for(I=0;I{m&&m.hasValues&&g(m,m.number)})}getSheetValues(){let f=[];return this._rows.forEach(g=>{g&&(f[g.number]=g.values)}),f}findCell(f,g){let m=n.getAddress(f,g),v=this._rows[m.row-1];return v?v.findCell(m.col):void 0}getCell(f,g){let m=n.getAddress(f,g);return this.getRow(m.row).getCellEx(m)}mergeCells(){for(var f=arguments.length,g=new Array(f),m=0;m{if(v.intersects(f))throw new Error("Cannot merge already merged cells")});let m=this.getCell(f.top,f.left);for(let v=f.top;v<=f.bottom;v++)for(let x=f.left;x<=f.right;x++)(v>f.top||x>f.left)&&this.getCell(v,x).merge(m,g);this._merges[m.address]=f}_unMergeMaster(f){let g=this._merges[f.address];if(g){for(let m=g.top;m<=g.bottom;m++)for(let v=g.left;v<=g.right;v++)this.getCell(m,v).unmerge();delete this._merges[f.address]}}get hasMerges(){return e.some(this._merges,Boolean)}unMergeCells(){for(var f=arguments.length,g=new Array(f),m=0;m3&&arguments[3]!==void 0?arguments[3]:"shared",x=n.decode(f),{top:A,left:D,bottom:F,right:O}=x,I=O-D+1,j=n.encodeAddress(A,D),U=v==="shared",R;R=typeof m=="function"?m:Array.isArray(m)?Array.isArray(m[0])?(S,P)=>m[S-A][P-D]:(S,P)=>m[(S-A)*I+(P-D)]:()=>{};let k=!0;for(let S=A;S<=F;S++)for(let P=D;P<=O;P++)k?(this.getCell(S,P).value={shareType:v,formula:g,ref:f,result:R(S,P)},k=!1):this.getCell(S,P).value=U?{sharedFormula:j,result:R(S,P)}:R(S,P)}addImage(f,g){let m={type:"image",imageId:f,range:g};this._media.push(new h(this,m))}getImages(){return this._media.filter(f=>f.type==="image")}addBackgroundImage(f){let g={type:"background",imageId:f};this._media.push(new h(this,g))}getBackgroundImageId(){let f=this._media.find(g=>g.type==="background");return f&&f.imageId}protect(f,g){return new Promise(m=>{this.sheetProtection={sheet:!0},g&&"spinCount"in g&&(g.spinCount=Number.isFinite(g.spinCount)?Math.round(Math.max(0,g.spinCount)):1e5),f&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=p.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=g&&"spinCount"in g?g.spinCount:1e5,this.sheetProtection.hashValue=p.convertPasswordToHash(f,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),g&&(this.sheetProtection=Object.assign(this.sheetProtection,g),!f&&"spinCount"in g&&delete this.sheetProtection.spinCount),m()})}unprotect(){this.sheetProtection=null}addTable(f){let g=new c(this,f);return this.tables[f.name]=g,g}getTable(f){return this.tables[f]}removeTable(f){delete this.tables[f]}getTables(){return Object.values(this.tables)}addConditionalFormatting(f){this.conditionalFormattings.push(f)}removeConditionalFormatting(f){typeof f=="number"?this.conditionalFormattings.splice(f,1):this.conditionalFormattings=f instanceof Function?this.conditionalFormattings.filter(f):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(f){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=f}get model(){let f={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(v=>v.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(v=>v.model),conditionalFormattings:this.conditionalFormattings};f.cols=r.toModel(this.columns);let g=f.rows=[],m=f.dimensions=new s;return this._rows.forEach(v=>{let x=v&&v.model;x&&(m.expand(x.number,x.min,x.number,x.max),g.push(x))}),f.merges=[],e.each(this._merges,v=>{f.merges.push(v.range)}),f}_parseRows(f){this._rows=[],f.rows.forEach(g=>{let m=new a(this,g.number);this._rows[m.number-1]=m,m.model=g})}_parseMergeCells(f){e.each(f.mergeCells,g=>{this.mergeCellsWithoutStyle(g)})}set model(f){this.name=f.name,this._columns=r.fromModel(this,f.cols),this._parseRows(f),this._parseMergeCells(f),this.dataValidations=new u(f.dataValidations),this.properties=f.properties,this.pageSetup=f.pageSetup,this.headerFooter=f.headerFooter,this.views=f.views,this.autoFilter=f.autoFilter,this._media=f.media.map(g=>new h(this,g)),this.sheetProtection=f.sheetProtection,this.tables=f.tables.reduce((g,m)=>{let v=new c;return v.model=m,g[m.name]=v,g},{}),this.conditionalFormattings=f.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,i,o){"use strict";t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");let e={Workbook:t("./doc/workbook")},n=t("./doc/enums");Object.keys(n).forEach(s=>{e[s]=n[s]}),i.exports=e},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,i,o){"use strict";let e=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");o.bufferToString=function(n){return typeof n=="string"?n:e?e.decode(n):n.toString()}},{}],17:[function(t,i,o){"use strict";let e=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:n}=t("buffer");o.stringToBuffer=function(s){return typeof s!="string"?s:e?n.from(e.encode(s).buffer):n.from(s)}},{buffer:220}],18:[function(t,i,o){"use strict";let e=t("./under-dash"),n=t("./col-cache");i.exports=class{constructor(s){this.template=s,this.sheets={}}addCell(s){this.addCellEx(n.decodeEx(s))}getCell(s){return this.findCellEx(n.decodeEx(s),!0)}findCell(s){return this.findCellEx(n.decodeEx(s),!1)}findCellAt(s,a,r){let l=this.sheets[s],h=l&&l[a];return h&&h[r]}addCellEx(s){if(s.top)for(let a=s.top;a<=s.bottom;a++)for(let r=s.left;r<=s.right;r++)this.getCellAt(s.sheetName,a,r);else this.findCellEx(s,!0)}getCellEx(s){return this.findCellEx(s,!0)}findCellEx(s,a){let r=this.findSheet(s,a),l=this.findSheetRow(r,s,a);return this.findRowCell(l,s,a)}getCellAt(s,a,r){let l=this.sheets[s]||(this.sheets[s]=[]),h=l[a]||(l[a]=[]);return h[r]||(h[r]={sheetName:s,address:n.n2l(r)+a,row:a,col:r})}removeCellEx(s){let a=this.findSheet(s);if(!a)return;let r=this.findSheetRow(a,s);r&&delete r[s.col]}forEachInSheet(s,a){let r=this.sheets[s];r&&r.forEach((l,h)=>{l&&l.forEach((c,u)=>{c&&a(c,h,u)})})}forEach(s){e.each(this.sheets,(a,r)=>{this.forEachInSheet(r,s)})}map(s){let a=[];return this.forEach(r=>{a.push(s(r))}),a}findSheet(s,a){let r=s.sheetName;return this.sheets[r]?this.sheets[r]:a?this.sheets[r]=[]:void 0}findSheetRow(s,a,r){let{row:l}=a;return s&&s[l]?s[l]:r?s[l]=[]:void 0}findRowCell(s,a,r){let{col:l}=a;return s&&s[l]?s[l]:r?s[l]=this.template?Object.assign(a,JSON.parse(JSON.stringify(this.template))):a:void 0}spliceRows(s,a,r,l){let h=this.sheets[s];if(h){let c=[];for(let u=0;u{u.splice(a,r,...c)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,i,o){"use strict";let e=/^[A-Z]+\d+$/,n={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:s=>s<=26?1:s<=676?2:3,_fill(s){let a,r,l,h,c,u=1;if(s>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&s>=1){for(;u<=26;)a=this._dictionary[u-1],this._n2l[u]=a,this._l2n[a]=u,u++;this._l2nFill=1}if(this._l2nFill<2&&s>=2){for(u=27;u<=702;)r=u-27,l=r%26,h=Math.floor(r/26),a=this._dictionary[h]+this._dictionary[l],this._n2l[u]=a,this._l2n[a]=u,u++;this._l2nFill=2}if(this._l2nFill<3&&s>=3){for(u=703;u<=16384;)r=u-703,l=r%26,h=Math.floor(r/26)%26,c=Math.floor(r/676),a=this._dictionary[c]+this._dictionary[h]+this._dictionary[l],this._n2l[u]=a,this._l2n[a]=u,u++;this._l2nFill=3}},l2n(s){if(this._l2n[s]||this._fill(s.length),!this._l2n[s])throw new Error("Out of bounds. Invalid column letter: "+s);return this._l2n[s]},n2l(s){if(s<1||s>16384)throw new Error(s+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[s]||this._fill(this._level(s)),this._n2l[s]},_hash:{},validateAddress(s){if(!e.test(s))throw new Error("Invalid Address: "+s);return!0},decodeAddress(s){let a=s.length<5&&this._hash[s];if(a)return a;let r=!1,l="",h=0,c=!1,u="",p=0;for(let f,g=0;g=65&&f<=90)r=!0,l+=s[g],h=26*h+f-64;else if(f>=48&&f<=57)c=!0,u+=s[g],p=10*p+f-48;else if(c&&r&&f!==36)break;if(r){if(h>16384)throw new Error("Out of bounds. Invalid column letter: "+l)}else h=void 0;c||(p=void 0);let d={address:s=l+u,col:h,row:p,$col$row:`$${l}$${u}`};return h<=100&&p<=100&&(this._hash[s]=d,this._hash[d.$col$row]=d),d},getAddress(s,a){if(a){let r=this.n2l(a)+s;return this.decodeAddress(r)}return this.decodeAddress(s)},decode(s){let a=s.split(":");if(a.length===2){let r=this.decodeAddress(a[0]),l=this.decodeAddress(a[1]),h={top:Math.min(r.row,l.row),left:Math.min(r.col,l.col),bottom:Math.max(r.row,l.row),right:Math.max(r.col,l.col)};return h.tl=this.n2l(h.left)+h.top,h.br=this.n2l(h.right)+h.bottom,h.dimensions=`${h.tl}:${h.br}`,h}return this.decodeAddress(s)},decodeEx(s){let a=s.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=a[1]||a[2],l=a[3],h=l.split(":");if(h.length>1){let u=this.decodeAddress(h[0]),p=this.decodeAddress(h[1]),d=Math.min(u.row,p.row),f=Math.min(u.col,p.col),g=Math.max(u.row,p.row),m=Math.max(u.col,p.col);return u=this.n2l(f)+d,p=this.n2l(m)+g,{top:d,left:f,bottom:g,right:m,sheetName:r,tl:{address:u,col:f,row:d,$col$row:`$${this.n2l(f)}$${d}`,sheetName:r},br:{address:p,col:m,row:g,$col$row:`$${this.n2l(m)}$${g}`,sheetName:r},dimensions:`${u}:${p}`}}if(l.startsWith("#"))return r?{sheetName:r,error:l}:{error:l};let c=this.decodeAddress(l);return r?{sheetName:r,...c}:c},encodeAddress:(s,a)=>n.n2l(a)+s,encode(){switch(arguments.length){case 2:return n.encodeAddress(arguments[0],arguments[1]);case 4:return`${n.encodeAddress(arguments[0],arguments[1])}:${n.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(s,a){let[r,l,,h,c]=s,[u,p]=a;return u>=r&&u<=h&&p>=l&&p<=c}};i.exports=n},{}],20:[function(t,i,o){"use strict";let e=(s,a)=>({...s,...a.reduce((r,l)=>(s[l]&&(r[l]={...s[l]}),r),{})}),n=function(s,a,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];s[r]&&(a[r]=e(s[r],l))};o.copyStyle=s=>{if(!s)return s;if(a=s,Object.keys(a).length===0)return{};var a;let r={...s};return n(s,r,"font",["color"]),n(s,r,"alignment"),n(s,r,"protection"),s.border&&(n(s,r,"border"),n(s.border,r.border,"top",["color"]),n(s.border,r.border,"left",["color"]),n(s.border,r.border,"bottom",["color"]),n(s.border,r.border,"right",["color"]),n(s.border,r.border,"diagonal",["color"])),s.fill&&(n(s,r,"fill",["fgColor","bgColor","center"]),s.fill.stops&&(r.fill.stops=s.fill.stops.map(l=>e(l,["color"])))),r}},{}],21:[function(t,i,o){(function(e){(function(){"use strict";let n=t("crypto"),s={hash(a){let r=n.createHash(a);for(var l=arguments.length,h=new Array(l>1?l-1:0),c=1;cn.randomBytes(a)};i.exports=s}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,i,o){"use strict";let{SaxesParser:e}=t("saxes"),{PassThrough:n}=t("readable-stream"),{bufferToString:s}=t("./browser-buffer-decode");i.exports=async function*(a){a.pipe&&!a[Symbol.asyncIterator]&&(a=a.pipe(new n));let r=new e,l;r.on("error",c=>{l=c});let h=[];r.on("opentag",c=>h.push({eventType:"opentag",value:c})),r.on("text",c=>h.push({eventType:"text",value:c})),r.on("closetag",c=>h.push({eventType:"closetag",value:c}));for await(let c of a){if(r.write(s(c)),l)throw l;yield h,h=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,i,o){"use strict";let e=t("./col-cache"),n=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;i.exports={slideFormula:function(a,r,l){let h=e.decode(r),c=e.decode(l);return a.replace(n,(u,p,d,f,g)=>{if(g)return u;let m=s.exec(f);if(m){let v=m[1],x=m[2].toUpperCase(),A=m[3],D=m[4];if(x.length>3||x.length===3&&x>"XFD")return u;let F=e.l2n(x),O=parseInt(D,10);return v||(F+=c.col-h.col),A||(O+=c.row-h.row),(p||"")+(v||"")+e.n2l(F)+(A||"")+O}return u})}}},{"./col-cache":19}],24:[function(t,i,o){(function(e,n){(function(){"use strict";let s=t("readable-stream"),a=t("./utils"),r=t("./string-buf");class l{constructor(f,g){this._data=f,this._encoding=g}get length(){return this.toBuffer().length}copy(f,g,m,v){return this.toBuffer().copy(f,g,m,v)}toBuffer(){return this._buffer||(this._buffer=n.from(this._data,this._encoding)),this._buffer}}class h{constructor(f){this._data=f}get length(){return this._data.length}copy(f,g,m,v){return this._data._buf.copy(f,g,m,v)}toBuffer(){return this._data.toBuffer()}}class c{constructor(f){this._data=f}get length(){return this._data.length}copy(f,g,m,v){this._data.copy(f,g,m,v)}toBuffer(){return this._data}}class u{constructor(f){this.size=f,this.buffer=n.alloc(f),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let f=n.alloc(this.iWrite-this.iRead);return this.buffer.copy(f,0,this.iRead,this.iWrite),f}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(f){let g;return f===0?null:f===void 0||f>=this.length?(g=this.toBuffer(),this.iRead=this.iWrite,g):(g=n.alloc(f),this.buffer.copy(g,0,this.iRead,f),this.iRead+=f,g)}write(f,g,m){let v=Math.min(m,this.size-this.iWrite);return f.copy(this.buffer,this.iWrite,g,g+v),this.iWrite+=v,v}}let p=function(d){d=d||{},this.bufSize=d.bufSize||1048576,this.buffers=[],this.batch=d.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};a.inherits(p,s.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map(d=>d.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let f=this.buffers[this.buffers.length-1];if(!f.full)return f}let d=new u(this.bufSize);return this.buffers.push(d),d},async _pipe(d){await Promise.all(this.pipes.map((function(f){return new Promise(g=>{f.write(d.toBuffer(),()=>{g()})})})))},_writeToBuffers(d){let f=0,g=d.length;for(;f1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(m),e.nextTick(g)):(await this._pipe(m),g());else this.paused||this.emit("data",m.toBuffer()),this._writeToBuffers(m),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(d,f,g){let m=v=>{v?g(v):(this._flush(),this.pipes.forEach(x=>{x.end()}),this.emit("finish"))};d?this.write(d,f,m):m()},read(d){let f;if(d){for(f=[];d&&this.buffers.length&&!this.buffers[0].eod;){let g=this.buffers[0],m=g.read(d);d-=m.length,f.push(m),g.eod&&g.full&&this.buffers.shift()}return n.concat(f)}return f=this.buffers.map(g=>g.toBuffer()).filter(Boolean),this.buffers=[],n.concat(f)},setEncoding(d){this.encoding=d},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(d){this.pipes.push(d),!this.paused&&this.buffers.length&&this.end()},unpipe(d){this.pipes=this.pipes.filter(f=>f!==d)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),i.exports=p}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,i,o){(function(e){(function(){"use strict";i.exports=class{constructor(n){this._buf=e.alloc(n&&n.size||16384),this._encoding=n&&n.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(n){n=n||0,this._buffer=void 0,this._inPos=n}_grow(n){let s=2*this._buf.length;for(;s=this._buf.length-4;)this._grow(this._inPos+n.length),s=this._inPos+this._buf.write(n,this._inPos,this._encoding);this._inPos=s}addStringBuf(n){n.length&&(this._buffer=void 0,this.length+n.length>this.capacity&&this._grow(this.length+n.length),n._buf.copy(this._buf,this._inPos,0,n.length),this._inPos+=n.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,i,o){"use strict";let{toString:e}=Object.prototype,n=/["&<>]/,s={each:function(a,r){a&&(Array.isArray(a)?a.forEach(r):Object.keys(a).forEach(l=>{r(a[l],l)}))},some:function(a,r){return!!a&&(Array.isArray(a)?a.some(r):Object.keys(a).some(l=>r(a[l],l)))},every:function(a,r){return!a||(Array.isArray(a)?a.every(r):Object.keys(a).every(l=>r(a[l],l)))},map:function(a,r){return a?Array.isArray(a)?a.map(r):Object.keys(a).map(l=>r(a[l],l)):[]},keyBy:(a,r)=>a.reduce((l,h)=>(l[h[r]]=h,l),{}),isEqual:function(a,r){let l=typeof a,h=typeof r,c=Array.isArray(a),u=Array.isArray(r),p;if(l!==h)return!1;switch(typeof a){case"object":if(c||u)return!(!c||!u)&&a.length===r.length&&a.every((d,f)=>{let g=r[f];return s.isEqual(d,g)});if(a===null||r===null)return a===r;if(p=Object.keys(a),Object.keys(r).length!==p.length)return!1;for(let d of p)if(!r.hasOwnProperty(d))return!1;return s.every(a,(d,f)=>{let g=r[f];return s.isEqual(d,g)});default:return a===r}},escapeHtml(a){let r=n.exec(a);if(!r)return a;let l="",h="",c=0,u=r.index;for(;u":h=">";break;default:continue}c!==u&&(l+=a.substring(c,u)),c=u+1,l+=h}return c!==u?l+a.substring(c,u):l},strcmp:(a,r)=>ar?1:0,isUndefined:a=>e.call(a)==="[object Undefined]",isObject:a=>e.call(a)==="[object Object]",deepMerge(){let a=arguments[0]||{},{length:r}=arguments,l,h,c;function u(p,d){l=a[d],c=Array.isArray(p),s.isObject(p)||c?(c?(c=!1,h=l&&Array.isArray(l)?l:[]):h=l&&s.isObject(l)?l:{},a[d]=s.deepMerge(h,p)):s.isUndefined(p)||(a[d]=p)}for(let p=0;p&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,r={nop(){},promiseImmediate:l=>new Promise(h=>{e.setImmediate?n(()=>{h(l)}):setTimeout(()=>{h(l)},1)}),inherits:function(l,h,c,u){l.super_=h,u||(u=c,c=null),c&&Object.keys(c).forEach(d=>{Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(c,d))});let p={constructor:{value:l,enumerable:!1,writable:!1,configurable:!0}};u&&Object.keys(u).forEach(d=>{p[d]=Object.getOwnPropertyDescriptor(u,d)}),l.prototype=Object.create(h.prototype,p)},dateToExcel:(l,h)=>25569+l.getTime()/864e5-(h?1462:0),excelToDate(l,h){let c=Math.round(24*(l-25569+(h?1462:0))*3600*1e3);return new Date(c)},parsePath(l){let h=l.lastIndexOf("/");return{path:l.substring(0,h),name:l.substring(h+1)}},getRelsPath(l){let h=r.parsePath(l);return`${h.path}/_rels/${h.name}.rels`},xmlEncode(l){let h=a.exec(l);if(!h)return l;let c="",u="",p=0,d=h.index;for(;d=11&&f!==13)){u="";break}continue}p!==d&&(c+=l.substring(p,d)),p=d+1,u&&(c+=u)}return p!==d?c+l.substring(p,d):c},xmlDecode:l=>l.replace(/&([a-z]*);/g,h=>{switch(h){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return h}}),validInt(l){let h=parseInt(l,10);return Number.isNaN(h)?0:h},isDateFmt(l){return l?(l=(l=l.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:l=>new Promise(h=>{s.access(l,s.constants.F_OK,c=>{h(!c)})})},toIsoDateString:l=>l.toIsoString().subsstr(0,10),parseBoolean:l=>l===!0||l==="true"||l===1||l==="1"};i.exports=r}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,i,o){"use strict";let e=t("./under-dash"),n=t("./utils");function s(l,h,c){l.push(` ${h}="${n.xmlEncode(c.toString())}"`)}function a(l,h){if(h){let c=[];e.each(h,(u,p)=>{u!==void 0&&s(c,p,u)}),l.push(c.join(""))}}class r{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(h){let c=this._xml;c.push(" +`)}openNode(h,c){let u=this.tos,p=this._xml;u&&this.open&&p.push(">"),this._stack.push(h),p.push("<"),p.push(h),a(p,c),this.leaf=!0,this.open=!0}addAttribute(h,c){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");c!==void 0&&s(this._xml,h,c)}addAttributes(h){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");a(this._xml,h)}writeText(h){let c=this._xml;this.open&&(c.push(">"),this.open=!1),this.leaf=!1,c.push(n.xmlEncode(h.toString()))}writeXml(h){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(h)}closeNode(){let h=this._stack.pop(),c=this._xml;this.leaf?c.push("/>"):(c.push("")),this.open=!1,this.leaf=!1}leafNode(h,c,u){this.openNode(h,c),u!==void 0&&this.writeText(u),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){let h=this._rollbacks.pop();this._xml.length>h.xml&&this._xml.splice(h.xml,this._xml.length-h.xml),this._stack.length>h.stack&&this._stack.splice(h.stack,this._stack.length-h.stack),this.leaf=h.leaf,this.open=h.open}get xml(){return this.closeAll(),this._xml.join("")}}r.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},i.exports=r},{"./under-dash":26,"./utils":27}],29:[function(t,i,o){(function(e){(function(){"use strict";let n=t("events"),s=t("jszip"),a=t("./stream-buf"),{stringToBuffer:r}=t("./browser-buffer-encode");class l extends n.EventEmitter{constructor(c){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},c),this.zip=new s,this.stream=new a}append(c,u){u.hasOwnProperty("base64")&&u.base64?this.zip.file(u.name,c,{base64:!0}):(e.browser&&typeof c=="string"&&(c=r(c)),this.zip.file(u.name,c))}async finalize(){let c=await this.zip.generateAsync(this.options);this.stream.end(c),this.emit("finish")}read(c){return this.stream.read(c)}setEncoding(c){return this.stream.setEncoding(c)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(c,u){return this.stream.pipe(c,u)}unpipe(c){return this.stream.unpipe(c)}unshift(c){return this.stream.unshift(c)}wrap(c){return this.stream.wrap(c)}}i.exports={ZipWriter:l}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,i,o){"use strict";i.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},28:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ja-jp":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":'yyyy"\uB144" mm"\uC6D4" dd"\uC77C"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65F6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uC2DC" mm"\uBD84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79D2"',"ko-kr":'h"\uC2DC" mm"\uBD84" ss"\uCD08"'},34:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},51:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},58:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(t,i,o){"use strict";i.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(t,i,o){"use strict";let e=t("../../utils/parse-sax"),n=t("../../utils/xml-stream");class s{prepare(){}render(){}parseOpen(r){}parseText(r){}parseClose(r){}reconcile(r,l){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(r=>{r instanceof s?r.reset():r.xform&&r.xform.reset()})}mergeModel(r){this.model=Object.assign(this.model||{},r)}async parse(r){for await(let l of r)for(let{eventType:h,value:c}of l)if(h==="opentag")this.parseOpen(c);else if(h==="text")this.parseText(c);else if(h==="closetag"&&!this.parseClose(c.name))return this.model;return this.model}async parseStream(r){return this.parse(e(r))}get xml(){return this.toXml(this.model)}toXml(r){let l=new n;return this.render(l,r),l.xml}static toAttribute(r,l){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(r===void 0){if(h)return l}else if(h||r!==l)return r.toString()}static toStringAttribute(r,l){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(r,l,h)}static toStringValue(r,l){return r===void 0?l:r}static toBoolAttribute(r,l){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(r===void 0){if(h)return l}else if(h||r!==l)return r?"1":"0"}static toBoolValue(r,l){return r===void 0?l:r==="1"}static toIntAttribute(r,l){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(r,l,h)}static toIntValue(r,l){return r===void 0?l:parseInt(r,10)}static toFloatAttribute(r,l){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(r,l,h)}static toFloatValue(r,l){return r===void 0?l:parseFloat(r)}}i.exports=s},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("../../../utils/col-cache");function s(r){try{return n.decodeEx(r),!0}catch{return!1}}function a(r){let l=[],h=!1,c="";return r.split(",").forEach(u=>{if(!u)return;let p=(u.match(/'/g)||[]).length;if(!p)return void(h?c+=u+",":s(u)&&l.push(u));let d=p%2==0;!h&&d&&s(u)?l.push(u):h&&!d?(h=!1,s(c+u)&&l.push(c+u),c=""):(h=!0,c+=u+",")}),l}i.exports=class extends e{render(r,l){r.openNode("definedName",{name:l.name,localSheetId:l.localSheetId}),r.writeText(l.ranges.join(",")),r.closeNode()}parseOpen(r){switch(r.name){case"definedName":return this._parsedName=r.attributes.name,this._parsedLocalSheetId=r.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(r){this._parsedText.push(r)}parseClose(){return this.model={name:this._parsedName,ranges:a(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,i,o){"use strict";let e=t("../../../utils/utils"),n=t("../base-xform");i.exports=class extends n{render(s,a){s.leafNode("sheet",{sheetId:a.id,name:a.name,state:a.state,"r:id":a.rId})}parseOpen(s){return s.name==="sheet"&&(this.model={name:e.xmlDecode(s.attributes.name),id:parseInt(s.attributes.sheetId,10),state:s.attributes.state,rId:s.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{render(n,s){n.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:s.fullCalcOnLoad?1:void 0})}parseOpen(n){return n.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{render(n,s){n.leafNode("workbookPr",{date1904:s.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(n){return n.name==="workbookPr"&&(this.model={date1904:n.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{render(n,s){let a={xWindow:s.x||0,yWindow:s.y||0,windowWidth:s.width||12e3,windowHeight:s.height||24e3,firstSheet:s.firstSheet,activeTab:s.activeTab};s.visibility&&s.visibility!=="visible"&&(a.visibility=s.visibility),n.leafNode("workbookView",a)}parseOpen(n){if(n.name==="workbookView"){let s=this.model={},a=function(l,h,c){let u=h!==void 0?s[l]=h:c;u!==void 0&&(s[l]=u)},r=function(l,h,c){let u=h!==void 0?s[l]=parseInt(h,10):c;u!==void 0&&(s[l]=u)};return r("x",n.attributes.xWindow,0),r("y",n.attributes.yWindow,0),r("width",n.attributes.windowWidth,25e3),r("height",n.attributes.windowHeight,1e4),a("visibility",n.attributes.visibility,"visible"),r("activeTab",n.attributes.activeTab,void 0),r("firstSheet",n.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../../../utils/col-cache"),s=t("../../../utils/xml-stream"),a=t("../base-xform"),r=t("../static-xform"),l=t("../list-xform"),h=t("./defined-name-xform"),c=t("./sheet-xform"),u=t("./workbook-view-xform"),p=t("./workbook-properties-xform"),d=t("./workbook-calc-properties-xform");class f extends a{constructor(){super(),this.map={fileVersion:f.STATIC_XFORMS.fileVersion,workbookPr:new p,bookViews:new l({tag:"bookViews",count:!1,childXform:new u}),sheets:new l({tag:"sheets",count:!1,childXform:new c}),definedNames:new l({tag:"definedNames",count:!1,childXform:new h}),calcPr:new d}}prepare(m){m.sheets=m.worksheets;let v=[],x=0;m.sheets.forEach(A=>{if(A.pageSetup&&A.pageSetup.printArea&&A.pageSetup.printArea.split("&&").forEach(D=>{let F=D.split(":"),O={name:"_xlnm.Print_Area",ranges:[`'${A.name}'!$${F[0]}:$${F[1]}`],localSheetId:x};v.push(O)}),A.pageSetup&&(A.pageSetup.printTitlesRow||A.pageSetup.printTitlesColumn)){let D=[];if(A.pageSetup.printTitlesColumn){let O=A.pageSetup.printTitlesColumn.split(":");D.push(`'${A.name}'!$${O[0]}:$${O[1]}`)}if(A.pageSetup.printTitlesRow){let O=A.pageSetup.printTitlesRow.split(":");D.push(`'${A.name}'!$${O[0]}:$${O[1]}`)}let F={name:"_xlnm.Print_Titles",ranges:D,localSheetId:x};v.push(F)}x++}),v.length&&(m.definedNames=m.definedNames.concat(v)),(m.media||[]).forEach((A,D)=>{A.name=A.type+(D+1)})}render(m,v){m.openXml(s.StdDocAttributes),m.openNode("workbook",f.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(m),this.map.workbookPr.render(m,v.properties),this.map.bookViews.render(m,v.views),this.map.sheets.render(m,v.sheets),this.map.definedNames.render(m,v.definedNames),this.map.calcPr.render(m,v.calcProperties),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"workbook":return!0;default:return this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m),!0}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.parser=void 0),!0;switch(m){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(m){let v=(m.workbookRels||[]).reduce((O,I)=>(O[I.Id]=I,O),{}),x=[],A,D=0;(m.sheets||[]).forEach(O=>{let I=v[O.rId];I&&(A=m.worksheetHash["xl/"+I.Target.replace(/^(\s|\/xl\/)+/,"")],A&&(A.name=O.name,A.id=O.id,A.state=O.state,x[D++]=A))});let F=[];e.each(m.definedNames,O=>{if(O.name==="_xlnm.Print_Area"){if(A=x[O.localSheetId],A){A.pageSetup||(A.pageSetup={});let I=n.decodeEx(O.ranges[0]);A.pageSetup.printArea=A.pageSetup.printArea?`${A.pageSetup.printArea}&&${I.dimensions}`:I.dimensions}}else if(O.name==="_xlnm.Print_Titles"){if(A=x[O.localSheetId],A){A.pageSetup||(A.pageSetup={});let I=O.ranges.join(","),j=/\$/g,U=/\$\d+:\$\d+/,R=I.match(U);if(R&&R.length){let P=R[0];A.pageSetup.printTitlesRow=P.replace(j,"")}let k=/\$[A-Z]+:\$[A-Z]+/,S=I.match(k);if(S&&S.length){let P=S[0];A.pageSetup.printTitlesColumn=P.replace(j,"")}}}else F.push(O)}),m.definedNames=F,m.media.forEach((O,I)=>{O.index=I})}}f.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},f.STATIC_XFORMS={fileVersion:new r({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},i.exports=f},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(t,i,o){"use strict";let e=t("../strings/rich-text-xform"),n=t("../../../utils/utils"),s=t("../base-xform"),a=i.exports=function(r){this.model=r};n.inherits(a,s,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new e),this._richTextXform},render(r,l){l=l||this.model,r.openNode("comment",{ref:l.ref,authorId:0}),r.openNode("text"),l&&l.note&&l.note.texts&&l.note.texts.forEach(h=>{this.richTextXform.render(r,h)}),r.closeNode(),r.closeNode()},parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"comment":return this.model={type:"note",note:{texts:[]},...r.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(r),!0;default:return!1}},parseText(r){this.parser&&this.parser.parseText(r)},parseClose(r){switch(r){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../../../utils/utils"),s=t("../base-xform"),a=t("./comment-xform"),r=i.exports=function(){this.map={comment:new a}};n.inherits(r,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(l,h){h=h||this.model,l.openXml(e.StdDocAttributes),l.openNode("comments",r.COMMENTS_ATTRIBUTES),l.openNode("authors"),l.leafNode("author",null,"Author"),l.closeNode(),l.openNode("commentList"),h.comments.forEach(c=>{this.map.comment.render(l,c)}),l.closeNode(),l.closeNode()},parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(l),!0;default:return!1}},parseText(l){this.parser&&this.parser.parseText(l)},parseClose(l){switch(l){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(l),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,i,o){"use strict";let e=t("../../base-xform");i.exports=class extends e{constructor(n){super(),this._model=n}get tag(){return this._model&&this._model.tag}render(n,s,a){(s===a[2]||this.tag==="x:SizeWithCells"&&s===a[1])&&n.leafNode(this.tag)}parseOpen(n){switch(n.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(t,i,o){"use strict";let e=t("../../base-xform");i.exports=class extends e{constructor(n){super(),this._model=n}get tag(){return this._model&&this._model.tag}render(n,s){n.leafNode(this.tag,null,s)}parseOpen(n){switch(n.name){case this.tag:return this.text="",!0;default:return!1}}parseText(n){this.text=n}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"x:Anchor"}getAnchorRect(n){let s=Math.floor(n.left),a=Math.floor(68*(n.left-s)),r=Math.floor(n.top),l=Math.floor(18*(n.top-r)),h=Math.floor(n.right),c=Math.floor(68*(n.right-h)),u=Math.floor(n.bottom);return[s,a,r,l,h,c,u,Math.floor(18*(n.bottom-u))]}getDefaultRect(n){let s=n.col,a=Math.max(n.row-2,0);return[s,6,a,14,s+2,2,a+4,16]}render(n,s){let a=s.anchor?this.getAnchorRect(s.anchor):this.getDefaultRect(s.refAddress);n.leafNode("x:Anchor",null,a.join(", "))}parseOpen(n){switch(n.name){case this.tag:return this.text="",!0;default:return!1}}parseText(n){this.text=n}parseClose(){return!1}}},{"../base-xform":32}],44:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./vml-anchor-xform"),s=t("./style/vml-protection-xform"),a=t("./style/vml-position-xform"),r=["twoCells","oneCells","absolute"];i.exports=class extends e{constructor(){super(),this.map={"x:Anchor":new n,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new a({tag:"x:SizeWithCells"}),"x:MoveWithCells":new a({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(l,h){let{protection:c,editAs:u}=h.note;l.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(l,u,r),this.map["x:SizeWithCells"].render(l,u,r),this.map["x:Anchor"].render(l,h),this.map["x:Locked"].render(l,c.locked),l.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(l,c.lockText),l.leafNode("x:Row",null,h.refAddress.row-1),l.leafNode("x:Column",null,h.refAddress.col-1),l.closeNode()}parseOpen(l){switch(l.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){let l=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),h=Object.keys(l).length;this.model.editAs=r[h],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("./vml-shape-xform");class a extends n{constructor(){super(),this.map={"v:shape":new s}}get tag(){return"xml"}render(l,h){l.openXml(e.StdDocAttributes),l.openNode(this.tag,a.DRAWING_ATTRIBUTES),l.openNode("o:shapelayout",{"v:ext":"edit"}),l.leafNode("o:idmap",{"v:ext":"edit",data:1}),l.closeNode(),l.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),l.leafNode("v:stroke",{joinstyle:"miter"}),l.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),l.closeNode(),h.comments.forEach((c,u)=>{this.map["v:shape"].render(l,c,u)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}reconcile(l,h){l.anchors.forEach(c=>{c.br?this.map["xdr:twoCellAnchor"].reconcile(c,h):this.map["xdr:oneCellAnchor"].reconcile(c,h)})}}a.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},i.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./vml-textbox-xform"),s=t("./vml-client-data-xform");class a extends e{constructor(){super(),this.map={"v:textbox":new n,"x:ClientData":new s}}get tag(){return"v:shape"}render(l,h,c){l.openNode("v:shape",a.V_SHAPE_ATTRIBUTES(h,c)),l.leafNode("v:fill",{color2:"infoBackground [80]"}),l.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),l.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(l,h),this.map["x:ClientData"].render(l,h),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={margins:{insetmode:l.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}a.V_SHAPE_ATTRIBUTES=(r,l)=>({id:"_x0000_s"+(1025+l),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":r.note.margins&&r.note.margins.insetmode}),i.exports=a},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"v:textbox"}conversionUnit(n,s,a){return`${parseFloat(n)*s.toFixed(2)}${a}`}reverseConversionUnit(n){return(n||"").split(",").map(s=>Number(parseFloat(this.conversionUnit(parseFloat(s),.1,"")).toFixed(2)))}render(n,s){let a={style:"mso-direction-alt:auto"};if(s&&s.note){let{inset:r}=s.note&&s.note.margins;Array.isArray(r)&&(r=r.map(l=>this.conversionUnit(l,10,"mm")).join(",")),r&&(a.inset=r)}n.openNode("v:textbox",a),n.leafNode("div",{style:"text-align:left"}),n.closeNode()}parseOpen(n){switch(n.name){case this.tag:return this.model={inset:this.reverseConversionUnit(n.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(t,i,o){"use strict";let e=t("./base-xform");i.exports=class extends e{createNewModel(n){return{}}parseOpen(n){return this.parser=this.parser||this.map[n.name],this.parser?(this.parser.parseOpen(n),!0):n.name===this.tag&&(this.model=this.createNewModel(n),!0)}parseText(n){this.parser&&this.parser.parseText(n)}onParserClose(n,s){this.model[n]=s.model}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.onParserClose(n,this.parser),this.parser=void 0),!0):n!==this.tag}}},{"./base-xform":32}],49:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{render(n,s){n.openNode("HeadingPairs"),n.openNode("vt:vector",{size:2,baseType:"variant"}),n.openNode("vt:variant"),n.leafNode("vt:lpstr",void 0,"Worksheets"),n.closeNode(),n.openNode("vt:variant"),n.leafNode("vt:i4",void 0,s.length),n.closeNode(),n.closeNode(),n.closeNode()}parseOpen(n){return n.name==="HeadingPairs"}parseText(){}parseClose(n){return n!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{render(n,s){n.openNode("TitlesOfParts"),n.openNode("vt:vector",{size:s.length,baseType:"lpstr"}),s.forEach(a=>{n.leafNode("vt:lpstr",void 0,a.name)}),n.closeNode(),n.closeNode()}parseOpen(n){return n.name==="TitlesOfParts"}parseText(){}parseClose(n){return n!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("../simple/string-xform"),a=t("./app-heading-pairs-xform"),r=t("./app-titles-of-parts-xform");class l extends n{constructor(){super(),this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new a,TitleOfParts:new r}}render(c,u){c.openXml(e.StdDocAttributes),c.openNode("Properties",l.PROPERTY_ATTRIBUTES),c.leafNode("Application",void 0,"Microsoft Excel"),c.leafNode("DocSecurity",void 0,"0"),c.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(c,u.worksheets),this.map.TitleOfParts.render(c,u.worksheets),this.map.Company.render(c,u.company||""),this.map.Manager.render(c,u.manager),c.leafNode("LinksUpToDate",void 0,"false"),c.leafNode("SharedDoc",void 0,"false"),c.leafNode("HyperlinksChanged",void 0,"false"),c.leafNode("AppVersion",void 0,"16.0300"),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"Properties":return!0;default:return this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}l.DateFormat=function(h){return h.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},i.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../base-xform");class s extends n{render(r,l){r.openXml(e.StdDocAttributes),r.openNode("Types",s.PROPERTY_ATTRIBUTES);let h={};(l.media||[]).forEach(c=>{if(c.type==="image"){let u=c.extension;h[u]||(h[u]=!0,r.leafNode("Default",{Extension:u,ContentType:"image/"+u}))}}),r.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),r.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),r.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),l.worksheets.forEach(c=>{let u=`/xl/worksheets/sheet${c.id}.xml`;r.leafNode("Override",{PartName:u,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),r.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),r.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),l.sharedStrings&&l.sharedStrings.count&&r.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),l.tables&&l.tables.forEach(c=>{r.leafNode("Override",{PartName:"/xl/tables/"+c.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),l.drawings&&l.drawings.forEach(c=>{r.leafNode("Override",{PartName:`/xl/drawings/${c.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),l.commentRefs&&(r.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),l.commentRefs.forEach(c=>{let{commentName:u}=c;r.leafNode("Override",{PartName:`/xl/${u}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),r.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),r.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),r.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}s.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},i.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("../simple/date-xform"),a=t("../simple/string-xform"),r=t("../simple/integer-xform");class l extends n{constructor(){super(),this.map={"dc:creator":new a({tag:"dc:creator"}),"dc:title":new a({tag:"dc:title"}),"dc:subject":new a({tag:"dc:subject"}),"dc:description":new a({tag:"dc:description"}),"dc:identifier":new a({tag:"dc:identifier"}),"dc:language":new a({tag:"dc:language"}),"cp:keywords":new a({tag:"cp:keywords"}),"cp:category":new a({tag:"cp:category"}),"cp:lastModifiedBy":new a({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new r({tag:"cp:revision"}),"cp:version":new a({tag:"cp:version"}),"cp:contentStatus":new a({tag:"cp:contentStatus"}),"cp:contentType":new a({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(c,u){c.openXml(e.StdDocAttributes),c.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(c,u.creator),this.map["dc:title"].render(c,u.title),this.map["dc:subject"].render(c,u.subject),this.map["dc:description"].render(c,u.description),this.map["dc:identifier"].render(c,u.identifier),this.map["dc:language"].render(c,u.language),this.map["cp:keywords"].render(c,u.keywords),this.map["cp:category"].render(c,u.category),this.map["cp:lastModifiedBy"].render(c,u.lastModifiedBy),this.map["cp:lastPrinted"].render(c,u.lastPrinted),this.map["cp:revision"].render(c,u.revision),this.map["cp:version"].render(c,u.version),this.map["cp:contentStatus"].render(c,u.contentStatus),this.map["cp:contentType"].render(c,u.contentType),this.map["dcterms:created"].render(c,u.created),this.map["dcterms:modified"].render(c,u.modified),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[c.name],this.parser)return this.parser.parseOpen(c),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(c))}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+c)}}}l.DateFormat=function(h){return h.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},i.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{render(n,s){n.leafNode("Relationship",s)}parseOpen(n){switch(n.name){case"Relationship":return this.model=n.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("./relationship-xform");class a extends n{constructor(){super(),this.map={Relationship:new s}}render(l,h){h=h||this._values,l.openXml(e.StdDocAttributes),l.openNode("Relationships",a.RELATIONSHIPS_ATTRIBUTES),h.forEach(c=>{this.map.Relationship.render(l,c)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[l.name],this.parser)return this.parser.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(l){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+l)}}}a.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},i.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={range:{editAs:n.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}reconcilePicture(n,s){if(n&&n.rId){let a=s.rels[n.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(a){let r=a[1],l=s.mediaIndex[r];return s.media[l]}}}}},{"../base-xform":32}],57:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./blip-xform");i.exports=class extends e{constructor(){super(),this.map={"a:blip":new n}}get tag(){return"xdr:blipFill"}render(s,a){s.openNode(this.tag),this.map["a:blip"].render(s,a),s.openNode("a:stretch"),s.leafNode("a:fillRect"),s.closeNode(),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(){}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"a:blip"}render(n,s){n.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":s.rId,cstate:"print"})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"xdr:cNvPicPr"}render(n){n.openNode(this.tag),n.leafNode("a:picLocks",{noChangeAspect:"1"}),n.closeNode()}parseOpen(n){switch(n.name){case this.tag:default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./hlink-click-xform"),s=t("./ext-lst-xform");i.exports=class extends e{constructor(){super(),this.map={"a:hlinkClick":new n,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(a,r){a.openNode(this.tag,{id:r.index,name:"Picture "+r.index}),this.map["a:hlinkClick"].render(a,r),this.map["a:extLst"].render(a,r),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("../simple/integer-xform");i.exports=class extends e{constructor(s){super(),this.tag=s.tag,this.map={"xdr:col":new n({tag:"xdr:col",zero:!0}),"xdr:colOff":new n({tag:"xdr:colOff",zero:!0}),"xdr:row":new n({tag:"xdr:row",zero:!0}),"xdr:rowOff":new n({tag:"xdr:rowOff",zero:!0})}}render(s,a){s.openNode(this.tag),this.map["xdr:col"].render(s,a.nativeCol),this.map["xdr:colOff"].render(s,a.nativeColOff),this.map["xdr:row"].render(s,a.nativeRow),this.map["xdr:rowOff"].render(s,a.nativeRowOff),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,i,o){"use strict";let e=t("../../../utils/col-cache"),n=t("../../../utils/xml-stream"),s=t("../base-xform"),a=t("./two-cell-anchor-xform"),r=t("./one-cell-anchor-xform");class l extends s{constructor(){super(),this.map={"xdr:twoCellAnchor":new a,"xdr:oneCellAnchor":new r}}prepare(c){c.anchors.forEach((u,p)=>{u.anchorType=(function(d){return(typeof d.range=="string"?e.decode(d.range):d.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"})(u),this.map[u.anchorType].prepare(u,{index:p})})}get tag(){return"xdr:wsDr"}render(c,u){c.openXml(n.StdDocAttributes),c.openNode(this.tag,l.DRAWING_ATTRIBUTES),u.anchors.forEach(p=>{this.map[p.anchorType].render(c,p)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(c){case this.tag:return!1;default:return!0}}reconcile(c,u){c.anchors.forEach(p=>{p.br?this.map["xdr:twoCellAnchor"].reconcile(p,u):this.map["xdr:oneCellAnchor"].reconcile(p,u)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},i.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"a:extLst"}render(n){n.openNode(this.tag),n.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),n.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),n.closeNode(),n.closeNode()}parseOpen(n){switch(n.name){case this.tag:default:return!0}}parseText(){}parseClose(n){switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{constructor(n){super(),this.tag=n.tag,this.map={}}render(n,s){n.openNode(this.tag);let a=Math.floor(9525*s.width),r=Math.floor(9525*s.height);n.addAttribute("cx",a),n.addAttribute("cy",r),n.closeNode()}parseOpen(n){return n.name===this.tag&&(this.model={width:parseInt(n.attributes.cx||"0",10)/9525,height:parseInt(n.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"a:hlinkClick"}render(n,s){s.hyperlinks&&s.hyperlinks.rId&&n.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":s.hyperlinks.rId,tooltip:s.hyperlinks.tooltip})}parseOpen(n){switch(n.name){case this.tag:return this.model={hyperlinks:{rId:n.attributes["r:id"],tooltip:n.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./c-nv-pr-xform"),s=t("./c-nv-pic-pr-xform");i.exports=class extends e{constructor(){super(),this.map={"xdr:cNvPr":new n,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(a,r){a.openNode(this.tag),this.map["xdr:cNvPr"].render(a,r),this.map["xdr:cNvPicPr"].render(a,r),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,i,o){"use strict";let e=t("./base-cell-anchor-xform"),n=t("../static-xform"),s=t("./cell-position-xform"),a=t("./ext-xform"),r=t("./pic-xform");i.exports=class extends e{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new a({tag:"xdr:ext"}),"xdr:pic":new r,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(l,h){this.map["xdr:pic"].prepare(l.picture,h)}render(l,h){l.openNode(this.tag,{editAs:h.range.editAs||"oneCell"}),this.map["xdr:from"].render(l,h.range.tl),this.map["xdr:ext"].render(l,h.range.ext),this.map["xdr:pic"].render(l,h.picture),this.map["xdr:clientData"].render(l,{}),l.closeNode()}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(l,h){l.medium=this.reconcilePicture(l.picture,h)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("../static-xform"),s=t("./blip-fill-xform"),a=t("./nv-pic-pr-xform"),r=t("./sp-pr");i.exports=class extends e{constructor(){super(),this.map={"xdr:nvPicPr":new a,"xdr:blipFill":new s,"xdr:spPr":new n(r)}}get tag(){return"xdr:pic"}prepare(l,h){l.index=h.index+1}render(l,h){l.openNode(this.tag),this.map["xdr:nvPicPr"].render(l,h),this.map["xdr:blipFill"].render(l,h),this.map["xdr:spPr"].render(l,h),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,i,o){"use strict";i.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(t,i,o){"use strict";let e=t("./base-cell-anchor-xform"),n=t("../static-xform"),s=t("./cell-position-xform"),a=t("./pic-xform");i.exports=class extends e{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new a,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(r,l){this.map["xdr:pic"].prepare(r.picture,l)}render(r,l){r.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(r,l.range.tl),this.map["xdr:to"].render(r,l.range.br),this.map["xdr:pic"].render(r,l.picture),this.map["xdr:clientData"].render(r,{}),r.closeNode()}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(r,l){r.medium=this.reconcilePicture(r.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,i,o){"use strict";let e=t("./base-xform");i.exports=class extends e{constructor(n){super(),this.tag=n.tag,this.always=!!n.always,this.count=n.count,this.empty=n.empty,this.$count=n.$count||"count",this.$=n.$,this.childXform=n.childXform,this.maxItems=n.maxItems}prepare(n,s){let{childXform:a}=this;n&&n.forEach((r,l)=>{s.index=l,a.prepare(r,s)})}render(n,s){if(this.always||s&&s.length){n.openNode(this.tag,this.$),this.count&&n.addAttribute(this.$count,s&&s.length||0);let{childXform:a}=this;(s||[]).forEach((r,l)=>{a.render(n,r,l)}),n.closeNode()}else this.empty&&n.leafNode(this.tag)}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(n)&&(this.parser=this.childXform,!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(n,s){if(n){let{childXform:a}=this;n.forEach(r=>{a.reconcile(r,s)})}}}},{"./base-xform":32}],72:[function(t,i,o){"use strict";let e=t("../../../utils/col-cache"),n=t("../base-xform");i.exports=class extends n{get tag(){return"autoFilter"}render(s,a){if(a)if(typeof a=="string")s.leafNode("autoFilter",{ref:a});else{let r=function(c){return typeof c=="string"?c:e.getAddress(c.row,c.column).address},l=r(a.from),h=r(a.to);l&&h&&s.leafNode("autoFilter",{ref:`${l}:${h}`})}}parseOpen(s){s.name==="autoFilter"&&(this.model=s.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,i,o){"use strict";let e=t("../../../utils/utils"),n=t("../base-xform"),s=t("../../../doc/range"),a=t("../../../doc/enums"),r=t("../strings/rich-text-xform");function l(h){if(h==null)return a.ValueType.Null;if(h instanceof String||typeof h=="string")return a.ValueType.String;if(typeof h=="number")return a.ValueType.Number;if(typeof h=="boolean")return a.ValueType.Boolean;if(h instanceof Date)return a.ValueType.Date;if(h.text&&h.hyperlink)return a.ValueType.Hyperlink;if(h.formula)return a.ValueType.Formula;if(h.error)return a.ValueType.Error;throw new Error("I could not understand type of value")}i.exports=class extends n{constructor(){super(),this.richTextXForm=new r}get tag(){return"c"}prepare(h,c){let u=c.styles.addStyleModel(h.style||{},(function(p){switch(p.type){case a.ValueType.Formula:return l(p.result);default:return p.type}})(h));switch(u&&(h.styleId=u),h.comment&&c.comments.push({...h.comment,ref:h.address}),h.type){case a.ValueType.String:case a.ValueType.RichText:c.sharedStrings&&(h.ssId=c.sharedStrings.add(h.value));break;case a.ValueType.Date:c.date1904&&(h.date1904=!0);break;case a.ValueType.Hyperlink:c.sharedStrings&&h.text!==void 0&&h.text!==null&&(h.ssId=c.sharedStrings.add(h.text)),c.hyperlinks.push({address:h.address,target:h.hyperlink,tooltip:h.tooltip});break;case a.ValueType.Merge:c.merges.add(h);break;case a.ValueType.Formula:if(c.date1904&&(h.date1904=!0),h.shareType==="shared"&&(h.si=c.siFormulae++),h.formula)c.formulae[h.address]=h;else if(h.sharedFormula){let p=c.formulae[h.sharedFormula];if(!p)throw new Error("Shared Formula master must exist above and or left of clone for cell "+h.address);p.si===void 0?(p.shareType="shared",p.si=c.siFormulae++,p.range=new s(p.address,h.address)):p.range&&p.range.expandToAddress(h.address),h.si=p.si}}}renderFormula(h,c){let u=null;switch(c.shareType){case"shared":u={t:"shared",ref:c.ref||c.range.range,si:c.si};break;case"array":u={t:"array",ref:c.ref};break;default:c.si!==void 0&&(u={t:"shared",si:c.si})}switch(l(c.result)){case a.ValueType.Null:h.leafNode("f",u,c.formula);break;case a.ValueType.String:h.addAttribute("t","str"),h.leafNode("f",u,c.formula),h.leafNode("v",null,c.result);break;case a.ValueType.Number:h.leafNode("f",u,c.formula),h.leafNode("v",null,c.result);break;case a.ValueType.Boolean:h.addAttribute("t","b"),h.leafNode("f",u,c.formula),h.leafNode("v",null,c.result?1:0);break;case a.ValueType.Error:h.addAttribute("t","e"),h.leafNode("f",u,c.formula),h.leafNode("v",null,c.result.error);break;case a.ValueType.Date:h.leafNode("f",u,c.formula),h.leafNode("v",null,e.dateToExcel(c.result,c.date1904));break;default:throw new Error("I could not understand type of value")}}render(h,c){if(c.type!==a.ValueType.Null||c.styleId){switch(h.openNode("c"),h.addAttribute("r",c.address),c.styleId&&h.addAttribute("s",c.styleId),c.type){case a.ValueType.Null:break;case a.ValueType.Number:h.leafNode("v",null,c.value);break;case a.ValueType.Boolean:h.addAttribute("t","b"),h.leafNode("v",null,c.value?"1":"0");break;case a.ValueType.Error:h.addAttribute("t","e"),h.leafNode("v",null,c.value.error);break;case a.ValueType.String:case a.ValueType.RichText:c.ssId!==void 0?(h.addAttribute("t","s"),h.leafNode("v",null,c.ssId)):c.value&&c.value.richText?(h.addAttribute("t","inlineStr"),h.openNode("is"),c.value.richText.forEach(u=>{this.richTextXForm.render(h,u)}),h.closeNode("is")):(h.addAttribute("t","str"),h.leafNode("v",null,c.value));break;case a.ValueType.Date:h.leafNode("v",null,e.dateToExcel(c.value,c.date1904));break;case a.ValueType.Hyperlink:c.ssId!==void 0?(h.addAttribute("t","s"),h.leafNode("v",null,c.ssId)):(h.addAttribute("t","str"),h.leafNode("v",null,c.text));break;case a.ValueType.Formula:this.renderFormula(h,c);break;case a.ValueType.Merge:}h.closeNode()}}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"c":return this.model={address:h.attributes.r},this.t=h.attributes.t,h.attributes.s&&(this.model.styleId=parseInt(h.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=h.attributes.si,this.model.shareType=h.attributes.t,this.model.ref=h.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){if(this.parser)this.parser.parseText(h);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+h:h;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+h:h:this.model.value=this.model.value?this.model.value+h:h}}parseClose(h){switch(h){case"c":{let{model:c}=this;if(c.formula||c.shareType)c.type=a.ValueType.Formula,c.value&&(this.t==="str"?c.result=e.xmlDecode(c.value):this.t==="b"?c.result=parseInt(c.value,10)!==0:this.t==="e"?c.result={error:c.value}:c.result=parseFloat(c.value),c.value=void 0);else if(c.value!==void 0)switch(this.t){case"s":c.type=a.ValueType.String,c.value=parseInt(c.value,10);break;case"str":c.type=a.ValueType.String,c.value=e.xmlDecode(c.value);break;case"inlineStr":c.type=a.ValueType.String;break;case"b":c.type=a.ValueType.Boolean,c.value=parseInt(c.value,10)!==0;break;case"e":c.type=a.ValueType.Error,c.value={error:c.value};break;default:c.type=a.ValueType.Number,c.value=parseFloat(c.value)}else c.styleId?c.type=a.ValueType.Null:c.type=a.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(h),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(h),!0)}}reconcile(h,c){let u=h.styleId&&c.styles&&c.styles.getStyleModel(h.styleId);switch(u&&(h.style=u),h.styleId!==void 0&&(h.styleId=void 0),h.type){case a.ValueType.String:typeof h.value=="number"&&c.sharedStrings&&(h.value=c.sharedStrings.getString(h.value)),h.value.richText&&(h.type=a.ValueType.RichText);break;case a.ValueType.Number:u&&e.isDateFmt(u.numFmt)&&(h.type=a.ValueType.Date,h.value=e.excelToDate(h.value,c.date1904));break;case a.ValueType.Formula:h.result!==void 0&&u&&e.isDateFmt(u.numFmt)&&(h.result=e.excelToDate(h.result,c.date1904)),h.shareType==="shared"&&(h.ref?c.formulae[h.si]=h.address:(h.sharedFormula=c.formulae[h.si],delete h.shareType),delete h.si)}let p=c.hyperlinkMap[h.address];p&&(h.type===a.ValueType.Formula?(h.text=h.result,h.result=void 0):(h.text=h.value,h.value=void 0),h.type=a.ValueType.Hyperlink,h.hyperlink=p);let d=c.commentsMap&&c.commentsMap[h.address];d&&(h.comment=d)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,i,o){"use strict";let e=t("../../base-xform");i.exports=class extends e{get tag(){return"x14:cfIcon"}render(n,s){n.leafNode(this.tag,{iconSet:s.iconSet,iconId:s.iconId})}parseOpen(n){let{attributes:s}=n;this.model={iconSet:s.iconSet,iconId:e.toIntValue(s.iconId)}}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],75:[function(t,i,o){"use strict";let{v4:e}=t("uuid"),n=t("../../base-xform"),s=t("../../composite-xform"),a=t("./databar-ext-xform"),r=t("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class h extends s{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new a,"x14:iconSet":this.iconSetXform=new r}}get tag(){return"x14:cfRule"}static isExt(u){return u.type==="dataBar"?a.isExt(u):!(u.type!=="iconSet"||!u.custom&&!l[u.iconSet])}prepare(u){h.isExt(u)&&(u.x14Id=`{${e()}}`.toUpperCase())}render(u,p){if(h.isExt(p))switch(p.type){case"dataBar":this.renderDataBar(u,p);break;case"iconSet":this.renderIconSet(u,p)}}renderDataBar(u,p){u.openNode(this.tag,{type:"dataBar",id:p.x14Id}),this.databarXform.render(u,p),u.closeNode()}renderIconSet(u,p){u.openNode(this.tag,{type:"iconSet",priority:p.priority,id:p.x14Id||`{${e()}}`}),this.iconSetXform.render(u,p),u.closeNode()}createNewModel(u){let{attributes:p}=u;return{type:p.type,x14Id:p.id,priority:n.toIntValue(p.priority)}}onParserClose(u,p){Object.assign(this.model,p.model)}}i.exports=h},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,i,o){"use strict";let e=t("../../composite-xform"),n=t("./f-ext-xform");i.exports=class extends e{constructor(){super(),this.map={"xm:f":this.fExtXform=new n}}get tag(){return"x14:cfvo"}render(s,a){s.openNode(this.tag,{type:a.type}),a.value!==void 0&&this.fExtXform.render(s,a.value),s.closeNode()}createNewModel(s){return{type:s.attributes.type}}onParserClose(s,a){switch(s){case"xm:f":this.model.value=a.model?parseFloat(a.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,i,o){"use strict";let e=t("../../composite-xform"),n=t("./sqref-ext-xform"),s=t("./cf-rule-ext-xform");i.exports=class extends e{constructor(){super(),this.map={"xm:sqref":this.sqRef=new n,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(a,r){a.rules.forEach(l=>{this.cfRule.prepare(l,r)})}render(a,r){r.rules.some(s.isExt)&&(a.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),r.rules.filter(s.isExt).forEach(l=>this.cfRule.render(a,l)),this.sqRef.render(a,r.ref),a.closeNode())}createNewModel(){return{rules:[]}}onParserClose(a,r){switch(a){case"xm:sqref":this.model.ref=r.model;break;case"x14:cfRule":this.model.rules.push(r.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,i,o){"use strict";let e=t("../../composite-xform"),n=t("./cf-rule-ext-xform"),s=t("./conditional-formatting-ext-xform");i.exports=class extends e{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(a){return a.hasExtContent===void 0&&(a.hasExtContent=a.some(r=>r.rules.some(n.isExt))),a.hasExtContent}prepare(a,r){a.forEach(l=>{this.cfXform.prepare(l,r)})}render(a,r){this.hasContent(r)&&(a.openNode(this.tag),r.forEach(l=>this.cfXform.render(a,l)),a.closeNode())}createNewModel(){return[]}onParserClose(a,r){this.model.push(r.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,i,o){"use strict";let e=t("../../base-xform"),n=t("../../composite-xform"),s=t("../../style/color-xform"),a=t("./cfvo-ext-xform");i.exports=class extends n{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(r){return!r.gradient}get tag(){return"x14:dataBar"}render(r,l){r.openNode(this.tag,{minLength:e.toIntAttribute(l.minLength,0,!0),maxLength:e.toIntAttribute(l.maxLength,100,!0),border:e.toBoolAttribute(l.border,!1),gradient:e.toBoolAttribute(l.gradient,!0),negativeBarColorSameAsPositive:e.toBoolAttribute(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:e.toBoolAttribute(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:e.toAttribute(l.axisPosition,"auto"),direction:e.toAttribute(l.direction,"leftToRight")}),l.cfvo.forEach(h=>{this.cfvoXform.render(r,h)}),this.borderColorXform.render(r,l.borderColor),this.negativeBorderColorXform.render(r,l.negativeBorderColor),this.negativeFillColorXform.render(r,l.negativeFillColor),this.axisColorXform.render(r,l.axisColor),r.closeNode()}createNewModel(r){let{attributes:l}=r;return{cfvo:[],minLength:e.toIntValue(l.minLength,0),maxLength:e.toIntValue(l.maxLength,100),border:e.toBoolValue(l.border,!1),gradient:e.toBoolValue(l.gradient,!0),negativeBarColorSameAsPositive:e.toBoolValue(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:e.toBoolValue(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:e.toStringValue(l.axisPosition,"auto"),direction:e.toStringValue(l.direction,"leftToRight")}}onParserClose(r,l){let[,h]=r.split(":");switch(h){case"cfvo":this.model.cfvo.push(l.model);break;default:this.model[h]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,i,o){"use strict";let e=t("../../base-xform");i.exports=class extends e{get tag(){return"xm:f"}render(n,s){n.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(n){this.model+=n}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],81:[function(t,i,o){"use strict";let e=t("../../base-xform"),n=t("../../composite-xform"),s=t("./cfvo-ext-xform"),a=t("./cf-icon-ext-xform");i.exports=class extends n{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new a}}get tag(){return"x14:iconSet"}render(r,l){r.openNode(this.tag,{iconSet:e.toStringAttribute(l.iconSet),reverse:e.toBoolAttribute(l.reverse,!1),showValue:e.toBoolAttribute(l.showValue,!0),custom:e.toBoolAttribute(l.icons,!1)}),l.cfvo.forEach(h=>{this.cfvoXform.render(r,h)}),l.icons&&l.icons.forEach((h,c)=>{h.iconId=c,this.cfIconXform.render(r,h)}),r.closeNode()}createNewModel(r){let{attributes:l}=r;return{cfvo:[],iconSet:e.toStringValue(l.iconSet,"3TrafficLights"),reverse:e.toBoolValue(l.reverse,!1),showValue:e.toBoolValue(l.showValue,!0)}}onParserClose(r,l){let[,h]=r.split(":");switch(h){case"cfvo":this.model.cfvo.push(l.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(l.model);break;default:this.model[h]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,i,o){"use strict";let e=t("../../base-xform");i.exports=class extends e{get tag(){return"xm:sqref"}render(n,s){n.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(n){this.model+=n}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],83:[function(t,i,o){"use strict";let e=t("../../base-xform"),n=t("../../composite-xform"),s=t("../../../../doc/range"),a=t("./databar-xform"),r=t("./ext-lst-ref-xform"),l=t("./formula-xform"),h=t("./color-scale-xform"),c=t("./icon-set-xform"),u={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},p=f=>{let{type:g,operator:m}=f;switch(g){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:g};default:return{type:g,operator:m}}};class d extends n{constructor(){super(),this.map={dataBar:this.databarXform=new a,extLst:this.extLstRefXform=new r,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new h,iconSet:this.iconSetXform=new c}}get tag(){return"cfRule"}static isPrimitive(g){return g.type!=="iconSet"||!g.custom&&!u[g.iconSet]}render(g,m){switch(m.type){case"expression":this.renderExpression(g,m);break;case"cellIs":this.renderCellIs(g,m);break;case"top10":this.renderTop10(g,m);break;case"aboveAverage":this.renderAboveAverage(g,m);break;case"dataBar":this.renderDataBar(g,m);break;case"colorScale":this.renderColorScale(g,m);break;case"iconSet":this.renderIconSet(g,m);break;case"containsText":this.renderText(g,m);break;case"timePeriod":this.renderTimePeriod(g,m)}}renderExpression(g,m){g.openNode(this.tag,{type:"expression",dxfId:m.dxfId,priority:m.priority}),this.formulaXform.render(g,m.formulae[0]),g.closeNode()}renderCellIs(g,m){g.openNode(this.tag,{type:"cellIs",dxfId:m.dxfId,priority:m.priority,operator:m.operator}),m.formulae.forEach(v=>{this.formulaXform.render(g,v)}),g.closeNode()}renderTop10(g,m){g.leafNode(this.tag,{type:"top10",dxfId:m.dxfId,priority:m.priority,percent:e.toBoolAttribute(m.percent,!1),bottom:e.toBoolAttribute(m.bottom,!1),rank:e.toIntValue(m.rank,10,!0)})}renderAboveAverage(g,m){g.leafNode(this.tag,{type:"aboveAverage",dxfId:m.dxfId,priority:m.priority,aboveAverage:e.toBoolAttribute(m.aboveAverage,!0)})}renderDataBar(g,m){g.openNode(this.tag,{type:"dataBar",priority:m.priority}),this.databarXform.render(g,m),this.extLstRefXform.render(g,m),g.closeNode()}renderColorScale(g,m){g.openNode(this.tag,{type:"colorScale",priority:m.priority}),this.colorScaleXform.render(g,m),g.closeNode()}renderIconSet(g,m){d.isPrimitive(m)&&(g.openNode(this.tag,{type:"iconSet",priority:m.priority}),this.iconSetXform.render(g,m),g.closeNode())}renderText(g,m){g.openNode(this.tag,{type:m.operator,dxfId:m.dxfId,priority:m.priority,operator:e.toStringAttribute(m.operator,"containsText")});let v=(x=>{if(x.formulae&&x.formulae[0])return x.formulae[0];let A=new s(x.ref),{tl:D}=A;switch(x.operator){case"containsText":return`NOT(ISERROR(SEARCH("${x.text}",${D})))`;case"containsBlanks":return`LEN(TRIM(${D}))=0`;case"notContainsBlanks":return`LEN(TRIM(${D}))>0`;case"containsErrors":return`ISERROR(${D})`;case"notContainsErrors":return`NOT(ISERROR(${D}))`;default:return}})(m);v&&this.formulaXform.render(g,v),g.closeNode()}renderTimePeriod(g,m){g.openNode(this.tag,{type:"timePeriod",dxfId:m.dxfId,priority:m.priority,timePeriod:m.timePeriod});let v=(x=>{if(x.formulae&&x.formulae[0])return x.formulae[0];let A=new s(x.ref),{tl:D}=A;switch(x.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${D},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${D},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${D},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${D},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${D},1)=TODAY()-1`;case"today":return`FLOOR(${D},1)=TODAY()`;case"tomorrow":return`FLOOR(${D},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${D},1)<=6,FLOOR(${D},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0-1)),YEAR(${D})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${D})=MONTH(TODAY()),YEAR(${D})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0+1)),YEAR(${D})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(m);v&&this.formulaXform.render(g,v),g.closeNode()}createNewModel(g){let{attributes:m}=g;return{...p(m),dxfId:e.toIntValue(m.dxfId),priority:e.toIntValue(m.priority),timePeriod:m.timePeriod,percent:e.toBoolValue(m.percent),bottom:e.toBoolValue(m.bottom),rank:e.toIntValue(m.rank),aboveAverage:e.toBoolValue(m.aboveAverage)}}onParserClose(g,m){switch(g){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,m.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(m.model)}}}i.exports=d},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(t,i,o){"use strict";let e=t("../../base-xform");i.exports=class extends e{get tag(){return"cfvo"}render(n,s){n.leafNode(this.tag,{type:s.type,val:s.value})}parseOpen(n){this.model={type:n.attributes.type,value:e.toFloatValue(n.attributes.val)}}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],85:[function(t,i,o){"use strict";let e=t("../../composite-xform"),n=t("../../style/color-xform"),s=t("./cfvo-xform");i.exports=class extends e{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"colorScale"}render(a,r){a.openNode(this.tag),r.cfvo.forEach(l=>{this.cfvoXform.render(a,l)}),r.color.forEach(l=>{this.colorXform.render(a,l)}),a.closeNode()}createNewModel(a){return{cfvo:[],color:[]}}onParserClose(a,r){this.model[a].push(r.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,i,o){"use strict";let e=t("../../composite-xform"),n=t("./cf-rule-xform");i.exports=class extends e{constructor(){super(),this.map={cfRule:new n}}get tag(){return"conditionalFormatting"}render(s,a){a.rules.some(n.isPrimitive)&&(s.openNode(this.tag,{sqref:a.ref}),a.rules.forEach(r=>{n.isPrimitive(r)&&(r.ref=a.ref,this.map.cfRule.render(s,r))}),s.closeNode())}createNewModel(s){let{attributes:a}=s;return{ref:a.sqref,rules:[]}}onParserClose(s,a){this.model.rules.push(a.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,i,o){"use strict";let e=t("../../base-xform"),n=t("./conditional-formatting-xform");i.exports=class extends e{constructor(){super(),this.cfXform=new n}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(s,a){let r=s.reduce((l,h)=>Math.max(l,...h.rules.map(c=>c.priority||0)),1);s.forEach(l=>{l.rules.forEach(h=>{h.priority||(h.priority=r++),h.style&&(h.dxfId=a.styles.addDxfStyle(h.style))})})}render(s,a){a.forEach(r=>{this.cfXform.render(s,r)})}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(!!this.parser.parseClose(s)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(s,a){s.forEach(r=>{r.rules.forEach(l=>{l.dxfId!==void 0&&(l.style=a.styles.getDxfStyle(l.dxfId),delete l.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,i,o){"use strict";let e=t("../../composite-xform"),n=t("../../style/color-xform"),s=t("./cfvo-xform");i.exports=class extends e{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"dataBar"}render(a,r){a.openNode(this.tag),r.cfvo.forEach(l=>{this.cfvoXform.render(a,l)}),this.colorXform.render(a,r.color),a.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(a,r){switch(a){case"cfvo":this.model.cfvo.push(r.model);break;case"color":this.model.color=r.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,i,o){"use strict";let e=t("../../base-xform"),n=t("../../composite-xform");class s extends e{get tag(){return"x14:id"}render(l,h){l.leafNode(this.tag,null,h)}parseOpen(){this.model=""}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}class a extends n{constructor(){super(),this.map={"x14:id":this.idXform=new s}}get tag(){return"ext"}render(l,h){l.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(l,h.x14Id),l.closeNode()}createNewModel(){return{}}onParserClose(l,h){this.model.x14Id=h.model}}i.exports=class extends n{constructor(){super(),this.map={ext:new a}}get tag(){return"extLst"}render(r,l){r.openNode(this.tag),this.map.ext.render(r,l),r.closeNode()}createNewModel(){return{}}onParserClose(r,l){Object.assign(this.model,l.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,i,o){"use strict";let e=t("../../base-xform");i.exports=class extends e{get tag(){return"formula"}render(n,s){n.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(n){this.model+=n}parseClose(n){return n!==this.tag}}},{"../../base-xform":32}],91:[function(t,i,o){"use strict";let e=t("../../base-xform"),n=t("../../composite-xform"),s=t("./cfvo-xform");i.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(a,r){a.openNode(this.tag,{iconSet:e.toStringAttribute(r.iconSet,"3TrafficLights"),reverse:e.toBoolAttribute(r.reverse,!1),showValue:e.toBoolAttribute(r.showValue,!0)}),r.cfvo.forEach(l=>{this.cfvoXform.render(a,l)}),a.closeNode()}createNewModel(a){let{attributes:r}=a;return{iconSet:e.toStringValue(r.iconSet,"3TrafficLights"),reverse:e.toBoolValue(r.reverse),showValue:e.toBoolValue(r.showValue),cfvo:[]}}onParserClose(a,r){this.model[a].push(r.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,i,o){"use strict";let e=t("../../../utils/utils"),n=t("../base-xform");i.exports=class extends n{get tag(){return"col"}prepare(s,a){let r=a.styles.addStyleModel(s.style||{});r&&(s.styleId=r)}render(s,a){s.openNode("col"),s.addAttribute("min",a.min),s.addAttribute("max",a.max),a.width&&s.addAttribute("width",a.width),a.styleId&&s.addAttribute("style",a.styleId),a.hidden&&s.addAttribute("hidden","1"),a.bestFit&&s.addAttribute("bestFit","1"),a.outlineLevel&&s.addAttribute("outlineLevel",a.outlineLevel),a.collapsed&&s.addAttribute("collapsed","1"),s.addAttribute("customWidth","1"),s.closeNode()}parseOpen(s){if(s.name==="col"){let a=this.model={min:parseInt(s.attributes.min||"0",10),max:parseInt(s.attributes.max||"0",10),width:s.attributes.width===void 0?void 0:parseFloat(s.attributes.width||"0")};return s.attributes.style&&(a.styleId=parseInt(s.attributes.style,10)),e.parseBoolean(s.attributes.hidden)&&(a.hidden=!0),e.parseBoolean(s.attributes.bestFit)&&(a.bestFit=!0),s.attributes.outlineLevel&&(a.outlineLevel=parseInt(s.attributes.outlineLevel,10)),e.parseBoolean(s.attributes.collapsed)&&(a.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(s,a){s.styleId&&(s.style=a.styles.getStyleModel(s.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../../../utils/utils"),s=t("../../../utils/col-cache"),a=t("../base-xform"),r=t("../../../doc/range");function l(c,u,p,d){let f=u[p];f!==void 0?c[p]=f:d!==void 0&&(c[p]=d)}function h(c,u,p,d){let f=u[p];f!==void 0?c[p]=n.parseBoolean(f):d!==void 0&&(c[p]=d)}i.exports=class extends a{get tag(){return"dataValidations"}render(c,u){let p=(function(d){let f=e.map(d,(v,x)=>({address:x,dataValidation:v,marked:!1})).sort((v,x)=>e.strcmp(v.address,x.address)),g=e.keyBy(f,"address"),m=(v,x,A)=>{for(let D=0;D{if(!v.marked){let x=s.decodeEx(v.address);if(x.dimensions)return g[x.dimensions].marked=!0,{...v.dataValidation,sqref:v.address};let A=1,D=s.encodeAddress(x.row+A,x.col);for(;d[D]&&e.isEqual(v.dataValidation,d[D]);)A++,D=s.encodeAddress(x.row+A,x.col);let F=1;for(;m(x,A,x.col+F);)F++;for(let O=0;O1||F>1){let O=x.row+(A-1),I=x.col+(F-1);return{...v.dataValidation,sqref:`${v.address}:${s.encodeAddress(O,I)}`}}return{...v.dataValidation,sqref:v.address}}return null}).filter(Boolean)})(u);p.length&&(c.openNode("dataValidations",{count:p.length}),p.forEach(d=>{c.openNode("dataValidation"),d.type!=="any"&&(c.addAttribute("type",d.type),d.operator&&d.type!=="list"&&d.operator!=="between"&&c.addAttribute("operator",d.operator),d.allowBlank&&c.addAttribute("allowBlank","1")),d.showInputMessage&&c.addAttribute("showInputMessage","1"),d.promptTitle&&c.addAttribute("promptTitle",d.promptTitle),d.prompt&&c.addAttribute("prompt",d.prompt),d.showErrorMessage&&c.addAttribute("showErrorMessage","1"),d.errorStyle&&c.addAttribute("errorStyle",d.errorStyle),d.errorTitle&&c.addAttribute("errorTitle",d.errorTitle),d.error&&c.addAttribute("error",d.error),c.addAttribute("sqref",d.sqref),(d.formulae||[]).forEach((f,g)=>{c.openNode("formula"+(g+1)),d.type==="date"?c.writeText(n.dateToExcel(new Date(f))):c.writeText(f),c.closeNode()}),c.closeNode()}),c.closeNode())}parseOpen(c){switch(c.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=c.attributes.sqref;let u={type:c.attributes.type||"any",formulae:[]};switch(c.attributes.type&&h(u,c.attributes,"allowBlank"),h(u,c.attributes,"showInputMessage"),h(u,c.attributes,"showErrorMessage"),u.type){case"any":case"list":case"custom":break;default:l(u,c.attributes,"operator","between")}return l(u,c.attributes,"promptTitle"),l(u,c.attributes,"prompt"),l(u,c.attributes,"errorStyle"),l(u,c.attributes,"errorTitle"),l(u,c.attributes,"error"),this._dataValidation=u,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(c){this._formula&&this._formula.push(c)}parseClose(c){switch(c){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(u=>{u.includes(":")?new r(u).forEachAddress(p=>{this.model[p]=this._dataValidation}):this.model[u]=this._dataValidation}),!0;case"formula1":case"formula2":{let u=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":u=parseInt(u,10);break;case"decimal":u=parseFloat(u);break;case"date":u=n.excelToDate(parseFloat(u))}return this._dataValidation.formulae.push(u),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"dimension"}render(n,s){s&&n.leafNode("dimension",{ref:s})}parseOpen(n){return n.name==="dimension"&&(this.model=n.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"drawing"}render(n,s){s&&n.leafNode(this.tag,{"r:id":s.rId})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(t,i,o){"use strict";let e=t("../composite-xform"),n=t("./cf-ext/conditional-formattings-ext-xform");class s extends e{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new n}}get tag(){return"ext"}hasContent(r){return this.conditionalFormattings.hasContent(r.conditionalFormattings)}prepare(r,l){this.conditionalFormattings.prepare(r.conditionalFormattings,l)}render(r,l){r.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(r,l.conditionalFormattings),r.closeNode()}createNewModel(){return{}}onParserClose(r,l){this.model[r]=l.model}}i.exports=class extends e{constructor(){super(),this.map={ext:this.ext=new s}}get tag(){return"extLst"}prepare(a,r){this.ext.prepare(a,r)}hasContent(a){return this.ext.hasContent(a)}render(a,r){this.hasContent(r)&&(a.openNode("extLst"),this.ext.render(a,r),a.closeNode())}createNewModel(){return{}}onParserClose(a,r){Object.assign(this.model,r.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"headerFooter"}render(n,s){if(s){n.addRollback();let a=!1;n.openNode("headerFooter"),s.differentFirst&&(n.addAttribute("differentFirst","1"),a=!0),s.differentOddEven&&(n.addAttribute("differentOddEven","1"),a=!0),s.oddHeader&&typeof s.oddHeader=="string"&&(n.leafNode("oddHeader",null,s.oddHeader),a=!0),s.oddFooter&&typeof s.oddFooter=="string"&&(n.leafNode("oddFooter",null,s.oddFooter),a=!0),s.evenHeader&&typeof s.evenHeader=="string"&&(n.leafNode("evenHeader",null,s.evenHeader),a=!0),s.evenFooter&&typeof s.evenFooter=="string"&&(n.leafNode("evenFooter",null,s.evenFooter),a=!0),s.firstHeader&&typeof s.firstHeader=="string"&&(n.leafNode("firstHeader",null,s.firstHeader),a=!0),s.firstFooter&&typeof s.firstFooter=="string"&&(n.leafNode("firstFooter",null,s.firstFooter),a=!0),a?(n.closeNode(),n.commit()):n.rollback()}}parseOpen(n){switch(n.name){case"headerFooter":return this.model={},n.attributes.differentFirst&&(this.model.differentFirst=parseInt(n.attributes.differentFirst,0)===1),n.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(n.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(n){switch(this.currentNode){case"oddHeader":this.model.oddHeader=n;break;case"oddFooter":this.model.oddFooter=n;break;case"evenHeader":this.model.evenHeader=n;break;case"evenFooter":this.model.evenFooter=n;break;case"firstHeader":this.model.firstHeader=n;break;case"firstFooter":this.model.firstFooter=n}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"hyperlink"}render(n,s){this.isInternalLink(s)?n.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip,location:s.target}):n.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip})}parseOpen(n){return n.name==="hyperlink"&&(this.model={address:n.attributes.ref,rId:n.attributes["r:id"],tooltip:n.attributes.tooltip},n.attributes.location&&(this.model.target=n.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(n){return n.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(n.target)}}},{"../base-xform":32}],99:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"mergeCell"}render(n,s){n.leafNode("mergeCell",{ref:s})}parseOpen(n){return n.name==="mergeCell"&&(this.model=n.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../../../doc/range"),s=t("../../../utils/col-cache"),a=t("../../../doc/enums");i.exports=class{constructor(){this.merges={}}add(r){if(this.merges[r.master])this.merges[r.master].expandToAddress(r.address);else{let l=`${r.master}:${r.address}`;this.merges[r.master]=new n(l)}}get mergeCells(){return e.map(this.merges,r=>r.range)}reconcile(r,l){e.each(r,h=>{let c=s.decode(h);for(let u=c.top;u<=c.bottom;u++){let p=l[u-1];for(let d=c.left;d<=c.right;d++){let f=p.cells[d-1];f?f.type===a.ValueType.Merge&&(f.master=c.tl):p.cells[d]={type:a.ValueType.Null,address:s.encodeAddress(u,d)}}}})}getMasterAddress(r){let l=this.hash[r];return l&&l.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,i,o){"use strict";let e=t("../base-xform"),n=s=>s!==void 0;i.exports=class extends e{get tag(){return"outlinePr"}render(s,a){return!(!a||!n(a.summaryBelow)&&!n(a.summaryRight))&&(s.leafNode(this.tag,{summaryBelow:n(a.summaryBelow)?Number(a.summaryBelow):void 0,summaryRight:n(a.summaryRight)?Number(a.summaryRight):void 0}),!0)}parseOpen(s){return s.name===this.tag&&(this.model={summaryBelow:n(s.attributes.summaryBelow)?!!Number(s.attributes.summaryBelow):void 0,summaryRight:n(s.attributes.summaryRight)?!!Number(s.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"brk"}render(n,s){n.leafNode("brk",s)}parseOpen(n){return n.name==="brk"&&(this.model=n.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../base-xform");i.exports=class extends n{get tag(){return"pageMargins"}render(s,a){if(a){let r={left:a.left,right:a.right,top:a.top,bottom:a.bottom,header:a.header,footer:a.footer};e.some(r,l=>l!==void 0)&&s.leafNode(this.tag,r)}}parseOpen(s){switch(s.name){case this.tag:return this.model={left:parseFloat(s.attributes.left||.7),right:parseFloat(s.attributes.right||.7),top:parseFloat(s.attributes.top||.75),bottom:parseFloat(s.attributes.bottom||.75),header:parseFloat(s.attributes.header||.3),footer:parseFloat(s.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"pageSetUpPr"}render(n,s){return!(!s||!s.fitToPage)&&(n.leafNode(this.tag,{fitToPage:s.fitToPage?"1":void 0}),!0)}parseOpen(n){return n.name===this.tag&&(this.model={fitToPage:n.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../base-xform");function s(h){return h?"1":void 0}function a(h){switch(h){case"overThenDown":return h;default:return}}function r(h){switch(h){case"atEnd":case"asDisplyed":return h;default:return}}function l(h){switch(h){case"dash":case"blank":case"NA":return h;default:return}}i.exports=class extends n{get tag(){return"pageSetup"}render(h,c){if(c){let u={paperSize:c.paperSize,orientation:c.orientation,horizontalDpi:c.horizontalDpi,verticalDpi:c.verticalDpi,pageOrder:a(c.pageOrder),blackAndWhite:s(c.blackAndWhite),draft:s(c.draft),cellComments:r(c.cellComments),errors:l(c.errors),scale:c.scale,fitToWidth:c.fitToWidth,fitToHeight:c.fitToHeight,firstPageNumber:c.firstPageNumber,useFirstPageNumber:s(c.firstPageNumber),usePrinterDefaults:s(c.usePrinterDefaults),copies:c.copies};e.some(u,p=>p!==void 0)&&h.leafNode(this.tag,u)}}parseOpen(h){switch(h.name){case this.tag:return this.model={paperSize:(c=h.attributes.paperSize,c!==void 0?parseInt(c,10):void 0),orientation:h.attributes.orientation||"portrait",horizontalDpi:parseInt(h.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(h.attributes.verticalDpi||"4294967295",10),pageOrder:h.attributes.pageOrder||"downThenOver",blackAndWhite:h.attributes.blackAndWhite==="1",draft:h.attributes.draft==="1",cellComments:h.attributes.cellComments||"None",errors:h.attributes.errors||"displayed",scale:parseInt(h.attributes.scale||"100",10),fitToWidth:parseInt(h.attributes.fitToWidth||"1",10),fitToHeight:parseInt(h.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(h.attributes.firstPageNumber||"1",10),useFirstPageNumber:h.attributes.useFirstPageNumber==="1",usePrinterDefaults:h.attributes.usePrinterDefaults==="1",copies:parseInt(h.attributes.copies||"1",10)},!0;default:return!1}var c}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"picture"}render(n,s){s&&n.leafNode(this.tag,{"r:id":s.rId})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../base-xform");function s(a){return a?"1":void 0}i.exports=class extends n{get tag(){return"printOptions"}render(a,r){if(r){let l={headings:s(r.showRowColHeaders),gridLines:s(r.showGridLines),horizontalCentered:s(r.horizontalCentered),verticalCentered:s(r.verticalCentered)};e.some(l,h=>h!==void 0)&&a.leafNode(this.tag,l)}}parseOpen(a){switch(a.name){case this.tag:return this.model={showRowColHeaders:a.attributes.headings==="1",showGridLines:a.attributes.gridLines==="1",horizontalCentered:a.attributes.horizontalCentered==="1",verticalCentered:a.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,i,o){"use strict";let e=t("./page-breaks-xform"),n=t("../list-xform");i.exports=class extends n{constructor(){super({tag:"rowBreaks",count:!0,childXform:new e})}render(s,a){if(a&&a.length){s.openNode(this.tag,this.$),this.count&&(s.addAttribute(this.$count,a.length),s.addAttribute("manualBreakCount",a.length));let{childXform:r}=this;a.forEach(l=>{r.render(s,l)}),s.closeNode()}else this.empty&&s.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("../../../utils/utils"),s=t("./cell-xform");i.exports=class extends e{constructor(a){super(),this.maxItems=a&&a.maxItems,this.map={c:new s}}get tag(){return"row"}prepare(a,r){let l=r.styles.addStyleModel(a.style);l&&(a.styleId=l);let h=this.map.c;a.cells.forEach(c=>{h.prepare(c,r)})}render(a,r,l){a.openNode("row"),a.addAttribute("r",r.number),r.height&&(a.addAttribute("ht",r.height),a.addAttribute("customHeight","1")),r.hidden&&a.addAttribute("hidden","1"),r.min>0&&r.max>0&&r.min<=r.max&&a.addAttribute("spans",`${r.min}:${r.max}`),r.styleId&&(a.addAttribute("s",r.styleId),a.addAttribute("customFormat","1")),a.addAttribute("x14ac:dyDescent","0.25"),r.outlineLevel&&a.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&a.addAttribute("collapsed","1");let h=this.map.c;r.cells.forEach(c=>{h.render(a,c,l)}),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;if(a.name==="row"){this.numRowsSeen+=1;let r=a.attributes.spans?a.attributes.spans.split(":").map(h=>parseInt(h,10)):[void 0,void 0],l=this.model={number:parseInt(a.attributes.r,10),min:r[0],max:r[1],cells:[]};return a.attributes.s&&(l.styleId=parseInt(a.attributes.s,10)),n.parseBoolean(a.attributes.hidden)&&(l.hidden=!0),n.parseBoolean(a.attributes.bestFit)&&(l.bestFit=!0),a.attributes.ht&&(l.height=parseFloat(a.attributes.ht)),a.attributes.outlineLevel&&(l.outlineLevel=parseInt(a.attributes.outlineLevel,10)),n.parseBoolean(a.attributes.collapsed)&&(l.collapsed=!0),!0}return this.parser=this.map[a.name],!!this.parser&&(this.parser.parseOpen(a),!0)}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(a,r){a.style=a.styleId?r.styles.getStyleModel(a.styleId):{},a.styleId!==void 0&&(a.styleId=void 0);let l=this.map.c;a.cells.forEach(h=>{l.reconcile(h,r)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../base-xform");i.exports=class extends n{get tag(){return"sheetFormatPr"}render(s,a){if(a){let r={defaultRowHeight:a.defaultRowHeight,outlineLevelRow:a.outlineLevelRow,outlineLevelCol:a.outlineLevelCol,"x14ac:dyDescent":a.dyDescent};a.defaultColWidth&&(r.defaultColWidth=a.defaultColWidth),a.defaultRowHeight&&a.defaultRowHeight===15||(r.customHeight="1"),e.some(r,l=>l!==void 0)&&s.leafNode("sheetFormatPr",r)}}parseOpen(s){return s.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(s.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(s.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(s.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(s.attributes.outlineLevelCol||"0",10)},s.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(s.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("../style/color-xform"),s=t("./page-setup-properties-xform"),a=t("./outline-properties-xform");i.exports=class extends e{constructor(){super(),this.map={tabColor:new n("tabColor"),pageSetUpPr:new s,outlinePr:new a}}get tag(){return"sheetPr"}render(r,l){if(l){r.addRollback(),r.openNode("sheetPr");let h=!1;h=this.map.tabColor.render(r,l.tabColor)||h,h=this.map.pageSetUpPr.render(r,l.pageSetup)||h,h=this.map.outlinePr.render(r,l.outlineProperties)||h,h?(r.closeNode(),r.commit()):r.rollback()}}parseOpen(r){return this.parser?(this.parser.parseOpen(r),!0):r.name===this.tag?(this.reset(),!0):!!this.map[r.name]&&(this.parser=this.map[r.name],this.parser.parseOpen(r),!0)}parseText(r){return!!this.parser&&(this.parser.parseText(r),!0)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../base-xform");function s(r,l){return r?l:void 0}function a(r,l){return r===l||void 0}i.exports=class extends n{get tag(){return"sheetProtection"}render(r,l){if(l){let h={sheet:s(l.sheet,"1"),selectLockedCells:l.selectLockedCells===!1?"1":void 0,selectUnlockedCells:l.selectUnlockedCells===!1?"1":void 0,formatCells:s(l.formatCells,"0"),formatColumns:s(l.formatColumns,"0"),formatRows:s(l.formatRows,"0"),insertColumns:s(l.insertColumns,"0"),insertRows:s(l.insertRows,"0"),insertHyperlinks:s(l.insertHyperlinks,"0"),deleteColumns:s(l.deleteColumns,"0"),deleteRows:s(l.deleteRows,"0"),sort:s(l.sort,"0"),autoFilter:s(l.autoFilter,"0"),pivotTables:s(l.pivotTables,"0")};l.sheet&&(h.algorithmName=l.algorithmName,h.hashValue=l.hashValue,h.saltValue=l.saltValue,h.spinCount=l.spinCount,h.objects=s(l.objects===!1,"1"),h.scenarios=s(l.scenarios===!1,"1")),e.some(h,c=>c!==void 0)&&r.leafNode(this.tag,h)}}parseOpen(r){switch(r.name){case this.tag:return this.model={sheet:a(r.attributes.sheet,"1"),objects:r.attributes.objects!=="1"&&void 0,scenarios:r.attributes.scenarios!=="1"&&void 0,selectLockedCells:r.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:r.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:a(r.attributes.formatCells,"0"),formatColumns:a(r.attributes.formatColumns,"0"),formatRows:a(r.attributes.formatRows,"0"),insertColumns:a(r.attributes.insertColumns,"0"),insertRows:a(r.attributes.insertRows,"0"),insertHyperlinks:a(r.attributes.insertHyperlinks,"0"),deleteColumns:a(r.attributes.deleteColumns,"0"),deleteRows:a(r.attributes.deleteRows,"0"),sort:a(r.attributes.sort,"0"),autoFilter:a(r.attributes.autoFilter,"0"),pivotTables:a(r.attributes.pivotTables,"0")},r.attributes.algorithmName&&(this.model.algorithmName=r.attributes.algorithmName,this.model.hashValue=r.attributes.hashValue,this.model.saltValue=r.attributes.saltValue,this.model.spinCount=parseInt(r.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,i,o){"use strict";let e=t("../../../utils/col-cache"),n=t("../base-xform"),s={frozen:"frozen",frozenSplit:"frozen",split:"split"};i.exports=class extends n{get tag(){return"sheetView"}prepare(a){switch(a.state){case"frozen":case"split":break;default:a.state="normal"}}render(a,r){a.openNode("sheetView",{workbookViewId:r.workbookViewId||0});let l=function(d,f,g){g&&a.addAttribute(d,f)},h,c,u,p;switch(l("rightToLeft","1",r.rightToLeft===!0),l("tabSelected","1",r.tabSelected),l("showRuler","0",r.showRuler===!1),l("showRowColHeaders","0",r.showRowColHeaders===!1),l("showGridLines","0",r.showGridLines===!1),l("zoomScale",r.zoomScale,r.zoomScale),l("zoomScaleNormal",r.zoomScaleNormal,r.zoomScaleNormal),l("view",r.style,r.style),r.state){case"frozen":c=r.xSplit||0,u=r.ySplit||0,h=r.topLeftCell||e.getAddress(u+1,c+1).address,p=(r.xSplit&&r.ySplit?"bottomRight":r.xSplit&&"topRight")||"bottomLeft",a.leafNode("pane",{xSplit:r.xSplit||void 0,ySplit:r.ySplit||void 0,topLeftCell:h,activePane:p,state:"frozen"}),a.leafNode("selection",{pane:p,activeCell:r.activeCell,sqref:r.activeCell});break;case"split":r.activePane==="topLeft"&&(r.activePane=void 0),a.leafNode("pane",{xSplit:r.xSplit||void 0,ySplit:r.ySplit||void 0,topLeftCell:r.topLeftCell,activePane:r.activePane}),a.leafNode("selection",{pane:r.activePane,activeCell:r.activeCell,sqref:r.activeCell});break;case"normal":r.activeCell&&a.leafNode("selection",{activeCell:r.activeCell,sqref:r.activeCell})}a.closeNode()}parseOpen(a){switch(a.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(a.attributes.workbookViewId,10),rightToLeft:a.attributes.rightToLeft==="1",tabSelected:a.attributes.tabSelected==="1",showRuler:a.attributes.showRuler!=="0",showRowColHeaders:a.attributes.showRowColHeaders!=="0",showGridLines:a.attributes.showGridLines!=="0",zoomScale:parseInt(a.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(a.attributes.zoomScaleNormal||"100",10),style:a.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(a.attributes.xSplit||"0",10),ySplit:parseInt(a.attributes.ySplit||"0",10),topLeftCell:a.attributes.topLeftCell,activePane:a.attributes.activePane||"topLeft",state:a.attributes.state},!0;case"selection":{let r=a.attributes.pane||"topLeft";return this.selections[r]={pane:r,activeCell:a.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(a){let r,l;switch(a){case"sheetView":return this.sheetView&&this.pane?(r=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(r.activePane=this.pane.activePane),l=this.selections[this.pane.activePane],l&&l.activeCell&&(r.activeCell=l.activeCell),this.sheetView.style&&(r.style=this.sheetView.style)):(r=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},l=this.selections.topLeft,l&&l.activeCell&&(r.activeCell=l.activeCell),this.sheetView.style&&(r.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"tablePart"}render(n,s){s&&n.leafNode(this.tag,{"r:id":s.rId})}parseOpen(n){switch(n.name){case this.tag:return this.model={rId:n.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../../../utils/col-cache"),s=t("../../../utils/xml-stream"),a=t("../../rel-type"),r=t("./merges"),l=t("../base-xform"),h=t("../list-xform"),c=t("./row-xform"),u=t("./col-xform"),p=t("./dimension-xform"),d=t("./hyperlink-xform"),f=t("./merge-cell-xform"),g=t("./data-validations-xform"),m=t("./sheet-properties-xform"),v=t("./sheet-format-properties-xform"),x=t("./sheet-view-xform"),A=t("./sheet-protection-xform"),D=t("./page-margins-xform"),F=t("./page-setup-xform"),O=t("./print-options-xform"),I=t("./auto-filter-xform"),j=t("./picture-xform"),U=t("./drawing-xform"),R=t("./table-part-xform"),k=t("./row-breaks-xform"),S=t("./header-footer-xform"),P=t("./cf/conditional-formattings-xform"),b=t("./ext-lst-xform"),y=(w,E)=>{if(!E||!E.length)return w;if(!w||!w.length)return E;let C={},M={};return w.forEach(z=>{C[z.ref]=z,z.rules.forEach(H=>{let{x14Id:V}=H;V&&(M[V]=H)})}),E.forEach(z=>{z.rules.forEach(H=>{let V=M[H.x14Id];V?((B,W)=>{Object.keys(W).forEach(N=>{let T=B[N],$=W[N];T===void 0&&$!==void 0&&(B[N]=$)})})(V,H):C[z.ref]?C[z.ref].rules.push(H):w.push({ref:z.ref,rules:[H]})})}),w};class _ extends l{constructor(E){super();let{maxRows:C,maxCols:M,ignoreNodes:z}=E||{};this.ignoreNodes=z||[],this.map={sheetPr:new m,dimension:new p,sheetViews:new h({tag:"sheetViews",count:!1,childXform:new x}),sheetFormatPr:new v,cols:new h({tag:"cols",count:!1,childXform:new u}),sheetData:new h({tag:"sheetData",count:!1,empty:!0,childXform:new c({maxItems:M}),maxItems:C}),autoFilter:new I,mergeCells:new h({tag:"mergeCells",count:!0,childXform:new f}),rowBreaks:new k,hyperlinks:new h({tag:"hyperlinks",count:!1,childXform:new d}),pageMargins:new D,dataValidations:new g,pageSetup:new F,headerFooter:new S,printOptions:new O,picture:new j,drawing:new U,sheetProtection:new A,tableParts:new h({tag:"tableParts",count:!0,childXform:new R}),conditionalFormatting:new P,extLst:new b}}prepare(E,C){C.merges=new r,E.hyperlinks=C.hyperlinks=[],E.comments=C.comments=[],C.formulae={},C.siFormulae=0,this.map.cols.prepare(E.cols,C),this.map.sheetData.prepare(E.rows,C),this.map.conditionalFormatting.prepare(E.conditionalFormattings,C),E.mergeCells=C.merges.mergeCells;let M=E.rels=[];function z(B){return"rId"+(B.length+1)}if(E.hyperlinks.forEach(B=>{let W=z(M);B.rId=W,M.push({Id:W,Type:a.Hyperlink,Target:B.target,TargetMode:"External"})}),E.comments.length>0){let B={Id:z(M),Type:a.Comments,Target:`../comments${E.id}.xml`};M.push(B);let W={Id:z(M),Type:a.VmlDrawing,Target:`../drawings/vmlDrawing${E.id}.vml`};M.push(W),E.comments.forEach(N=>{N.refAddress=n.decodeAddress(N.ref)}),C.commentRefs.push({commentName:"comments"+E.id,vmlDrawing:"vmlDrawing"+E.id})}let H=[],V;E.media.forEach(B=>{if(B.type==="background"){let W=z(M);V=C.media[B.imageId],M.push({Id:W,Type:a.Image,Target:`../media/${V.name}.${V.extension}`}),E.background={rId:W},E.image=C.media[B.imageId]}else if(B.type==="image"){let{drawing:W}=E;V=C.media[B.imageId],W||(W=E.drawing={rId:z(M),name:"drawing"+ ++C.drawingsCount,anchors:[],rels:[]},C.drawings.push(W),M.push({Id:W.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${W.name}.xml`}));let N=this.preImageId===B.imageId?H[B.imageId]:H[W.rels.length];N||(N=z(W.rels),H[W.rels.length]=N,W.rels.push({Id:N,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${V.name}.${V.extension}`}));let T={picture:{rId:N},range:B.range};if(B.hyperlinks&&B.hyperlinks.hyperlink){let $=z(W.rels);H[W.rels.length]=$,T.picture.hyperlinks={tooltip:B.hyperlinks.tooltip,rId:$},W.rels.push({Id:$,Type:a.Hyperlink,Target:B.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=B.imageId,W.anchors.push(T)}}),E.tables.forEach(B=>{let W=z(M);B.rId=W,M.push({Id:W,Type:a.Table,Target:"../tables/"+B.target}),B.columns.forEach(N=>{let{style:T}=N;T&&(N.dxfId=C.styles.addDxfStyle(T))})}),this.map.extLst.prepare(E,C)}render(E,C){E.openXml(s.StdDocAttributes),E.openNode("worksheet",_.WORKSHEET_ATTRIBUTES);let M=C.properties?{defaultRowHeight:C.properties.defaultRowHeight,dyDescent:C.properties.dyDescent,outlineLevelCol:C.properties.outlineLevelCol,outlineLevelRow:C.properties.outlineLevelRow}:void 0;C.properties&&C.properties.defaultColWidth&&(M.defaultColWidth=C.properties.defaultColWidth);let z={outlineProperties:C.properties&&C.properties.outlineProperties,tabColor:C.properties&&C.properties.tabColor,pageSetup:C.pageSetup&&C.pageSetup.fitToPage?{fitToPage:C.pageSetup.fitToPage}:void 0},H=C.pageSetup&&C.pageSetup.margins,V={showRowColHeaders:C.pageSetup&&C.pageSetup.showRowColHeaders,showGridLines:C.pageSetup&&C.pageSetup.showGridLines,horizontalCentered:C.pageSetup&&C.pageSetup.horizontalCentered,verticalCentered:C.pageSetup&&C.pageSetup.verticalCentered},B=C.sheetProtection;this.map.sheetPr.render(E,z),this.map.dimension.render(E,C.dimensions),this.map.sheetViews.render(E,C.views),this.map.sheetFormatPr.render(E,M),this.map.cols.render(E,C.cols),this.map.sheetData.render(E,C.rows),this.map.sheetProtection.render(E,B),this.map.autoFilter.render(E,C.autoFilter),this.map.mergeCells.render(E,C.mergeCells),this.map.conditionalFormatting.render(E,C.conditionalFormattings),this.map.dataValidations.render(E,C.dataValidations),this.map.hyperlinks.render(E,C.hyperlinks),this.map.printOptions.render(E,V),this.map.pageMargins.render(E,H),this.map.pageSetup.render(E,C.pageSetup),this.map.headerFooter.render(E,C.headerFooter),this.map.rowBreaks.render(E,C.rowBreaks),this.map.drawing.render(E,C.drawing),this.map.picture.render(E,C.background),this.map.tableParts.render(E,C.tables),this.map.extLst.render(E,C),C.rels&&C.rels.forEach(W=>{W.Type===a.VmlDrawing&&E.leafNode("legacyDrawing",{"r:id":W.Id})}),E.closeNode()}parseOpen(E){return this.parser?(this.parser.parseOpen(E),!0):E.name==="worksheet"?(e.each(this.map,C=>{C.reset()}),!0):(this.map[E.name]&&!this.ignoreNodes.includes(E.name)&&(this.parser=this.map[E.name],this.parser.parseOpen(E)),!0)}parseText(E){this.parser&&this.parser.parseText(E)}parseClose(E){if(this.parser)return this.parser.parseClose(E)||(this.parser=void 0),!0;switch(E){case"worksheet":{let C=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(C.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(C.outlineProperties=this.map.sheetPr.model.outlineProperties);let M={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},z=Object.assign(M,this.map.pageSetup.model,this.map.printOptions.model),H=y(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:C,views:this.map.sheetViews.model,pageSetup:z,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:H},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(E,C){let M=(E.relationships||[]).reduce((H,V)=>{if(H[V.Id]=V,V.Type===a.Comments&&(E.comments=C.comments[V.Target].comments),V.Type===a.VmlDrawing&&E.comments&&E.comments.length){let B=C.vmlDrawings[V.Target].comments;E.comments.forEach((W,N)=>{W.note=Object.assign({},W.note,B[N])})}return H},{});if(C.commentsMap=(E.comments||[]).reduce((H,V)=>(V.ref&&(H[V.ref]=V),H),{}),C.hyperlinkMap=(E.hyperlinks||[]).reduce((H,V)=>(V.rId&&(H[V.address]=M[V.rId].Target),H),{}),C.formulae={},E.rows=E.rows&&E.rows.filter(Boolean)||[],E.rows.forEach(H=>{H.cells=H.cells&&H.cells.filter(Boolean)||[]}),this.map.cols.reconcile(E.cols,C),this.map.sheetData.reconcile(E.rows,C),this.map.conditionalFormatting.reconcile(E.conditionalFormattings,C),E.media=[],E.drawing){let H=M[E.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(H){let V=H[1];C.drawings[V].anchors.forEach(B=>{if(B.medium){let W={type:"image",imageId:B.medium.index,range:B.range,hyperlinks:B.picture.hyperlinks};E.media.push(W)}})}}let z=E.background&&M[E.background.rId];if(z){let H=z.Target.split("/media/")[1],V=C.mediaIndex&&C.mediaIndex[H];V!==void 0&&E.media.push({type:"background",imageId:V})}E.tables=(E.tables||[]).map(H=>{let V=M[H.rId];return C.tables[V.Target]}),delete E.relationships,delete E.hyperlinks,delete E.comments}}_.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},i.exports=_},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{constructor(n){super(),this.tag=n.tag,this.attr=n.attr}render(n,s){s&&(n.openNode(this.tag),n.closeNode())}parseOpen(n){n.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{constructor(n){super(),this.tag=n.tag,this.attr=n.attr,this.attrs=n.attrs,this._format=n.format||function(s){try{return Number.isNaN(s.getTime())?"":s.toISOString()}catch{return""}},this._parse=n.parse||function(s){return new Date(s)}}render(n,s){s&&(n.openNode(this.tag),this.attrs&&n.addAttributes(this.attrs),this.attr?n.addAttribute(this.attr,this._format(s)):n.writeText(this._format(s)),n.closeNode())}parseOpen(n){n.name===this.tag&&(this.attr?this.model=this._parse(n.attributes[this.attr]):this.text=[])}parseText(n){this.attr||this.text.push(n)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{constructor(n){super(),this.tag=n.tag,this.attr=n.attr,this.attrs=n.attrs,this.zero=n.zero}render(n,s){(s||this.zero)&&(n.openNode(this.tag),this.attrs&&n.addAttributes(this.attrs),this.attr?n.addAttribute(this.attr,s):n.writeText(s),n.closeNode())}parseOpen(n){return n.name===this.tag&&(this.attr?this.model=parseInt(n.attributes[this.attr],10):this.text=[],!0)}parseText(n){this.attr||this.text.push(n)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{constructor(n){super(),this.tag=n.tag,this.attr=n.attr,this.attrs=n.attrs}render(n,s){s!==void 0&&(n.openNode(this.tag),this.attrs&&n.addAttributes(this.attrs),this.attr?n.addAttribute(this.attr,s):n.writeText(s),n.closeNode())}parseOpen(n){n.name===this.tag&&(this.attr?this.model=n.attributes[this.attr]:this.text=[])}parseText(n){this.attr||this.text.push(n)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(t,i,o){"use strict";let e=t("./base-xform"),n=t("../../utils/xml-stream");i.exports=class extends e{constructor(s){super(),this._model=s}render(s){if(!this._xml){let a=new n;(function r(l,h){l.openNode(h.tag,h.$),h.c&&h.c.forEach(c=>{r(l,c)}),h.t&&l.writeText(h.t),l.closeNode()})(a,this._model),this._xml=a.xml}s.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(s){switch(s){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,i,o){"use strict";let e=t("./text-xform"),n=t("./rich-text-xform"),s=t("../base-xform");i.exports=class extends s{constructor(){super(),this.map={r:new n,t:new e}}get tag(){return"rPh"}render(a,r){if(a.openNode(this.tag,{sb:r.sb||0,eb:r.eb||0}),r&&r.hasOwnProperty("richText")&&r.richText){let{r:l}=this.map;r.richText.forEach(h=>{l.render(a,h)})}else r&&this.map.t.render(a,r.text);a.closeNode()}parseOpen(a){let{name:r}=a;return this.parser?(this.parser.parseOpen(a),!0):r===this.tag?(this.model={sb:parseInt(a.attributes.sb,10),eb:parseInt(a.attributes.eb,10)},!0):(this.parser=this.map[r],!!this.parser&&(this.parser.parseOpen(a),!0))}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)){switch(a){case"r":{let r=this.model.richText;r||(r=this.model.richText=[]),r.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,i,o){"use strict";let e=t("./text-xform"),n=t("../style/font-xform"),s=t("../base-xform");class a extends s{constructor(l){super(),this.model=l}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new e)}get fontXform(){return this._fontXform||(this._fontXform=new n(a.FONT_OPTIONS))}render(l,h){h=h||this.model,l.openNode("r"),h.font&&this.fontXform.render(l,h.font),this.textXform.render(l,h.text),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(l),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){switch(l){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(l),!0}}}a.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},i.exports=a},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,i,o){"use strict";let e=t("./text-xform"),n=t("./rich-text-xform"),s=t("./phonetic-text-xform"),a=t("../base-xform");i.exports=class extends a{constructor(r){super(),this.model=r,this.map={r:new n,t:new e,rPh:new s}}get tag(){return"si"}render(r,l){r.openNode(this.tag),l&&l.hasOwnProperty("richText")&&l.richText?l.richText.length?l.richText.forEach(h=>{this.map.r.render(r,h)}):this.map.t.render(r,""):l!=null&&this.map.t.render(r,l),r.closeNode()}parseOpen(r){let{name:l}=r;return this.parser?(this.parser.parseOpen(r),!0):l===this.tag?(this.model={},!0):(this.parser=this.map[l],!!this.parser&&(this.parser.parseOpen(r),!0))}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let l=this.model.richText;l||(l=this.model.richText=[]),l.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("./shared-string-xform");i.exports=class extends n{constructor(a){super(),this.model=a||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(a){return this.model.values[a]}add(a){return a.richText?this.addRichText(a):this.addText(a)}addText(a){let r=this.hash[a];return r===void 0&&(r=this.hash[a]=this.model.values.length,this.model.values.push(a)),this.model.count++,r}addRichText(a){let r=this.sharedStringXform.toXml(a),l=this.rich[r];return l===void 0&&(l=this.rich[r]=this.model.values.length,this.model.values.push(a)),this.model.count++,l}render(a,r){r=r||this._values,a.openXml(e.StdDocAttributes),a.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:r.count,uniqueCount:r.values.length});let l=this.sharedStringXform;r.values.forEach(h=>{l.render(a,h)}),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(a),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(a){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+a)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"t"}render(n,s){n.openNode("t"),/^\s|\n|\s$/.test(s)&&n.addAttribute("xml:space","preserve"),n.writeText(s),n.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(n,s)=>String.fromCharCode(parseInt(s,16)))}parseOpen(n){switch(n.name){case"t":return this._text=[],!0;default:return!1}}parseText(n){this._text.push(n)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(t,i,o){"use strict";let e=t("../../../doc/enums"),n=t("../../../utils/utils"),s=t("../base-xform"),a={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((l,h)=>(l[h]=!0,l),{}),horizontal(l){return this.horizontalValues[l]?l:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((l,h)=>(l[h]=!0,l),{}),vertical(l){return l==="middle"?"center":this.verticalValues[l]?l:void 0},wrapText:l=>!!l||void 0,shrinkToFit:l=>!!l||void 0,textRotation(l){switch(l){case"vertical":return l;default:return(l=n.validInt(l))>=-90&&l<=90?l:void 0}},indent:l=>(l=n.validInt(l),Math.max(0,l)),readingOrder(l){switch(l){case"ltr":return e.ReadingOrder.LeftToRight;case"rtl":return e.ReadingOrder.RightToLeft;default:return}}},r={toXml(l){if(l=a.textRotation(l)){if(l==="vertical")return 255;let h=Math.round(l);if(h>=0&&h<=90)return h;if(h<0&&h>=-90)return 90-h}},toModel(l){let h=n.validInt(l);if(h!==void 0){if(h===255)return"vertical";if(h>=0&&h<=90)return h;if(h>90&&h<=180)return 90-h}}};i.exports=class extends s{get tag(){return"alignment"}render(l,h){l.addRollback(),l.openNode("alignment");let c=!1;function u(p,d){d&&(l.addAttribute(p,d),c=!0)}u("horizontal",a.horizontal(h.horizontal)),u("vertical",a.vertical(h.vertical)),u("wrapText",!!a.wrapText(h.wrapText)&&"1"),u("shrinkToFit",!!a.shrinkToFit(h.shrinkToFit)&&"1"),u("indent",a.indent(h.indent)),u("textRotation",r.toXml(h.textRotation)),u("readingOrder",a.readingOrder(h.readingOrder)),l.closeNode(),c?l.commit():l.rollback()}parseOpen(l){let h={},c=!1;function u(p,d,f){p&&(h[d]=f,c=!0)}u(l.attributes.horizontal,"horizontal",l.attributes.horizontal),u(l.attributes.vertical,"vertical",l.attributes.vertical==="center"?"middle":l.attributes.vertical),u(l.attributes.wrapText,"wrapText",n.parseBoolean(l.attributes.wrapText)),u(l.attributes.shrinkToFit,"shrinkToFit",n.parseBoolean(l.attributes.shrinkToFit)),u(l.attributes.indent,"indent",parseInt(l.attributes.indent,10)),u(l.attributes.textRotation,"textRotation",r.toModel(l.attributes.textRotation)),u(l.attributes.readingOrder,"readingOrder",l.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=c?h:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("../../../utils/utils"),s=t("./color-xform");class a extends e{constructor(l){super(),this.name=l,this.map={color:new s}}get tag(){return this.name}render(l,h,c){let u=h&&h.color||c||this.defaultColor;l.openNode(this.name),h&&h.style&&(l.addAttribute("style",h.style),u&&this.map.color.render(l,u)),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.name:{let{style:h}=l.attributes;return this.model=h?{style:h}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):(l===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(l){return a.validStyleValues[l]}}a.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((r,l)=>(r[l]=!0,r),{}),i.exports=class extends e{constructor(){super(),this.map={top:new a("top"),left:new a("left"),bottom:new a("bottom"),right:new a("right"),diagonal:new a("diagonal")}}render(r,l){let{color:h}=l;function c(u,p){u&&!u.color&&l.color&&(u={...u,color:l.color}),p.render(r,u,h)}r.openNode("border"),l.diagonal&&l.diagonal.style&&(l.diagonal.up&&r.addAttribute("diagonalUp","1"),l.diagonal.down&&r.addAttribute("diagonalDown","1")),c(l.left,this.map.left),c(l.right,this.map.right),c(l.top,this.map.top),c(l.bottom,this.map.bottom),c(l.diagonal,this.map.diagonal),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"border":return this.reset(),this.diagonalUp=n.parseBoolean(r.attributes.diagonalUp),this.diagonalDown=n.parseBoolean(r.attributes.diagonalDown),!0;default:return this.parser=this.map[r.name],!!this.parser&&(this.parser.parseOpen(r),!0)}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;if(r==="border"){let l=this.model={},h=function(c,u,p){u&&(p&&Object.assign(u,p),l[c]=u)};h("left",this.map.left.model),h("right",this.map.right.model),h("top",this.map.top.model),h("bottom",this.map.bottom.model),h("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{constructor(n){super(),this.name=n||"color"}get tag(){return this.name}render(n,s){return!!s&&(n.openNode(this.name),s.argb?n.addAttribute("rgb",s.argb):s.theme!==void 0?(n.addAttribute("theme",s.theme),s.tint!==void 0&&n.addAttribute("tint",s.tint)):s.indexed!==void 0?n.addAttribute("indexed",s.indexed):n.addAttribute("auto","1"),n.closeNode(),!0)}parseOpen(n){return n.name===this.name&&(n.attributes.rgb?this.model={argb:n.attributes.rgb}:n.attributes.theme?(this.model={theme:parseInt(n.attributes.theme,10)},n.attributes.tint&&(this.model.tint=parseFloat(n.attributes.tint))):n.attributes.indexed?this.model={indexed:parseInt(n.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./alignment-xform"),s=t("./border-xform"),a=t("./fill-xform"),r=t("./font-xform"),l=t("./numfmt-xform"),h=t("./protection-xform");i.exports=class extends e{constructor(){super(),this.map={alignment:new n,border:new s,fill:new a,font:new r,numFmt:new l,protection:new h}}get tag(){return"dxf"}render(c,u){if(c.openNode(this.tag),u.font&&this.map.font.render(c,u.font),u.numFmt&&u.numFmtId){let p={id:u.numFmtId,formatCode:u.numFmt};this.map.numFmt.render(c,p)}u.fill&&this.map.fill.render(c,u.fill),u.alignment&&this.map.alignment.render(c,u.alignment),u.border&&this.map.border.render(c,u.border),u.protection&&this.map.protection.render(c,u.protection),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c),!0}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./color-xform");class s extends e{constructor(){super(),this.map={color:new n}}get tag(){return"stop"}render(c,u){c.openNode("stop"),c.addAttribute("position",u.position),this.map.color.render(c,u.color),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"stop":return this.model={position:parseFloat(c.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(c),!0;default:return!1}}parseText(){}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class a extends e{constructor(){super(),this.map={fgColor:new n("fgColor"),bgColor:new n("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(c,u){c.openNode("patternFill"),c.addAttribute("patternType",u.pattern),u.fgColor&&this.map.fgColor.render(c,u.fgColor),u.bgColor&&this.map.bgColor.render(c,u.bgColor),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"patternFill":return this.model={type:"pattern",pattern:c.attributes.patternType},!0;default:return this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.parser.model&&(this.model[c]=this.parser.model),this.parser=void 0),!0)}}class r extends e{constructor(){super(),this.map={stop:new s}}get name(){return"gradient"}get tag(){return"gradientFill"}render(c,u){switch(c.openNode("gradientFill"),u.gradient){case"angle":c.addAttribute("degree",u.degree);break;case"path":c.addAttribute("type","path"),u.center.left&&(c.addAttribute("left",u.center.left),u.center.right===void 0&&c.addAttribute("right",u.center.left)),u.center.right&&c.addAttribute("right",u.center.right),u.center.top&&(c.addAttribute("top",u.center.top),u.center.bottom===void 0&&c.addAttribute("bottom",u.center.top)),u.center.bottom&&c.addAttribute("bottom",u.center.bottom)}let p=this.map.stop;u.stops.forEach(d=>{p.render(c,d)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"gradientFill":{let u=this.model={stops:[]};return c.attributes.degree?(u.gradient="angle",u.degree=parseInt(c.attributes.degree,10)):c.attributes.type==="path"&&(u.gradient="path",u.center={left:c.attributes.left?parseFloat(c.attributes.left):0,top:c.attributes.top?parseFloat(c.attributes.top):0},c.attributes.right!==c.attributes.left&&(u.center.right=c.attributes.right?parseFloat(c.attributes.right):0),c.attributes.bottom!==c.attributes.top&&(u.center.bottom=c.attributes.bottom?parseFloat(c.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(c),!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends e{constructor(){super(),this.map={patternFill:new a,gradientFill:new r}}get tag(){return"fill"}render(c,u){switch(c.addRollback(),c.openNode("fill"),u.type){case"pattern":this.map.patternFill.render(c,u);break;case"gradient":this.map.gradientFill.render(c,u);break;default:return void c.rollback()}c.closeNode(),c.commit()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"fill":return this.model={},!0;default:return this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(c){return l.validPatternValues[c]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((h,c)=>(h[c]=!0,h),{}),l.StopXform=s,l.PatternFillXform=a,l.GradientFillXform=r,i.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(t,i,o){"use strict";let e=t("./color-xform"),n=t("../simple/boolean-xform"),s=t("../simple/integer-xform"),a=t("../simple/string-xform"),r=t("./underline-xform"),l=t("../../../utils/under-dash"),h=t("../base-xform");class c extends h{constructor(p){super(),this.options=p||c.OPTIONS,this.map={b:{prop:"bold",xform:new n({tag:"b",attr:"val"})},i:{prop:"italic",xform:new n({tag:"i",attr:"val"})},u:{prop:"underline",xform:new r},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new e},condense:{prop:"condense",xform:new n({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new n({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new n({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new a({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new a({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new n({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new n({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new a({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(p,d){let{map:f}=this;p.openNode(this.options.tagName),l.each(this.map,(g,m)=>{f[m].xform.render(p,d[g.prop])}),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;if(this.map[p.name])return this.parser=this.map[p.name].xform,this.parser.parseOpen(p);switch(p.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser&&!this.parser.parseClose(p)){let d=this.map[p];return this.parser.model&&(this.model[d.prop]=this.parser.model),this.parser=void 0,!0}switch(p){case this.options.tagName:return!1;default:return!0}}}c.OPTIONS={tagName:"font",fontNameTag:"name"},i.exports=c},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(t,i,o){"use strict";let e=t("../../../utils/under-dash"),n=t("../../defaultnumformats"),s=t("../base-xform"),a=(function(){let l={};return e.each(n,(h,c)=>{h.f&&(l[h.f]=parseInt(c,10))}),l})();class r extends s{constructor(h,c){super(),this.id=h,this.formatCode=c}get tag(){return"numFmt"}render(h,c){h.leafNode("numFmt",{numFmtId:c.id,formatCode:c.formatCode})}parseOpen(h){switch(h.name){case"numFmt":return this.model={id:parseInt(h.attributes.numFmtId,10),formatCode:h.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}r.getDefaultFmtId=function(l){return a[l]},r.getDefaultFmtCode=function(l){return n[l]&&n[l].f},i.exports=r},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,i,o){"use strict";let e=t("../base-xform"),n={boolean:(s,a)=>s===void 0?a:s};i.exports=class extends e{get tag(){return"protection"}render(s,a){s.addRollback(),s.openNode("protection");let r=!1;function l(h,c){c!==void 0&&(s.addAttribute(h,c),r=!0)}l("locked",n.boolean(a.locked,!0)?void 0:"0"),l("hidden",n.boolean(a.hidden,!1)?"1":void 0),s.closeNode(),r?s.commit():s.rollback()}parseOpen(s){let a={locked:s.attributes.locked!=="0",hidden:s.attributes.hidden==="1"},r=!a.locked||a.hidden;this.model=r?a:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./alignment-xform"),s=t("./protection-xform");i.exports=class extends e{constructor(a){super(),this.xfId=!(!a||!a.xfId),this.map={alignment:new n,protection:new s}}get tag(){return"xf"}render(a,r){a.openNode("xf",{numFmtId:r.numFmtId||0,fontId:r.fontId||0,fillId:r.fillId||0,borderId:r.borderId||0}),this.xfId&&a.addAttribute("xfId",r.xfId||0),r.numFmtId&&a.addAttribute("applyNumberFormat","1"),r.fontId&&a.addAttribute("applyFont","1"),r.fillId&&a.addAttribute("applyFill","1"),r.borderId&&a.addAttribute("applyBorder","1"),r.alignment&&a.addAttribute("applyAlignment","1"),r.protection&&a.addAttribute("applyProtection","1"),r.alignment&&this.map.alignment.render(a,r.alignment),r.protection&&this.map.protection.render(a,r.protection),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"xf":return this.model={numFmtId:parseInt(a.attributes.numFmtId,10),fontId:parseInt(a.attributes.fontId,10),fillId:parseInt(a.attributes.fillId,10),borderId:parseInt(a.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(a.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(a),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):a!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,i,o){"use strict";let e=t("../../../doc/enums"),n=t("../../../utils/xml-stream"),s=t("../base-xform"),a=t("../static-xform"),r=t("../list-xform"),l=t("./font-xform"),h=t("./fill-xform"),c=t("./border-xform"),u=t("./numfmt-xform"),p=t("./style-xform"),d=t("./dxf-xform");class f extends s{constructor(m){super(),this.map={numFmts:new r({tag:"numFmts",count:!0,childXform:new u}),fonts:new r({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new r({tag:"fills",count:!0,childXform:new h}),borders:new r({tag:"borders",count:!0,childXform:new c}),cellStyleXfs:new r({tag:"cellStyleXfs",count:!0,childXform:new p}),cellXfs:new r({tag:"cellXfs",count:!0,childXform:new p({xfId:!0})}),dxfs:new r({tag:"dxfs",always:!0,count:!0,childXform:new d}),numFmt:new u,font:new l,fill:new h,border:new c,style:new p({xfId:!0}),cellStyles:f.STATIC_XFORMS.cellStyles,tableStyles:f.STATIC_XFORMS.tableStyles,extLst:f.STATIC_XFORMS.extLst},m&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(m,v){v=v||this.model,m.openXml(n.StdDocAttributes),m.openNode("styleSheet",f.STYLESHEET_ATTRIBUTES),this.index?(v.numFmts&&v.numFmts.length&&(m.openNode("numFmts",{count:v.numFmts.length}),v.numFmts.forEach(x=>{m.writeXml(x)}),m.closeNode()),v.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),m.openNode("fonts",{count:v.fonts.length,"x14ac:knownFonts":1}),v.fonts.forEach(x=>{m.writeXml(x)}),m.closeNode(),m.openNode("fills",{count:v.fills.length}),v.fills.forEach(x=>{m.writeXml(x)}),m.closeNode(),m.openNode("borders",{count:v.borders.length}),v.borders.forEach(x=>{m.writeXml(x)}),m.closeNode(),this.map.cellStyleXfs.render(m,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),m.openNode("cellXfs",{count:v.styles.length}),v.styles.forEach(x=>{m.writeXml(x)}),m.closeNode()):(this.map.numFmts.render(m,v.numFmts),this.map.fonts.render(m,v.fonts),this.map.fills.render(m,v.fills),this.map.borders.render(m,v.borders),this.map.cellStyleXfs.render(m,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(m,v.styles)),f.STATIC_XFORMS.cellStyles.render(m),this.map.dxfs.render(m,v.dxfs),f.STATIC_XFORMS.tableStyles.render(m),f.STATIC_XFORMS.extLst.render(m),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m),!0}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.parser=void 0),!0;switch(m){case"styleSheet":{this.model={};let v=(x,A)=>{A.model&&A.model.length&&(this.model[x]=A.model)};if(v("numFmts",this.map.numFmts),v("fonts",this.map.fonts),v("fills",this.map.fills),v("borders",this.map.borders),v("styles",this.map.cellXfs),v("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){let x=this.index.numFmt;this.model.numFmts.forEach(A=>{x[A.id]=A.formatCode})}return!1}default:return!0}}addStyleModel(m,v){if(!m)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(m))return this.weakMap.get(m);let x={};if(v=v||e.ValueType.Number,m.numFmt)x.numFmtId=this._addNumFmtStr(m.numFmt);else switch(v){case e.ValueType.Number:x.numFmtId=this._addNumFmtStr("General");break;case e.ValueType.Date:x.numFmtId=this._addNumFmtStr("mm-dd-yy")}m.font&&(x.fontId=this._addFont(m.font)),m.border&&(x.borderId=this._addBorder(m.border)),m.fill&&(x.fillId=this._addFill(m.fill)),m.alignment&&(x.alignment=m.alignment),m.protection&&(x.protection=m.protection);let A=this._addStyle(x);return this.weakMap&&this.weakMap.set(m,A),A}getStyleModel(m){let v=this.model.styles[m];if(!v)return null;let x=this.index.model[m];if(x)return x;if(x=this.index.model[m]={},v.numFmtId){let D=this.index.numFmt[v.numFmtId]||u.getDefaultFmtCode(v.numFmtId);D&&(x.numFmt=D)}function A(D,F,O){if(O||O===0){let I=F[O];I&&(x[D]=I)}}return A("font",this.model.fonts,v.fontId),A("border",this.model.borders,v.borderId),A("fill",this.model.fills,v.fillId),v.alignment&&(x.alignment=v.alignment),v.protection&&(x.protection=v.protection),x}addDxfStyle(m){return m.numFmt&&(m.numFmtId=this._addNumFmtStr(m.numFmt)),this.model.dxfs.push(m),this.model.dxfs.length-1}getDxfStyle(m){return this.model.dxfs[m]}_addStyle(m){let v=this.map.style.toXml(m),x=this.index.style[v];return x===void 0&&(x=this.index.style[v]=this.model.styles.length,this.model.styles.push(v)),x}_addNumFmtStr(m){let v=u.getDefaultFmtId(m);if(v!==void 0||(v=this.index.numFmt[m],v!==void 0))return v;v=this.index.numFmt[m]=164+this.model.numFmts.length;let x=this.map.numFmt.toXml({id:v,formatCode:m});return this.model.numFmts.push(x),v}_addFont(m){let v=this.map.font.toXml(m),x=this.index.font[v];return x===void 0&&(x=this.index.font[v]=this.model.fonts.length,this.model.fonts.push(v)),x}_addBorder(m){let v=this.map.border.toXml(m),x=this.index.border[v];return x===void 0&&(x=this.index.border[v]=this.model.borders.length,this.model.borders.push(v)),x}_addFill(m){let v=this.map.fill.toXml(m),x=this.index.fill[v];return x===void 0&&(x=this.index.fill[v]=this.model.fills.length,this.model.fills.push(v)),x}}f.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},f.STATIC_XFORMS={cellStyles:new a({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new a({tag:"dxfs",$:{count:0}}),tableStyles:new a({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new a({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},f.Mock=class extends f{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(g){return g.autodrain(),Promise.resolve()}addStyleModel(g,m){switch(m){case e.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){let g={numFmtId:u.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(g)}return this._dateStyleId}getStyleModel(){return{}}},i.exports=f},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(t,i,o){"use strict";let e=t("../base-xform");class n extends e{constructor(a){super(),this.model=a}get tag(){return"u"}render(a,r){if((r=r||this.model)===!0)a.leafNode("u");else{let l=n.Attributes[r];l&&a.leafNode("u",l)}}parseOpen(a){a.name==="u"&&(this.model=a.attributes.val||!0)}parseText(){}parseClose(){return!1}}n.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},i.exports=n},{"../base-xform":32}],137:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("./filter-column-xform");i.exports=class extends e{constructor(){super(),this.map={filterColumn:new n}}get tag(){return"autoFilter"}prepare(s){s.columns.forEach((a,r)=>{this.map.filterColumn.prepare(a,{index:r})})}render(s,a){return s.openNode(this.tag,{ref:a.autoFilterRef}),a.columns.forEach(r=>{this.map.filterColumn.render(s,r)}),s.closeNode(),!0}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.model={autoFilterRef:s.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[s.name],this.parser)return this.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+s)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"customFilter"}render(n,s){n.leafNode(this.tag,{val:s.val,operator:s.operator})}parseOpen(n){return n.name===this.tag&&(this.model={val:n.attributes.val,operator:n.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(t,i,o){"use strict";let e=t("../base-xform"),n=t("../list-xform"),s=t("./custom-filter-xform"),a=t("./filter-xform");i.exports=class extends e{constructor(){super(),this.map={customFilters:new n({tag:"customFilters",count:!1,empty:!0,childXform:new s}),filters:new n({tag:"filters",count:!1,empty:!0,childXform:new a})}}get tag(){return"filterColumn"}prepare(r,l){r.colId=l.index.toString()}render(r,l){return l.customFilters?(r.openNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),this.map.customFilters.render(r,l.customFilters),r.closeNode(),!0):(r.leafNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),!0)}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;let{attributes:l}=r;switch(r.name){case this.tag:return this.model={filterButton:l.hiddenButton==="0"},!0;default:if(this.parser=this.map[r.name],this.parser)return this.parseOpen(r),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"filter"}render(n,s){n.leafNode(this.tag,{val:s.val})}parseOpen(n){return n.name===this.tag&&(this.model={val:n.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"tableColumn"}prepare(n,s){n.id=s.index+1}render(n,s){return n.leafNode(this.tag,{id:s.id.toString(),name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId}),!0}parseOpen(n){if(n.name===this.tag){let{attributes:s}=n;return this.model={name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,i,o){"use strict";let e=t("../base-xform");i.exports=class extends e{get tag(){return"tableStyleInfo"}render(n,s){return n.leafNode(this.tag,{name:s.theme?s.theme:void 0,showFirstColumn:s.showFirstColumn?"1":"0",showLastColumn:s.showLastColumn?"1":"0",showRowStripes:s.showRowStripes?"1":"0",showColumnStripes:s.showColumnStripes?"1":"0"}),!0}parseOpen(n){if(n.name===this.tag){let{attributes:s}=n;return this.model={theme:s.name?s.name:null,showFirstColumn:s.showFirstColumn==="1",showLastColumn:s.showLastColumn==="1",showRowStripes:s.showRowStripes==="1",showColumnStripes:s.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,i,o){"use strict";let e=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("../list-xform"),a=t("./auto-filter-xform"),r=t("./table-column-xform"),l=t("./table-style-info-xform");class h extends n{constructor(){super(),this.map={autoFilter:new a,tableColumns:new s({tag:"tableColumns",count:!0,empty:!0,childXform:new r}),tableStyleInfo:new l}}prepare(u,p){this.map.autoFilter.prepare(u),this.map.tableColumns.prepare(u.columns,p)}get tag(){return"table"}render(u,p){u.openXml(e.StdDocAttributes),u.openNode(this.tag,{...h.TABLE_ATTRIBUTES,id:p.id,name:p.name,displayName:p.displayName||p.name,ref:p.tableRef,totalsRowCount:p.totalsRow?"1":void 0,totalsRowShown:p.totalsRow?void 0:"1",headerRowCount:p.headerRow?"1":"0"}),this.map.autoFilter.render(u,p),this.map.tableColumns.render(u,p.columns),this.map.tableStyleInfo.render(u,p.style),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;let{name:p,attributes:d}=u;switch(p){case this.tag:this.reset(),this.model={name:d.name,displayName:d.displayName||d.name,tableRef:d.ref,totalsRow:d.totalsRowCount==="1",headerRow:d.headerRowCount==="1"};break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((p,d)=>{this.model.columns[d].filterButton=p.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(u,p){u.columns.forEach(d=>{d.dxfId!==void 0&&(d.style=p.styles.getDxfStyle(d.dxfId))})}}h.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},i.exports=h},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(t,i,o){(function(e,n){(function(){"use strict";let s=t("fs"),a=t("jszip"),{PassThrough:r}=t("readable-stream"),l=t("../utils/zip-stream"),h=t("../utils/stream-buf"),c=t("../utils/utils"),u=t("../utils/xml-stream"),{bufferToString:p}=t("../utils/browser-buffer-decode"),d=t("./xform/style/styles-xform"),f=t("./xform/core/core-xform"),g=t("./xform/strings/shared-strings-xform"),m=t("./xform/core/relationships-xform"),v=t("./xform/core/content-types-xform"),x=t("./xform/core/app-xform"),A=t("./xform/book/workbook-xform"),D=t("./xform/sheet/worksheet-xform"),F=t("./xform/drawing/drawing-xform"),O=t("./xform/table/table-xform"),I=t("./xform/comment/comments-xform"),j=t("./xform/comment/vml-notes-xform"),U=t("./xml/theme1");class R{constructor(S){this.workbook=S}async readFile(S,P){if(!await c.fs.exists(S))throw new Error("File not found: "+S);let b=s.createReadStream(S);try{let y=await this.read(b,P);return b.close(),y}catch(y){throw b.close(),y}}parseRels(S){return new m().parseStream(S)}parseWorkbook(S){return new A().parseStream(S)}parseSharedStrings(S){return new g().parseStream(S)}reconcile(S,P){let b=new A,y=new D(P),_=new F,w=new O;b.reconcile(S);let E={media:S.media,mediaIndex:S.mediaIndex};Object.keys(S.drawings).forEach(z=>{let H=S.drawings[z],V=S.drawingRels[z];V&&(E.rels=V.reduce((B,W)=>(B[W.Id]=W,B),{}),(H.anchors||[]).forEach(B=>{let W=B.picture&&B.picture.hyperlinks;W&&E.rels[W.rId]&&(W.hyperlink=E.rels[W.rId].Target,delete W.rId)}),_.reconcile(H,E))});let C={styles:S.styles};Object.values(S.tables).forEach(z=>{w.reconcile(z,C)});let M={styles:S.styles,sharedStrings:S.sharedStrings,media:S.media,mediaIndex:S.mediaIndex,date1904:S.properties&&S.properties.date1904,drawings:S.drawings,comments:S.comments,tables:S.tables,vmlDrawings:S.vmlDrawings};S.worksheets.forEach(z=>{z.relationships=S.worksheetRels[z.sheetNo],y.reconcile(z,M)}),delete S.worksheetHash,delete S.worksheetRels,delete S.globalRels,delete S.sharedStrings,delete S.workbookRels,delete S.sheetDefs,delete S.styles,delete S.mediaIndex,delete S.drawings,delete S.drawingRels,delete S.vmlDrawings}async _processWorksheetEntry(S,P,b,y,_){let w=new D(y),E=await w.parseStream(S);E.sheetNo=b,P.worksheetHash[_]=E,P.worksheets.push(E)}async _processCommentEntry(S,P,b){let y=new I,_=await y.parseStream(S);P.comments[`../${b}.xml`]=_}async _processTableEntry(S,P,b){let y=new O,_=await y.parseStream(S);P.tables[`../tables/${b}.xml`]=_}async _processWorksheetRelsEntry(S,P,b){let y=new m,_=await y.parseStream(S);P.worksheetRels[b]=_}async _processMediaEntry(S,P,b){let y=b.lastIndexOf(".");if(y>=1){let _=b.substr(y+1),w=b.substr(0,y);await new Promise((E,C)=>{let M=new h;M.on("finish",()=>{P.mediaIndex[b]=P.media.length,P.mediaIndex[w]=P.media.length;let z={type:"image",name:w,extension:_,buffer:M.toBuffer()};P.media.push(z),E()}),S.on("error",z=>{C(z)}),S.pipe(M)})}}async _processDrawingEntry(S,P,b){let y=new F,_=await y.parseStream(S);P.drawings[b]=_}async _processDrawingRelsEntry(S,P,b){let y=new m,_=await y.parseStream(S);P.drawingRels[b]=_}async _processVmlDrawingEntry(S,P,b){let y=new j,_=await y.parseStream(S);P.vmlDrawings[`../drawings/${b}.vml`]=_}async _processThemeEntry(S,P,b){await new Promise((y,_)=>{let w=new h;S.on("error",_),w.on("error",_),w.on("finish",()=>{P.themes[b]=w.read().toString(),y()}),S.pipe(w)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(S,P){!S[Symbol.asyncIterator]&&S.pipe&&(S=S.pipe(new r));let b=[];for await(let y of S)b.push(y);return this.load(n.concat(b),P)}async load(S,P){let b;b=P&&P.base64?n.from(S.toString(),"base64"):S;let y={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},_=await a.loadAsync(b);for(let w of Object.values(_.files))if(!w.dir){let E,C=w.name;if(C[0]==="/"&&(C=C.substr(1)),C.match(/xl\/media\//)||C.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))E=new r,E.write(await w.async("nodebuffer"));else{let M;E=new r({writableObjectMode:!0,readableObjectMode:!0}),M=e.browser?p(await w.async("nodebuffer")):await w.async("string");let z=16384;for(let H=0;H{if(b.type==="image"){let y=`xl/media/${b.name}.${b.extension}`;if(b.filename){let _=await(function(w,E){return new Promise((C,M)=>{s.readFile(w,E,(z,H)=>{z?M(z):C(H)})})})(b.filename);return S.append(_,{name:y})}if(b.buffer)return S.append(b.buffer,{name:y});if(b.base64){let _=b.base64,w=_.substring(_.indexOf(",")+1);return S.append(w,{name:y,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(S,P){let b=new F,y=new m;P.worksheets.forEach(_=>{let{drawing:w}=_;if(w){b.prepare(w,{});let E=b.toXml(w);S.append(E,{name:`xl/drawings/${w.name}.xml`}),E=y.toXml(w.rels),S.append(E,{name:`xl/drawings/_rels/${w.name}.xml.rels`})}})}addTables(S,P){let b=new O;P.worksheets.forEach(y=>{let{tables:_}=y;_.forEach(w=>{b.prepare(w,{});let E=b.toXml(w);S.append(E,{name:"xl/tables/"+w.target})})})}async addContentTypes(S,P){let b=new v().toXml(P);S.append(b,{name:"[Content_Types].xml"})}async addApp(S,P){let b=new x().toXml(P);S.append(b,{name:"docProps/app.xml"})}async addCore(S,P){let b=new f;S.append(b.toXml(P),{name:"docProps/core.xml"})}async addThemes(S,P){let b=P.themes||{theme1:U};Object.keys(b).forEach(y=>{let _=b[y],w=`xl/theme/${y}.xml`;S.append(_,{name:w})})}async addOfficeRels(S){let P=new m().toXml([{Id:"rId1",Type:R.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:R.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:R.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);S.append(P,{name:"_rels/.rels"})}async addWorkbookRels(S,P){let b=1,y=[{Id:"rId"+b++,Type:R.RelType.Styles,Target:"styles.xml"},{Id:"rId"+b++,Type:R.RelType.Theme,Target:"theme/theme1.xml"}];P.sharedStrings.count&&y.push({Id:"rId"+b++,Type:R.RelType.SharedStrings,Target:"sharedStrings.xml"}),P.worksheets.forEach(w=>{w.rId="rId"+b++,y.push({Id:w.rId,Type:R.RelType.Worksheet,Target:`worksheets/sheet${w.id}.xml`})});let _=new m().toXml(y);S.append(_,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(S,P){P.sharedStrings&&P.sharedStrings.count&&S.append(P.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(S,P){let{xml:b}=P.styles;b&&S.append(b,{name:"xl/styles.xml"})}async addWorkbook(S,P){let b=new A;S.append(b.toXml(P),{name:"xl/workbook.xml"})}async addWorksheets(S,P){let b=new D,y=new m,_=new I,w=new j;P.worksheets.forEach(E=>{let C=new u;b.render(C,E),S.append(C.xml,{name:`xl/worksheets/sheet${E.id}.xml`}),E.rels&&E.rels.length&&(C=new u,y.render(C,E.rels),S.append(C.xml,{name:`xl/worksheets/_rels/sheet${E.id}.xml.rels`})),E.comments.length>0&&(C=new u,_.render(C,E),S.append(C.xml,{name:`xl/comments${E.id}.xml`}),C=new u,w.render(C,E),S.append(C.xml,{name:`xl/drawings/vmlDrawing${E.id}.vml`}))})}_finalize(S){return new Promise((P,b)=>{S.on("finish",()=>{P(this)}),S.on("error",b),S.finalize()})}prepareModel(S,P){S.creator=S.creator||"ExcelJS",S.lastModifiedBy=S.lastModifiedBy||"ExcelJS",S.created=S.created||new Date,S.modified=S.modified||new Date,S.useSharedStrings=P.useSharedStrings===void 0||P.useSharedStrings,S.useStyles=P.useStyles===void 0||P.useStyles,S.sharedStrings=new g,S.styles=S.useStyles?new d(!0):new d.Mock;let b=new A,y=new D;b.prepare(S);let _={sharedStrings:S.sharedStrings,styles:S.styles,date1904:S.properties.date1904,drawingsCount:0,media:S.media};_.drawings=S.drawings=[],_.commentRefs=S.commentRefs=[];let w=0;S.tables=[],S.worksheets.forEach(E=>{E.tables.forEach(C=>{w++,C.target=`table${w}.xml`,C.id=w,S.tables.push(C)}),y.prepare(E,_)})}async write(S,P){P=P||{};let{model:b}=this.workbook,y=new l.ZipWriter(P.zip);return y.pipe(S),this.prepareModel(b,P),await this.addContentTypes(y,b),await this.addOfficeRels(y,b),await this.addWorkbookRels(y,b),await this.addWorksheets(y,b),await this.addSharedStrings(y,b),await this.addDrawings(y,b),await this.addTables(y,b),await Promise.all([this.addThemes(y,b),this.addStyles(y,b)]),await this.addMedia(y,b),await Promise.all([this.addApp(y,b),this.addCore(y,b)]),await this.addWorkbook(y,b),this._finalize(y)}writeFile(S,P){let b=s.createWriteStream(S);return new Promise((y,_)=>{b.on("finish",()=>{y()}),b.on("error",w=>{_(w)}),this.write(b,P).then(()=>{b.end()}).catch(w=>{_(w)})})}async writeBuffer(S){let P=new h;return await this.write(P,S),P.read()}}R.RelType=t("./rel-type"),i.exports=R}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(t,i,o){"use strict";i.exports=` + `},{}],146:[function(t,i,o){(function(e){(function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CsvFormatterStream=void 0;let n=t("stream"),s=t("./formatter");class a extends n.Transform{constructor(l){super({writableObjectMode:l.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=l,this.rowFormatter=new s.RowFormatter(l),this.hasWrittenBOM=!l.writeBOM}transform(l){return this.rowFormatter.rowTransform=l,this}_transform(l,h,c){let u=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(l,(p,d)=>p?(u=!0,c(p)):(d&&d.forEach(f=>{this.push(e.from(f,"utf8"))}),u=!0,c()))}catch(p){if(u)throw p;c(p)}}_flush(l){this.rowFormatter.finish((h,c)=>h?l(h):(c&&c.forEach(u=>{this.push(e.from(u,"utf8"))}),l()))}}o.CsvFormatterStream=a}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.FormatterOptions=void 0,o.FormatterOptions=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var n;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` +`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,e||{}),e?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),e?.quote===!0?this.quote='"':e?.quote===!1&&(this.quote=""),typeof e?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((n=e.writeHeaders)===null||n===void 0||n),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,i,o){"use strict";var e=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(o,"__esModule",{value:!0}),o.FieldFormatter=void 0;let n=e(t("lodash.isboolean")),s=e(t("lodash.isnil")),a=e(t("lodash.escaperegexp"));o.FieldFormatter=class{constructor(r){this._headers=null,this.formatterOptions=r,r.headers!==null&&(this.headers=r.headers),this.REPLACE_REGEXP=new RegExp(r.quote,"g");let l=`[${r.delimiter}${a.default(r.rowDelimiter)}|\r| +]`;this.ESCAPE_REGEXP=new RegExp(l)}set headers(r){this._headers=r}shouldQuote(r,l){let h=l?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return n.default(h)?h:Array.isArray(h)?h[r]:this._headers!==null&&h[this._headers[r]]}format(r,l,h){let c=(""+(s.default(r)?"":r)).replace(/\0/g,""),{formatterOptions:u}=this;return u.quote!==""&&c.indexOf(u.quote)!==-1?this.quoteField(c.replace(this.REPLACE_REGEXP,u.escapedQuote)):c.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(l,h)?this.quoteField(c):c}quoteField(r){let{quote:l}=this.formatterOptions;return`${l}${r}${l}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(t,i,o){"use strict";var e=function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(o,"__esModule",{value:!0}),o.RowFormatter=void 0;let n=e(t("lodash.isfunction")),s=e(t("lodash.isequal")),a=t("./FieldFormatter"),r=t("../types");class l{constructor(c){this.rowCount=0,this.formatterOptions=c,this.fieldFormatter=new a.FieldFormatter(c),this.headers=c.headers,this.shouldWriteHeaders=c.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),c.transform&&(this.rowTransform=c.transform)}static isRowHashArray(c){return!!Array.isArray(c)&&Array.isArray(c[0])&&c[0].length===2}static isRowArray(c){return Array.isArray(c)&&!this.isRowHashArray(c)}static gatherHeaders(c){return l.isRowHashArray(c)?c.map(u=>u[0]):Array.isArray(c)?c:Object.keys(c)}static createTransform(c){return r.isSyncTransform(c)?(u,p)=>{let d=null;try{d=c(u)}catch(f){return p(f)}return p(null,d)}:(u,p)=>{c(u,p)}}set rowTransform(c){if(!n.default(c))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(c)}format(c,u){this.callTransformer(c,(p,d)=>{if(p)return u(p);if(!c)return u(null);let f=[];if(d){let{shouldFormatColumns:g,headers:m}=this.checkHeaders(d);if(this.shouldWriteHeaders&&m&&!this.hasWrittenHeaders&&(f.push(this.formatColumns(m,!0)),this.hasWrittenHeaders=!0),g){let v=this.gatherColumns(d);f.push(this.formatColumns(v,!1))}}return u(null,f)})}finish(c){let u=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return c(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));u.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&u.push(this.formatterOptions.rowDelimiter),c(null,u)}checkHeaders(c){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};let u=l.gatherHeaders(c);return this.headers=u,this.fieldFormatter.headers=u,this.shouldWriteHeaders?{shouldFormatColumns:!s.default(u,c),headers:u}:{shouldFormatColumns:!0,headers:null}}gatherColumns(c){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(c)?l.isRowHashArray(c)?this.headers.map((u,p)=>{let d=c[p];return d?d[1]:""}):l.isRowArray(c)&&!this.shouldWriteHeaders?c:this.headers.map((u,p)=>c[p]):this.headers.map(u=>c[u])}callTransformer(c,u){return this._rowTransform?this._rowTransform(c,u):u(null,c)}formatColumns(c,u){let p=c.map((f,g)=>this.fieldFormatter.format(f,g,u)).join(this.formatterOptions.delimiter),{rowCount:d}=this;return this.rowCount+=1,d?[this.formatterOptions.rowDelimiter,p].join(""):p}}o.RowFormatter=l},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.FieldFormatter=o.RowFormatter=void 0;var e=t("./RowFormatter");Object.defineProperty(o,"RowFormatter",{enumerable:!0,get:function(){return e.RowFormatter}});var n=t("./FieldFormatter");Object.defineProperty(o,"FieldFormatter",{enumerable:!0,get:function(){return n.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(t,i,o){(function(e){(function(){"use strict";var n=Object.create?function(g,m,v,x){x===void 0&&(x=v),Object.defineProperty(g,x,{enumerable:!0,get:function(){return m[v]}})}:function(g,m,v,x){x===void 0&&(x=v),g[x]=m[v]},s=Object.create?function(g,m){Object.defineProperty(g,"default",{enumerable:!0,value:m})}:function(g,m){g.default=m},a=function(g){if(g&&g.__esModule)return g;var m={};if(g!=null)for(var v in g)v!=="default"&&Object.prototype.hasOwnProperty.call(g,v)&&n(m,g,v);return s(m,g),m},r=function(g,m){for(var v in g)v==="default"||Object.prototype.hasOwnProperty.call(m,v)||n(m,g,v)};Object.defineProperty(o,"__esModule",{value:!0}),o.writeToPath=o.writeToString=o.writeToBuffer=o.writeToStream=o.write=o.format=o.FormatterOptions=o.CsvFormatterStream=void 0;let l=t("util"),h=t("stream"),c=a(t("fs")),u=t("./FormatterOptions"),p=t("./CsvFormatterStream");r(t("./types"),o);var d=t("./CsvFormatterStream");Object.defineProperty(o,"CsvFormatterStream",{enumerable:!0,get:function(){return d.CsvFormatterStream}});var f=t("./FormatterOptions");Object.defineProperty(o,"FormatterOptions",{enumerable:!0,get:function(){return f.FormatterOptions}}),o.format=g=>new p.CsvFormatterStream(new u.FormatterOptions(g)),o.write=(g,m)=>{let v=o.format(m),x=l.promisify((A,D)=>{v.write(A,void 0,D)});return g.reduce((A,D)=>A.then(()=>x(D)),Promise.resolve()).then(()=>v.end()).catch(A=>{v.emit("error",A)}),v},o.writeToStream=(g,m,v)=>o.write(m,v).pipe(g),o.writeToBuffer=function(g){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=[],x=new h.Writable({write(A,D,F){v.push(A),F()}});return new Promise((A,D)=>{x.on("error",D).on("finish",()=>A(e.concat(v))),o.write(g,m).pipe(x)})},o.writeToString=(g,m)=>o.writeToBuffer(g,m).then(v=>v.toString()),o.writeToPath=(g,m,v)=>{let x=c.createWriteStream(g,{encoding:"utf8"});return o.write(m,v).pipe(x)}}).call(this)}).call(this,t("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isSyncTransform=void 0,o.isSyncTransform=e=>e.length===1},{}],153:[function(t,i,o){(function(e){(function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CsvParserStream=void 0;let n=t("string_decoder"),s=t("stream"),a=t("./transforms"),r=t("./parser");class l extends s.Transform{constructor(c){super({objectMode:c.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=c,this.parser=new r.Parser(c),this.headerTransformer=new a.HeaderTransformer(c),this.decoder=new n.StringDecoder(c.encoding),this.rowTransformerValidator=new a.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(c){return this.rowTransformerValidator.rowTransform=c,this}validate(c){return this.rowTransformerValidator.rowValidator=c,this}emit(c){if(c==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var u=arguments.length,p=new Array(u>1?u-1:0),d=1;d{let g=x=>x?u(x):f%100!=0?d(f+1):void e(()=>d(f+1));if(this.checkAndEmitHeaders(),f>=p||this.hasHitRowLimit)return u();if(this.parsedLineCount+=1,this.shouldSkipLine)return g();let m=c[f];this.rowCount+=1,this.parsedRowCount+=1;let v=this.rowCount;return this.transformRow(m,(x,A)=>{if(x)return this.rowCount-=1,g(x);if(!A)return g(new Error("expected transform result"));if(A.isValid){if(A.row)return this.pushRow(A.row,g)}else this.emit("data-invalid",A.row,v,A.reason);return g()})};d(0)}transformRow(c,u){try{this.headerTransformer.transform(c,(p,d)=>p?u(p):d?d.isValid?d.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(d.row,u):this.skipRow(u):(this.rowCount-=1,this.parsedRowCount-=1,u(null,{row:null,isValid:!0})):this.shouldEmitRows?u(null,{isValid:!1,row:c}):this.skipRow(u):u(new Error("Expected result from header transform")))}catch(p){u(p)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(c){return this.rowCount-=1,c(null,{row:null,isValid:!0})}pushRow(c,u){try{this.parserOptions.objectMode?this.push(c):this.push(JSON.stringify(c)),u()}catch(p){u(p)}}static wrapDoneCallback(c){let u=!1;return function(p){if(p){if(u)throw p;return u=!0,void c(p)}for(var d=arguments.length,f=new Array(d>1?d-1:0),g=1;g1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=n.default(this.delimiter),this.escapeChar=(r=this.escape)!==null&&r!==void 0?r:this.quote,this.supportsComments=!s.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(t,i,o){"use strict";var e=Object.create?function(d,f,g,m){m===void 0&&(m=g),Object.defineProperty(d,m,{enumerable:!0,get:function(){return f[g]}})}:function(d,f,g,m){m===void 0&&(m=g),d[m]=f[g]},n=Object.create?function(d,f){Object.defineProperty(d,"default",{enumerable:!0,value:f})}:function(d,f){d.default=f},s=function(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var g in d)g!=="default"&&Object.prototype.hasOwnProperty.call(d,g)&&e(f,d,g);return n(f,d),f},a=function(d,f){for(var g in d)g==="default"||Object.prototype.hasOwnProperty.call(f,g)||e(f,d,g)};Object.defineProperty(o,"__esModule",{value:!0}),o.parseString=o.parseFile=o.parseStream=o.parse=o.ParserOptions=o.CsvParserStream=void 0;let r=s(t("fs")),l=t("stream"),h=t("./ParserOptions"),c=t("./CsvParserStream");a(t("./types"),o);var u=t("./CsvParserStream");Object.defineProperty(o,"CsvParserStream",{enumerable:!0,get:function(){return u.CsvParserStream}});var p=t("./ParserOptions");Object.defineProperty(o,"ParserOptions",{enumerable:!0,get:function(){return p.ParserOptions}}),o.parse=d=>new c.CsvParserStream(new h.ParserOptions(d)),o.parseStream=(d,f)=>d.pipe(new c.CsvParserStream(new h.ParserOptions(f))),o.parseFile=function(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.createReadStream(d).pipe(new c.CsvParserStream(new h.ParserOptions(f)))},o.parseString=(d,f)=>{let g=new l.Readable;return g.push(d),g.push(null),g.pipe(new c.CsvParserStream(new h.ParserOptions(f)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Parser=void 0;let e=t("./Scanner"),n=t("./RowParser"),s=t("./Token");class a{constructor(l){this.parserOptions=l,this.rowParser=new n.RowParser(this.parserOptions)}static removeBOM(l){return l&&l.charCodeAt(0)===65279?l.slice(1):l}parse(l,h){let c=new e.Scanner({line:a.removeBOM(l),parserOptions:this.parserOptions,hasMoreData:h});return this.parserOptions.supportsComments?this.parseWithComments(c):this.parseWithoutComments(c)}parseWithoutComments(l){let h=[],c=!0;for(;c;)c=this.parseRow(l,h);return{line:l.line,rows:h}}parseWithComments(l){let{parserOptions:h}=this,c=[];for(let u=l.nextCharacterToken;u!==null;u=l.nextCharacterToken)if(s.Token.isTokenComment(u,h)){if(l.advancePastLine()===null)return{line:l.lineFromCursor,rows:c};if(!l.hasMoreCharacters)return{line:l.lineFromCursor,rows:c};l.truncateToCursor()}else if(!this.parseRow(l,c))break;return{line:l.line,rows:c}}parseRow(l,h){if(!l.nextNonSpaceToken)return!1;let c=this.rowParser.parse(l);return c!==null&&(this.parserOptions.ignoreEmpty&&n.RowParser.isEmptyRow(c)||h.push(c),!0)}}o.Parser=a},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.RowParser=void 0;let e=t("./column"),n=t("./Token");o.RowParser=class{constructor(s){this.parserOptions=s,this.columnParser=new e.ColumnParser(s)}static isEmptyRow(s){return s.join("").replace(/\s+/g,"")===""}parse(s){let{parserOptions:a}=this,{hasMoreData:r}=s,l=s,h=[],c=this.getStartToken(l,h);for(;c;){if(n.Token.isTokenRowDelimiter(c))return l.advancePastToken(c),!l.hasMoreCharacters&&n.Token.isTokenCarriageReturn(c,a)&&r?null:(l.truncateToCursor(),h);if(!this.shouldSkipColumnParse(l,c,h)){let u=this.columnParser.parse(l);if(u===null)return null;h.push(u)}c=l.nextNonSpaceToken}return r?null:(l.truncateToCursor(),h)}getStartToken(s,a){let r=s.nextNonSpaceToken;return r!==null&&n.Token.isTokenDelimiter(r,this.parserOptions)?(a.push(""),s.nextNonSpaceToken):r}shouldSkipColumnParse(s,a,r){let{parserOptions:l}=this;if(n.Token.isTokenDelimiter(a,l)){s.advancePastToken(a);let h=s.nextCharacterToken;if(!s.hasMoreCharacters||h!==null&&n.Token.isTokenRowDelimiter(h)||h!==null&&n.Token.isTokenDelimiter(h,l))return r.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Scanner=void 0;let e=t("./Token"),n=/((?:\r\n)|\n|\r)/;o.Scanner=class{constructor(s){this.cursor=0,this.line=s.line,this.lineLength=this.line.length,this.parserOptions=s.parserOptions,this.hasMoreData=s.hasMoreData,this.cursor=s.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){let{lineFromCursor:s}=this,a=this.parserOptions.NEXT_TOKEN_REGEXP;if(s.search(a)===-1)return null;let r=a.exec(s);if(r==null)return null;let l=r[1],h=this.cursor+(r.index||0);return new e.Token({token:l,startCursor:h,endCursor:h+l.length-1})}get nextCharacterToken(){let{cursor:s,lineLength:a}=this;return a<=s?null:new e.Token({token:this.line[s],startCursor:s,endCursor:s})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){let s=n.exec(this.lineFromCursor);return s?(this.cursor+=(s.index||0)+s[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(s){return this.cursor=s,this}advanceToToken(s){return this.cursor=s.startCursor,this}advancePastToken(s){return this.cursor=s.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Token=void 0,o.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){let n=e.token;return n==="\r"||n===` +`||n===`\r +`}static isTokenCarriageReturn(e,n){return e.token===n.carriageReturn}static isTokenComment(e,n){return n.supportsComments&&!!e&&e.token===n.comment}static isTokenEscapeCharacter(e,n){return e.token===n.escapeChar}static isTokenQuote(e,n){return e.token===n.quote}static isTokenDelimiter(e,n){return e.token===n.delimiter}}},{}],160:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ColumnFormatter=void 0,o.ColumnFormatter=class{constructor(e){e.trim?this.format=n=>n.trim():e.ltrim?this.format=n=>n.trimLeft():e.rtrim?this.format=n=>n.trimRight():this.format=n=>n}}},{}],161:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ColumnParser=void 0;let e=t("./NonQuotedColumnParser"),n=t("./QuotedColumnParser"),s=t("../Token");o.ColumnParser=class{constructor(a){this.parserOptions=a,this.quotedColumnParser=new n.QuotedColumnParser(a),this.nonQuotedColumnParser=new e.NonQuotedColumnParser(a)}parse(a){let{nextNonSpaceToken:r}=a;return r!==null&&s.Token.isTokenQuote(r,this.parserOptions)?(a.advanceToToken(r),this.quotedColumnParser.parse(a)):this.nonQuotedColumnParser.parse(a)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.NonQuotedColumnParser=void 0;let e=t("./ColumnFormatter"),n=t("../Token");o.NonQuotedColumnParser=class{constructor(s){this.parserOptions=s,this.columnFormatter=new e.ColumnFormatter(s)}parse(s){if(!s.hasMoreCharacters)return null;let{parserOptions:a}=this,r=[],l=s.nextCharacterToken;for(;l&&!n.Token.isTokenDelimiter(l,a)&&!n.Token.isTokenRowDelimiter(l);l=s.nextCharacterToken)r.push(l.token),s.advancePastToken(l);return this.columnFormatter.format(r.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.QuotedColumnParser=void 0;let e=t("./ColumnFormatter"),n=t("../Token");o.QuotedColumnParser=class{constructor(s){this.parserOptions=s,this.columnFormatter=new e.ColumnFormatter(s)}parse(s){if(!s.hasMoreCharacters)return null;let a=s.cursor,{foundClosingQuote:r,col:l}=this.gatherDataBetweenQuotes(s);if(!r){if(s.advanceTo(a),!s.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${s.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(s),l}gatherDataBetweenQuotes(s){let{parserOptions:a}=this,r=!1,l=!1,h=[],c=s.nextCharacterToken;for(;!l&&c!==null;c=s.nextCharacterToken){let u=n.Token.isTokenQuote(c,a);if(!r&&u)r=!0;else if(r)if(n.Token.isTokenEscapeCharacter(c,a)){s.advancePastToken(c);let p=s.nextCharacterToken;p!==null&&(n.Token.isTokenQuote(p,a)||n.Token.isTokenEscapeCharacter(p,a))?(h.push(p.token),c=p):u?l=!0:h.push(c.token)}else u?l=!0:h.push(c.token);s.advancePastToken(c)}return{col:this.columnFormatter.format(h.join("")),foundClosingQuote:l}}checkForMalformedColumn(s){let{parserOptions:a}=this,{nextNonSpaceToken:r}=s;if(r){let l=n.Token.isTokenDelimiter(r,a),h=n.Token.isTokenRowDelimiter(r);if(!l&&!h){let c=s.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${a.escapedDelimiter}' OR new line got: '${r.token}'. at '${c}`)}s.advanceToToken(r)}else s.hasMoreData||s.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ColumnFormatter=o.QuotedColumnParser=o.NonQuotedColumnParser=o.ColumnParser=void 0;var e=t("./ColumnParser");Object.defineProperty(o,"ColumnParser",{enumerable:!0,get:function(){return e.ColumnParser}});var n=t("./NonQuotedColumnParser");Object.defineProperty(o,"NonQuotedColumnParser",{enumerable:!0,get:function(){return n.NonQuotedColumnParser}});var s=t("./QuotedColumnParser");Object.defineProperty(o,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}});var a=t("./ColumnFormatter");Object.defineProperty(o,"ColumnFormatter",{enumerable:!0,get:function(){return a.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.QuotedColumnParser=o.NonQuotedColumnParser=o.ColumnParser=o.Token=o.Scanner=o.RowParser=o.Parser=void 0;var e=t("./Parser");Object.defineProperty(o,"Parser",{enumerable:!0,get:function(){return e.Parser}});var n=t("./RowParser");Object.defineProperty(o,"RowParser",{enumerable:!0,get:function(){return n.RowParser}});var s=t("./Scanner");Object.defineProperty(o,"Scanner",{enumerable:!0,get:function(){return s.Scanner}});var a=t("./Token");Object.defineProperty(o,"Token",{enumerable:!0,get:function(){return a.Token}});var r=t("./column");Object.defineProperty(o,"ColumnParser",{enumerable:!0,get:function(){return r.ColumnParser}}),Object.defineProperty(o,"NonQuotedColumnParser",{enumerable:!0,get:function(){return r.NonQuotedColumnParser}}),Object.defineProperty(o,"QuotedColumnParser",{enumerable:!0,get:function(){return r.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(t,i,o){"use strict";var e=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(o,"__esModule",{value:!0}),o.HeaderTransformer=void 0;let n=e(t("lodash.isundefined")),s=e(t("lodash.isfunction")),a=e(t("lodash.uniq")),r=e(t("lodash.groupby"));o.HeaderTransformer=class{constructor(l){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=l,l.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(l.headers)?this.setHeaders(l.headers):s.default(l.headers)&&(this.headersTransform=l.headers)}transform(l,h){return this.shouldMapRow(l)?h(null,this.processRow(l)):h(null,{row:null,isValid:!0})}shouldMapRow(l){let{parserOptions:h}=this;if(!this.headersTransform&&h.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(l)){if(this.headersTransform)this.setHeaders(this.headersTransform(l));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(l)}return!1}return!0}processRow(l){if(!this.headers)return{row:l,isValid:!0};let{parserOptions:h}=this;if(!h.discardUnmappedColumns&&l.length>this.headersLength){if(!h.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${l.length}`);return{row:l,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${l.length}`}}return h.strictColumnHandling&&l.length!!u);if(a.default(c).length!==c.length){let u=r.default(c),p=Object.keys(u).filter(d=>u[d].length>1);throw new Error("Duplicate headers found "+JSON.stringify(p))}this.headers=l,this.receivedHeaders=!0,this.headersLength=((h=this.headers)===null||h===void 0?void 0:h.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(t,i,o){"use strict";var e=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(o,"__esModule",{value:!0}),o.RowTransformerValidator=void 0;let n=e(t("lodash.isfunction")),s=t("../types");class a{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(l){return s.isSyncTransform(l)?(h,c)=>{let u=null;try{u=l(h)}catch(p){return c(p)}return c(null,u)}:l}static createValidator(l){return s.isSyncValidate(l)?(h,c)=>{c(null,{row:h,isValid:l(h)})}:(h,c)=>{l(h,(u,p,d)=>u?c(u):c(null,p?{row:h,isValid:p,reason:d}:{row:h,isValid:!1,reason:d}))}}set rowTransform(l){if(!n.default(l))throw new TypeError("The transform should be a function");this._rowTransform=a.createTransform(l)}set rowValidator(l){if(!n.default(l))throw new TypeError("The validate should be a function");this._rowValidator=a.createValidator(l)}transformAndValidate(l,h){return this.callTransformer(l,(c,u)=>c?h(c):u?this.callValidator(u,(p,d)=>p?h(p):d&&!d.isValid?h(null,{row:u,isValid:!1,reason:d.reason}):h(null,{row:u,isValid:!0})):h(null,{row:null,isValid:!0}))}callTransformer(l,h){return this._rowTransform?this._rowTransform(l,h):h(null,l)}callValidator(l,h){return this._rowValidator?this._rowValidator(l,h):h(null,{row:l,isValid:!0})}}o.RowTransformerValidator=a},{"../types":169,"lodash.isfunction":446}],168:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.HeaderTransformer=o.RowTransformerValidator=void 0;var e=t("./RowTransformerValidator");Object.defineProperty(o,"RowTransformerValidator",{enumerable:!0,get:function(){return e.RowTransformerValidator}});var n=t("./HeaderTransformer");Object.defineProperty(o,"HeaderTransformer",{enumerable:!0,get:function(){return n.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(t,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isSyncValidate=o.isSyncTransform=void 0,o.isSyncTransform=e=>e.length===1,o.isSyncValidate=e=>e.length===1},{}],170:[function(t,i,o){"use strict";let e=o;e.bignum=t("bn.js"),e.define=t("./asn1/api").define,e.base=t("./asn1/base"),e.constants=t("./asn1/constants"),e.decoders=t("./asn1/decoders"),e.encoders=t("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(t,i,o){"use strict";let e=t("./encoders"),n=t("./decoders"),s=t("inherits");function a(r,l){this.name=r,this.body=l,this.decoders={},this.encoders={}}o.define=function(r,l){return new a(r,l)},a.prototype._createNamed=function(r){let l=this.name;function h(c){this._initNamed(c,l)}return s(h,r),h.prototype._initNamed=function(c,u){r.call(this,c,u)},new h(this)},a.prototype._getDecoder=function(r){return r=r||"der",this.decoders.hasOwnProperty(r)||(this.decoders[r]=this._createNamed(n[r])),this.decoders[r]},a.prototype.decode=function(r,l,h){return this._getDecoder(l).decode(r,h)},a.prototype._getEncoder=function(r){return r=r||"der",this.encoders.hasOwnProperty(r)||(this.encoders[r]=this._createNamed(e[r])),this.encoders[r]},a.prototype.encode=function(r,l,h){return this._getEncoder(l).encode(r,h)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(t,i,o){"use strict";let e=t("inherits"),n=t("../base/reporter").Reporter,s=t("safer-buffer").Buffer;function a(l,h){n.call(this,h),s.isBuffer(l)?(this.base=l,this.offset=0,this.length=l.length):this.error("Input not Buffer")}function r(l,h){if(Array.isArray(l))this.length=0,this.value=l.map((function(c){return r.isEncoderBuffer(c)||(c=new r(c,h)),this.length+=c.length,c}),this);else if(typeof l=="number"){if(!(0<=l&&l<=255))return h.error("non-byte EncoderBuffer value");this.value=l,this.length=1}else if(typeof l=="string")this.value=l,this.length=s.byteLength(l);else{if(!s.isBuffer(l))return h.error("Unsupported type: "+typeof l);this.value=l,this.length=l.length}}e(a,n),o.DecoderBuffer=a,a.isDecoderBuffer=function(l){return l instanceof a?!0:typeof l=="object"&&s.isBuffer(l.base)&&l.constructor.name==="DecoderBuffer"&&typeof l.offset=="number"&&typeof l.length=="number"&&typeof l.save=="function"&&typeof l.restore=="function"&&typeof l.isEmpty=="function"&&typeof l.readUInt8=="function"&&typeof l.skip=="function"&&typeof l.raw=="function"},a.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},a.prototype.restore=function(l){let h=new a(this.base);return h.offset=l.offset,h.length=this.offset,this.offset=l.offset,n.prototype.restore.call(this,l.reporter),h},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},a.prototype.skip=function(l,h){if(!(this.offset+l<=this.length))return this.error(h||"DecoderBuffer overrun");let c=new a(this.base);return c._reporterState=this._reporterState,c.offset=this.offset,c.length=this.offset+l,this.offset+=l,c},a.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},o.EncoderBuffer=r,r.isEncoderBuffer=function(l){return l instanceof r?!0:typeof l=="object"&&l.constructor.name==="EncoderBuffer"&&typeof l.length=="number"&&typeof l.join=="function"},r.prototype.join=function(l,h){return l||(l=s.alloc(this.length)),h||(h=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(c){c.join(l,h),h+=c.length})):(typeof this.value=="number"?l[h]=this.value:typeof this.value=="string"?l.write(this.value,h):s.isBuffer(this.value)&&this.value.copy(l,h),h+=this.length)),l}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(t,i,o){"use strict";let e=o;e.Reporter=t("./reporter").Reporter,e.DecoderBuffer=t("./buffer").DecoderBuffer,e.EncoderBuffer=t("./buffer").EncoderBuffer,e.Node=t("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(t,i,o){"use strict";let e=t("../base/reporter").Reporter,n=t("../base/buffer").EncoderBuffer,s=t("../base/buffer").DecoderBuffer,a=t("minimalistic-assert"),r=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(r);function h(u,p,d){let f={};this._baseState=f,f.name=d,f.enc=u,f.parent=p||null,f.children=null,f.tag=null,f.args=null,f.reverseArgs=null,f.choice=null,f.optional=!1,f.any=!1,f.obj=!1,f.use=null,f.useDecoder=null,f.key=null,f.default=null,f.explicit=null,f.implicit=null,f.contains=null,f.parent||(f.children=[],this._wrap())}i.exports=h;let c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){let u=this._baseState,p={};c.forEach((function(f){p[f]=u[f]}));let d=new this.constructor(p.parent);return d._baseState=p,d},h.prototype._wrap=function(){let u=this._baseState;l.forEach((function(p){this[p]=function(){let d=new this.constructor(this);return u.children.push(d),d[p].apply(d,arguments)}}),this)},h.prototype._init=function(u){let p=this._baseState;a(p.parent===null),u.call(this),p.children=p.children.filter((function(d){return d._baseState.parent===this}),this),a.equal(p.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(u){let p=this._baseState,d=u.filter((function(f){return f instanceof this.constructor}),this);u=u.filter((function(f){return!(f instanceof this.constructor)}),this),d.length!==0&&(a(p.children===null),p.children=d,d.forEach((function(f){f._baseState.parent=this}),this)),u.length!==0&&(a(p.args===null),p.args=u,p.reverseArgs=u.map((function(f){if(typeof f!="object"||f.constructor!==Object)return f;let g={};return Object.keys(f).forEach((function(m){m==(0|m)&&(m|=0);let v=f[m];g[v]=m})),g})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(u){h.prototype[u]=function(){let p=this._baseState;throw new Error(u+" not implemented for encoding: "+p.enc)}})),r.forEach((function(u){h.prototype[u]=function(){let p=this._baseState,d=Array.prototype.slice.call(arguments);return a(p.tag===null),p.tag=u,this._useArgs(d),this}})),h.prototype.use=function(u){a(u);let p=this._baseState;return a(p.use===null),p.use=u,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(u){let p=this._baseState;return a(p.default===null),p.default=u,p.optional=!0,this},h.prototype.explicit=function(u){let p=this._baseState;return a(p.explicit===null&&p.implicit===null),p.explicit=u,this},h.prototype.implicit=function(u){let p=this._baseState;return a(p.explicit===null&&p.implicit===null),p.implicit=u,this},h.prototype.obj=function(){let u=this._baseState,p=Array.prototype.slice.call(arguments);return u.obj=!0,p.length!==0&&this._useArgs(p),this},h.prototype.key=function(u){let p=this._baseState;return a(p.key===null),p.key=u,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(u){let p=this._baseState;return a(p.choice===null),p.choice=u,this._useArgs(Object.keys(u).map((function(d){return u[d]}))),this},h.prototype.contains=function(u){let p=this._baseState;return a(p.use===null),p.contains=u,this},h.prototype._decode=function(u,p){let d=this._baseState;if(d.parent===null)return u.wrapResult(d.children[0]._decode(u,p));let f,g=d.default,m=!0,v=null;if(d.key!==null&&(v=u.enterKey(d.key)),d.optional){let x=null;if(d.explicit!==null?x=d.explicit:d.implicit!==null?x=d.implicit:d.tag!==null&&(x=d.tag),x!==null||d.any){if(m=this._peekTag(u,x,d.any),u.isError(m))return m}else{let A=u.save();try{d.choice===null?this._decodeGeneric(d.tag,u,p):this._decodeChoice(u,p),m=!0}catch{m=!1}u.restore(A)}}if(d.obj&&m&&(f=u.enterObject()),m){if(d.explicit!==null){let A=this._decodeTag(u,d.explicit);if(u.isError(A))return A;u=A}let x=u.offset;if(d.use===null&&d.choice===null){let A;d.any&&(A=u.save());let D=this._decodeTag(u,d.implicit!==null?d.implicit:d.tag,d.any);if(u.isError(D))return D;d.any?g=u.raw(A):u=D}if(p&&p.track&&d.tag!==null&&p.track(u.path(),x,u.length,"tagged"),p&&p.track&&d.tag!==null&&p.track(u.path(),u.offset,u.length,"content"),d.any||(g=d.choice===null?this._decodeGeneric(d.tag,u,p):this._decodeChoice(u,p)),u.isError(g))return g;if(d.any||d.choice!==null||d.children===null||d.children.forEach((function(A){A._decode(u,p)})),d.contains&&(d.tag==="octstr"||d.tag==="bitstr")){let A=new s(g);g=this._getUse(d.contains,u._reporterState.obj)._decode(A,p)}}return d.obj&&m&&(g=u.leaveObject(f)),d.key===null||g===null&&m!==!0?v!==null&&u.exitKey(v):u.leaveKey(v,d.key,g),g},h.prototype._decodeGeneric=function(u,p,d){let f=this._baseState;return u==="seq"||u==="set"?null:u==="seqof"||u==="setof"?this._decodeList(p,u,f.args[0],d):/str$/.test(u)?this._decodeStr(p,u,d):u==="objid"&&f.args?this._decodeObjid(p,f.args[0],f.args[1],d):u==="objid"?this._decodeObjid(p,null,null,d):u==="gentime"||u==="utctime"?this._decodeTime(p,u,d):u==="null_"?this._decodeNull(p,d):u==="bool"?this._decodeBool(p,d):u==="objDesc"?this._decodeStr(p,u,d):u==="int"||u==="enum"?this._decodeInt(p,f.args&&f.args[0],d):f.use!==null?this._getUse(f.use,p._reporterState.obj)._decode(p,d):p.error("unknown tag: "+u)},h.prototype._getUse=function(u,p){let d=this._baseState;return d.useDecoder=this._use(u,p),a(d.useDecoder._baseState.parent===null),d.useDecoder=d.useDecoder._baseState.children[0],d.implicit!==d.useDecoder._baseState.implicit&&(d.useDecoder=d.useDecoder.clone(),d.useDecoder._baseState.implicit=d.implicit),d.useDecoder},h.prototype._decodeChoice=function(u,p){let d=this._baseState,f=null,g=!1;return Object.keys(d.choice).some((function(m){let v=u.save(),x=d.choice[m];try{let A=x._decode(u,p);if(u.isError(A))return!1;f={type:m,value:A},g=!0}catch{return u.restore(v),!1}return!0}),this),g?f:u.error("Choice not matched")},h.prototype._createEncoderBuffer=function(u){return new n(u,this.reporter)},h.prototype._encode=function(u,p,d){let f=this._baseState;if(f.default!==null&&f.default===u)return;let g=this._encodeValue(u,p,d);return g===void 0||this._skipDefault(g,p,d)?void 0:g},h.prototype._encodeValue=function(u,p,d){let f=this._baseState;if(f.parent===null)return f.children[0]._encode(u,p||new e);let g=null;if(this.reporter=p,f.optional&&u===void 0){if(f.default===null)return;u=f.default}let m=null,v=!1;if(f.any)g=this._createEncoderBuffer(u);else if(f.choice)g=this._encodeChoice(u,p);else if(f.contains)m=this._getUse(f.contains,d)._encode(u,p),v=!0;else if(f.children)m=f.children.map((function(x){if(x._baseState.tag==="null_")return x._encode(null,p,u);if(x._baseState.key===null)return p.error("Child should have a key");let A=p.enterKey(x._baseState.key);if(typeof u!="object")return p.error("Child expected, but input is not object");let D=x._encode(u[x._baseState.key],p,u);return p.leaveKey(A),D}),this).filter((function(x){return x})),m=this._createEncoderBuffer(m);else if(f.tag==="seqof"||f.tag==="setof"){if(!f.args||f.args.length!==1)return p.error("Too many args for : "+f.tag);if(!Array.isArray(u))return p.error("seqof/setof, but data is not Array");let x=this.clone();x._baseState.implicit=null,m=this._createEncoderBuffer(u.map((function(A){let D=this._baseState;return this._getUse(D.args[0],u)._encode(A,p)}),x))}else f.use!==null?g=this._getUse(f.use,d)._encode(u,p):(m=this._encodePrimitive(f.tag,u),v=!0);if(!f.any&&f.choice===null){let x=f.implicit!==null?f.implicit:f.tag,A=f.implicit===null?"universal":"context";x===null?f.use===null&&p.error("Tag could be omitted only for .use()"):f.use===null&&(g=this._encodeComposite(x,v,A,m))}return f.explicit!==null&&(g=this._encodeComposite(f.explicit,!1,"context",g)),g},h.prototype._encodeChoice=function(u,p){let d=this._baseState,f=d.choice[u.type];return f||a(!1,u.type+" not found in "+JSON.stringify(Object.keys(d.choice))),f._encode(u.value,p)},h.prototype._encodePrimitive=function(u,p){let d=this._baseState;if(/str$/.test(u))return this._encodeStr(p,u);if(u==="objid"&&d.args)return this._encodeObjid(p,d.reverseArgs[0],d.args[1]);if(u==="objid")return this._encodeObjid(p,null,null);if(u==="gentime"||u==="utctime")return this._encodeTime(p,u);if(u==="null_")return this._encodeNull();if(u==="int"||u==="enum")return this._encodeInt(p,d.args&&d.reverseArgs[0]);if(u==="bool")return this._encodeBool(p);if(u==="objDesc")return this._encodeStr(p,u);throw new Error("Unsupported tag: "+u)},h.prototype._isNumstr=function(u){return/^[0-9 ]*$/.test(u)},h.prototype._isPrintstr=function(u){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(u)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(t,i,o){"use strict";let e=t("inherits");function n(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}function s(a,r){this.path=a,this.rethrow(r)}o.Reporter=n,n.prototype.isError=function(a){return a instanceof s},n.prototype.save=function(){let a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},n.prototype.restore=function(a){let r=this._reporterState;r.obj=a.obj,r.path=r.path.slice(0,a.pathLen)},n.prototype.enterKey=function(a){return this._reporterState.path.push(a)},n.prototype.exitKey=function(a){let r=this._reporterState;r.path=r.path.slice(0,a-1)},n.prototype.leaveKey=function(a,r,l){let h=this._reporterState;this.exitKey(a),h.obj!==null&&(h.obj[r]=l)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){let a=this._reporterState,r=a.obj;return a.obj={},r},n.prototype.leaveObject=function(a){let r=this._reporterState,l=r.obj;return r.obj=a,l},n.prototype.error=function(a){let r,l=this._reporterState,h=a instanceof s;if(r=h?a:new s(l.path.map((function(c){return"["+JSON.stringify(c)+"]"})).join(""),a.message||a,a.stack),!l.options.partial)throw r;return h||l.errors.push(r),r},n.prototype.wrapResult=function(a){let r=this._reporterState;return r.options.partial?{result:this.isError(a)?null:a,errors:r.errors}:a},e(s,Error),s.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}},{inherits:440}],176:[function(t,i,o){"use strict";function e(n){let s={};return Object.keys(n).forEach((function(a){(0|a)==a&&(a|=0);let r=n[a];s[r]=a})),s}o.tagClass={0:"universal",1:"application",2:"context",3:"private"},o.tagClassByName=e(o.tagClass),o.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},o.tagByName=e(o.tag)},{}],177:[function(t,i,o){"use strict";let e=o;e._reverse=function(n){let s={};return Object.keys(n).forEach((function(a){(0|a)==a&&(a|=0);let r=n[a];s[r]=a})),s},e.der=t("./der")},{"./der":176}],178:[function(t,i,o){"use strict";let e=t("inherits"),n=t("bn.js"),s=t("../base/buffer").DecoderBuffer,a=t("../base/node"),r=t("../constants/der");function l(p){this.enc="der",this.name=p.name,this.entity=p,this.tree=new h,this.tree._init(p.body)}function h(p){a.call(this,"der",p)}function c(p,d){let f=p.readUInt8(d);if(p.isError(f))return f;let g=r.tagClass[f>>6],m=(32&f)==0;if((31&f)==31){let v=f;for(f=0;(128&v)==128;){if(v=p.readUInt8(d),p.isError(v))return v;f<<=7,f|=127&v}}else f&=31;return{cls:g,primitive:m,tag:f,tagStr:r.tag[f]}}function u(p,d,f){let g=p.readUInt8(f);if(p.isError(g))return g;if(!d&&g===128)return null;if((128&g)==0)return g;let m=127&g;if(m>4)return p.error("length octect is too long");g=0;for(let v=0;v=31?D.error("Multi-octet tag encoding unsupported"):(x||(F|=32),F|=a.tagClassByName[A||"universal"]<<6,F)})(c,u,p,this.reporter);if(d.length<128){let v=n.alloc(2);return v[0]=f,v[1]=d.length,this._createEncoderBuffer([v,d])}let g=1;for(let v=d.length;v>=256;v>>=8)g++;let m=n.alloc(2+g);m[0]=f,m[1]=128|g;for(let v=1+g,x=d.length;x>0;v--,x>>=8)m[v]=255&x;return this._createEncoderBuffer([m,d])},l.prototype._encodeStr=function(c,u){if(u==="bitstr")return this._createEncoderBuffer([0|c.unused,c.data]);if(u==="bmpstr"){let p=n.alloc(2*c.length);for(let d=0;d=40)return this.reporter.error("Second objid identifier OOB");c.splice(0,2,40*c[0]+c[1])}let d=0;for(let m=0;m=128;v>>=7)d++}let f=n.alloc(d),g=f.length-1;for(let m=c.length-1;m>=0;m--){let v=c[m];for(f[g--]=127&v;(v>>=7)>0;)f[g--]=128|127&v}return this._createEncoderBuffer(f)},l.prototype._encodeTime=function(c,u){let p,d=new Date(c);return u==="gentime"?p=[h(d.getUTCFullYear()),h(d.getUTCMonth()+1),h(d.getUTCDate()),h(d.getUTCHours()),h(d.getUTCMinutes()),h(d.getUTCSeconds()),"Z"].join(""):u==="utctime"?p=[h(d.getUTCFullYear()%100),h(d.getUTCMonth()+1),h(d.getUTCDate()),h(d.getUTCHours()),h(d.getUTCMinutes()),h(d.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+u+" time is not supported yet"),this._encodeStr(p,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(c,u){if(typeof c=="string"){if(!u)return this.reporter.error("String int or enum given, but no values map");if(!u.hasOwnProperty(c))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(c));c=u[c]}if(typeof c!="number"&&!n.isBuffer(c)){let f=c.toArray();!c.sign&&128&f[0]&&f.unshift(0),c=n.from(f)}if(n.isBuffer(c)){let f=c.length;c.length===0&&f++;let g=n.alloc(f);return c.copy(g),c.length===0&&(g[0]=0),this._createEncoderBuffer(g)}if(c<128)return this._createEncoderBuffer(c);if(c<256)return this._createEncoderBuffer([0,c]);let p=1;for(let f=c;f>=256;f>>=8)p++;let d=new Array(p);for(let f=d.length-1;f>=0;f--)d[f]=255&c,c>>=8;return 128&d[0]&&d.unshift(0),this._createEncoderBuffer(n.from(d))},l.prototype._encodeBool=function(c){return this._createEncoderBuffer(c?255:0)},l.prototype._use=function(c,u){return typeof c=="function"&&(c=c(u)),c._getEncoder("der").tree},l.prototype._skipDefault=function(c,u,p){let d=this._baseState,f;if(d.default===null)return!1;let g=c.join();if(d.defaultBuffer===void 0&&(d.defaultBuffer=this._encodeValue(d.default,u,p).join()),g.length!==d.defaultBuffer.length)return!1;for(f=0;f=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function c(k,S,P){var b=h(k,P);return P-1>=S&&(b|=h(k,P-1)<<4),b}function u(k,S,P,b){for(var y=0,_=Math.min(k.length,P),w=S;w<_;w++){var E=k.charCodeAt(w)-48;y*=b,y+=E>=49?E-49+10:E>=17?E-17+10:E}return y}r.isBN=function(k){return k instanceof r||k!==null&&typeof k=="object"&&k.constructor.wordSize===r.wordSize&&Array.isArray(k.words)},r.max=function(k,S){return k.cmp(S)>0?k:S},r.min=function(k,S){return k.cmp(S)<0?k:S},r.prototype._init=function(k,S,P){if(typeof k=="number")return this._initNumber(k,S,P);if(typeof k=="object")return this._initArray(k,S,P);S==="hex"&&(S=16),s(S===(0|S)&&S>=2&&S<=36);var b=0;(k=k.toString().replace(/\s+/g,""))[0]==="-"&&(b++,this.negative=1),b=0;b-=3)_=k[b]|k[b-1]<<8|k[b-2]<<16,this.words[y]|=_<>>26-w&67108863,(w+=24)>=26&&(w-=26,y++);else if(P==="le")for(b=0,y=0;b>>26-w&67108863,(w+=24)>=26&&(w-=26,y++);return this.strip()},r.prototype._parseHex=function(k,S,P){this.length=Math.ceil((k.length-S)/6),this.words=new Array(this.length);for(var b=0;b=S;b-=2)y=c(k,S,b)<<_,this.words[w]|=67108863&y,_>=18?(_-=18,w+=1,this.words[w]|=y>>>26):_+=8;else for(b=(k.length-S)%2==0?S+1:S;b=18?(_-=18,w+=1,this.words[w]|=y>>>26):_+=8;this.strip()},r.prototype._parseBase=function(k,S,P){this.words=[0],this.length=1;for(var b=0,y=1;y<=67108863;y*=S)b++;b--,y=y/S|0;for(var _=k.length-P,w=_%b,E=Math.min(_,_-w)+P,C=0,M=P;M1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},r.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?""};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(k,S,P){P.negative=S.negative^k.negative;var b=k.length+S.length|0;P.length=b,b=b-1|0;var y=0|k.words[0],_=0|S.words[0],w=y*_,E=67108863&w,C=w/67108864|0;P.words[0]=E;for(var M=1;M>>26,H=67108863&C,V=Math.min(M,S.length-1),B=Math.max(0,M-k.length+1);B<=V;B++){var W=M-B|0;z+=(w=(y=0|k.words[W])*(_=0|S.words[B])+H)/67108864|0,H=67108863&w}P.words[M]=0|H,C=0|z}return C!==0?P.words[M]=0|C:P.length--,P.strip()}r.prototype.toString=function(k,S){var P;if(S=0|S||1,(k=k||10)===16||k==="hex"){P="";for(var b=0,y=0,_=0;_>>24-b&16777215)!==0||_!==this.length-1?p[6-E.length]+E+P:E+P,(b+=2)>=26&&(b-=26,_--)}for(y!==0&&(P=y.toString(16)+P);P.length%S!=0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}if(k===(0|k)&&k>=2&&k<=36){var C=d[k],M=f[k];P="";var z=this.clone();for(z.negative=0;!z.isZero();){var H=z.modn(M).toString(k);P=(z=z.idivn(M)).isZero()?H+P:p[C-H.length]+H+P}for(this.isZero()&&(P="0"+P);P.length%S!=0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}s(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var k=this.words[0];return this.length===2?k+=67108864*this.words[1]:this.length===3&&this.words[2]===1?k+=4503599627370496+67108864*this.words[1]:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-k:k},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(k,S){return s(l!==void 0),this.toArrayLike(l,k,S)},r.prototype.toArray=function(k,S){return this.toArrayLike(Array,k,S)},r.prototype.toArrayLike=function(k,S,P){var b=this.byteLength(),y=P||Math.max(1,b);s(b<=y,"byte array longer than desired length"),s(y>0,"Requested array length <= 0"),this.strip();var _,w,E=S==="le",C=new k(y),M=this.clone();if(E){for(w=0;!M.isZero();w++)_=M.andln(255),M.iushrn(8),C[w]=_;for(;w=4096&&(P+=13,S>>>=13),S>=64&&(P+=7,S>>>=7),S>=8&&(P+=4,S>>>=4),S>=2&&(P+=2,S>>>=2),P+S},r.prototype._zeroBits=function(k){if(k===0)return 26;var S=k,P=0;return(8191&S)==0&&(P+=13,S>>>=13),(127&S)==0&&(P+=7,S>>>=7),(15&S)==0&&(P+=4,S>>>=4),(3&S)==0&&(P+=2,S>>>=2),(1&S)==0&&P++,P},r.prototype.bitLength=function(){var k=this.words[this.length-1],S=this._countBits(k);return 26*(this.length-1)+S},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var k=0,S=0;Sk.length?this.clone().ior(k):k.clone().ior(this)},r.prototype.uor=function(k){return this.length>k.length?this.clone().iuor(k):k.clone().iuor(this)},r.prototype.iuand=function(k){var S;S=this.length>k.length?k:this;for(var P=0;Pk.length?this.clone().iand(k):k.clone().iand(this)},r.prototype.uand=function(k){return this.length>k.length?this.clone().iuand(k):k.clone().iuand(this)},r.prototype.iuxor=function(k){var S,P;this.length>k.length?(S=this,P=k):(S=k,P=this);for(var b=0;bk.length?this.clone().ixor(k):k.clone().ixor(this)},r.prototype.uxor=function(k){return this.length>k.length?this.clone().iuxor(k):k.clone().iuxor(this)},r.prototype.inotn=function(k){s(typeof k=="number"&&k>=0);var S=0|Math.ceil(k/26),P=k%26;this._expand(S),P>0&&S--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-P),this.strip()},r.prototype.notn=function(k){return this.clone().inotn(k)},r.prototype.setn=function(k,S){s(typeof k=="number"&&k>=0);var P=k/26|0,b=k%26;return this._expand(P+1),this.words[P]=S?this.words[P]|1<k.length?(P=this,b=k):(P=k,b=this);for(var y=0,_=0;_>>26;for(;y!==0&&_>>26;if(this.length=P.length,y!==0)this.words[this.length]=y,this.length++;else if(P!==this)for(;_k.length?this.clone().iadd(k):k.clone().iadd(this)},r.prototype.isub=function(k){if(k.negative!==0){k.negative=0;var S=this.iadd(k);return k.negative=1,S._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(k),this.negative=1,this._normSign();var P,b,y=this.cmp(k);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;y>0?(P=this,b=k):(P=k,b=this);for(var _=0,w=0;w>26,this.words[w]=67108863&S;for(;_!==0&&w>26,this.words[w]=67108863&S;if(_===0&&w>>13,B=0|w[1],W=8191&B,N=B>>>13,T=0|w[2],$=8191&T,G=T>>>13,Q=0|w[3],Y=8191&Q,L=Q>>>13,tt=0|w[4],K=8191&tt,q=tt>>>13,X=0|w[5],Z=8191&X,et=X>>>13,rt=0|w[6],J=8191&rt,it=rt>>>13,lt=0|w[7],ot=8191<,ct=lt>>>13,_t=0|w[8],mt=8191&_t,xt=_t>>>13,Wt=0|w[9],At=8191&Wt,St=Wt>>>13,Et=0|E[0],vt=8191&Et,yt=Et>>>13,jt=0|E[1],Tt=8191&jt,It=jt>>>13,Je=0|E[2],Ot=8191&Je,Ft=Je>>>13,be=0|E[3],zt=8191&be,Xt=be>>>13,tr=0|E[4],Ut=8191&tr,$t=tr>>>13,Be=0|E[5],Vt=8191&Be,Lt=Be>>>13,or=0|E[6],Gt=8191&or,st=or>>>13,ht=0|E[7],dt=8191&ht,bt=ht>>>13,ie=0|E[8],kt=8191&ie,Nt=ie>>>13,he=0|E[9],Pt=8191&he,Ct=he>>>13;P.negative=k.negative^S.negative,P.length=19;var ue=(M+(b=Math.imul(H,vt))|0)+((8191&(y=(y=Math.imul(H,yt))+Math.imul(V,vt)|0))<<13)|0;M=((_=Math.imul(V,yt))+(y>>>13)|0)+(ue>>>26)|0,ue&=67108863,b=Math.imul(W,vt),y=(y=Math.imul(W,yt))+Math.imul(N,vt)|0,_=Math.imul(N,yt);var te=(M+(b=b+Math.imul(H,Tt)|0)|0)+((8191&(y=(y=y+Math.imul(H,It)|0)+Math.imul(V,Tt)|0))<<13)|0;M=((_=_+Math.imul(V,It)|0)+(y>>>13)|0)+(te>>>26)|0,te&=67108863,b=Math.imul($,vt),y=(y=Math.imul($,yt))+Math.imul(G,vt)|0,_=Math.imul(G,yt),b=b+Math.imul(W,Tt)|0,y=(y=y+Math.imul(W,It)|0)+Math.imul(N,Tt)|0,_=_+Math.imul(N,It)|0;var ee=(M+(b=b+Math.imul(H,Ot)|0)|0)+((8191&(y=(y=y+Math.imul(H,Ft)|0)+Math.imul(V,Ot)|0))<<13)|0;M=((_=_+Math.imul(V,Ft)|0)+(y>>>13)|0)+(ee>>>26)|0,ee&=67108863,b=Math.imul(Y,vt),y=(y=Math.imul(Y,yt))+Math.imul(L,vt)|0,_=Math.imul(L,yt),b=b+Math.imul($,Tt)|0,y=(y=y+Math.imul($,It)|0)+Math.imul(G,Tt)|0,_=_+Math.imul(G,It)|0,b=b+Math.imul(W,Ot)|0,y=(y=y+Math.imul(W,Ft)|0)+Math.imul(N,Ot)|0,_=_+Math.imul(N,Ft)|0;var pe=(M+(b=b+Math.imul(H,zt)|0)|0)+((8191&(y=(y=y+Math.imul(H,Xt)|0)+Math.imul(V,zt)|0))<<13)|0;M=((_=_+Math.imul(V,Xt)|0)+(y>>>13)|0)+(pe>>>26)|0,pe&=67108863,b=Math.imul(K,vt),y=(y=Math.imul(K,yt))+Math.imul(q,vt)|0,_=Math.imul(q,yt),b=b+Math.imul(Y,Tt)|0,y=(y=y+Math.imul(Y,It)|0)+Math.imul(L,Tt)|0,_=_+Math.imul(L,It)|0,b=b+Math.imul($,Ot)|0,y=(y=y+Math.imul($,Ft)|0)+Math.imul(G,Ot)|0,_=_+Math.imul(G,Ft)|0,b=b+Math.imul(W,zt)|0,y=(y=y+Math.imul(W,Xt)|0)+Math.imul(N,zt)|0,_=_+Math.imul(N,Xt)|0;var xe=(M+(b=b+Math.imul(H,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(H,$t)|0)+Math.imul(V,Ut)|0))<<13)|0;M=((_=_+Math.imul(V,$t)|0)+(y>>>13)|0)+(xe>>>26)|0,xe&=67108863,b=Math.imul(Z,vt),y=(y=Math.imul(Z,yt))+Math.imul(et,vt)|0,_=Math.imul(et,yt),b=b+Math.imul(K,Tt)|0,y=(y=y+Math.imul(K,It)|0)+Math.imul(q,Tt)|0,_=_+Math.imul(q,It)|0,b=b+Math.imul(Y,Ot)|0,y=(y=y+Math.imul(Y,Ft)|0)+Math.imul(L,Ot)|0,_=_+Math.imul(L,Ft)|0,b=b+Math.imul($,zt)|0,y=(y=y+Math.imul($,Xt)|0)+Math.imul(G,zt)|0,_=_+Math.imul(G,Xt)|0,b=b+Math.imul(W,Ut)|0,y=(y=y+Math.imul(W,$t)|0)+Math.imul(N,Ut)|0,_=_+Math.imul(N,$t)|0;var Ie=(M+(b=b+Math.imul(H,Vt)|0)|0)+((8191&(y=(y=y+Math.imul(H,Lt)|0)+Math.imul(V,Vt)|0))<<13)|0;M=((_=_+Math.imul(V,Lt)|0)+(y>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,b=Math.imul(J,vt),y=(y=Math.imul(J,yt))+Math.imul(it,vt)|0,_=Math.imul(it,yt),b=b+Math.imul(Z,Tt)|0,y=(y=y+Math.imul(Z,It)|0)+Math.imul(et,Tt)|0,_=_+Math.imul(et,It)|0,b=b+Math.imul(K,Ot)|0,y=(y=y+Math.imul(K,Ft)|0)+Math.imul(q,Ot)|0,_=_+Math.imul(q,Ft)|0,b=b+Math.imul(Y,zt)|0,y=(y=y+Math.imul(Y,Xt)|0)+Math.imul(L,zt)|0,_=_+Math.imul(L,Xt)|0,b=b+Math.imul($,Ut)|0,y=(y=y+Math.imul($,$t)|0)+Math.imul(G,Ut)|0,_=_+Math.imul(G,$t)|0,b=b+Math.imul(W,Vt)|0,y=(y=y+Math.imul(W,Lt)|0)+Math.imul(N,Vt)|0,_=_+Math.imul(N,Lt)|0;var We=(M+(b=b+Math.imul(H,Gt)|0)|0)+((8191&(y=(y=y+Math.imul(H,st)|0)+Math.imul(V,Gt)|0))<<13)|0;M=((_=_+Math.imul(V,st)|0)+(y>>>13)|0)+(We>>>26)|0,We&=67108863,b=Math.imul(ot,vt),y=(y=Math.imul(ot,yt))+Math.imul(ct,vt)|0,_=Math.imul(ct,yt),b=b+Math.imul(J,Tt)|0,y=(y=y+Math.imul(J,It)|0)+Math.imul(it,Tt)|0,_=_+Math.imul(it,It)|0,b=b+Math.imul(Z,Ot)|0,y=(y=y+Math.imul(Z,Ft)|0)+Math.imul(et,Ot)|0,_=_+Math.imul(et,Ft)|0,b=b+Math.imul(K,zt)|0,y=(y=y+Math.imul(K,Xt)|0)+Math.imul(q,zt)|0,_=_+Math.imul(q,Xt)|0,b=b+Math.imul(Y,Ut)|0,y=(y=y+Math.imul(Y,$t)|0)+Math.imul(L,Ut)|0,_=_+Math.imul(L,$t)|0,b=b+Math.imul($,Vt)|0,y=(y=y+Math.imul($,Lt)|0)+Math.imul(G,Vt)|0,_=_+Math.imul(G,Lt)|0,b=b+Math.imul(W,Gt)|0,y=(y=y+Math.imul(W,st)|0)+Math.imul(N,Gt)|0,_=_+Math.imul(N,st)|0;var Me=(M+(b=b+Math.imul(H,dt)|0)|0)+((8191&(y=(y=y+Math.imul(H,bt)|0)+Math.imul(V,dt)|0))<<13)|0;M=((_=_+Math.imul(V,bt)|0)+(y>>>13)|0)+(Me>>>26)|0,Me&=67108863,b=Math.imul(mt,vt),y=(y=Math.imul(mt,yt))+Math.imul(xt,vt)|0,_=Math.imul(xt,yt),b=b+Math.imul(ot,Tt)|0,y=(y=y+Math.imul(ot,It)|0)+Math.imul(ct,Tt)|0,_=_+Math.imul(ct,It)|0,b=b+Math.imul(J,Ot)|0,y=(y=y+Math.imul(J,Ft)|0)+Math.imul(it,Ot)|0,_=_+Math.imul(it,Ft)|0,b=b+Math.imul(Z,zt)|0,y=(y=y+Math.imul(Z,Xt)|0)+Math.imul(et,zt)|0,_=_+Math.imul(et,Xt)|0,b=b+Math.imul(K,Ut)|0,y=(y=y+Math.imul(K,$t)|0)+Math.imul(q,Ut)|0,_=_+Math.imul(q,$t)|0,b=b+Math.imul(Y,Vt)|0,y=(y=y+Math.imul(Y,Lt)|0)+Math.imul(L,Vt)|0,_=_+Math.imul(L,Lt)|0,b=b+Math.imul($,Gt)|0,y=(y=y+Math.imul($,st)|0)+Math.imul(G,Gt)|0,_=_+Math.imul(G,st)|0,b=b+Math.imul(W,dt)|0,y=(y=y+Math.imul(W,bt)|0)+Math.imul(N,dt)|0,_=_+Math.imul(N,bt)|0;var Ue=(M+(b=b+Math.imul(H,kt)|0)|0)+((8191&(y=(y=y+Math.imul(H,Nt)|0)+Math.imul(V,kt)|0))<<13)|0;M=((_=_+Math.imul(V,Nt)|0)+(y>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,b=Math.imul(At,vt),y=(y=Math.imul(At,yt))+Math.imul(St,vt)|0,_=Math.imul(St,yt),b=b+Math.imul(mt,Tt)|0,y=(y=y+Math.imul(mt,It)|0)+Math.imul(xt,Tt)|0,_=_+Math.imul(xt,It)|0,b=b+Math.imul(ot,Ot)|0,y=(y=y+Math.imul(ot,Ft)|0)+Math.imul(ct,Ot)|0,_=_+Math.imul(ct,Ft)|0,b=b+Math.imul(J,zt)|0,y=(y=y+Math.imul(J,Xt)|0)+Math.imul(it,zt)|0,_=_+Math.imul(it,Xt)|0,b=b+Math.imul(Z,Ut)|0,y=(y=y+Math.imul(Z,$t)|0)+Math.imul(et,Ut)|0,_=_+Math.imul(et,$t)|0,b=b+Math.imul(K,Vt)|0,y=(y=y+Math.imul(K,Lt)|0)+Math.imul(q,Vt)|0,_=_+Math.imul(q,Lt)|0,b=b+Math.imul(Y,Gt)|0,y=(y=y+Math.imul(Y,st)|0)+Math.imul(L,Gt)|0,_=_+Math.imul(L,st)|0,b=b+Math.imul($,dt)|0,y=(y=y+Math.imul($,bt)|0)+Math.imul(G,dt)|0,_=_+Math.imul(G,bt)|0,b=b+Math.imul(W,kt)|0,y=(y=y+Math.imul(W,Nt)|0)+Math.imul(N,kt)|0,_=_+Math.imul(N,Nt)|0;var nt=(M+(b=b+Math.imul(H,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(H,Ct)|0)+Math.imul(V,Pt)|0))<<13)|0;M=((_=_+Math.imul(V,Ct)|0)+(y>>>13)|0)+(nt>>>26)|0,nt&=67108863,b=Math.imul(At,Tt),y=(y=Math.imul(At,It))+Math.imul(St,Tt)|0,_=Math.imul(St,It),b=b+Math.imul(mt,Ot)|0,y=(y=y+Math.imul(mt,Ft)|0)+Math.imul(xt,Ot)|0,_=_+Math.imul(xt,Ft)|0,b=b+Math.imul(ot,zt)|0,y=(y=y+Math.imul(ot,Xt)|0)+Math.imul(ct,zt)|0,_=_+Math.imul(ct,Xt)|0,b=b+Math.imul(J,Ut)|0,y=(y=y+Math.imul(J,$t)|0)+Math.imul(it,Ut)|0,_=_+Math.imul(it,$t)|0,b=b+Math.imul(Z,Vt)|0,y=(y=y+Math.imul(Z,Lt)|0)+Math.imul(et,Vt)|0,_=_+Math.imul(et,Lt)|0,b=b+Math.imul(K,Gt)|0,y=(y=y+Math.imul(K,st)|0)+Math.imul(q,Gt)|0,_=_+Math.imul(q,st)|0,b=b+Math.imul(Y,dt)|0,y=(y=y+Math.imul(Y,bt)|0)+Math.imul(L,dt)|0,_=_+Math.imul(L,bt)|0,b=b+Math.imul($,kt)|0,y=(y=y+Math.imul($,Nt)|0)+Math.imul(G,kt)|0,_=_+Math.imul(G,Nt)|0;var ut=(M+(b=b+Math.imul(W,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(W,Ct)|0)+Math.imul(N,Pt)|0))<<13)|0;M=((_=_+Math.imul(N,Ct)|0)+(y>>>13)|0)+(ut>>>26)|0,ut&=67108863,b=Math.imul(At,Ot),y=(y=Math.imul(At,Ft))+Math.imul(St,Ot)|0,_=Math.imul(St,Ft),b=b+Math.imul(mt,zt)|0,y=(y=y+Math.imul(mt,Xt)|0)+Math.imul(xt,zt)|0,_=_+Math.imul(xt,Xt)|0,b=b+Math.imul(ot,Ut)|0,y=(y=y+Math.imul(ot,$t)|0)+Math.imul(ct,Ut)|0,_=_+Math.imul(ct,$t)|0,b=b+Math.imul(J,Vt)|0,y=(y=y+Math.imul(J,Lt)|0)+Math.imul(it,Vt)|0,_=_+Math.imul(it,Lt)|0,b=b+Math.imul(Z,Gt)|0,y=(y=y+Math.imul(Z,st)|0)+Math.imul(et,Gt)|0,_=_+Math.imul(et,st)|0,b=b+Math.imul(K,dt)|0,y=(y=y+Math.imul(K,bt)|0)+Math.imul(q,dt)|0,_=_+Math.imul(q,bt)|0,b=b+Math.imul(Y,kt)|0,y=(y=y+Math.imul(Y,Nt)|0)+Math.imul(L,kt)|0,_=_+Math.imul(L,Nt)|0;var gt=(M+(b=b+Math.imul($,Pt)|0)|0)+((8191&(y=(y=y+Math.imul($,Ct)|0)+Math.imul(G,Pt)|0))<<13)|0;M=((_=_+Math.imul(G,Ct)|0)+(y>>>13)|0)+(gt>>>26)|0,gt&=67108863,b=Math.imul(At,zt),y=(y=Math.imul(At,Xt))+Math.imul(St,zt)|0,_=Math.imul(St,Xt),b=b+Math.imul(mt,Ut)|0,y=(y=y+Math.imul(mt,$t)|0)+Math.imul(xt,Ut)|0,_=_+Math.imul(xt,$t)|0,b=b+Math.imul(ot,Vt)|0,y=(y=y+Math.imul(ot,Lt)|0)+Math.imul(ct,Vt)|0,_=_+Math.imul(ct,Lt)|0,b=b+Math.imul(J,Gt)|0,y=(y=y+Math.imul(J,st)|0)+Math.imul(it,Gt)|0,_=_+Math.imul(it,st)|0,b=b+Math.imul(Z,dt)|0,y=(y=y+Math.imul(Z,bt)|0)+Math.imul(et,dt)|0,_=_+Math.imul(et,bt)|0,b=b+Math.imul(K,kt)|0,y=(y=y+Math.imul(K,Nt)|0)+Math.imul(q,kt)|0,_=_+Math.imul(q,Nt)|0;var pt=(M+(b=b+Math.imul(Y,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(Y,Ct)|0)+Math.imul(L,Pt)|0))<<13)|0;M=((_=_+Math.imul(L,Ct)|0)+(y>>>13)|0)+(pt>>>26)|0,pt&=67108863,b=Math.imul(At,Ut),y=(y=Math.imul(At,$t))+Math.imul(St,Ut)|0,_=Math.imul(St,$t),b=b+Math.imul(mt,Vt)|0,y=(y=y+Math.imul(mt,Lt)|0)+Math.imul(xt,Vt)|0,_=_+Math.imul(xt,Lt)|0,b=b+Math.imul(ot,Gt)|0,y=(y=y+Math.imul(ot,st)|0)+Math.imul(ct,Gt)|0,_=_+Math.imul(ct,st)|0,b=b+Math.imul(J,dt)|0,y=(y=y+Math.imul(J,bt)|0)+Math.imul(it,dt)|0,_=_+Math.imul(it,bt)|0,b=b+Math.imul(Z,kt)|0,y=(y=y+Math.imul(Z,Nt)|0)+Math.imul(et,kt)|0,_=_+Math.imul(et,Nt)|0;var wt=(M+(b=b+Math.imul(K,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(K,Ct)|0)+Math.imul(q,Pt)|0))<<13)|0;M=((_=_+Math.imul(q,Ct)|0)+(y>>>13)|0)+(wt>>>26)|0,wt&=67108863,b=Math.imul(At,Vt),y=(y=Math.imul(At,Lt))+Math.imul(St,Vt)|0,_=Math.imul(St,Lt),b=b+Math.imul(mt,Gt)|0,y=(y=y+Math.imul(mt,st)|0)+Math.imul(xt,Gt)|0,_=_+Math.imul(xt,st)|0,b=b+Math.imul(ot,dt)|0,y=(y=y+Math.imul(ot,bt)|0)+Math.imul(ct,dt)|0,_=_+Math.imul(ct,bt)|0,b=b+Math.imul(J,kt)|0,y=(y=y+Math.imul(J,Nt)|0)+Math.imul(it,kt)|0,_=_+Math.imul(it,Nt)|0;var Dt=(M+(b=b+Math.imul(Z,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(Z,Ct)|0)+Math.imul(et,Pt)|0))<<13)|0;M=((_=_+Math.imul(et,Ct)|0)+(y>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,b=Math.imul(At,Gt),y=(y=Math.imul(At,st))+Math.imul(St,Gt)|0,_=Math.imul(St,st),b=b+Math.imul(mt,dt)|0,y=(y=y+Math.imul(mt,bt)|0)+Math.imul(xt,dt)|0,_=_+Math.imul(xt,bt)|0,b=b+Math.imul(ot,kt)|0,y=(y=y+Math.imul(ot,Nt)|0)+Math.imul(ct,kt)|0,_=_+Math.imul(ct,Nt)|0;var Rt=(M+(b=b+Math.imul(J,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(J,Ct)|0)+Math.imul(it,Pt)|0))<<13)|0;M=((_=_+Math.imul(it,Ct)|0)+(y>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,b=Math.imul(At,dt),y=(y=Math.imul(At,bt))+Math.imul(St,dt)|0,_=Math.imul(St,bt),b=b+Math.imul(mt,kt)|0,y=(y=y+Math.imul(mt,Nt)|0)+Math.imul(xt,kt)|0,_=_+Math.imul(xt,Nt)|0;var re=(M+(b=b+Math.imul(ot,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(ot,Ct)|0)+Math.imul(ct,Pt)|0))<<13)|0;M=((_=_+Math.imul(ct,Ct)|0)+(y>>>13)|0)+(re>>>26)|0,re&=67108863,b=Math.imul(At,kt),y=(y=Math.imul(At,Nt))+Math.imul(St,kt)|0,_=Math.imul(St,Nt);var Zt=(M+(b=b+Math.imul(mt,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(mt,Ct)|0)+Math.imul(xt,Pt)|0))<<13)|0;M=((_=_+Math.imul(xt,Ct)|0)+(y>>>13)|0)+(Zt>>>26)|0,Zt&=67108863;var Ht=(M+(b=Math.imul(At,Pt))|0)+((8191&(y=(y=Math.imul(At,Ct))+Math.imul(St,Pt)|0))<<13)|0;return M=((_=Math.imul(St,Ct))+(y>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,C[0]=ue,C[1]=te,C[2]=ee,C[3]=pe,C[4]=xe,C[5]=Ie,C[6]=We,C[7]=Me,C[8]=Ue,C[9]=nt,C[10]=ut,C[11]=gt,C[12]=pt,C[13]=wt,C[14]=Dt,C[15]=Rt,C[16]=re,C[17]=Zt,C[18]=Ht,M!==0&&(C[19]=M,P.length++),P};function v(k,S,P){return new x().mulp(k,S,P)}function x(k,S){this.x=k,this.y=S}Math.imul||(m=g),r.prototype.mulTo=function(k,S){var P=this.length+k.length;return this.length===10&&k.length===10?m(this,k,S):P<63?g(this,k,S):P<1024?(function(b,y,_){_.negative=y.negative^b.negative,_.length=b.length+y.length;for(var w=0,E=0,C=0;C<_.length-1;C++){var M=E;E=0;for(var z=67108863&w,H=Math.min(C,y.length-1),V=Math.max(0,C-b.length+1);V<=H;V++){var B=C-V,W=(0|b.words[B])*(0|y.words[V]),N=67108863&W;z=67108863&(N=N+z|0),E+=(M=(M=M+(W/67108864|0)|0)+(N>>>26)|0)>>>26,M&=67108863}_.words[C]=z,w=M,M=E}return w!==0?_.words[C]=w:_.length--,_.strip()})(this,k,S):v(this,k,S)},x.prototype.makeRBT=function(k){for(var S=new Array(k),P=r.prototype._countBits(k)-1,b=0;b>=1;return b},x.prototype.permute=function(k,S,P,b,y,_){for(var w=0;w<_;w++)b[w]=S[k[w]],y[w]=P[k[w]]},x.prototype.transform=function(k,S,P,b,y,_){this.permute(_,k,S,P,b,y);for(var w=1;w>>=1)y++;return 1<>>=13,P[2*_+1]=8191&y,y>>>=13;for(_=2*S;_>=26,S+=b/67108864|0,S+=y>>>26,this.words[P]=67108863&y}return S!==0&&(this.words[P]=S,this.length++),this},r.prototype.muln=function(k){return this.clone().imuln(k)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(k){var S=(function(_){for(var w=new Array(_.bitLength()),E=0;E>>M}return w})(k);if(S.length===0)return new r(1);for(var P=this,b=0;b=0);var S,P=k%26,b=(k-P)/26,y=67108863>>>26-P<<26-P;if(P!==0){var _=0;for(S=0;S>>26-P}_&&(this.words[S]=_,this.length++)}if(b!==0){for(S=this.length-1;S>=0;S--)this.words[S+b]=this.words[S];for(S=0;S=0),b=S?(S-S%26)/26:0;var y=k%26,_=Math.min((k-y)/26,this.length),w=67108863^67108863>>>y<_)for(this.length-=_,C=0;C=0&&(M!==0||C>=b);C--){var z=0|this.words[C];this.words[C]=M<<26-y|z>>>y,M=z&w}return E&&M!==0&&(E.words[E.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(k,S,P){return s(this.negative===0),this.iushrn(k,S,P)},r.prototype.shln=function(k){return this.clone().ishln(k)},r.prototype.ushln=function(k){return this.clone().iushln(k)},r.prototype.shrn=function(k){return this.clone().ishrn(k)},r.prototype.ushrn=function(k){return this.clone().iushrn(k)},r.prototype.testn=function(k){s(typeof k=="number"&&k>=0);var S=k%26,P=(k-S)/26,b=1<=0);var S=k%26,P=(k-S)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=P)return this;if(S!==0&&P++,this.length=Math.min(P,this.length),S!==0){var b=67108863^67108863>>>S<=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},r.prototype.isubn=function(k){if(s(typeof k=="number"),s(k<67108864),k<0)return this.iaddn(-k);if(this.negative!==0)return this.negative=0,this.iaddn(k),this.negative=1,this;if(this.words[0]-=k,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S>26)-(E/67108864|0),this.words[b+P]=67108863&y}for(;b>26,this.words[b+P]=67108863&y;if(w===0)return this.strip();for(s(w===-1),w=0,b=0;b>26,this.words[b]=67108863&y;return this.negative=1,this.strip()},r.prototype._wordDiv=function(k,S){var P=(this.length,k.length),b=this.clone(),y=k,_=0|y.words[y.length-1];(P=26-this._countBits(_))!==0&&(y=y.ushln(P),b.iushln(P),_=0|y.words[y.length-1]);var w,E=b.length-y.length;if(S!=="mod"){(w=new r(null)).length=E+1,w.words=new Array(w.length);for(var C=0;C=0;z--){var H=67108864*(0|b.words[y.length+z])+(0|b.words[y.length+z-1]);for(H=Math.min(H/_|0,67108863),b._ishlnsubmul(y,H,z);b.negative!==0;)H--,b.negative=0,b._ishlnsubmul(y,1,z),b.isZero()||(b.negative^=1);w&&(w.words[z]=H)}return w&&w.strip(),b.strip(),S!=="div"&&P!==0&&b.iushrn(P),{div:w||null,mod:b}},r.prototype.divmod=function(k,S,P){return s(!k.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:this.negative!==0&&k.negative===0?(_=this.neg().divmod(k,S),S!=="mod"&&(b=_.div.neg()),S!=="div"&&(y=_.mod.neg(),P&&y.negative!==0&&y.iadd(k)),{div:b,mod:y}):this.negative===0&&k.negative!==0?(_=this.divmod(k.neg(),S),S!=="mod"&&(b=_.div.neg()),{div:b,mod:_.mod}):(this.negative&k.negative)!=0?(_=this.neg().divmod(k.neg(),S),S!=="div"&&(y=_.mod.neg(),P&&y.negative!==0&&y.isub(k)),{div:_.div,mod:y}):k.length>this.length||this.cmp(k)<0?{div:new r(0),mod:this}:k.length===1?S==="div"?{div:this.divn(k.words[0]),mod:null}:S==="mod"?{div:null,mod:new r(this.modn(k.words[0]))}:{div:this.divn(k.words[0]),mod:new r(this.modn(k.words[0]))}:this._wordDiv(k,S);var b,y,_},r.prototype.div=function(k){return this.divmod(k,"div",!1).div},r.prototype.mod=function(k){return this.divmod(k,"mod",!1).mod},r.prototype.umod=function(k){return this.divmod(k,"mod",!0).mod},r.prototype.divRound=function(k){var S=this.divmod(k);if(S.mod.isZero())return S.div;var P=S.div.negative!==0?S.mod.isub(k):S.mod,b=k.ushrn(1),y=k.andln(1),_=P.cmp(b);return _<0||y===1&&_===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},r.prototype.modn=function(k){s(k<=67108863);for(var S=(1<<26)%k,P=0,b=this.length-1;b>=0;b--)P=(S*P+(0|this.words[b]))%k;return P},r.prototype.idivn=function(k){s(k<=67108863);for(var S=0,P=this.length-1;P>=0;P--){var b=(0|this.words[P])+67108864*S;this.words[P]=b/k|0,S=b%k}return this.strip()},r.prototype.divn=function(k){return this.clone().idivn(k)},r.prototype.egcd=function(k){s(k.negative===0),s(!k.isZero());var S=this,P=k.clone();S=S.negative!==0?S.umod(k):S.clone();for(var b=new r(1),y=new r(0),_=new r(0),w=new r(1),E=0;S.isEven()&&P.isEven();)S.iushrn(1),P.iushrn(1),++E;for(var C=P.clone(),M=S.clone();!S.isZero();){for(var z=0,H=1;(S.words[0]&H)==0&&z<26;++z,H<<=1);if(z>0)for(S.iushrn(z);z-- >0;)(b.isOdd()||y.isOdd())&&(b.iadd(C),y.isub(M)),b.iushrn(1),y.iushrn(1);for(var V=0,B=1;(P.words[0]&B)==0&&V<26;++V,B<<=1);if(V>0)for(P.iushrn(V);V-- >0;)(_.isOdd()||w.isOdd())&&(_.iadd(C),w.isub(M)),_.iushrn(1),w.iushrn(1);S.cmp(P)>=0?(S.isub(P),b.isub(_),y.isub(w)):(P.isub(S),_.isub(b),w.isub(y))}return{a:_,b:w,gcd:P.iushln(E)}},r.prototype._invmp=function(k){s(k.negative===0),s(!k.isZero());var S=this,P=k.clone();S=S.negative!==0?S.umod(k):S.clone();for(var b,y=new r(1),_=new r(0),w=P.clone();S.cmpn(1)>0&&P.cmpn(1)>0;){for(var E=0,C=1;(S.words[0]&C)==0&&E<26;++E,C<<=1);if(E>0)for(S.iushrn(E);E-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var M=0,z=1;(P.words[0]&z)==0&&M<26;++M,z<<=1);if(M>0)for(P.iushrn(M);M-- >0;)_.isOdd()&&_.iadd(w),_.iushrn(1);S.cmp(P)>=0?(S.isub(P),y.isub(_)):(P.isub(S),_.isub(y))}return(b=S.cmpn(1)===0?y:_).cmpn(0)<0&&b.iadd(k),b},r.prototype.gcd=function(k){if(this.isZero())return k.abs();if(k.isZero())return this.abs();var S=this.clone(),P=k.clone();S.negative=0,P.negative=0;for(var b=0;S.isEven()&&P.isEven();b++)S.iushrn(1),P.iushrn(1);for(;;){for(;S.isEven();)S.iushrn(1);for(;P.isEven();)P.iushrn(1);var y=S.cmp(P);if(y<0){var _=S;S=P,P=_}else if(y===0||P.cmpn(1)===0)break;S.isub(P)}return P.iushln(b)},r.prototype.invm=function(k){return this.egcd(k).a.umod(k)},r.prototype.isEven=function(){return(1&this.words[0])==0},r.prototype.isOdd=function(){return(1&this.words[0])==1},r.prototype.andln=function(k){return this.words[0]&k},r.prototype.bincn=function(k){s(typeof k=="number");var S=k%26,P=(k-S)/26,b=1<>>26,w&=67108863,this.words[_]=w}return y!==0&&(this.words[_]=y,this.length++),this},r.prototype.isZero=function(){return this.length===1&&this.words[0]===0},r.prototype.cmpn=function(k){var S,P=k<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;if(this.strip(),this.length>1)S=1;else{P&&(k=-k),s(k<=67108863,"Number is too big");var b=0|this.words[0];S=b===k?0:bk.length)return 1;if(this.length=0;P--){var b=0|this.words[P],y=0|k.words[P];if(b!==y){by&&(S=1);break}}return S},r.prototype.gtn=function(k){return this.cmpn(k)===1},r.prototype.gt=function(k){return this.cmp(k)===1},r.prototype.gten=function(k){return this.cmpn(k)>=0},r.prototype.gte=function(k){return this.cmp(k)>=0},r.prototype.ltn=function(k){return this.cmpn(k)===-1},r.prototype.lt=function(k){return this.cmp(k)===-1},r.prototype.lten=function(k){return this.cmpn(k)<=0},r.prototype.lte=function(k){return this.cmp(k)<=0},r.prototype.eqn=function(k){return this.cmpn(k)===0},r.prototype.eq=function(k){return this.cmp(k)===0},r.red=function(k){return new U(k)},r.prototype.toRed=function(k){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),k.convertTo(this)._forceRed(k)},r.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(k){return this.red=k,this},r.prototype.forceRed=function(k){return s(!this.red,"Already a number in reduction context"),this._forceRed(k)},r.prototype.redAdd=function(k){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,k)},r.prototype.redIAdd=function(k){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,k)},r.prototype.redSub=function(k){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,k)},r.prototype.redISub=function(k){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,k)},r.prototype.redShl=function(k){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,k)},r.prototype.redMul=function(k){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.mul(this,k)},r.prototype.redIMul=function(k){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.imul(this,k)},r.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(k){return s(this.red&&!k.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,k)};var A={k256:null,p224:null,p192:null,p25519:null};function D(k,S){this.name=k,this.p=new r(S,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function F(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function j(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function U(k){if(typeof k=="string"){var S=r._prime(k);this.m=S.p,this.prime=S}else s(k.gtn(1),"modulus must be greater than 1"),this.m=k,this.prime=null}function R(k){U.call(this,k),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}D.prototype._tmp=function(){var k=new r(null);return k.words=new Array(Math.ceil(this.n/13)),k},D.prototype.ireduce=function(k){var S,P=k;do this.split(P,this.tmp),S=(P=(P=this.imulK(P)).iadd(this.tmp)).bitLength();while(S>this.n);var b=S0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},D.prototype.split=function(k,S){k.iushrn(this.n,0,S)},D.prototype.imulK=function(k){return k.imul(this.k)},a(F,D),F.prototype.split=function(k,S){for(var P=Math.min(k.length,9),b=0;b>>22,y=_}y>>>=22,k.words[b-10]=y,y===0&&k.length>10?k.length-=10:k.length-=9},F.prototype.imulK=function(k){k.words[k.length]=0,k.words[k.length+1]=0,k.length+=2;for(var S=0,P=0;P>>=26,k.words[P]=y,S=b}return S!==0&&(k.words[k.length++]=S),k},r._prime=function(k){if(A[k])return A[k];var S;if(k==="k256")S=new F;else if(k==="p224")S=new O;else if(k==="p192")S=new I;else{if(k!=="p25519")throw new Error("Unknown prime "+k);S=new j}return A[k]=S,S},U.prototype._verify1=function(k){s(k.negative===0,"red works only with positives"),s(k.red,"red works only with red numbers")},U.prototype._verify2=function(k,S){s((k.negative|S.negative)==0,"red works only with positives"),s(k.red&&k.red===S.red,"red works only with red numbers")},U.prototype.imod=function(k){return this.prime?this.prime.ireduce(k)._forceRed(this):k.umod(this.m)._forceRed(this)},U.prototype.neg=function(k){return k.isZero()?k.clone():this.m.sub(k)._forceRed(this)},U.prototype.add=function(k,S){this._verify2(k,S);var P=k.add(S);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},U.prototype.iadd=function(k,S){this._verify2(k,S);var P=k.iadd(S);return P.cmp(this.m)>=0&&P.isub(this.m),P},U.prototype.sub=function(k,S){this._verify2(k,S);var P=k.sub(S);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},U.prototype.isub=function(k,S){this._verify2(k,S);var P=k.isub(S);return P.cmpn(0)<0&&P.iadd(this.m),P},U.prototype.shl=function(k,S){return this._verify1(k),this.imod(k.ushln(S))},U.prototype.imul=function(k,S){return this._verify2(k,S),this.imod(k.imul(S))},U.prototype.mul=function(k,S){return this._verify2(k,S),this.imod(k.mul(S))},U.prototype.isqr=function(k){return this.imul(k,k.clone())},U.prototype.sqr=function(k){return this.mul(k,k)},U.prototype.sqrt=function(k){if(k.isZero())return k.clone();var S=this.m.andln(3);if(s(S%2==1),S===3){var P=this.m.add(new r(1)).iushrn(2);return this.pow(k,P)}for(var b=this.m.subn(1),y=0;!b.isZero()&&b.andln(1)===0;)y++,b.iushrn(1);s(!b.isZero());var _=new r(1).toRed(this),w=_.redNeg(),E=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new r(2*C*C).toRed(this);this.pow(C,E).cmp(w)!==0;)C.redIAdd(w);for(var M=this.pow(C,b),z=this.pow(k,b.addn(1).iushrn(1)),H=this.pow(k,b),V=y;H.cmp(_)!==0;){for(var B=H,W=0;B.cmp(_)!==0;W++)B=B.redSqr();s(W=0;b--){for(var C=S.words[b],M=E-1;M>=0;M--){var z=C>>M&1;y!==P[0]&&(y=this.sqr(y)),z!==0||_!==0?(_<<=1,_|=z,(++w===4||b===0&&M===0)&&(y=this.mul(y,P[_]),w=0,_=0)):w=0}E=26}return y},U.prototype.convertTo=function(k){var S=k.umod(this.m);return S===k?S.clone():S},U.prototype.convertFrom=function(k){var S=k.clone();return S.red=null,S},r.mont=function(k){return new R(k)},a(R,U),R.prototype.convertTo=function(k){return this.imod(k.ushln(this.shift))},R.prototype.convertFrom=function(k){var S=this.imod(k.mul(this.rinv));return S.red=null,S},R.prototype.imul=function(k,S){if(k.isZero()||S.isZero())return k.words[0]=0,k.length=1,k;var P=k.imul(S),b=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=P.isub(b).iushrn(this.shift),_=y;return y.cmp(this.m)>=0?_=y.isub(this.m):y.cmpn(0)<0&&(_=y.iadd(this.m)),_._forceRed(this)},R.prototype.mul=function(k,S){if(k.isZero()||S.isZero())return new r(0)._forceRed(this);var P=k.mul(S),b=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=P.isub(b).iushrn(this.shift),_=y;return y.cmp(this.m)>=0?_=y.isub(this.m):y.cmpn(0)<0&&(_=y.iadd(this.m)),_._forceRed(this)},R.prototype.invm=function(k){return this.imod(k._invmp(this.m).mul(this.r2))._forceRed(this)}})(i===void 0||i)},{buffer:188}],185:[function(t,i,o){"use strict";o.byteLength=function(u){var p=h(u),d=p[0],f=p[1];return 3*(d+f)/4-f},o.toByteArray=function(u){var p,d,f=h(u),g=f[0],m=f[1],v=new s((function(D,F,O){return 3*(F+O)/4-O})(0,g,m)),x=0,A=m>0?g-4:g;for(d=0;d>16&255,v[x++]=p>>8&255,v[x++]=255&p;return m===2&&(p=n[u.charCodeAt(d)]<<2|n[u.charCodeAt(d+1)]>>4,v[x++]=255&p),m===1&&(p=n[u.charCodeAt(d)]<<10|n[u.charCodeAt(d+1)]<<4|n[u.charCodeAt(d+2)]>>2,v[x++]=p>>8&255,v[x++]=255&p),v},o.fromByteArray=function(u){for(var p,d=u.length,f=d%3,g=[],m=0,v=d-f;mv?v:m+16383));return f===1?(p=u[d-1],g.push(e[p>>2]+e[p<<4&63]+"==")):f===2&&(p=(u[d-2]<<8)+u[d-1],g.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),g.join("")};for(var e=[],n=[],s=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,l=a.length;r0)throw new Error("Invalid string. Length must be a multiple of 4");var d=u.indexOf("=");return d===-1&&(d=p),[d,d===p?0:4-d%4]}function c(u,p,d){for(var f,g,m=[],v=p;v>18&63]+e[g>>12&63]+e[g>>6&63]+e[63&g]);return m.join("")}n[45]=62,n[95]=63},{}],186:[function(t,i,o){"use strict";(function(e,n){function s(b,y){if(!b)throw new Error(y||"Assertion failed")}function a(b,y){b.super_=y;var _=function(){};_.prototype=y.prototype,b.prototype=new _,b.prototype.constructor=b}function r(b,y,_){if(r.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,b!==null&&(y!=="le"&&y!=="be"||(_=y,y=10),this._init(b||0,y||10,_||"be"))}var l;typeof e=="object"?e.exports=r:(void 0).BN=r,r.BN=r,r.wordSize=26;try{l=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function h(b,y){var _=b.charCodeAt(y);return _>=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void s(!1,"Invalid character in "+b)}function c(b,y,_){var w=h(b,_);return _-1>=y&&(w|=h(b,_-1)<<4),w}function u(b,y,_,w){for(var E=0,C=0,M=Math.min(b.length,_),z=y;z=49?H-49+10:H>=17?H-17+10:H,s(H>=0&&C0?b:y},r.min=function(b,y){return b.cmp(y)<0?b:y},r.prototype._init=function(b,y,_){if(typeof b=="number")return this._initNumber(b,y,_);if(typeof b=="object")return this._initArray(b,y,_);y==="hex"&&(y=16),s(y===(0|y)&&y>=2&&y<=36);var w=0;(b=b.toString().replace(/\s+/g,""))[0]==="-"&&(w++,this.negative=1),w=0;w-=3)C=b[w]|b[w-1]<<8|b[w-2]<<16,this.words[E]|=C<>>26-M&67108863,(M+=24)>=26&&(M-=26,E++);else if(_==="le")for(w=0,E=0;w>>26-M&67108863,(M+=24)>=26&&(M-=26,E++);return this._strip()},r.prototype._parseHex=function(b,y,_){this.length=Math.ceil((b.length-y)/6),this.words=new Array(this.length);for(var w=0;w=y;w-=2)E=c(b,y,w)<=18?(C-=18,M+=1,this.words[M]|=E>>>26):C+=8;else for(w=(b.length-y)%2==0?y+1:y;w=18?(C-=18,M+=1,this.words[M]|=E>>>26):C+=8;this._strip()},r.prototype._parseBase=function(b,y,_){this.words=[0],this.length=1;for(var w=0,E=1;E<=67108863;E*=y)w++;w--,E=E/y|0;for(var C=b.length-_,M=C%w,z=Math.min(C,C-M)+_,H=0,V=_;V1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},r.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{r.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{r.prototype.inspect=d}else r.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];r.prototype.toString=function(b,y){var _;if(y=0|y||1,(b=b||10)===16||b==="hex"){_="";for(var w=0,E=0,C=0;C>>24-w&16777215,(w+=2)>=26&&(w-=26,C--),_=E!==0||C!==this.length-1?f[6-z.length]+z+_:z+_}for(E!==0&&(_=E.toString(16)+_);_.length%y!=0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(b===(0|b)&&b>=2&&b<=36){var H=g[b],V=m[b];_="";var B=this.clone();for(B.negative=0;!B.isZero();){var W=B.modrn(V).toString(b);_=(B=B.idivn(V)).isZero()?W+_:f[H-W.length]+W+_}for(this.isZero()&&(_="0"+_);_.length%y!=0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}s(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=67108864*this.words[1]:this.length===3&&this.words[2]===1?b+=4503599627370496+67108864*this.words[1]:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},r.prototype.toJSON=function(){return this.toString(16,2)},l&&(r.prototype.toBuffer=function(b,y){return this.toArrayLike(l,b,y)}),r.prototype.toArray=function(b,y){return this.toArrayLike(Array,b,y)};function v(b,y,_){_.negative=y.negative^b.negative;var w=b.length+y.length|0;_.length=w,w=w-1|0;var E=0|b.words[0],C=0|y.words[0],M=E*C,z=67108863&M,H=M/67108864|0;_.words[0]=z;for(var V=1;V>>26,W=67108863&H,N=Math.min(V,y.length-1),T=Math.max(0,V-b.length+1);T<=N;T++){var $=V-T|0;B+=(M=(E=0|b.words[$])*(C=0|y.words[T])+W)/67108864|0,W=67108863&M}_.words[V]=0|W,H=0|B}return H!==0?_.words[V]=0|H:_.length--,_._strip()}r.prototype.toArrayLike=function(b,y,_){this._strip();var w=this.byteLength(),E=_||Math.max(1,w);s(w<=E,"byte array longer than desired length"),s(E>0,"Requested array length <= 0");var C=(function(M,z){return M.allocUnsafe?M.allocUnsafe(z):new M(z)})(b,E);return this["_toArrayLike"+(y==="le"?"LE":"BE")](C,w),C},r.prototype._toArrayLikeLE=function(b,y){for(var _=0,w=0,E=0,C=0;E>8&255),_>16&255),C===6?(_>24&255),w=0,C=0):(w=M>>>24,C+=2)}if(_=0&&(b[_--]=M>>8&255),_>=0&&(b[_--]=M>>16&255),C===6?(_>=0&&(b[_--]=M>>24&255),w=0,C=0):(w=M>>>24,C+=2)}if(_>=0)for(b[_--]=w;_>=0;)b[_--]=0},Math.clz32?r.prototype._countBits=function(b){return 32-Math.clz32(b)}:r.prototype._countBits=function(b){var y=b,_=0;return y>=4096&&(_+=13,y>>>=13),y>=64&&(_+=7,y>>>=7),y>=8&&(_+=4,y>>>=4),y>=2&&(_+=2,y>>>=2),_+y},r.prototype._zeroBits=function(b){if(b===0)return 26;var y=b,_=0;return(8191&y)==0&&(_+=13,y>>>=13),(127&y)==0&&(_+=7,y>>>=7),(15&y)==0&&(_+=4,y>>>=4),(3&y)==0&&(_+=2,y>>>=2),(1&y)==0&&_++,_},r.prototype.bitLength=function(){var b=this.words[this.length-1],y=this._countBits(b);return 26*(this.length-1)+y},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,y=0;yb.length?this.clone().ior(b):b.clone().ior(this)},r.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},r.prototype.iuand=function(b){var y;y=this.length>b.length?b:this;for(var _=0;_b.length?this.clone().iand(b):b.clone().iand(this)},r.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},r.prototype.iuxor=function(b){var y,_;this.length>b.length?(y=this,_=b):(y=b,_=this);for(var w=0;w<_.length;w++)this.words[w]=y.words[w]^_.words[w];if(this!==y)for(;wb.length?this.clone().ixor(b):b.clone().ixor(this)},r.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},r.prototype.inotn=function(b){s(typeof b=="number"&&b>=0);var y=0|Math.ceil(b/26),_=b%26;this._expand(y),_>0&&y--;for(var w=0;w0&&(this.words[w]=~this.words[w]&67108863>>26-_),this._strip()},r.prototype.notn=function(b){return this.clone().inotn(b)},r.prototype.setn=function(b,y){s(typeof b=="number"&&b>=0);var _=b/26|0,w=b%26;return this._expand(_+1),this.words[_]=y?this.words[_]|1<b.length?(_=this,w=b):(_=b,w=this);for(var E=0,C=0;C>>26;for(;E!==0&&C<_.length;C++)y=(0|_.words[C])+E,this.words[C]=67108863&y,E=y>>>26;if(this.length=_.length,E!==0)this.words[this.length]=E,this.length++;else if(_!==this)for(;C<_.length;C++)this.words[C]=_.words[C];return this},r.prototype.add=function(b){var y;return b.negative!==0&&this.negative===0?(b.negative=0,y=this.sub(b),b.negative^=1,y):b.negative===0&&this.negative!==0?(this.negative=0,y=b.sub(this),this.negative=1,y):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},r.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var y=this.iadd(b);return b.negative=1,y._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var _,w,E=this.cmp(b);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(_=this,w=b):(_=b,w=this);for(var C=0,M=0;M>26,this.words[M]=67108863&y;for(;C!==0&&M<_.length;M++)C=(y=(0|_.words[M])+C)>>26,this.words[M]=67108863&y;if(C===0&&M<_.length&&_!==this)for(;M<_.length;M++)this.words[M]=_.words[M];return this.length=Math.max(this.length,M),_!==this&&(this.negative=1),this._strip()},r.prototype.sub=function(b){return this.clone().isub(b)};var x=function(b,y,_){var w,E,C,M=b.words,z=y.words,H=_.words,V=0,B=0|M[0],W=8191&B,N=B>>>13,T=0|M[1],$=8191&T,G=T>>>13,Q=0|M[2],Y=8191&Q,L=Q>>>13,tt=0|M[3],K=8191&tt,q=tt>>>13,X=0|M[4],Z=8191&X,et=X>>>13,rt=0|M[5],J=8191&rt,it=rt>>>13,lt=0|M[6],ot=8191<,ct=lt>>>13,_t=0|M[7],mt=8191&_t,xt=_t>>>13,Wt=0|M[8],At=8191&Wt,St=Wt>>>13,Et=0|M[9],vt=8191&Et,yt=Et>>>13,jt=0|z[0],Tt=8191&jt,It=jt>>>13,Je=0|z[1],Ot=8191&Je,Ft=Je>>>13,be=0|z[2],zt=8191&be,Xt=be>>>13,tr=0|z[3],Ut=8191&tr,$t=tr>>>13,Be=0|z[4],Vt=8191&Be,Lt=Be>>>13,or=0|z[5],Gt=8191&or,st=or>>>13,ht=0|z[6],dt=8191&ht,bt=ht>>>13,ie=0|z[7],kt=8191&ie,Nt=ie>>>13,he=0|z[8],Pt=8191&he,Ct=he>>>13,ue=0|z[9],te=8191&ue,ee=ue>>>13;_.negative=b.negative^y.negative,_.length=19;var pe=(V+(w=Math.imul(W,Tt))|0)+((8191&(E=(E=Math.imul(W,It))+Math.imul(N,Tt)|0))<<13)|0;V=((C=Math.imul(N,It))+(E>>>13)|0)+(pe>>>26)|0,pe&=67108863,w=Math.imul($,Tt),E=(E=Math.imul($,It))+Math.imul(G,Tt)|0,C=Math.imul(G,It);var xe=(V+(w=w+Math.imul(W,Ot)|0)|0)+((8191&(E=(E=E+Math.imul(W,Ft)|0)+Math.imul(N,Ot)|0))<<13)|0;V=((C=C+Math.imul(N,Ft)|0)+(E>>>13)|0)+(xe>>>26)|0,xe&=67108863,w=Math.imul(Y,Tt),E=(E=Math.imul(Y,It))+Math.imul(L,Tt)|0,C=Math.imul(L,It),w=w+Math.imul($,Ot)|0,E=(E=E+Math.imul($,Ft)|0)+Math.imul(G,Ot)|0,C=C+Math.imul(G,Ft)|0;var Ie=(V+(w=w+Math.imul(W,zt)|0)|0)+((8191&(E=(E=E+Math.imul(W,Xt)|0)+Math.imul(N,zt)|0))<<13)|0;V=((C=C+Math.imul(N,Xt)|0)+(E>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,w=Math.imul(K,Tt),E=(E=Math.imul(K,It))+Math.imul(q,Tt)|0,C=Math.imul(q,It),w=w+Math.imul(Y,Ot)|0,E=(E=E+Math.imul(Y,Ft)|0)+Math.imul(L,Ot)|0,C=C+Math.imul(L,Ft)|0,w=w+Math.imul($,zt)|0,E=(E=E+Math.imul($,Xt)|0)+Math.imul(G,zt)|0,C=C+Math.imul(G,Xt)|0;var We=(V+(w=w+Math.imul(W,Ut)|0)|0)+((8191&(E=(E=E+Math.imul(W,$t)|0)+Math.imul(N,Ut)|0))<<13)|0;V=((C=C+Math.imul(N,$t)|0)+(E>>>13)|0)+(We>>>26)|0,We&=67108863,w=Math.imul(Z,Tt),E=(E=Math.imul(Z,It))+Math.imul(et,Tt)|0,C=Math.imul(et,It),w=w+Math.imul(K,Ot)|0,E=(E=E+Math.imul(K,Ft)|0)+Math.imul(q,Ot)|0,C=C+Math.imul(q,Ft)|0,w=w+Math.imul(Y,zt)|0,E=(E=E+Math.imul(Y,Xt)|0)+Math.imul(L,zt)|0,C=C+Math.imul(L,Xt)|0,w=w+Math.imul($,Ut)|0,E=(E=E+Math.imul($,$t)|0)+Math.imul(G,Ut)|0,C=C+Math.imul(G,$t)|0;var Me=(V+(w=w+Math.imul(W,Vt)|0)|0)+((8191&(E=(E=E+Math.imul(W,Lt)|0)+Math.imul(N,Vt)|0))<<13)|0;V=((C=C+Math.imul(N,Lt)|0)+(E>>>13)|0)+(Me>>>26)|0,Me&=67108863,w=Math.imul(J,Tt),E=(E=Math.imul(J,It))+Math.imul(it,Tt)|0,C=Math.imul(it,It),w=w+Math.imul(Z,Ot)|0,E=(E=E+Math.imul(Z,Ft)|0)+Math.imul(et,Ot)|0,C=C+Math.imul(et,Ft)|0,w=w+Math.imul(K,zt)|0,E=(E=E+Math.imul(K,Xt)|0)+Math.imul(q,zt)|0,C=C+Math.imul(q,Xt)|0,w=w+Math.imul(Y,Ut)|0,E=(E=E+Math.imul(Y,$t)|0)+Math.imul(L,Ut)|0,C=C+Math.imul(L,$t)|0,w=w+Math.imul($,Vt)|0,E=(E=E+Math.imul($,Lt)|0)+Math.imul(G,Vt)|0,C=C+Math.imul(G,Lt)|0;var Ue=(V+(w=w+Math.imul(W,Gt)|0)|0)+((8191&(E=(E=E+Math.imul(W,st)|0)+Math.imul(N,Gt)|0))<<13)|0;V=((C=C+Math.imul(N,st)|0)+(E>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,w=Math.imul(ot,Tt),E=(E=Math.imul(ot,It))+Math.imul(ct,Tt)|0,C=Math.imul(ct,It),w=w+Math.imul(J,Ot)|0,E=(E=E+Math.imul(J,Ft)|0)+Math.imul(it,Ot)|0,C=C+Math.imul(it,Ft)|0,w=w+Math.imul(Z,zt)|0,E=(E=E+Math.imul(Z,Xt)|0)+Math.imul(et,zt)|0,C=C+Math.imul(et,Xt)|0,w=w+Math.imul(K,Ut)|0,E=(E=E+Math.imul(K,$t)|0)+Math.imul(q,Ut)|0,C=C+Math.imul(q,$t)|0,w=w+Math.imul(Y,Vt)|0,E=(E=E+Math.imul(Y,Lt)|0)+Math.imul(L,Vt)|0,C=C+Math.imul(L,Lt)|0,w=w+Math.imul($,Gt)|0,E=(E=E+Math.imul($,st)|0)+Math.imul(G,Gt)|0,C=C+Math.imul(G,st)|0;var nt=(V+(w=w+Math.imul(W,dt)|0)|0)+((8191&(E=(E=E+Math.imul(W,bt)|0)+Math.imul(N,dt)|0))<<13)|0;V=((C=C+Math.imul(N,bt)|0)+(E>>>13)|0)+(nt>>>26)|0,nt&=67108863,w=Math.imul(mt,Tt),E=(E=Math.imul(mt,It))+Math.imul(xt,Tt)|0,C=Math.imul(xt,It),w=w+Math.imul(ot,Ot)|0,E=(E=E+Math.imul(ot,Ft)|0)+Math.imul(ct,Ot)|0,C=C+Math.imul(ct,Ft)|0,w=w+Math.imul(J,zt)|0,E=(E=E+Math.imul(J,Xt)|0)+Math.imul(it,zt)|0,C=C+Math.imul(it,Xt)|0,w=w+Math.imul(Z,Ut)|0,E=(E=E+Math.imul(Z,$t)|0)+Math.imul(et,Ut)|0,C=C+Math.imul(et,$t)|0,w=w+Math.imul(K,Vt)|0,E=(E=E+Math.imul(K,Lt)|0)+Math.imul(q,Vt)|0,C=C+Math.imul(q,Lt)|0,w=w+Math.imul(Y,Gt)|0,E=(E=E+Math.imul(Y,st)|0)+Math.imul(L,Gt)|0,C=C+Math.imul(L,st)|0,w=w+Math.imul($,dt)|0,E=(E=E+Math.imul($,bt)|0)+Math.imul(G,dt)|0,C=C+Math.imul(G,bt)|0;var ut=(V+(w=w+Math.imul(W,kt)|0)|0)+((8191&(E=(E=E+Math.imul(W,Nt)|0)+Math.imul(N,kt)|0))<<13)|0;V=((C=C+Math.imul(N,Nt)|0)+(E>>>13)|0)+(ut>>>26)|0,ut&=67108863,w=Math.imul(At,Tt),E=(E=Math.imul(At,It))+Math.imul(St,Tt)|0,C=Math.imul(St,It),w=w+Math.imul(mt,Ot)|0,E=(E=E+Math.imul(mt,Ft)|0)+Math.imul(xt,Ot)|0,C=C+Math.imul(xt,Ft)|0,w=w+Math.imul(ot,zt)|0,E=(E=E+Math.imul(ot,Xt)|0)+Math.imul(ct,zt)|0,C=C+Math.imul(ct,Xt)|0,w=w+Math.imul(J,Ut)|0,E=(E=E+Math.imul(J,$t)|0)+Math.imul(it,Ut)|0,C=C+Math.imul(it,$t)|0,w=w+Math.imul(Z,Vt)|0,E=(E=E+Math.imul(Z,Lt)|0)+Math.imul(et,Vt)|0,C=C+Math.imul(et,Lt)|0,w=w+Math.imul(K,Gt)|0,E=(E=E+Math.imul(K,st)|0)+Math.imul(q,Gt)|0,C=C+Math.imul(q,st)|0,w=w+Math.imul(Y,dt)|0,E=(E=E+Math.imul(Y,bt)|0)+Math.imul(L,dt)|0,C=C+Math.imul(L,bt)|0,w=w+Math.imul($,kt)|0,E=(E=E+Math.imul($,Nt)|0)+Math.imul(G,kt)|0,C=C+Math.imul(G,Nt)|0;var gt=(V+(w=w+Math.imul(W,Pt)|0)|0)+((8191&(E=(E=E+Math.imul(W,Ct)|0)+Math.imul(N,Pt)|0))<<13)|0;V=((C=C+Math.imul(N,Ct)|0)+(E>>>13)|0)+(gt>>>26)|0,gt&=67108863,w=Math.imul(vt,Tt),E=(E=Math.imul(vt,It))+Math.imul(yt,Tt)|0,C=Math.imul(yt,It),w=w+Math.imul(At,Ot)|0,E=(E=E+Math.imul(At,Ft)|0)+Math.imul(St,Ot)|0,C=C+Math.imul(St,Ft)|0,w=w+Math.imul(mt,zt)|0,E=(E=E+Math.imul(mt,Xt)|0)+Math.imul(xt,zt)|0,C=C+Math.imul(xt,Xt)|0,w=w+Math.imul(ot,Ut)|0,E=(E=E+Math.imul(ot,$t)|0)+Math.imul(ct,Ut)|0,C=C+Math.imul(ct,$t)|0,w=w+Math.imul(J,Vt)|0,E=(E=E+Math.imul(J,Lt)|0)+Math.imul(it,Vt)|0,C=C+Math.imul(it,Lt)|0,w=w+Math.imul(Z,Gt)|0,E=(E=E+Math.imul(Z,st)|0)+Math.imul(et,Gt)|0,C=C+Math.imul(et,st)|0,w=w+Math.imul(K,dt)|0,E=(E=E+Math.imul(K,bt)|0)+Math.imul(q,dt)|0,C=C+Math.imul(q,bt)|0,w=w+Math.imul(Y,kt)|0,E=(E=E+Math.imul(Y,Nt)|0)+Math.imul(L,kt)|0,C=C+Math.imul(L,Nt)|0,w=w+Math.imul($,Pt)|0,E=(E=E+Math.imul($,Ct)|0)+Math.imul(G,Pt)|0,C=C+Math.imul(G,Ct)|0;var pt=(V+(w=w+Math.imul(W,te)|0)|0)+((8191&(E=(E=E+Math.imul(W,ee)|0)+Math.imul(N,te)|0))<<13)|0;V=((C=C+Math.imul(N,ee)|0)+(E>>>13)|0)+(pt>>>26)|0,pt&=67108863,w=Math.imul(vt,Ot),E=(E=Math.imul(vt,Ft))+Math.imul(yt,Ot)|0,C=Math.imul(yt,Ft),w=w+Math.imul(At,zt)|0,E=(E=E+Math.imul(At,Xt)|0)+Math.imul(St,zt)|0,C=C+Math.imul(St,Xt)|0,w=w+Math.imul(mt,Ut)|0,E=(E=E+Math.imul(mt,$t)|0)+Math.imul(xt,Ut)|0,C=C+Math.imul(xt,$t)|0,w=w+Math.imul(ot,Vt)|0,E=(E=E+Math.imul(ot,Lt)|0)+Math.imul(ct,Vt)|0,C=C+Math.imul(ct,Lt)|0,w=w+Math.imul(J,Gt)|0,E=(E=E+Math.imul(J,st)|0)+Math.imul(it,Gt)|0,C=C+Math.imul(it,st)|0,w=w+Math.imul(Z,dt)|0,E=(E=E+Math.imul(Z,bt)|0)+Math.imul(et,dt)|0,C=C+Math.imul(et,bt)|0,w=w+Math.imul(K,kt)|0,E=(E=E+Math.imul(K,Nt)|0)+Math.imul(q,kt)|0,C=C+Math.imul(q,Nt)|0,w=w+Math.imul(Y,Pt)|0,E=(E=E+Math.imul(Y,Ct)|0)+Math.imul(L,Pt)|0,C=C+Math.imul(L,Ct)|0;var wt=(V+(w=w+Math.imul($,te)|0)|0)+((8191&(E=(E=E+Math.imul($,ee)|0)+Math.imul(G,te)|0))<<13)|0;V=((C=C+Math.imul(G,ee)|0)+(E>>>13)|0)+(wt>>>26)|0,wt&=67108863,w=Math.imul(vt,zt),E=(E=Math.imul(vt,Xt))+Math.imul(yt,zt)|0,C=Math.imul(yt,Xt),w=w+Math.imul(At,Ut)|0,E=(E=E+Math.imul(At,$t)|0)+Math.imul(St,Ut)|0,C=C+Math.imul(St,$t)|0,w=w+Math.imul(mt,Vt)|0,E=(E=E+Math.imul(mt,Lt)|0)+Math.imul(xt,Vt)|0,C=C+Math.imul(xt,Lt)|0,w=w+Math.imul(ot,Gt)|0,E=(E=E+Math.imul(ot,st)|0)+Math.imul(ct,Gt)|0,C=C+Math.imul(ct,st)|0,w=w+Math.imul(J,dt)|0,E=(E=E+Math.imul(J,bt)|0)+Math.imul(it,dt)|0,C=C+Math.imul(it,bt)|0,w=w+Math.imul(Z,kt)|0,E=(E=E+Math.imul(Z,Nt)|0)+Math.imul(et,kt)|0,C=C+Math.imul(et,Nt)|0,w=w+Math.imul(K,Pt)|0,E=(E=E+Math.imul(K,Ct)|0)+Math.imul(q,Pt)|0,C=C+Math.imul(q,Ct)|0;var Dt=(V+(w=w+Math.imul(Y,te)|0)|0)+((8191&(E=(E=E+Math.imul(Y,ee)|0)+Math.imul(L,te)|0))<<13)|0;V=((C=C+Math.imul(L,ee)|0)+(E>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,w=Math.imul(vt,Ut),E=(E=Math.imul(vt,$t))+Math.imul(yt,Ut)|0,C=Math.imul(yt,$t),w=w+Math.imul(At,Vt)|0,E=(E=E+Math.imul(At,Lt)|0)+Math.imul(St,Vt)|0,C=C+Math.imul(St,Lt)|0,w=w+Math.imul(mt,Gt)|0,E=(E=E+Math.imul(mt,st)|0)+Math.imul(xt,Gt)|0,C=C+Math.imul(xt,st)|0,w=w+Math.imul(ot,dt)|0,E=(E=E+Math.imul(ot,bt)|0)+Math.imul(ct,dt)|0,C=C+Math.imul(ct,bt)|0,w=w+Math.imul(J,kt)|0,E=(E=E+Math.imul(J,Nt)|0)+Math.imul(it,kt)|0,C=C+Math.imul(it,Nt)|0,w=w+Math.imul(Z,Pt)|0,E=(E=E+Math.imul(Z,Ct)|0)+Math.imul(et,Pt)|0,C=C+Math.imul(et,Ct)|0;var Rt=(V+(w=w+Math.imul(K,te)|0)|0)+((8191&(E=(E=E+Math.imul(K,ee)|0)+Math.imul(q,te)|0))<<13)|0;V=((C=C+Math.imul(q,ee)|0)+(E>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,w=Math.imul(vt,Vt),E=(E=Math.imul(vt,Lt))+Math.imul(yt,Vt)|0,C=Math.imul(yt,Lt),w=w+Math.imul(At,Gt)|0,E=(E=E+Math.imul(At,st)|0)+Math.imul(St,Gt)|0,C=C+Math.imul(St,st)|0,w=w+Math.imul(mt,dt)|0,E=(E=E+Math.imul(mt,bt)|0)+Math.imul(xt,dt)|0,C=C+Math.imul(xt,bt)|0,w=w+Math.imul(ot,kt)|0,E=(E=E+Math.imul(ot,Nt)|0)+Math.imul(ct,kt)|0,C=C+Math.imul(ct,Nt)|0,w=w+Math.imul(J,Pt)|0,E=(E=E+Math.imul(J,Ct)|0)+Math.imul(it,Pt)|0,C=C+Math.imul(it,Ct)|0;var re=(V+(w=w+Math.imul(Z,te)|0)|0)+((8191&(E=(E=E+Math.imul(Z,ee)|0)+Math.imul(et,te)|0))<<13)|0;V=((C=C+Math.imul(et,ee)|0)+(E>>>13)|0)+(re>>>26)|0,re&=67108863,w=Math.imul(vt,Gt),E=(E=Math.imul(vt,st))+Math.imul(yt,Gt)|0,C=Math.imul(yt,st),w=w+Math.imul(At,dt)|0,E=(E=E+Math.imul(At,bt)|0)+Math.imul(St,dt)|0,C=C+Math.imul(St,bt)|0,w=w+Math.imul(mt,kt)|0,E=(E=E+Math.imul(mt,Nt)|0)+Math.imul(xt,kt)|0,C=C+Math.imul(xt,Nt)|0,w=w+Math.imul(ot,Pt)|0,E=(E=E+Math.imul(ot,Ct)|0)+Math.imul(ct,Pt)|0,C=C+Math.imul(ct,Ct)|0;var Zt=(V+(w=w+Math.imul(J,te)|0)|0)+((8191&(E=(E=E+Math.imul(J,ee)|0)+Math.imul(it,te)|0))<<13)|0;V=((C=C+Math.imul(it,ee)|0)+(E>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(vt,dt),E=(E=Math.imul(vt,bt))+Math.imul(yt,dt)|0,C=Math.imul(yt,bt),w=w+Math.imul(At,kt)|0,E=(E=E+Math.imul(At,Nt)|0)+Math.imul(St,kt)|0,C=C+Math.imul(St,Nt)|0,w=w+Math.imul(mt,Pt)|0,E=(E=E+Math.imul(mt,Ct)|0)+Math.imul(xt,Pt)|0,C=C+Math.imul(xt,Ct)|0;var Ht=(V+(w=w+Math.imul(ot,te)|0)|0)+((8191&(E=(E=E+Math.imul(ot,ee)|0)+Math.imul(ct,te)|0))<<13)|0;V=((C=C+Math.imul(ct,ee)|0)+(E>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,w=Math.imul(vt,kt),E=(E=Math.imul(vt,Nt))+Math.imul(yt,kt)|0,C=Math.imul(yt,Nt),w=w+Math.imul(At,Pt)|0,E=(E=E+Math.imul(At,Ct)|0)+Math.imul(St,Pt)|0,C=C+Math.imul(St,Ct)|0;var Yt=(V+(w=w+Math.imul(mt,te)|0)|0)+((8191&(E=(E=E+Math.imul(mt,ee)|0)+Math.imul(xt,te)|0))<<13)|0;V=((C=C+Math.imul(xt,ee)|0)+(E>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,w=Math.imul(vt,Pt),E=(E=Math.imul(vt,Ct))+Math.imul(yt,Pt)|0,C=Math.imul(yt,Ct);var Se=(V+(w=w+Math.imul(At,te)|0)|0)+((8191&(E=(E=E+Math.imul(At,ee)|0)+Math.imul(St,te)|0))<<13)|0;V=((C=C+Math.imul(St,ee)|0)+(E>>>13)|0)+(Se>>>26)|0,Se&=67108863;var Ae=(V+(w=Math.imul(vt,te))|0)+((8191&(E=(E=Math.imul(vt,ee))+Math.imul(yt,te)|0))<<13)|0;return V=((C=Math.imul(yt,ee))+(E>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,H[0]=pe,H[1]=xe,H[2]=Ie,H[3]=We,H[4]=Me,H[5]=Ue,H[6]=nt,H[7]=ut,H[8]=gt,H[9]=pt,H[10]=wt,H[11]=Dt,H[12]=Rt,H[13]=re,H[14]=Zt,H[15]=Ht,H[16]=Yt,H[17]=Se,H[18]=Ae,V!==0&&(H[19]=V,_.length++),_};function A(b,y,_){_.negative=y.negative^b.negative,_.length=b.length+y.length;for(var w=0,E=0,C=0;C<_.length-1;C++){var M=E;E=0;for(var z=67108863&w,H=Math.min(C,y.length-1),V=Math.max(0,C-b.length+1);V<=H;V++){var B=C-V,W=(0|b.words[B])*(0|y.words[V]),N=67108863&W;z=67108863&(N=N+z|0),E+=(M=(M=M+(W/67108864|0)|0)+(N>>>26)|0)>>>26,M&=67108863}_.words[C]=z,w=M,M=E}return w!==0?_.words[C]=w:_.length--,_._strip()}function D(b,y,_){return A(b,y,_)}function F(b,y){this.x=b,this.y=y}Math.imul||(x=v),r.prototype.mulTo=function(b,y){var _=this.length+b.length;return this.length===10&&b.length===10?x(this,b,y):_<63?v(this,b,y):_<1024?A(this,b,y):D(this,b,y)},F.prototype.makeRBT=function(b){for(var y=new Array(b),_=r.prototype._countBits(b)-1,w=0;w>=1;return w},F.prototype.permute=function(b,y,_,w,E,C){for(var M=0;M>>=1)E++;return 1<>>=13,_[2*C+1]=8191&E,E>>>=13;for(C=2*y;C>=26,_+=E/67108864|0,_+=C>>>26,this.words[w]=67108863&C}return _!==0&&(this.words[w]=_,this.length++),y?this.ineg():this},r.prototype.muln=function(b){return this.clone().imuln(b)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(b){var y=(function(C){for(var M=new Array(C.bitLength()),z=0;z>>V&1}return M})(b);if(y.length===0)return new r(1);for(var _=this,w=0;w=0);var y,_=b%26,w=(b-_)/26,E=67108863>>>26-_<<26-_;if(_!==0){var C=0;for(y=0;y>>26-_}C&&(this.words[y]=C,this.length++)}if(w!==0){for(y=this.length-1;y>=0;y--)this.words[y+w]=this.words[y];for(y=0;y=0),w=y?(y-y%26)/26:0;var E=b%26,C=Math.min((b-E)/26,this.length),M=67108863^67108863>>>E<C)for(this.length-=C,H=0;H=0&&(V!==0||H>=w);H--){var B=0|this.words[H];this.words[H]=V<<26-E|B>>>E,V=B&M}return z&&V!==0&&(z.words[z.length++]=V),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},r.prototype.ishrn=function(b,y,_){return s(this.negative===0),this.iushrn(b,y,_)},r.prototype.shln=function(b){return this.clone().ishln(b)},r.prototype.ushln=function(b){return this.clone().iushln(b)},r.prototype.shrn=function(b){return this.clone().ishrn(b)},r.prototype.ushrn=function(b){return this.clone().iushrn(b)},r.prototype.testn=function(b){s(typeof b=="number"&&b>=0);var y=b%26,_=(b-y)/26,w=1<=0);var y=b%26,_=(b-y)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(y!==0&&_++,this.length=Math.min(_,this.length),y!==0){var w=67108863^67108863>>>y<=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},r.prototype.isubn=function(b){if(s(typeof b=="number"),s(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y>26)-(z/67108864|0),this.words[w+_]=67108863&E}for(;w>26,this.words[w+_]=67108863&E;if(M===0)return this._strip();for(s(M===-1),M=0,w=0;w>26,this.words[w]=67108863&E;return this.negative=1,this._strip()},r.prototype._wordDiv=function(b,y){var _=(this.length,b.length),w=this.clone(),E=b,C=0|E.words[E.length-1];(_=26-this._countBits(C))!==0&&(E=E.ushln(_),w.iushln(_),C=0|E.words[E.length-1]);var M,z=w.length-E.length;if(y!=="mod"){(M=new r(null)).length=z+1,M.words=new Array(M.length);for(var H=0;H=0;B--){var W=67108864*(0|w.words[E.length+B])+(0|w.words[E.length+B-1]);for(W=Math.min(W/C|0,67108863),w._ishlnsubmul(E,W,B);w.negative!==0;)W--,w.negative=0,w._ishlnsubmul(E,1,B),w.isZero()||(w.negative^=1);M&&(M.words[B]=W)}return M&&M._strip(),w._strip(),y!=="div"&&_!==0&&w.iushrn(_),{div:M||null,mod:w}},r.prototype.divmod=function(b,y,_){return s(!b.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:this.negative!==0&&b.negative===0?(C=this.neg().divmod(b,y),y!=="mod"&&(w=C.div.neg()),y!=="div"&&(E=C.mod.neg(),_&&E.negative!==0&&E.iadd(b)),{div:w,mod:E}):this.negative===0&&b.negative!==0?(C=this.divmod(b.neg(),y),y!=="mod"&&(w=C.div.neg()),{div:w,mod:C.mod}):(this.negative&b.negative)!=0?(C=this.neg().divmod(b.neg(),y),y!=="div"&&(E=C.mod.neg(),_&&E.negative!==0&&E.isub(b)),{div:C.div,mod:E}):b.length>this.length||this.cmp(b)<0?{div:new r(0),mod:this}:b.length===1?y==="div"?{div:this.divn(b.words[0]),mod:null}:y==="mod"?{div:null,mod:new r(this.modrn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new r(this.modrn(b.words[0]))}:this._wordDiv(b,y);var w,E,C},r.prototype.div=function(b){return this.divmod(b,"div",!1).div},r.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},r.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},r.prototype.divRound=function(b){var y=this.divmod(b);if(y.mod.isZero())return y.div;var _=y.div.negative!==0?y.mod.isub(b):y.mod,w=b.ushrn(1),E=b.andln(1),C=_.cmp(w);return C<0||E===1&&C===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},r.prototype.modrn=function(b){var y=b<0;y&&(b=-b),s(b<=67108863);for(var _=(1<<26)%b,w=0,E=this.length-1;E>=0;E--)w=(_*w+(0|this.words[E]))%b;return y?-w:w},r.prototype.modn=function(b){return this.modrn(b)},r.prototype.idivn=function(b){var y=b<0;y&&(b=-b),s(b<=67108863);for(var _=0,w=this.length-1;w>=0;w--){var E=(0|this.words[w])+67108864*_;this.words[w]=E/b|0,_=E%b}return this._strip(),y?this.ineg():this},r.prototype.divn=function(b){return this.clone().idivn(b)},r.prototype.egcd=function(b){s(b.negative===0),s(!b.isZero());var y=this,_=b.clone();y=y.negative!==0?y.umod(b):y.clone();for(var w=new r(1),E=new r(0),C=new r(0),M=new r(1),z=0;y.isEven()&&_.isEven();)y.iushrn(1),_.iushrn(1),++z;for(var H=_.clone(),V=y.clone();!y.isZero();){for(var B=0,W=1;(y.words[0]&W)==0&&B<26;++B,W<<=1);if(B>0)for(y.iushrn(B);B-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(H),E.isub(V)),w.iushrn(1),E.iushrn(1);for(var N=0,T=1;(_.words[0]&T)==0&&N<26;++N,T<<=1);if(N>0)for(_.iushrn(N);N-- >0;)(C.isOdd()||M.isOdd())&&(C.iadd(H),M.isub(V)),C.iushrn(1),M.iushrn(1);y.cmp(_)>=0?(y.isub(_),w.isub(C),E.isub(M)):(_.isub(y),C.isub(w),M.isub(E))}return{a:C,b:M,gcd:_.iushln(z)}},r.prototype._invmp=function(b){s(b.negative===0),s(!b.isZero());var y=this,_=b.clone();y=y.negative!==0?y.umod(b):y.clone();for(var w,E=new r(1),C=new r(0),M=_.clone();y.cmpn(1)>0&&_.cmpn(1)>0;){for(var z=0,H=1;(y.words[0]&H)==0&&z<26;++z,H<<=1);if(z>0)for(y.iushrn(z);z-- >0;)E.isOdd()&&E.iadd(M),E.iushrn(1);for(var V=0,B=1;(_.words[0]&B)==0&&V<26;++V,B<<=1);if(V>0)for(_.iushrn(V);V-- >0;)C.isOdd()&&C.iadd(M),C.iushrn(1);y.cmp(_)>=0?(y.isub(_),E.isub(C)):(_.isub(y),C.isub(E))}return(w=y.cmpn(1)===0?E:C).cmpn(0)<0&&w.iadd(b),w},r.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var y=this.clone(),_=b.clone();y.negative=0,_.negative=0;for(var w=0;y.isEven()&&_.isEven();w++)y.iushrn(1),_.iushrn(1);for(;;){for(;y.isEven();)y.iushrn(1);for(;_.isEven();)_.iushrn(1);var E=y.cmp(_);if(E<0){var C=y;y=_,_=C}else if(E===0||_.cmpn(1)===0)break;y.isub(_)}return _.iushln(w)},r.prototype.invm=function(b){return this.egcd(b).a.umod(b)},r.prototype.isEven=function(){return(1&this.words[0])==0},r.prototype.isOdd=function(){return(1&this.words[0])==1},r.prototype.andln=function(b){return this.words[0]&b},r.prototype.bincn=function(b){s(typeof b=="number");var y=b%26,_=(b-y)/26,w=1<>>26,M&=67108863,this.words[C]=M}return E!==0&&(this.words[C]=E,this.length++),this},r.prototype.isZero=function(){return this.length===1&&this.words[0]===0},r.prototype.cmpn=function(b){var y,_=b<0;if(this.negative!==0&&!_)return-1;if(this.negative===0&&_)return 1;if(this._strip(),this.length>1)y=1;else{_&&(b=-b),s(b<=67108863,"Number is too big");var w=0|this.words[0];y=w===b?0:wb.length)return 1;if(this.length=0;_--){var w=0|this.words[_],E=0|b.words[_];if(w!==E){wE&&(y=1);break}}return y},r.prototype.gtn=function(b){return this.cmpn(b)===1},r.prototype.gt=function(b){return this.cmp(b)===1},r.prototype.gten=function(b){return this.cmpn(b)>=0},r.prototype.gte=function(b){return this.cmp(b)>=0},r.prototype.ltn=function(b){return this.cmpn(b)===-1},r.prototype.lt=function(b){return this.cmp(b)===-1},r.prototype.lten=function(b){return this.cmpn(b)<=0},r.prototype.lte=function(b){return this.cmp(b)<=0},r.prototype.eqn=function(b){return this.cmpn(b)===0},r.prototype.eq=function(b){return this.cmp(b)===0},r.red=function(b){return new S(b)},r.prototype.toRed=function(b){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},r.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(b){return this.red=b,this},r.prototype.forceRed=function(b){return s(!this.red,"Already a number in reduction context"),this._forceRed(b)},r.prototype.redAdd=function(b){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},r.prototype.redIAdd=function(b){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},r.prototype.redSub=function(b){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},r.prototype.redISub=function(b){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},r.prototype.redShl=function(b){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},r.prototype.redMul=function(b){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},r.prototype.redIMul=function(b){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},r.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(b){return s(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var O={k256:null,p224:null,p192:null,p25519:null};function I(b,y){this.name=b,this.p=new r(y,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){I.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function U(){I.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function R(){I.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){I.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(b){if(typeof b=="string"){var y=r._prime(b);this.m=y.p,this.prime=y}else s(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function P(b){S.call(this,b),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}I.prototype._tmp=function(){var b=new r(null);return b.words=new Array(Math.ceil(this.n/13)),b},I.prototype.ireduce=function(b){var y,_=b;do this.split(_,this.tmp),y=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength();while(y>this.n);var w=y0?_.isub(this.p):_.strip!==void 0?_.strip():_._strip(),_},I.prototype.split=function(b,y){b.iushrn(this.n,0,y)},I.prototype.imulK=function(b){return b.imul(this.k)},a(j,I),j.prototype.split=function(b,y){for(var _=Math.min(b.length,9),w=0;w<_;w++)y.words[w]=b.words[w];if(y.length=_,b.length<=9)return b.words[0]=0,void(b.length=1);var E=b.words[9];for(y.words[y.length++]=4194303&E,w=10;w>>22,E=C}E>>>=22,b.words[w-10]=E,E===0&&b.length>10?b.length-=10:b.length-=9},j.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var y=0,_=0;_>>=26,b.words[_]=E,y=w}return y!==0&&(b.words[b.length++]=y),b},r._prime=function(b){if(O[b])return O[b];var y;if(b==="k256")y=new j;else if(b==="p224")y=new U;else if(b==="p192")y=new R;else{if(b!=="p25519")throw new Error("Unknown prime "+b);y=new k}return O[b]=y,y},S.prototype._verify1=function(b){s(b.negative===0,"red works only with positives"),s(b.red,"red works only with red numbers")},S.prototype._verify2=function(b,y){s((b.negative|y.negative)==0,"red works only with positives"),s(b.red&&b.red===y.red,"red works only with red numbers")},S.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):(p(b,b.umod(this.m)._forceRed(this)),b)},S.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},S.prototype.add=function(b,y){this._verify2(b,y);var _=b.add(y);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},S.prototype.iadd=function(b,y){this._verify2(b,y);var _=b.iadd(y);return _.cmp(this.m)>=0&&_.isub(this.m),_},S.prototype.sub=function(b,y){this._verify2(b,y);var _=b.sub(y);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},S.prototype.isub=function(b,y){this._verify2(b,y);var _=b.isub(y);return _.cmpn(0)<0&&_.iadd(this.m),_},S.prototype.shl=function(b,y){return this._verify1(b),this.imod(b.ushln(y))},S.prototype.imul=function(b,y){return this._verify2(b,y),this.imod(b.imul(y))},S.prototype.mul=function(b,y){return this._verify2(b,y),this.imod(b.mul(y))},S.prototype.isqr=function(b){return this.imul(b,b.clone())},S.prototype.sqr=function(b){return this.mul(b,b)},S.prototype.sqrt=function(b){if(b.isZero())return b.clone();var y=this.m.andln(3);if(s(y%2==1),y===3){var _=this.m.add(new r(1)).iushrn(2);return this.pow(b,_)}for(var w=this.m.subn(1),E=0;!w.isZero()&&w.andln(1)===0;)E++,w.iushrn(1);s(!w.isZero());var C=new r(1).toRed(this),M=C.redNeg(),z=this.m.subn(1).iushrn(1),H=this.m.bitLength();for(H=new r(2*H*H).toRed(this);this.pow(H,z).cmp(M)!==0;)H.redIAdd(M);for(var V=this.pow(H,w),B=this.pow(b,w.addn(1).iushrn(1)),W=this.pow(b,w),N=E;W.cmp(C)!==0;){for(var T=W,$=0;T.cmp(C)!==0;$++)T=T.redSqr();s($=0;w--){for(var H=y.words[w],V=z-1;V>=0;V--){var B=H>>V&1;E!==_[0]&&(E=this.sqr(E)),B!==0||C!==0?(C<<=1,C|=B,(++M===4||w===0&&V===0)&&(E=this.mul(E,_[C]),M=0,C=0)):M=0}z=26}return E},S.prototype.convertTo=function(b){var y=b.umod(this.m);return y===b?y.clone():y},S.prototype.convertFrom=function(b){var y=b.clone();return y.red=null,y},r.mont=function(b){return new P(b)},a(P,S),P.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},P.prototype.convertFrom=function(b){var y=this.imod(b.mul(this.rinv));return y.red=null,y},P.prototype.imul=function(b,y){if(b.isZero()||y.isZero())return b.words[0]=0,b.length=1,b;var _=b.imul(y),w=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=_.isub(w).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},P.prototype.mul=function(b,y){if(b.isZero()||y.isZero())return new r(0)._forceRed(this);var _=b.mul(y),w=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=_.isub(w).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},P.prototype.invm=function(b){return this.imod(b._invmp(this.m).mul(this.r2))._forceRed(this)}})(i===void 0||i)},{buffer:188}],187:[function(t,i,o){"use strict";var e;function n(a){this.rand=a}if(i.exports=function(a){return e||(e=new n(null)),e.generate(a)},i.exports.Rand=n,n.prototype.generate=function(a){return this._rand(a)},n.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var r=new Uint8Array(a),l=0;l>>24]^D[j>>>16&255]^F[U>>>8&255]^O[255&R]^u[k++],m=A[j>>>24]^D[U>>>16&255]^F[R>>>8&255]^O[255&I]^u[k++],v=A[U>>>24]^D[R>>>16&255]^F[I>>>8&255]^O[255&j]^u[k++],x=A[R>>>24]^D[I>>>16&255]^F[j>>>8&255]^O[255&U]^u[k++],I=g,j=m,U=v,R=x;return g=(d[I>>>24]<<24|d[j>>>16&255]<<16|d[U>>>8&255]<<8|d[255&R])^u[k++],m=(d[j>>>24]<<24|d[U>>>16&255]<<16|d[R>>>8&255]<<8|d[255&I])^u[k++],v=(d[U>>>24]<<24|d[R>>>16&255]<<16|d[I>>>8&255]<<8|d[255&j])^u[k++],x=(d[R>>>24]<<24|d[I>>>16&255]<<16|d[j>>>8&255]<<8|d[255&U])^u[k++],[g>>>=0,m>>>=0,v>>>=0,x>>>=0]}var r=[0,1,2,4,8,16,32,64,128,27,54],l=(function(){for(var c=new Array(256),u=0;u<256;u++)c[u]=u<128?u<<1:u<<1^283;for(var p=[],d=[],f=[[],[],[],[]],g=[[],[],[],[]],m=0,v=0,x=0;x<256;++x){var A=v^v<<1^v<<2^v<<3^v<<4;A=A>>>8^255&A^99,p[m]=A,d[A]=m;var D=c[m],F=c[D],O=c[F],I=257*c[A]^16843008*A;f[0][m]=I<<24|I>>>8,f[1][m]=I<<16|I>>>16,f[2][m]=I<<8|I>>>24,f[3][m]=I,I=16843009*O^65537*F^257*D^16843008*m,g[0][A]=I<<24|I>>>8,g[1][A]=I<<16|I>>>16,g[2][A]=I<<8|I>>>24,g[3][A]=I,m===0?m=v=1:(m=D^c[c[c[O^D]]],v^=c[c[v]])}return{SBOX:p,INV_SBOX:d,SUB_MIX:f,INV_SUB_MIX:g}})();function h(c){this._key=n(c),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var c=this._key,u=c.length,p=u+6,d=4*(p+1),f=[],g=0;g>>24,m=l.SBOX[m>>>24]<<24|l.SBOX[m>>>16&255]<<16|l.SBOX[m>>>8&255]<<8|l.SBOX[255&m],m^=r[g/u|0]<<24):u>6&&g%u==4&&(m=l.SBOX[m>>>24]<<24|l.SBOX[m>>>16&255]<<16|l.SBOX[m>>>8&255]<<8|l.SBOX[255&m]),f[g]=f[g-u]^m}for(var v=[],x=0;x>>24]]^l.INV_SUB_MIX[1][l.SBOX[D>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[D>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&D]]}this._nRounds=p,this._keySchedule=f,this._invKeySchedule=v},h.prototype.encryptBlockRaw=function(c){return a(c=n(c),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},h.prototype.encryptBlock=function(c){var u=this.encryptBlockRaw(c),p=e.allocUnsafe(16);return p.writeUInt32BE(u[0],0),p.writeUInt32BE(u[1],4),p.writeUInt32BE(u[2],8),p.writeUInt32BE(u[3],12),p},h.prototype.decryptBlock=function(c){var u=(c=n(c))[1];c[1]=c[3],c[3]=u;var p=a(c,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),d=e.allocUnsafe(16);return d.writeUInt32BE(p[0],0),d.writeUInt32BE(p[3],4),d.writeUInt32BE(p[2],8),d.writeUInt32BE(p[1],12),d},h.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},i.exports.AES=h},{"safe-buffer":494}],190:[function(t,i,o){"use strict";var e=t("./aes"),n=t("safe-buffer").Buffer,s=t("cipher-base"),a=t("inherits"),r=t("./ghash"),l=t("buffer-xor"),h=t("./incr32");function c(u,p,d,f){s.call(this);var g=n.alloc(4,0);this._cipher=new e.AES(p);var m=this._cipher.encryptBlock(g);this._ghash=new r(m),d=(function(v,x,A){if(x.length===12)return v._finID=n.concat([x,n.from([0,0,0,1])]),n.concat([x,n.from([0,0,0,2])]);var D=new r(A),F=x.length,O=F%16;D.update(x),O&&(O=16-O,D.update(n.alloc(O,0))),D.update(n.alloc(8,0));var I=8*F,j=n.alloc(8);j.writeUIntBE(I,0,8),D.update(j),v._finID=D.state;var U=n.from(v._finID);return h(U),U})(this,d,m),this._prev=n.from(d),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=f,this._alen=0,this._len=0,this._mode=u,this._authTag=null,this._called=!1}a(c,s),c.prototype._update=function(u){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=n.alloc(p,0),this._ghash.update(p))}this._called=!0;var d=this._mode.encrypt(this,u);return this._decrypt?this._ghash.update(u):this._ghash.update(d),this._len+=u.length,d},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var u=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(p,d){var f=0;p.length!==d.length&&f++;for(var g=Math.min(p.length,d.length),m=0;m16)throw new Error("unable to decrypt data");for(var m=-1;++m16)return f=this.cache.slice(0,16),this.cache=this.cache.slice(16),f}else if(this.cache.length>=16)return f=this.cache.slice(0,16),this.cache=this.cache.slice(16),f;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},o.createDecipher=function(d,f){var g=s[d.toLowerCase()];if(!g)throw new TypeError("invalid suite type");var m=h(f,!1,g.key,g.iv);return p(d,m.key,m.iv)},o.createDecipheriv=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(t,i,o){"use strict";var e=t("./modes"),n=t("./authCipher"),s=t("safe-buffer").Buffer,a=t("./streamCipher"),r=t("cipher-base"),l=t("./aes"),h=t("evp_bytestokey");function c(f,g,m){r.call(this),this._cache=new p,this._cipher=new l.AES(g),this._prev=s.from(m),this._mode=f,this._autopadding=!0}t("inherits")(c,r),c.prototype._update=function(f){var g,m;this._cache.add(f);for(var v=[];g=this._cache.get();)m=this._mode.encrypt(this,g),v.push(m);return s.concat(v)};var u=s.alloc(16,16);function p(){this.cache=s.allocUnsafe(0)}function d(f,g,m){var v=e[f.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof g=="string"&&(g=s.from(g)),g.length!==v.key/8)throw new TypeError("invalid key length "+g.length);if(typeof m=="string"&&(m=s.from(m)),v.mode!=="GCM"&&m.length!==v.iv)throw new TypeError("invalid iv length "+m.length);return v.type==="stream"?new a(v.module,g,m):v.type==="auth"?new n(v.module,g,m):new c(v.module,g,m)}c.prototype._final=function(){var f=this._cache.flush();if(this._autopadding)return f=this._mode.encrypt(this,f),this._cipher.scrub(),f;if(!f.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(f){return this._autopadding=!!f,this},p.prototype.add=function(f){this.cache=s.concat([this.cache,f])},p.prototype.get=function(){if(this.cache.length>15){var f=this.cache.slice(0,16);return this.cache=this.cache.slice(16),f}return null},p.prototype.flush=function(){for(var f=16-this.cache.length,g=s.allocUnsafe(f),m=-1;++m>>0,0),l.writeUInt32BE(r[1]>>>0,4),l.writeUInt32BE(r[2]>>>0,8),l.writeUInt32BE(r[3]>>>0,12),l}function a(r){this.h=r,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}a.prototype.ghash=function(r){for(var l=-1;++l0;l--)c[l]=c[l]>>>1|(1&c[l-1])<<31;c[0]=c[0]>>>1,h&&(c[0]=c[0]^225<<24)}this.state=s(u)},a.prototype.update=function(r){var l;for(this.cache=e.concat([this.cache,r]);this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},a.prototype.final=function(r,l){return this.cache.length&&this.ghash(e.concat([this.cache,n],16)),this.ghash(s([0,r,0,l])),this.state},i.exports=a},{"safe-buffer":494}],195:[function(t,i,o){"use strict";i.exports=function(e){for(var n,s=e.length;s--;){if((n=e.readUInt8(s))!==255){n++,e.writeUInt8(n,s);break}e.writeUInt8(0,s)}}},{}],196:[function(t,i,o){"use strict";var e=t("buffer-xor");o.encrypt=function(n,s){var a=e(s,n._prev);return n._prev=n._cipher.encryptBlock(a),n._prev},o.decrypt=function(n,s){var a=n._prev;n._prev=s;var r=n._cipher.decryptBlock(s);return e(r,a)}},{"buffer-xor":219}],197:[function(t,i,o){"use strict";var e=t("safe-buffer").Buffer,n=t("buffer-xor");function s(a,r,l){var h=r.length,c=n(r,a._cache);return a._cache=a._cache.slice(h),a._prev=e.concat([a._prev,l?r:c]),c}o.encrypt=function(a,r,l){for(var h,c=e.allocUnsafe(0);r.length;){if(a._cache.length===0&&(a._cache=a._cipher.encryptBlock(a._prev),a._prev=e.allocUnsafe(0)),!(a._cache.length<=r.length)){c=e.concat([c,s(a,r,l)]);break}h=a._cache.length,c=e.concat([c,s(a,r.slice(0,h),l)]),r=r.slice(h)}return c}},{"buffer-xor":219,"safe-buffer":494}],198:[function(t,i,o){"use strict";var e=t("safe-buffer").Buffer;function n(a,r,l){for(var h,c,u=-1,p=0;++u<8;)h=r&1<<7-u?128:0,p+=(128&(c=a._cipher.encryptBlock(a._prev)[0]^h))>>u%8,a._prev=s(a._prev,l?h:c);return p}function s(a,r){var l=a.length,h=-1,c=e.allocUnsafe(a.length);for(a=e.concat([a,e.from([r])]);++h>7;return c}o.encrypt=function(a,r,l){for(var h=r.length,c=e.allocUnsafe(h),u=-1;++u=0||!h.umod(l.prime1)||!h.umod(l.prime2));return h}function r(l,h){var c=(function(F){var O=a(F);return{blinder:O.toRed(n.mont(F.modulus)).redPow(new n(F.publicExponent)).fromRed(),unblinder:O.invm(F.modulus)}})(h),u=h.modulus.byteLength(),p=new n(l).mul(c.blinder).umod(h.modulus),d=p.toRed(n.mont(h.prime1)),f=p.toRed(n.mont(h.prime2)),g=h.coefficient,m=h.prime1,v=h.prime2,x=d.redPow(h.exponent1).fromRed(),A=f.redPow(h.exponent2).fromRed(),D=x.isub(A).imul(g).umod(m).imul(v);return A.iadd(D).imul(c.unblinder).umod(h.modulus).toArrayLike(e,"be",u)}r.getr=a,i.exports=r}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(t,i,o){"use strict";i.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(t,i,o){i.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(t,i,o){i.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(t,i,o){"use strict";var e=t("safe-buffer").Buffer,n=t("create-hash"),s=t("readable-stream"),a=t("inherits"),r=t("./sign"),l=t("./verify"),h=t("./algorithms.json");function c(f){s.Writable.call(this);var g=h[f];if(!g)throw new Error("Unknown message digest");this._hashType=g.hash,this._hash=n(g.hash),this._tag=g.id,this._signType=g.sign}function u(f){s.Writable.call(this);var g=h[f];if(!g)throw new Error("Unknown message digest");this._hash=n(g.hash),this._tag=g.id,this._signType=g.sign}function p(f){return new c(f)}function d(f){return new u(f)}Object.keys(h).forEach((function(f){h[f].id=e.from(h[f].id,"hex"),h[f.toLowerCase()]=h[f]})),a(c,s.Writable),c.prototype._write=function(f,g,m){this._hash.update(f),m()},c.prototype.update=function(f,g){return typeof f=="string"&&(f=e.from(f,g)),this._hash.update(f),this},c.prototype.sign=function(f,g){this.end();var m=this._hash.digest(),v=r(m,f,this._hashType,this._signType,this._tag);return g?v.toString(g):v},a(u,s.Writable),u.prototype._write=function(f,g,m){this._hash.update(f),m()},u.prototype.update=function(f,g){return typeof f=="string"&&(f=e.from(f,g)),this._hash.update(f),this},u.prototype.verify=function(f,g,m){typeof g=="string"&&(g=e.from(g,m)),this.end();var v=this._hash.digest();return l(g,v,f,this._signType,this._tag)},i.exports={Sign:p,Verify:d,createSign:p,createVerify:d}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(t,i,o){"use strict";var e=t("safe-buffer").Buffer,n=t("create-hmac"),s=t("browserify-rsa"),a=t("elliptic").ec,r=t("bn.js"),l=t("parse-asn1"),h=t("./curves.json");function c(f,g,m,v){if((f=e.from(f.toArray())).length0&&m.ishrn(v),m}function p(f,g,m){var v,x;do{for(v=e.alloc(0);8*v.length=c)throw new Error("invalid sig")}i.exports=function(h,c,u,p,d){var f=a(u);if(f.type==="ec"){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(F,O,I){var j=r[I.data.algorithm.curve.join(".")];if(!j)throw new Error("unknown curve "+I.data.algorithm.curve.join("."));var U=new s(j),R=I.data.subjectPrivateKey.data;return U.verify(O,F,R)})(h,c,f)}if(f.type==="dsa"){if(p!=="dsa")throw new Error("wrong public key type");return(function(F,O,I){var j=I.data.p,U=I.data.q,R=I.data.g,k=I.data.pub_key,S=a.signature.decode(F,"der"),P=S.s,b=S.r;l(P,U),l(b,U);var y=n.mont(j),_=P.invm(U);return R.toRed(y).redPow(new n(O).mul(_).mod(U)).fromRed().mul(k.toRed(y).redPow(b.mul(_).mod(U)).fromRed()).mod(j).mod(U).cmp(b)===0})(h,c,f)}if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");c=e.concat([d,c]);for(var g=f.modulus.byteLength(),m=[1],v=0;c.length+m.length+2>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function r(f){var g=this.lastTotal-this.lastNeed,m=(function(v,x,A){if((192&x[0])!=128)return v.lastNeed=0,"\uFFFD";if(v.lastNeed>1&&x.length>1){if((192&x[1])!=128)return v.lastNeed=1,"\uFFFD";if(v.lastNeed>2&&x.length>2&&(192&x[2])!=128)return v.lastNeed=2,"\uFFFD"}})(this,f);return m!==void 0?m:this.lastNeed<=f.length?(f.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(f.copy(this.lastChar,g,0,f.length),void(this.lastNeed-=f.length))}function l(f,g){if((f.length-g)%2==0){var m=f.toString("utf16le",g);if(m){var v=m.charCodeAt(m.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",g,f.length-1)}function h(f){var g=f&&f.length?this.write(f):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,m)}return g}function c(f,g){var m=(f.length-g)%3;return m===0?f.toString("base64",g):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",g,f.length-m))}function u(f){var g=f&&f.length?this.write(f):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function p(f){return f.toString(this.encoding)}function d(f){return f&&f.length?this.write(f):""}o.StringDecoder=s,s.prototype.write=function(f){if(f.length===0)return"";var g,m;if(this.lastNeed){if((g=this.fillLast(f))===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m=0?(O>0&&(x.lastNeed=O-1),O):--F=0?(O>0&&(x.lastNeed=O-2),O):--F=0?(O>0&&(O===2?O=0:x.lastNeed=O-3),O):0})(this,f,g);if(!this.lastNeed)return f.toString("utf8",g);this.lastTotal=m;var v=f.length-(m-this.lastNeed);return f.copy(this.lastChar,0,v),f.toString("utf8",g,v)},s.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length}},{"safe-buffer":217}],219:[function(t,i,o){(function(e){(function(){"use strict";i.exports=function(n,s){for(var a=Math.min(n.length,s.length),r=new e(a),l=0;l2147483647)throw new RangeError('The value "'+N+'" is invalid for option "size"');var T=new Uint8Array(N);return T.__proto__=r.prototype,T}function r(N,T,$){if(typeof N=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(N)}return l(N,T,$)}function l(N,T,$){if(typeof N=="string")return(function(Y,L){if(typeof L=="string"&&L!==""||(L="utf8"),!r.isEncoding(L))throw new TypeError("Unknown encoding: "+L);var tt=0|d(Y,L),K=a(tt),q=K.write(Y,L);return q!==tt&&(K=K.slice(0,q)),K})(N,T);if(ArrayBuffer.isView(N))return u(N);if(N==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(B(N,ArrayBuffer)||N&&B(N.buffer,ArrayBuffer))return(function(Y,L,tt){if(L<0||Y.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|N}function d(N,T){if(r.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||B(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);var $=N.length,G=arguments.length>2&&arguments[2]===!0;if(!G&&$===0)return 0;for(var Q=!1;;)switch(T){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return z(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$;case"hex":return $>>>1;case"base64":return H(N).length;default:if(Q)return G?-1:z(N).length;T=(""+T).toLowerCase(),Q=!0}}function f(N,T,$){var G=!1;if((T===void 0||T<0)&&(T=0),T>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0)<=(T>>>=0))return"";for(N||(N="utf8");;)switch(N){case"hex":return S(this,T,$);case"utf8":case"utf-8":return U(this,T,$);case"ascii":return R(this,T,$);case"latin1":case"binary":return k(this,T,$);case"base64":return j(this,T,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,T,$);default:if(G)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),G=!0}}function g(N,T,$){var G=N[T];N[T]=N[$],N[$]=G}function m(N,T,$,G,Q){if(N.length===0)return-1;if(typeof $=="string"?(G=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),W($=+$)&&($=Q?0:N.length-1),$<0&&($=N.length+$),$>=N.length){if(Q)return-1;$=N.length-1}else if($<0){if(!Q)return-1;$=0}if(typeof T=="string"&&(T=r.from(T,G)),r.isBuffer(T))return T.length===0?-1:v(N,T,$,G,Q);if(typeof T=="number")return T&=255,typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(N,T,$):Uint8Array.prototype.lastIndexOf.call(N,T,$):v(N,[T],$,G,Q);throw new TypeError("val must be string, number or Buffer")}function v(N,T,$,G,Q){var Y,L=1,tt=N.length,K=T.length;if(G!==void 0&&((G=String(G).toLowerCase())==="ucs2"||G==="ucs-2"||G==="utf16le"||G==="utf-16le")){if(N.length<2||T.length<2)return-1;L=2,tt/=2,K/=2,$/=2}function q(rt,J){return L===1?rt[J]:rt.readUInt16BE(J*L)}if(Q){var X=-1;for(Y=$;Ytt&&($=tt-K),Y=$;Y>=0;Y--){for(var Z=!0,et=0;etQ&&(G=Q):G=Q;var Y=T.length;G>Y/2&&(G=Y/2);for(var L=0;L>8,K=L%256,q.push(K),q.push(tt);return q})(T,N.length-$),N,$,G)}function j(N,T,$){return T===0&&$===N.length?n.fromByteArray(N):n.fromByteArray(N.slice(T,$))}function U(N,T,$){$=Math.min(N.length,$);for(var G=[],Q=T;Q<$;){var Y,L,tt,K,q=N[Q],X=null,Z=q>239?4:q>223?3:q>191?2:1;if(Q+Z<=$)switch(Z){case 1:q<128&&(X=q);break;case 2:(192&(Y=N[Q+1]))==128&&(K=(31&q)<<6|63&Y)>127&&(X=K);break;case 3:Y=N[Q+1],L=N[Q+2],(192&Y)==128&&(192&L)==128&&(K=(15&q)<<12|(63&Y)<<6|63&L)>2047&&(K<55296||K>57343)&&(X=K);break;case 4:Y=N[Q+1],L=N[Q+2],tt=N[Q+3],(192&Y)==128&&(192&L)==128&&(192&tt)==128&&(K=(15&q)<<18|(63&Y)<<12|(63&L)<<6|63&tt)>65535&&K<1114112&&(X=K)}X===null?(X=65533,Z=1):X>65535&&(X-=65536,G.push(X>>>10&1023|55296),X=56320|1023&X),G.push(X),Q+=Z}return(function(et){var rt=et.length;if(rt<=4096)return String.fromCharCode.apply(String,et);for(var J="",it=0;it"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(N,T,$){return l(N,T,$)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(N,T,$){return(function(G,Q,Y){return h(G),G<=0?a(G):Q!==void 0?typeof Y=="string"?a(G).fill(Q,Y):a(G).fill(Q):a(G)})(N,T,$)},r.allocUnsafe=function(N){return c(N)},r.allocUnsafeSlow=function(N){return c(N)},r.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==r.prototype},r.compare=function(N,T){if(B(N,Uint8Array)&&(N=r.from(N,N.offset,N.byteLength)),B(T,Uint8Array)&&(T=r.from(T,T.offset,T.byteLength)),!r.isBuffer(N)||!r.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===T)return 0;for(var $=N.length,G=T.length,Q=0,Y=Math.min($,G);QT&&(N+=" ... "),""},r.prototype.compare=function(N,T,$,G,Q){if(B(N,Uint8Array)&&(N=r.from(N,N.offset,N.byteLength)),!r.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if(T===void 0&&(T=0),$===void 0&&($=N?N.length:0),G===void 0&&(G=0),Q===void 0&&(Q=this.length),T<0||$>N.length||G<0||Q>this.length)throw new RangeError("out of range index");if(G>=Q&&T>=$)return 0;if(G>=Q)return-1;if(T>=$)return 1;if(this===N)return 0;for(var Y=(Q>>>=0)-(G>>>=0),L=($>>>=0)-(T>>>=0),tt=Math.min(Y,L),K=this.slice(G,Q),q=N.slice(T,$),X=0;X>>=0,isFinite($)?($>>>=0,G===void 0&&(G="utf8")):(G=$,$=void 0)}var Q=this.length-T;if(($===void 0||$>Q)&&($=Q),N.length>0&&($<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");for(var Y=!1;;)switch(G){case"hex":return x(this,N,T,$);case"utf8":case"utf-8":return A(this,N,T,$);case"ascii":return D(this,N,T,$);case"latin1":case"binary":return F(this,N,T,$);case"base64":return O(this,N,T,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,N,T,$);default:if(Y)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),Y=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(N,T,$){var G="";$=Math.min(N.length,$);for(var Q=T;Q<$;++Q)G+=String.fromCharCode(127&N[Q]);return G}function k(N,T,$){var G="";$=Math.min(N.length,$);for(var Q=T;Q<$;++Q)G+=String.fromCharCode(N[Q]);return G}function S(N,T,$){var G=N.length;(!T||T<0)&&(T=0),(!$||$<0||$>G)&&($=G);for(var Q="",Y=T;Y<$;++Y)Q+=M(N[Y]);return Q}function P(N,T,$){for(var G=N.slice(T,$),Q="",Y=0;Y$)throw new RangeError("Trying to access beyond buffer length")}function y(N,T,$,G,Q,Y){if(!r.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>Q||TN.length)throw new RangeError("Index out of range")}function _(N,T,$,G,Q,Y){if($+G>N.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function w(N,T,$,G,Q){return T=+T,$>>>=0,Q||_(N,0,$,4),s.write(N,T,$,G,23,4),$+4}function E(N,T,$,G,Q){return T=+T,$>>>=0,Q||_(N,0,$,8),s.write(N,T,$,G,52,8),$+8}r.prototype.slice=function(N,T){var $=this.length;(N=~~N)<0?(N+=$)<0&&(N=0):N>$&&(N=$),(T=T===void 0?$:~~T)<0?(T+=$)<0&&(T=0):T>$&&(T=$),T>>=0,T>>>=0,$||b(N,T,this.length);for(var G=this[N],Q=1,Y=0;++Y>>=0,T>>>=0,$||b(N,T,this.length);for(var G=this[N+--T],Q=1;T>0&&(Q*=256);)G+=this[N+--T]*Q;return G},r.prototype.readUInt8=function(N,T){return N>>>=0,T||b(N,1,this.length),this[N]},r.prototype.readUInt16LE=function(N,T){return N>>>=0,T||b(N,2,this.length),this[N]|this[N+1]<<8},r.prototype.readUInt16BE=function(N,T){return N>>>=0,T||b(N,2,this.length),this[N]<<8|this[N+1]},r.prototype.readUInt32LE=function(N,T){return N>>>=0,T||b(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+16777216*this[N+3]},r.prototype.readUInt32BE=function(N,T){return N>>>=0,T||b(N,4,this.length),16777216*this[N]+(this[N+1]<<16|this[N+2]<<8|this[N+3])},r.prototype.readIntLE=function(N,T,$){N>>>=0,T>>>=0,$||b(N,T,this.length);for(var G=this[N],Q=1,Y=0;++Y=(Q*=128)&&(G-=Math.pow(2,8*T)),G},r.prototype.readIntBE=function(N,T,$){N>>>=0,T>>>=0,$||b(N,T,this.length);for(var G=T,Q=1,Y=this[N+--G];G>0&&(Q*=256);)Y+=this[N+--G]*Q;return Y>=(Q*=128)&&(Y-=Math.pow(2,8*T)),Y},r.prototype.readInt8=function(N,T){return N>>>=0,T||b(N,1,this.length),128&this[N]?-1*(255-this[N]+1):this[N]},r.prototype.readInt16LE=function(N,T){N>>>=0,T||b(N,2,this.length);var $=this[N]|this[N+1]<<8;return 32768&$?4294901760|$:$},r.prototype.readInt16BE=function(N,T){N>>>=0,T||b(N,2,this.length);var $=this[N+1]|this[N]<<8;return 32768&$?4294901760|$:$},r.prototype.readInt32LE=function(N,T){return N>>>=0,T||b(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},r.prototype.readInt32BE=function(N,T){return N>>>=0,T||b(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},r.prototype.readFloatLE=function(N,T){return N>>>=0,T||b(N,4,this.length),s.read(this,N,!0,23,4)},r.prototype.readFloatBE=function(N,T){return N>>>=0,T||b(N,4,this.length),s.read(this,N,!1,23,4)},r.prototype.readDoubleLE=function(N,T){return N>>>=0,T||b(N,8,this.length),s.read(this,N,!0,52,8)},r.prototype.readDoubleBE=function(N,T){return N>>>=0,T||b(N,8,this.length),s.read(this,N,!1,52,8)},r.prototype.writeUIntLE=function(N,T,$,G){N=+N,T>>>=0,$>>>=0,G||y(this,N,T,$,Math.pow(2,8*$)-1,0);var Q=1,Y=0;for(this[T]=255&N;++Y<$&&(Q*=256);)this[T+Y]=N/Q&255;return T+$},r.prototype.writeUIntBE=function(N,T,$,G){N=+N,T>>>=0,$>>>=0,G||y(this,N,T,$,Math.pow(2,8*$)-1,0);var Q=$-1,Y=1;for(this[T+Q]=255&N;--Q>=0&&(Y*=256);)this[T+Q]=N/Y&255;return T+$},r.prototype.writeUInt8=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,1,255,0),this[T]=255&N,T+1},r.prototype.writeUInt16LE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,2,65535,0),this[T]=255&N,this[T+1]=N>>>8,T+2},r.prototype.writeUInt16BE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,2,65535,0),this[T]=N>>>8,this[T+1]=255&N,T+2},r.prototype.writeUInt32LE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,4,4294967295,0),this[T+3]=N>>>24,this[T+2]=N>>>16,this[T+1]=N>>>8,this[T]=255&N,T+4},r.prototype.writeUInt32BE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,4,4294967295,0),this[T]=N>>>24,this[T+1]=N>>>16,this[T+2]=N>>>8,this[T+3]=255&N,T+4},r.prototype.writeIntLE=function(N,T,$,G){if(N=+N,T>>>=0,!G){var Q=Math.pow(2,8*$-1);y(this,N,T,$,Q-1,-Q)}var Y=0,L=1,tt=0;for(this[T]=255&N;++Y<$&&(L*=256);)N<0&&tt===0&&this[T+Y-1]!==0&&(tt=1),this[T+Y]=(N/L>>0)-tt&255;return T+$},r.prototype.writeIntBE=function(N,T,$,G){if(N=+N,T>>>=0,!G){var Q=Math.pow(2,8*$-1);y(this,N,T,$,Q-1,-Q)}var Y=$-1,L=1,tt=0;for(this[T+Y]=255&N;--Y>=0&&(L*=256);)N<0&&tt===0&&this[T+Y+1]!==0&&(tt=1),this[T+Y]=(N/L>>0)-tt&255;return T+$},r.prototype.writeInt8=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,1,127,-128),N<0&&(N=255+N+1),this[T]=255&N,T+1},r.prototype.writeInt16LE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,2,32767,-32768),this[T]=255&N,this[T+1]=N>>>8,T+2},r.prototype.writeInt16BE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,2,32767,-32768),this[T]=N>>>8,this[T+1]=255&N,T+2},r.prototype.writeInt32LE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,4,2147483647,-2147483648),this[T]=255&N,this[T+1]=N>>>8,this[T+2]=N>>>16,this[T+3]=N>>>24,T+4},r.prototype.writeInt32BE=function(N,T,$){return N=+N,T>>>=0,$||y(this,N,T,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[T]=N>>>24,this[T+1]=N>>>16,this[T+2]=N>>>8,this[T+3]=255&N,T+4},r.prototype.writeFloatLE=function(N,T,$){return w(this,N,T,!0,$)},r.prototype.writeFloatBE=function(N,T,$){return w(this,N,T,!1,$)},r.prototype.writeDoubleLE=function(N,T,$){return E(this,N,T,!0,$)},r.prototype.writeDoubleBE=function(N,T,$){return E(this,N,T,!1,$)},r.prototype.copy=function(N,T,$,G){if(!r.isBuffer(N))throw new TypeError("argument should be a Buffer");if($||($=0),G||G===0||(G=this.length),T>=N.length&&(T=N.length),T||(T=0),G>0&&G<$&&(G=$),G===$||N.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),N.length-T=0;--Y)N[Y+T]=this[Y+$];else Uint8Array.prototype.set.call(N,this.subarray($,G),T);return Q},r.prototype.fill=function(N,T,$,G){if(typeof N=="string"){if(typeof T=="string"?(G=T,T=0,$=this.length):typeof $=="string"&&(G=$,$=this.length),G!==void 0&&typeof G!="string")throw new TypeError("encoding must be a string");if(typeof G=="string"&&!r.isEncoding(G))throw new TypeError("Unknown encoding: "+G);if(N.length===1){var Q=N.charCodeAt(0);(G==="utf8"&&Q<128||G==="latin1")&&(N=Q)}}else typeof N=="number"&&(N&=255);if(T<0||this.length>>=0,$=$===void 0?this.length:$>>>0,N||(N=0),typeof N=="number")for(Y=T;Y<$;++Y)this[Y]=N;else{var L=r.isBuffer(N)?N:r.from(N,G),tt=L.length;if(tt===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(Y=0;Y<$-T;++Y)this[Y+T]=L[Y%tt]}return this};var C=/[^+/0-9A-Za-z-_]/g;function M(N){return N<16?"0"+N.toString(16):N.toString(16)}function z(N,T){var $;T=T||1/0;for(var G=N.length,Q=null,Y=[],L=0;L55295&&$<57344){if(!Q){if($>56319){(T-=3)>-1&&Y.push(239,191,189);continue}if(L+1===G){(T-=3)>-1&&Y.push(239,191,189);continue}Q=$;continue}if($<56320){(T-=3)>-1&&Y.push(239,191,189),Q=$;continue}$=65536+(Q-55296<<10|$-56320)}else Q&&(T-=3)>-1&&Y.push(239,191,189);if(Q=null,$<128){if((T-=1)<0)break;Y.push($)}else if($<2048){if((T-=2)<0)break;Y.push($>>6|192,63&$|128)}else if($<65536){if((T-=3)<0)break;Y.push($>>12|224,$>>6&63|128,63&$|128)}else{if(!($<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;Y.push($>>18|240,$>>12&63|128,$>>6&63|128,63&$|128)}}return Y}function H(N){return n.toByteArray((function(T){if((T=(T=T.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;T.length%4!=0;)T+="=";return T})(N))}function V(N,T,$,G){for(var Q=0;Q=T.length||Q>=N.length);++Q)T[Q+$]=N[Q];return Q}function B(N,T){return N instanceof T||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===T.name}function W(N){return N!=N}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(t,i,o){"use strict";var e=t("safe-buffer").Buffer,n=t("stream").Transform,s=t("string_decoder").StringDecoder;function a(r){n.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(a,n),a.prototype.update=function(r,l,h){typeof r=="string"&&(r=e.from(r,l));var c=this._update(r);return this.hashMode?this:(h&&(c=this._toString(c,h)),c)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(r,l,h){var c;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(u){c=u}finally{h(c)}},a.prototype._flush=function(r){var l;try{this.push(this.__final())}catch(h){l=h}r(l)},a.prototype._finalOrDigest=function(r){var l=this.__final()||e.alloc(0);return r&&(l=this._toString(l,r,!0)),l},a.prototype._toString=function(r,l,h){if(this._decoder||(this._decoder=new s(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var c=this._decoder.write(r);return h&&(c+=this._decoder.end()),c},i.exports=a},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(t,i,o){"use strict";var e=t("../internals/is-callable"),n=t("../internals/try-to-string"),s=TypeError;i.exports=function(a){if(e(a))return a;throw new s(n(a)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(t,i,o){"use strict";var e=t("../internals/is-constructor"),n=t("../internals/try-to-string"),s=TypeError;i.exports=function(a){if(e(a))return a;throw new s(n(a)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(t,i,o){"use strict";var e=t("../internals/is-callable"),n=String,s=TypeError;i.exports=function(a){if(typeof a=="object"||e(a))return a;throw new s("Can't set "+n(a)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(t,i,o){"use strict";var e=t("../internals/well-known-symbol"),n=t("../internals/object-create"),s=t("../internals/object-define-property").f,a=e("unscopables"),r=Array.prototype;r[a]===void 0&&s(r,a,{configurable:!0,value:n(null)}),i.exports=function(l){r[a][l]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(t,i,o){"use strict";var e=t("../internals/object-is-prototype-of"),n=TypeError;i.exports=function(s,a){if(e(a,s))return s;throw new n("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(t,i,o){"use strict";var e=t("../internals/is-object"),n=String,s=TypeError;i.exports=function(a){if(e(a))return a;throw new s(n(a)+" is not an object")}},{"../internals/is-object":289}],228:[function(t,i,o){"use strict";var e=t("../internals/to-indexed-object"),n=t("../internals/to-absolute-index"),s=t("../internals/length-of-array-like"),a=function(r){return function(l,h,c){var u,p=e(l),d=s(p),f=n(c,d);if(r&&h!=h){for(;d>f;)if((u=p[f++])!=u)return!0}else for(;d>f;f++)if((r||f in p)&&p[f]===h)return r||f||0;return!r&&-1}};i.exports={includes:a(!0),indexOf:a(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(t,i,o){"use strict";var e=t("../internals/function-bind-context"),n=t("../internals/function-uncurry-this"),s=t("../internals/indexed-object"),a=t("../internals/to-object"),r=t("../internals/length-of-array-like"),l=t("../internals/array-species-create"),h=n([].push),c=function(u){var p=u===1,d=u===2,f=u===3,g=u===4,m=u===6,v=u===7,x=u===5||m;return function(A,D,F,O){for(var I,j,U=a(A),R=s(U),k=e(D,F),S=r(R),P=0,b=O||l,y=p?b(A,S):d||v?b(A,0):void 0;S>P;P++)if((x||P in R)&&(j=k(I=R[P],P,U),u))if(p)y[P]=j;else if(j)switch(u){case 3:return!0;case 5:return I;case 6:return P;case 2:h(y,I)}else switch(u){case 4:return!1;case 7:h(y,I)}return m?-1:f||g?g:y}};i.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(t,i,o){"use strict";var e=t("../internals/to-absolute-index"),n=t("../internals/length-of-array-like"),s=t("../internals/create-property"),a=Array,r=Math.max;i.exports=function(l,h,c){for(var u=n(l),p=e(h,u),d=e(c===void 0?u:c,u),f=a(r(d-p,0)),g=0;p0&&e[0]<4?1:+(e[0]+e[1])),!n&&a&&(!(e=a.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=a.match(/Chrome\/(\d+)/))&&(n=+e[1]),i.exports=n},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(t,i,o){"use strict";i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(t,i,o){"use strict";var e=t("../internals/global"),n=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/create-non-enumerable-property"),a=t("../internals/define-built-in"),r=t("../internals/define-global-property"),l=t("../internals/copy-constructor-properties"),h=t("../internals/is-forced");i.exports=function(c,u){var p,d,f,g,m,v=c.target,x=c.global,A=c.stat;if(p=x?e:A?e[v]||r(v,{}):(e[v]||{}).prototype)for(d in u){if(g=u[d],f=c.dontCallGetSet?(m=n(p,d))&&m.value:p[d],!h(x?d:v+(A?".":"#")+d,c.forced)&&f!==void 0){if(typeof g==typeof f)continue;l(g,f)}(c.sham||f&&f.sham)&&s(g,"sham",!0),a(p,d,g,c)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(t,i,o){"use strict";i.exports=function(e){try{return!!e()}catch{return!0}}},{}],261:[function(t,i,o){"use strict";var e=t("../internals/function-bind-native"),n=Function.prototype,s=n.apply,a=n.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(e?a.bind(s):function(){return a.apply(s,arguments)})},{"../internals/function-bind-native":263}],262:[function(t,i,o){"use strict";var e=t("../internals/function-uncurry-this-clause"),n=t("../internals/a-callable"),s=t("../internals/function-bind-native"),a=e(e.bind);i.exports=function(r,l){return n(r),l===void 0?r:s?a(r,l):function(){return r.apply(l,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(t,i,o){"use strict";var e=t("../internals/fails");i.exports=!e((function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(t,i,o){"use strict";var e=t("../internals/function-bind-native"),n=Function.prototype.call;i.exports=e?n.bind(n):function(){return n.apply(n,arguments)}},{"../internals/function-bind-native":263}],265:[function(t,i,o){"use strict";var e=t("../internals/descriptors"),n=t("../internals/has-own-property"),s=Function.prototype,a=e&&Object.getOwnPropertyDescriptor,r=n(s,"name"),l=r&&function(){}.name==="something",h=r&&(!e||e&&a(s,"name").configurable);i.exports={EXISTS:r,PROPER:l,CONFIGURABLE:h}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(t,i,o){"use strict";var e=t("../internals/function-uncurry-this"),n=t("../internals/a-callable");i.exports=function(s,a,r){try{return e(n(Object.getOwnPropertyDescriptor(s,a)[r]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(t,i,o){"use strict";var e=t("../internals/classof-raw"),n=t("../internals/function-uncurry-this");i.exports=function(s){if(e(s)==="Function")return n(s)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(t,i,o){"use strict";var e=t("../internals/function-bind-native"),n=Function.prototype,s=n.call,a=e&&n.bind.bind(s,s);i.exports=e?a:function(r){return function(){return s.apply(r,arguments)}}},{"../internals/function-bind-native":263}],269:[function(t,i,o){"use strict";var e=t("../internals/global"),n=t("../internals/is-callable"),s=function(a){return n(a)?a:void 0};i.exports=function(a,r){return arguments.length<2?s(e[a]):e[a]&&e[a][r]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(t,i,o){"use strict";var e=t("../internals/classof"),n=t("../internals/get-method"),s=t("../internals/is-null-or-undefined"),a=t("../internals/iterators"),r=t("../internals/well-known-symbol")("iterator");i.exports=function(l){if(!s(l))return n(l,r)||n(l,"@@iterator")||a[e(l)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(t,i,o){"use strict";var e=t("../internals/function-call"),n=t("../internals/a-callable"),s=t("../internals/an-object"),a=t("../internals/try-to-string"),r=t("../internals/get-iterator-method"),l=TypeError;i.exports=function(h,c){var u=arguments.length<2?r(h):c;if(n(u))return s(e(u,h));throw new l(a(h)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(t,i,o){"use strict";var e=t("../internals/function-uncurry-this"),n=t("../internals/is-array"),s=t("../internals/is-callable"),a=t("../internals/classof-raw"),r=t("../internals/to-string"),l=e([].push);i.exports=function(h){if(s(h))return h;if(n(h)){for(var c=h.length,u=[],p=0;pF;F++)if((I=w(m[F]))&&h(g,I))return I;return new f(!1)}A=c(m,D)}for(j=S?m.next:A.next;!(U=n(j,A)).done;){try{I=w(U.value)}catch(E){p(A,"throw",E)}if(typeof I=="object"&&I&&h(g,I))return I}return new f(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(t,i,o){"use strict";var e=t("../internals/function-call"),n=t("../internals/an-object"),s=t("../internals/get-method");i.exports=function(a,r,l){var h,c;n(a);try{if(!(h=s(a,"return"))){if(r==="throw")throw l;return l}h=e(h,a)}catch(u){c=!0,h=u}if(r==="throw")throw l;if(c)throw h;return n(h),l}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(t,i,o){"use strict";var e=t("../internals/iterators-core").IteratorPrototype,n=t("../internals/object-create"),s=t("../internals/create-property-descriptor"),a=t("../internals/set-to-string-tag"),r=t("../internals/iterators"),l=function(){return this};i.exports=function(h,c,u,p){var d=c+" Iterator";return h.prototype=n(e,{next:s(+!p,u)}),a(h,d,!1,!0),r[d]=l,h}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(t,i,o){"use strict";var e=t("../internals/export"),n=t("../internals/function-call"),s=t("../internals/is-pure"),a=t("../internals/function-name"),r=t("../internals/is-callable"),l=t("../internals/iterator-create-constructor"),h=t("../internals/object-get-prototype-of"),c=t("../internals/object-set-prototype-of"),u=t("../internals/set-to-string-tag"),p=t("../internals/create-non-enumerable-property"),d=t("../internals/define-built-in"),f=t("../internals/well-known-symbol"),g=t("../internals/iterators"),m=t("../internals/iterators-core"),v=a.PROPER,x=a.CONFIGURABLE,A=m.IteratorPrototype,D=m.BUGGY_SAFARI_ITERATORS,F=f("iterator"),O=function(){return this};i.exports=function(I,j,U,R,k,S,P){l(U,j,R);var b,y,_,w=function(B){if(B===k&&H)return H;if(!D&&B&&B in M)return M[B];switch(B){case"keys":case"values":case"entries":return function(){return new U(this,B)}}return function(){return new U(this)}},E=j+" Iterator",C=!1,M=I.prototype,z=M[F]||M["@@iterator"]||k&&M[k],H=!D&&z||w(k),V=j==="Array"&&M.entries||z;if(V&&(b=h(V.call(new I)))!==Object.prototype&&b.next&&(s||h(b)===A||(c?c(b,A):r(b[F])||d(b,F,O)),u(b,E,!0,!0),s&&(g[E]=O)),v&&k==="values"&&z&&z.name!=="values"&&(!s&&x?p(M,"name","values"):(C=!0,H=function(){return n(z,this)})),k)if(y={values:w("values"),keys:S?H:w("keys"),entries:w("entries")},P)for(_ in y)(D||C||!(_ in M))&&d(M,_,y[_]);else e({target:j,proto:!0,forced:D||C},y);return s&&!P||M[F]===H||d(M,F,H,{name:k}),g[j]=H,y}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(t,i,o){"use strict";var e,n,s,a=t("../internals/fails"),r=t("../internals/is-callable"),l=t("../internals/is-object"),h=t("../internals/object-create"),c=t("../internals/object-get-prototype-of"),u=t("../internals/define-built-in"),p=t("../internals/well-known-symbol"),d=t("../internals/is-pure"),f=p("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(n=c(c(s)))!==Object.prototype&&(e=n):g=!0),!l(e)||a((function(){var m={};return e[f].call(m)!==m}))?e={}:d&&(e=h(e)),r(e[f])||u(e,f,(function(){return this})),i.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:g}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(t,i,o){arguments[4][276][0].apply(o,arguments)},{dup:276}],299:[function(t,i,o){"use strict";var e=t("../internals/to-length");i.exports=function(n){return e(n.length)}},{"../internals/to-length":343}],300:[function(t,i,o){"use strict";var e=t("../internals/function-uncurry-this"),n=t("../internals/fails"),s=t("../internals/is-callable"),a=t("../internals/has-own-property"),r=t("../internals/descriptors"),l=t("../internals/function-name").CONFIGURABLE,h=t("../internals/inspect-source"),c=t("../internals/internal-state"),u=c.enforce,p=c.get,d=String,f=Object.defineProperty,g=e("".slice),m=e("".replace),v=e([].join),x=r&&!n((function(){return f((function(){}),"length",{value:8}).length!==8})),A=String(String).split("String"),D=i.exports=function(F,O,I){g(d(O),0,7)==="Symbol("&&(O="["+m(d(O),/^Symbol\(([^)]*)\)/,"$1")+"]"),I&&I.getter&&(O="get "+O),I&&I.setter&&(O="set "+O),(!a(F,"name")||l&&F.name!==O)&&(r?f(F,"name",{value:O,configurable:!0}):F.name=O),x&&I&&a(I,"arity")&&F.length!==I.arity&&f(F,"length",{value:I.arity});try{I&&a(I,"constructor")&&I.constructor?r&&f(F,"prototype",{writable:!1}):F.prototype&&(F.prototype=void 0)}catch{}var j=u(F);return a(j,"source")||(j.source=v(A,typeof O=="string"?O:"")),F};Function.prototype.toString=D((function(){return s(this)&&p(this).source||h(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(t,i,o){"use strict";var e=Math.ceil,n=Math.floor;i.exports=Math.trunc||function(s){var a=+s;return(a>0?n:e)(a)}},{}],302:[function(t,i,o){"use strict";var e,n,s,a,r,l=t("../internals/global"),h=t("../internals/function-bind-context"),c=t("../internals/object-get-own-property-descriptor").f,u=t("../internals/task").set,p=t("../internals/queue"),d=t("../internals/engine-is-ios"),f=t("../internals/engine-is-ios-pebble"),g=t("../internals/engine-is-webos-webkit"),m=t("../internals/engine-is-node"),v=l.MutationObserver||l.WebKitMutationObserver,x=l.document,A=l.process,D=l.Promise,F=c(l,"queueMicrotask"),O=F&&F.value;if(!O){var I=new p,j=function(){var U,R;for(m&&(U=A.domain)&&U.exit();R=I.get();)try{R()}catch(k){throw I.head&&e(),k}U&&U.enter()};d||m||g||!v||!x?!f&&D&&D.resolve?((a=D.resolve(void 0)).constructor=D,r=h(a.then,a),e=function(){r(j)}):m?e=function(){A.nextTick(j)}:(u=h(u,l),e=function(){u(j)}):(n=!0,s=x.createTextNode(""),new v(j).observe(s,{characterData:!0}),e=function(){s.data=n=!n}),O=function(U){I.head||e(),I.add(U)}}i.exports=O},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(t,i,o){"use strict";var e=t("../internals/a-callable"),n=TypeError,s=function(a){var r,l;this.promise=new a((function(h,c){if(r!==void 0||l!==void 0)throw new n("Bad Promise constructor");r=h,l=c})),this.resolve=e(r),this.reject=e(l)};i.exports.f=function(a){return new s(a)}},{"../internals/a-callable":222}],304:[function(t,i,o){"use strict";var e=t("../internals/is-regexp"),n=TypeError;i.exports=function(s){if(e(s))throw new n("The method doesn't accept regular expressions");return s}},{"../internals/is-regexp":291}],305:[function(t,i,o){"use strict";var e=t("../internals/descriptors"),n=t("../internals/function-uncurry-this"),s=t("../internals/function-call"),a=t("../internals/fails"),r=t("../internals/object-keys"),l=t("../internals/object-get-own-property-symbols"),h=t("../internals/object-property-is-enumerable"),c=t("../internals/to-object"),u=t("../internals/indexed-object"),p=Object.assign,d=Object.defineProperty,f=n([].concat);i.exports=!p||a((function(){if(e&&p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},m={},v=Symbol("assign detection");return g[v]=7,"abcdefghijklmnopqrst".split("").forEach((function(x){m[x]=x})),p({},g)[v]!==7||r(p({},m)).join("")!=="abcdefghijklmnopqrst"}))?function(g,m){for(var v=c(g),x=arguments.length,A=1,D=l.f,F=h.f;x>A;)for(var O,I=u(arguments[A++]),j=D?f(r(I),D(I)):r(I),U=j.length,R=0;U>R;)O=j[R++],e&&!s(F,I,O)||(v[O]=I[O]);return v}:p},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(t,i,o){"use strict";var e,n=t("../internals/an-object"),s=t("../internals/object-define-properties"),a=t("../internals/enum-bug-keys"),r=t("../internals/hidden-keys"),l=t("../internals/html"),h=t("../internals/document-create-element"),c=t("../internals/shared-key"),u=c("IE_PROTO"),p=function(){},d=function(m){return"