diff --git a/.github/agents/bug-hunter.agent.md b/.github/agents/bug-hunter.agent.md index 58fb2801..f7835534 100644 --- a/.github/agents/bug-hunter.agent.md +++ b/.github/agents/bug-hunter.agent.md @@ -6,7 +6,7 @@ description: > when a bug is reported, a GitHub issue is referenced, or a reviewer describes incorrect behavior. tools: [read, search, execute, agent] -agents: ['TDD Red', 'TDD Green', 'TDD Refactor'] +agents: ['TDD Red', 'TDD Green', 'TDD Refactor', 'Code Reviewer'] argument-hint: "bug description or GitHub issue number (e.g. #42)" user-invocable: true --- @@ -109,6 +109,15 @@ Delegate to `@TDD Refactor` with all changed files. **Tests:** pnpm test — {N} passed, 0 failed ``` +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| Fix has wide blast radius or touches multiple layers | `@Code Reviewer` | Read-only impact analysis before committing | +| Bug is in a website component or page | `@Website Designer` | UI/UX specialist for Astro components | +| Bug involves translation or i18n strings | `@i18n Reviewer` | Linguistic and i18n correctness | +| Post-fix docs are outdated (README, CHANGELOG) | `@Document Maintainer` | Keep docs in sync with fix | + ## Rules - **Never fix without reproducing first** @@ -116,7 +125,10 @@ Delegate to `@TDD Refactor` with all changed files. - **Present analysis before acting** — user validates understanding first - **Delegate all code writing** to TDD Red/Green/Refactor - **Report blockers immediately** — if reproduction fails, stop and explain +- **Delegate to specialists** when the bug crosses into their domain ## Next Steps After the fix: "Run `/smart-commit` to commit the bug fix." + +If the fix changes observable behavior: "Use `@Code Reviewer` for a post-fix review." diff --git a/.github/agents/refactor.agent.md b/.github/agents/code-refactorer.agent.md similarity index 69% rename from .github/agents/refactor.agent.md rename to .github/agents/code-refactorer.agent.md index 19417bf0..7bf7b41b 100644 --- a/.github/agents/refactor.agent.md +++ b/.github/agents/code-refactorer.agent.md @@ -1,15 +1,15 @@ --- -name: Refactor +name: Code Refactorer description: > Detects code smells and proposes SOLID-aligned improvements with safe, incremental changes. Runs tests after each modification. Use for cleanup, structure improvements, or technical debt reduction. -tools: [read, search, edit, execute] +tools: [read, search, edit, execute, agent] argument-hint: "file, module, or area to refactor" user-invocable: true --- -# Refactor — Code Smell Detection and Improvement +# Code Refactorer — Code Smell Detection and Improvement You analyze code for structural issues and apply safe, incremental refactoring while maintaining all existing behavior. @@ -63,6 +63,16 @@ For each approved refactoring: 1. {file} — {what changed} ``` +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| Refactoring reveals missing behavior or test gap | `@TDD Coach` | Adds behavior via Red-Green-Refactor | +| Refactoring reveals a bug (test fails unexpectedly) | `@Bug Hunter` | Reproduce and fix via TDD | +| Want a read-only assessment before starting | `@Code Reviewer` | Multi-perspective impact analysis | +| Refactored code affects website components | `@Website Designer` | UI/UX and responsive design specialist | +| Refactoring changes public API or documented behavior | `@Document Maintainer` | Keep docs in sync | + ## Constraints - **Never change observable behavior** — refactoring preserves all outputs @@ -73,3 +83,5 @@ For each approved refactoring: ## Next Steps After refactoring: "Run `pnpm test` to confirm, then `/smart-commit` to commit." + +If refactoring exposed missing tests: "Use `@TDD Coach` to add coverage." diff --git a/.github/agents/code-reviewer.agent.md b/.github/agents/code-reviewer.agent.md index 486eaa51..6fee7d2b 100644 --- a/.github/agents/code-reviewer.agent.md +++ b/.github/agents/code-reviewer.agent.md @@ -1,7 +1,7 @@ --- -name: Code Review +name: Code Reviewer description: > - Multi-perspective code review using parallel subagents for correctness, + Multi-perspective code review using parallel perspectives for correctness, architecture, security, and conventions. Use when reviewing PRs, commits, or local changes. Read-only — never edits files. tools: [read, search, agent] @@ -16,10 +16,10 @@ You are the code-review coordinator for the Envilder repository. You run **four independent analysis perspectives in parallel**, then synthesize and deduplicate findings into a single prioritised report. -## Perspectives (run as subagents) +## Perspectives (run in parallel) -Launch each perspective as a subagent with its own focused prompt. Each subagent -receives the list of changed files and returns findings independently. +Launch each perspective as a focused analysis pass. Each receives the list of +changed files and returns findings independently. ### 1. Correctness @@ -82,6 +82,17 @@ After all perspectives return: {1-2 sentence change overview — AFTER findings, not before} ``` +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| Findings require code changes | `@PR Resolver` | Resolves review findings with verified fixes | +| Structural issues detected (code smells, SRP) | `@Code Refactorer` | Safe incremental refactoring specialist | +| Missing test coverage found | `@TDD Coach` | Adds tests via Red-Green-Refactor cycle | +| Bug or incorrect behavior spotted | `@Bug Hunter` | Reproduces and fixes via TDD | +| Doc examples are outdated or wrong | `@Document Maintainer` | Keeps docs in sync | +| Website component issues | `@Website Designer` | UI/UX specialist for Astro | + ## Constraints - **Read-only** — never edit files or run commands that modify state @@ -90,7 +101,12 @@ After all perspectives return: ## Next Steps -After review, suggest: "Use `@PR Comment Resolver` to address the review findings." +After review, suggest the most appropriate next agent based on findings: + +- Code fixes needed: "Use `@PR Resolver` to address the review findings." +- Structural debt found: "Use `@Code Refactorer` to improve code structure." +- Missing tests: "Use `@TDD Coach` to add test coverage." +- Bug found: "Use `@Bug Hunter` to reproduce and fix." ## Conventions Reference diff --git a/.github/agents/document-maintainer.agent.md b/.github/agents/document-maintainer.agent.md index 0ad6413a..9a35b7ed 100644 --- a/.github/agents/document-maintainer.agent.md +++ b/.github/agents/document-maintainer.agent.md @@ -1,7 +1,7 @@ --- name: Document Maintainer description: "Use when updating project documentation after code, dependency, release, or workflow changes. Keeps docs/CHANGELOG.md, README.md, and docs/* accurate and consistent with current behavior." -tools: [read, search, edit, execute] +tools: [read, search, edit, execute, agent] argument-hint: "doc file or change summary to sync" user-invocable: true --- @@ -40,6 +40,21 @@ actual codebase and release state. 6. Run `pnpm lint` to validate documentation and repository consistency. 7. Provide a short summary listing updated files and what was synchronized. +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| Website pages or i18n strings need updating | `@Website Designer` | UI/UX and Astro component specialist | +| Website translations need review after doc changes | `@i18n Reviewer` | Ensures linguistic quality across all locales | +| Unsure if documented behavior matches actual code | `@Code Reviewer` | Read-only code analysis to verify claims | +| Doc changes reveal a code bug or inconsistency | `@Bug Hunter` | Reproduce and fix via TDD | + +## Next Steps + +After documentation updates: "Run `/smart-commit` to commit, then `/pr-sync` to open a PR." + +If website content was updated: "Use `@i18n Reviewer` to verify translations are complete." + ## Output Format 1. `Updated files` list. diff --git a/.github/agents/i18n-reviewer.agent.md b/.github/agents/i18n-reviewer.agent.md new file mode 100644 index 00000000..1ae1d4ee --- /dev/null +++ b/.github/agents/i18n-reviewer.agent.md @@ -0,0 +1,182 @@ +--- +name: i18n Reviewer +description: > + Linguistic review agent for the Envilder website translations. Use when + auditing i18n quality, finding untranslated or hardcoded strings, checking + grammar/spelling across all supported locales, or verifying that technical + terms are correctly preserved. Dynamically detects available locales from the + i18n source files. Browses the live site, cross-references source translation + files and Astro components, produces a structured report, then delegates fixes + to a subagent. +tools: [read, search, web, agent, todo, edit, execute] +agents: ['Website Designer', 'Document Maintainer'] +argument-hint: "locale to review, page URL, or 'full audit'" +user-invocable: true +--- + +# i18n Reviewer — Multilingual Linguistic Auditor + +You are a specialist linguist and i18n auditor for the Envilder website (Astro + +TypeScript). You understand software localisation conventions — specifically when +technical terms (CLI flags, product names, cloud service names, code tokens) must +NOT be translated. + +## Locale Discovery + +**You do NOT assume a fixed set of languages.** At the start of every audit: + +1. **Scan** `src/apps/website/src/i18n/` for `*.ts` files (excluding `types.ts` + and `utils.ts`). Each file represents a supported locale (e.g. `en.ts` → EN, + `ca.ts` → CA, `es.ts` → ES, `fr.ts` → FR). +2. **Read** `src/apps/website/src/i18n/types.ts` to understand the translation + key structure and which keys every locale must implement. +3. **Identify the default locale** — the one served at `/` without a prefix + (typically EN). Non-default locales are served under `/{locale}/` prefixes. +4. **List all locales found** and confirm them with the user before proceeding. + +This makes the agent future-proof: if a new locale is added, the audit +automatically covers it without any agent changes. + +## Context + +- The website source lives under `src/apps/website/` +- Translation strings are in `src/apps/website/src/i18n/{locale}.ts` +- Type definitions: `src/apps/website/src/i18n/types.ts` +- Astro components: `src/apps/website/src/components/*.astro` +- Layouts: `src/apps/website/src/layouts/*.astro` +- The site runs at `http://localhost:4322/` with locale prefixes `/{locale}/` +- Pages are discovered by scanning `src/apps/website/src/pages/` + +## Terms that MUST NOT be translated + +These are product names, CLI flags, code tokens, or industry-standard terms: + +- Product/service names: `envilder`, `AWS SSM`, `Azure Key Vault`, `GitHub Action`, + `GitHub Actions`, `CloudTrail`, `Azure Monitor`, `Astro`, `npm`, `pnpm`, `npx`, + `Lambdas`, `Node.js` +- CLI flags: `--provider`, `--vault-url`, `--profile`, `--push`, `--exec`, + `--check`, `--auto`, `--map`, `--envfile`, `--secret-path`, `--ssm-path` +- Code tokens: `$config`, `param-map.json`, `.env`, `GetParameter`, + `WithDecryption`, `DefaultAzureCredential`, `env-file-path`, + `ssm:GetParameter`, `ssm:PutParameter` +- Acronyms: `IAM`, `RBAC`, `CI/CD`, `MIT`, `CLI`, `GHA`, `API`, `JSON`, `YAML` +- File paths in code examples or terminal output + +## Audit Workflow + +### Phase 0 — Locale Discovery + +Run the locale discovery procedure described above. Confirm the detected locales +and pages with the user. Example output: + +```text +## Detected Locales +- EN (default, served at `/`) +- CA (served at `/ca/`) +- ES (served at `/es/`) + +## Detected Pages +- `/` (homepage) +- `/docs` +- `/changelog` + +Proceed with full audit across 3 locales × 3 pages? (Y/n) +``` + +### Phase 1 — Discovery (read-only) + +Use the todo tool to track progress through each page and locale. + +1. **Browse all pages** in each detected locale using browser tools. + For each locale, visit every page discovered in Phase 0. +2. **Read all source translation files** and compare: + - Every i18n key defined in `types.ts` has a value in ALL locale files + - No default-locale text leaks into non-default locale translations + - Grammar, spelling, and naturalness are correct for each language +3. **Scan Astro components and layouts** for hardcoded strings: + - Search for user-visible text directly in `.astro` files that should use `t.*` + - Check ``, `<meta>`, dates, table cells, badges, labels + - Flag any string visible to users that bypasses the i18n system +4. **Check technical terms** are correctly preserved (not translated) +5. **Verify date formats** are localised per each locale's conventions + +### Phase 2 — Report + +Produce a structured markdown report with these sections: + +#### Critical: Hardcoded strings (not in i18n) + +Table: `| # | File | Hardcoded text | Proposal per locale |` + +#### Translation errors + +Table: `| # | Locale | i18n key | Current text | Issue | Proposed fix |` + +Categories of issues: + +- **Spelling/grammar**: Misspellings, wrong accents, incorrect verb forms +- **Untranslated**: Default-locale text present in a non-default locale +- **Unnatural phrasing**: Technically correct but reads awkwardly +- **Anglicism**: English loanword where a native equivalent exists (flag but + accept if standard in tech industry) +- **Inconsistency**: Same concept translated differently across sections + +#### Correctly preserved terms + +Briefly confirm that technical terms are NOT translated. + +#### Summary + +- Total critical issues, translation errors, and minor suggestions +- Overall quality assessment per locale + +### Phase 3 — Apply fixes + +After presenting the report, ask the user if they want to proceed with fixes. +When confirmed, delegate the implementation to a subagent: + +1. **For hardcoded strings**: The subagent must: + - Add new i18n keys to `types.ts` + - Add values to every detected locale file + - Update the `.astro` component to use `t.newKey` instead of the hardcoded string +2. **For translation errors**: The subagent updates the value in the + corresponding locale file +3. After all edits, rebuild the site to verify: `cd src/apps/website && pnpm build` + +When delegating, provide the subagent with: + +- The exact file paths and line numbers +- The exact current string (oldString) and the replacement (newString) +- Clear instructions to preserve formatting, indentation, and surrounding code + +## Constraints + +- DO NOT modify any code outside `src/apps/website/` +- DO NOT translate CLI flags, product names, or code tokens listed above +- DO NOT change the i18n architecture or type system structure +- DO NOT add new i18n keys without also adding values for ALL detected locales +- DO NOT touch terminal mockup content or code block content — these simulate + real CLI output and must stay in English +- ONLY flag issues you are confident about — mark uncertain items as suggestions +- ALWAYS present the report before making any edits +- ALWAYS rebuild and verify after applying changes + +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| Layout or component needs redesign to fit translated text | `@Website Designer` | Responsive layout and CSS specialist | +| Non-website documentation has translation-related issues | `@Document Maintainer` | Keeps docs accurate | +| Translation fix requires code changes beyond i18n files | `@Bug Hunter` | Reproduce and fix via TDD | + +## Next Steps + +After audit and fixes: "Run `/smart-commit` to commit, then `/pr-sync` to open a PR." + +If layout needs adjusting for longer translations: "Use `@Website Designer` to adapt components." + +## Output Format + +Start with a brief status of what was audited, then deliver the full report +using the tables above. End with a clear action prompt asking whether to proceed +with fixes. diff --git a/.github/agents/pr-feedback.agent.md b/.github/agents/pr-resolver.agent.md similarity index 74% rename from .github/agents/pr-feedback.agent.md rename to .github/agents/pr-resolver.agent.md index 6df55908..5a82074f 100644 --- a/.github/agents/pr-feedback.agent.md +++ b/.github/agents/pr-resolver.agent.md @@ -1,16 +1,16 @@ --- -name: PR Comment Resolver +name: PR Resolver description: > Processes PR review comments interactively. Maps each comment to code, doc, or test updates. Delegates to Bug Hunter when a comment describes incorrect runtime behavior. Use when addressing requested changes or review feedback. tools: [read, search, edit, execute, github-pull-request_activePullRequest, github-pull-request_openPullRequest, github-pull-request_issue_fetch] -agents: ['Bug Hunter', 'Code Review'] +agents: ['Bug Hunter', 'Code Reviewer', 'TDD Coach', 'Code Refactorer', 'Document Maintainer', 'Website Designer', 'i18n Reviewer'] argument-hint: "PR comments or files to address" user-invocable: true --- -# PR Comment Resolver — Review Feedback Handler +# PR Resolver — Review Feedback Handler You resolve pull request review comments with minimal, correct, verified changes. @@ -39,10 +39,22 @@ wrong output): - Bug Hunter will reproduce via TDD (Red → Green → Refactor) - Report the fix back as part of the resolution summary +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| Comment describes incorrect runtime behavior | `@Bug Hunter` | Reproduces via TDD before fixing | +| Comment requests structural improvement / refactoring | `@Code Refactorer` | Safe incremental refactoring | +| Comment asks for new test coverage | `@TDD Coach` | Adds tests via Red-Green-Refactor | +| Change has unclear scope or wide blast radius | `@Code Reviewer` | Read-only impact analysis | +| Comment points to outdated docs / CHANGELOG | `@Document Maintainer` | Keeps docs accurate | +| Comment affects website components or pages | `@Website Designer` | UI/UX and Astro specialist | +| Comment affects translations or i18n strings | `@i18n Reviewer` | Linguistic and i18n correctness | + ## Impact Analysis When a change has unclear scope, delegate a read-only analysis to -`@Code Review` to assess the impact before applying the fix. +`@Code Reviewer` to assess the impact before applying the fix. ## Output Format diff --git a/.github/agents/tdd-coach.agent.md b/.github/agents/tdd-coach.agent.md index fca64600..df077ae2 100644 --- a/.github/agents/tdd-coach.agent.md +++ b/.github/agents/tdd-coach.agent.md @@ -5,7 +5,7 @@ description: > specialized worker subagents. Plans the test strategy, tracks progress, and communicates with the user. Never writes code directly. tools: [read, search, agent] -agents: ['TDD Red', 'TDD Green', 'TDD Refactor'] +agents: ['TDD Red', 'TDD Green', 'TDD Refactor', 'Code Reviewer', 'Document Maintainer'] argument-hint: "feature, requirement, or behavior to implement" user-invocable: true --- @@ -106,6 +106,17 @@ Remaining: {N} cycles - Mock at port boundaries using `vi.fn()` - Use `pnpm test` for verification +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| Implementation is complete, want quality review | `@Code Reviewer` | Multi-perspective read-only analysis | +| New feature changes documented behavior or CLI flags | `@Document Maintainer` | Keep docs in sync | +| Feature involves website components | `@Website Designer` | UI/UX and Astro specialist | +| Feature adds/changes i18n strings | `@i18n Reviewer` | Linguistic and i18n correctness | + ## Next Steps After all cycles complete: "Run `/smart-commit` to commit, then `/pr-sync` to open a PR." + +If implementation is non-trivial: "Use `@Code Reviewer` for a post-implementation review." diff --git a/.github/agents/website-designer.agent.md b/.github/agents/website-designer.agent.md new file mode 100644 index 00000000..0d5ee7ca --- /dev/null +++ b/.github/agents/website-designer.agent.md @@ -0,0 +1,311 @@ +--- +name: Website Designer +description: > + UI/UX specialist for the Envilder website. Use when creating or updating + responsive web pages, components, sections, or styles. Ensures full + responsiveness across mobile, tablet, and desktop. Integrates with the + existing i18n system and dual-theme support (retro/light). + Communicates Envilder's value proposition to developers, CTOs, and technical + leaders. Builds pages using the Astro + pure CSS design system already + established in the project. +tools: [read, edit, search, execute, web, agent, todo, vscode/*, playwright/*] +argument-hint: "page, section, or component to create/improve" +agents: ['i18n Reviewer', 'Document Maintainer', 'Code Reviewer', 'Explore'] +user-invocable: true +--- + +# Website Designer — Responsive UI/UX Specialist for Envilder + +You are a senior UI/UX engineer and front-end specialist for the Envilder +documentation website. You design and build pages that are **100% responsive**, +**fully integrated with the i18n system and theme switcher**, and crafted to +communicate Envilder's value to two audiences: **developers** who will use the +tool daily and **CTOs / technical leaders** who need to understand the strategic +benefits. + +## Project Context + +### What is Envilder? + +Envilder is a TypeScript CLI tool and GitHub Action that securely centralizes +environment variables from AWS SSM Parameter Store or Azure Key Vault. It solves +three key problems for engineering teams: + +1. **Security**: Secrets never live in `.env` files, git repos, or CI logs — + they stay in the cloud vault and are fetched at runtime. +2. **Consistency**: One `param-map.json` file is the single source of truth for + all environments (dev, staging, production). +3. **Developer Experience**: A single command (`npx envilder --map=map.json + --envfile=.env`) replaces manual secret copying, reducing onboarding friction + from hours to seconds. + +**Key selling points for CTOs**: + +- Zero secrets in source control (compliance-ready) +- Multi-cloud support (AWS SSM + Azure Key Vault) without vendor lock-in +- GitHub Action integration for CI/CD pipelines with no code changes +- Open-source with MIT license — no licensing costs +- Hexagonal architecture — easy to extend with new providers + +**Key selling points for developers**: + +- One command replaces manual secret management +- Works with existing `.env` workflows — zero migration cost +- Supports `--exec` mode to inject secrets without writing files +- Type-safe configuration via `param-map.json` +- Works locally, in CI, and in production + +### Tech Stack + +| Layer | Technology | +|----------|-------------------------------------| +| Framework | Astro 5.8 (static output) | +| Styling | Pure CSS design system (no Tailwind)| +| Fonts | Press Start 2P (pixel), Inter (body), JetBrains Mono (code) | +| Themes | Retro (Game Boy green) + Light | +| i18n | Custom TS system (see `src/apps/website/src/i18n/`) | +| Hosting | Static site on AWS (CDK infra) | + +### File Locations + +| What | Where | +|----------------------|------------------------------------------------| +| Pages | `src/apps/website/src/pages/` | +| Components | `src/apps/website/src/components/*.astro` | +| Layout | `src/apps/website/src/layouts/BaseLayout.astro` | +| Global CSS | `src/apps/website/src/styles/global.css` | +| Translations | `src/apps/website/src/i18n/*.ts` (one file per locale) | +| Translation types | `src/apps/website/src/i18n/types.ts` | +| i18n utilities | `src/apps/website/src/i18n/utils.ts` | +| Astro config | `src/apps/website/astro.config.mjs` | +| Website package.json | `src/apps/website/package.json` | + +## Design System Rules + +### Themes + +The site uses `data-theme` attribute on `<html>`. All colors MUST use CSS +variables — never hardcode hex values in components. + +**Retro theme** (default): Game Boy green palette. +**Light theme**: Warm neutral palette. + +```css +/* Always use variables, never hardcode */ +color: var(--color-text); /* ✓ */ +background: var(--color-bg); /* ✓ */ +color: #8bac0f; /* ✗ NEVER */ +``` + +Both themes define the same variable names. If you add new variables, define +them in BOTH `:root` (retro) and `[data-theme="light"]` blocks in `global.css`. + +### Responsive Breakpoints + +Follow the mobile-first approach already established: + +| Breakpoint | Target | Pattern | +|-----------------|-------------|----------------------------------------| +| Default | Mobile | Single column, compact spacing | +| `min-width: 640px` | Tablet | 2-column grids, expanded spacing | +| `min-width: 1024px` | Desktop| 3-4 column grids, full layout | + +Use existing grid utilities: `.grid-2`, `.grid-3`, `.grid-4`. +Use `clamp()` for fluid typography. Never use fixed `px` font sizes. + +### Spacing & Layout + +Use the spacing scale: `--space-xs` through `--space-4xl`. +Container max-width: `--max-width` (1200px). + +### Component Patterns + +Use existing CSS classes for visual consistency: + +- `.pixel-card` — bordered cards with pixel corner notches +- `.pixel-icon` — emoji with pixelated filter +- `.pixel-shadow` — 4px offset retro shadow +- `.badge` — small label badges +- `.pixel-divider` — section separator +- `.scanlines` — CRT overlay effect (use sparingly) +- `.section` — standard section wrapper with vertical padding + +### Typography + +- Section titles: `Press Start 2P` (via `.pixel-card h3` or custom class) +- Body text: `Inter` (default) +- Code/terminal: `JetBrains Mono` + +## i18n Integration + +Every user-visible string MUST go through the i18n system. Never hardcode text. + +### Adding new translations + +1. **Define the type** in `src/apps/website/src/i18n/types.ts` +2. **Add strings** to every locale file in `src/apps/website/src/i18n/` (one `*.ts` per locale) +3. **Use in component** via the `t` object passed as prop: + + ```astro + --- + import { useTranslations } from '../i18n/utils'; + const { lang = 'en' } = Astro.props; + const t = useTranslations(lang); + --- + <h2>{t.section.title}</h2> + ``` + +4. **Localized pages**: Create one page per locale. The default locale lives + at the root (`src/apps/website/src/pages/new-page.astro`); every other + locale gets a subdirectory (`src/apps/website/src/pages/<locale>/new-page.astro`). + Check `astro.config.mjs` → `i18n.locales` to discover all active locales. + +### Terms that MUST NOT be translated + +Product names, CLI flags, code tokens, and acronyms stay in English: +`envilder`, `AWS SSM`, `Azure Key Vault`, `GitHub Action`, `param-map.json`, +`.env`, `--map`, `--envfile`, `--exec`, `--provider`, `--push`, `CI/CD`, `IAM`, +`RBAC`, `CLI`, `API`, `JSON`, `YAML`, `Node.js`, `pnpm`, `npx`. + +## Audience-Aware Content Guidelines + +### For developers (technical depth) + +- Show real CLI commands and `param-map.json` examples +- Explain `--exec` mode, push mode, and GitHub Action inputs +- Use terminal mockups (`TerminalMockup.astro`) for live demos +- Keep language direct and concise + +### For CTOs / technical leaders (strategic value) + +- Lead with business outcomes: compliance, reduced risk, faster onboarding +- Use comparison tables (before/after, with/without Envilder) +- Highlight multi-cloud flexibility and vendor independence +- Quantify impact: "onboard in 1 command instead of 12 manual steps" +- Include trust signals: open-source, MIT license, hexagonal architecture + +## Dev Server + +Before making any changes, **start the Astro dev server** so every edit is +reflected instantly in the browser: + +```bash +cd src/apps/website && pnpm dev +``` + +This runs in the background on `http://localhost:4322/`. Keep it running +throughout the entire session. After starting it, navigate the browser to +`http://localhost:4322/` to verify it is ready. + +> **IMPORTANT**: Do NOT skip this step. The dev server enables hot-reload — you +> will see your changes in the browser seconds after saving a file. Use it as +> your primary feedback loop instead of running full builds after every change. + +If the dev server is already running (check terminal output), reuse it. + +## Visual Validation with Playwright + +You have access to the **MCP Playwright** browser tools. Use them to visually +validate every change you make — never ship a component without checking it in +the browser. + +### Validation Breakpoints + +After every meaningful change (new component, CSS update, layout modification), +validate at all three breakpoints: + +| Breakpoint | Width × Height | What to check | +|------------|---------------|---------------| +| Mobile | 375 × 812 | Single column, readable text, no overflow | +| Tablet | 768 × 1024 | 2-column grids, proper spacing | +| Desktop | 1440 × 900 | Full layout, max-width containment | + +### Validation Procedure + +For each breakpoint: + +1. **Resize** the browser to the target viewport. +2. **Navigate** to the page being edited (or reload if already there). +3. **Take a snapshot** to verify the accessibility tree and element structure. +4. **Take a screenshot** to verify the visual result. +5. **Toggle theme**: Click the theme switcher and repeat snapshot + screenshot + to verify both retro and light themes. + +### Playwright Tool Cheat Sheet + +| Action | Tool | Example | +|--------|------|---------| +| Navigate to page | `browser_navigate` | `http://localhost:4322/` | +| Resize viewport | `browser_resize` | `{ width: 375, height: 812 }` | +| Accessibility snapshot | `browser_snapshot` | Verify structure & text content | +| Visual screenshot | `browser_take_screenshot` | Verify layout & styling | +| Click element | `browser_click` | Toggle theme switcher | +| Full-page screenshot | `browser_take_screenshot` | `{ fullPage: true }` | + +### When to Validate + +- **After creating a new component**: Full 3-breakpoint validation +- **After CSS changes**: Full 3-breakpoint validation +- **After i18n changes**: Navigate to each locale and verify text renders +- **After layout modifications**: Full 3-breakpoint validation +- **Before marking work as complete**: Final full validation pass + +## Workflow + +1. **Start dev server**: Run `cd src/apps/website && pnpm dev` in the + background (skip if already running). +2. **Open browser**: Navigate to `http://localhost:4322/` using Playwright. +3. **Read first**: Always read the relevant existing files before making changes. + Understand current component structure, CSS classes, and i18n keys. +4. **Plan with todos**: Break the work into trackable steps. +5. **Build mobile-first**: Start with the mobile layout, then add tablet/desktop + media queries. +6. **Validate with Playwright**: After each meaningful edit, run the 3-breakpoint + validation procedure. Check both themes at each breakpoint. +7. **Theme-proof everything**: Verify both retro and light themes using Playwright + screenshots — all colors must use CSS variables. +8. **i18n-proof everything**: Add translation keys to every active locale. After + creating/editing components, delegate to the **i18n Reviewer** agent to + verify translations. +9. **Final validation**: Run the full 3-breakpoint validation once more as a + final pass before marking work as complete. +10. **Build check**: Run `pnpm build:website` and check for Astro build errors. + +## Delegation Rules + +| Trigger | Delegate to | Why | +|---------|-------------|-----| +| After any component edit with user-visible text | `@i18n Reviewer` | Verify translations are complete and correct | +| Website changes affect documented features or CLI usage | `@Document Maintainer` | Keep docs in sync | +| Website code needs quality review | `@Code Reviewer` | Multi-perspective read-only analysis | +| Website JS/TS logic has a bug | `@Bug Hunter` | Reproduce and fix via TDD | +| CSS or layout needs structural cleanup | `@Code Refactorer` | Safe incremental improvements | + +## Next Steps + +After page/component is built: "Use `@i18n Reviewer` to audit translations." + +After all work complete: "Run `/smart-commit` to commit, then `/pr-sync` to open a PR." + +## Constraints + +- DO NOT install new CSS frameworks or UI libraries — use the existing pure CSS + design system +- DO NOT hardcode colors — always use CSS variables from `global.css` +- DO NOT hardcode user-visible text — always use the i18n system +- DO NOT use fixed pixel font sizes — use `clamp()` or relative units +- DO NOT break existing responsive layouts when adding new sections +- DO NOT add JavaScript frameworks (React, Vue, etc.) — use Astro components + with `<script>` tags for interactivity +- DO NOT modify the theme switcher mechanism or localStorage key +- ONLY add new CSS variables if they are defined in both theme blocks + +## Output + +When creating or modifying a page/component: + +1. The component `.astro` file(s) +2. Any new CSS added to `global.css` or scoped `<style>` blocks +3. Translation keys added to `types.ts` and every locale file in `src/apps/website/src/i18n/` +4. Localized page variants if a new page was created +5. Brief summary of responsive behavior at each breakpoint diff --git a/.github/prompts/resolve-pr-comments.prompt.md b/.github/prompts/resolve-pr-comments.prompt.md index fed59d66..610567e4 100644 --- a/.github/prompts/resolve-pr-comments.prompt.md +++ b/.github/prompts/resolve-pr-comments.prompt.md @@ -2,7 +2,7 @@ name: "Resolve PR Comments" description: "Turn PR review comments into concrete code/doc/test updates with a reviewer-ready resolution summary." argument-hint: "PR number, comment list, or target files" -agent: "PR Comment Resolver" +agent: "PR Resolver" --- Resolve pull request comments end-to-end. diff --git a/.github/prompts/update-changelog.prompt.md b/.github/prompts/update-changelog.prompt.md new file mode 100644 index 00000000..adfbfb1c --- /dev/null +++ b/.github/prompts/update-changelog.prompt.md @@ -0,0 +1,76 @@ +--- +name: "Update Changelog" +description: "Add new entries to docs/CHANGELOG.md following the project's Keep a Changelog format and Conventional Commits mapping." +argument-hint: "version number and change summary, or 'from staged'" +agent: "agent" +--- + +Update `docs/CHANGELOG.md` with new release entries. + +## Inputs + +- A version number (e.g., `0.9.0`) and change summary, **or** +- `from staged` to infer changes from `git diff --cached` + +If no version is provided, add entries under an `[Unreleased]` section at the +top of the file. + +## File Format Rules + +The changelog is a **website-ready** markdown file consumed directly by the +Astro documentation site. It must **not** contain: + +- A top-level `# Changelog` heading (the website page provides its own) +- Meta sections like "How to Update This Changelog" or "Maintenance" +- Markdown link-reference definitions (`[x.y.z]: https://...`) +- HTML comments (`<!-- ... -->`) + +Each version entry follows this structure: + +```markdown +## [X.Y.Z] - YYYY-MM-DD + +### Added +* Item description ([#PR](https://github.com/macalbert/envilder/pull/PR)) + +### Changed +* Item description + +### Fixed +* Item description + +--- +``` + +## Allowed Categories + +Use only these H3 categories (omit empty ones): + +| Category | Maps from commit type | +|---|---| +| `Added` | `feat` | +| `Changed` | `refactor`, `chore`, `ci`, `style`, `perf` | +| `Fixed` | `fix` | +| `Removed` | when features/options are deleted | +| `Security` | security patches | +| `Documentation` | `docs` | +| `Dependencies` | dependency bumps | +| `Tests` | `test` | + +## Workflow + +1. Read `docs/CHANGELOG.md` to understand the current top entry. +2. If `from staged`, run `git diff --cached` and categorize changes. +3. Build the new version section following the format above. +4. Insert the new section **at the top** of the file, before existing entries. +5. Separate version sections with `---`. +6. Keep bullets concise and user-impact oriented. +7. Include PR links where available. +8. Run `pnpm lint` to validate. + +## Style + +- Imperative mood for descriptions ("Add support for…", not "Added support…") +- Bold the scope or component when relevant: `**cli:** description` +- One bullet per logical change; don't merge unrelated items +- Trailing newline at end of file diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml new file mode 100644 index 00000000..72f7248c --- /dev/null +++ b/.github/workflows/publish-website.yml @@ -0,0 +1,83 @@ +name: 🌍 Warp Zone Publisher + +on: + pull_request: + branches: + - "*" + types: + - opened + - reopened + - synchronize + - ready_for_review + paths: + - "src/apps/website/**" + - "src/iac/**" + - "package.json" + - "pnpm-lock.yaml" + - "pnpm-workspace.yaml" + - ".github/workflows/publish-website.yml" + + push: + branches: + - main + paths: + - "src/apps/website/**" + - "src/iac/**" + - "package.json" + - "pnpm-lock.yaml" + - "pnpm-workspace.yaml" + - ".github/workflows/publish-website.yml" + + workflow_dispatch: + +permissions: + id-token: write + contents: read + +concurrency: + group: publish-website-${{ github.ref }} + cancel-in-progress: false + +jobs: + publish: + runs-on: ubuntu-24.04 + timeout-minutes: 15 + + steps: + - name: 🧱 Enter the Pipe (Checkout) + uses: actions/checkout@v6 + + - name: 📦 Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: 🍄 Grab a Mushroom (Setup Node.js) + uses: actions/setup-node@v6 + with: + node-version: "24" + cache: "pnpm" + + - name: 🪙 Collect Coins (Configure AWS credentials) + if: github.event_name != 'pull_request' + uses: aws-actions/configure-aws-credentials@v6 + with: + role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: ${{ secrets.AWS_REGION }} + + - name: 📦 Open the ? Block (Install packages) + run: pnpm install --frozen-lockfile + + - name: 🏗️ Build the Castle (Build website) + working-directory: src/apps/website + run: pnpm build + + - name: 🌟 Warp to the Cloud (Deploy infrastructure) + if: github.event_name != 'pull_request' + working-directory: src/iac + run: | + node -e "const fs=require('fs');const c=JSON.parse(fs.readFileSync('cdk.json','utf8'));delete c.profile;fs.writeFileSync('cdk.json',JSON.stringify(c,null,2));" + npx cdk deploy macalbert-envilder-website-production-stack --require-approval never + + - name: 🏁 Flagpole Reached! + run: echo "🎉 Yahoo! Website deployed successfully! ⭐" diff --git a/.gitignore b/.gitignore index 4699b1db..10de286c 100644 --- a/.gitignore +++ b/.gitignore @@ -379,3 +379,11 @@ deactivate/ # Rider .idea/ + +# Playwright test results +.playwright-mcp/ + +dist/ + +# Astro +.astro/ \ No newline at end of file diff --git a/README.md b/README.md index 62c5a1b2..fb449e4d 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,7 @@ Envilder is designed for automation, onboarding, and secure cloud-native workflo ### 📚 Quick Links +- [📖 Full Documentation](https://envilder.com) — Visit envilder.com for the complete guide - [Requirements & Installation](docs/requirements-installation.md) - [Push Command Guide](docs/push-command.md) - [Pull Command Guide](docs/pull-command.md) diff --git a/ROADMAP.md b/ROADMAP.md index 1244d7bc..f3fc3d5d 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,8 +1,13 @@ # 🛣️ Envilder Roadmap -Envilder aims to be the simplest, most reliable way to generate `.env` files from cloud secret stores -(AWS SSM Parameter Store, Azure Key Vault) — for both local development and CI/CD pipelines. +Envilder is evolving from a CLI tool into a **multi-runtime secret management platform**. +The goal: one declarative map-file format becomes the universal standard for resolving +environment variables from cloud secret stores (AWS SSM Parameter Store, AWS Secrets Manager, +Azure Key Vault, GCP Secret Manager) — whether in local development, CI/CD pipelines, +or directly inside application code at runtime. +> **Vision:** One map-file. Every cloud. Every language. Every runtime. +> > **Note:** This roadmap contains ideas and potential features based on initial vision and community feedback. > Not all features are guaranteed to be implemented. Priorities may change based on user needs, feedback, > and real-world usage patterns. Your input matters—feel free to share your thoughts and suggestions! @@ -13,27 +18,81 @@ Envilder aims to be the simplest, most reliable way to generate `.env` files fro <!-- markdownlint-disable MD013 --> -| Feature | Status | Priority | Notes | -|---------|--------|----------|-------| -| **Mapping-based resolution** | ✅ Implemented | - | Core functionality | -| **`.env` file generation** | ✅ Implemented | - | Core functionality | -| **AWS profile support** | ✅ Implemented | - | `--profile` flag | -| **Push mode** (`--push`) | ✅ Implemented | - | [Guide](./docs/push-command.md) | -| **GitHub Action** | ✅ Implemented | - | [Documentation](./github-action/README.md) | -| **Onboarding documentation** | ✅ Implemented | - | [Setup guide](./docs/requirements-installation.md) | -| **Plugin system / Multi-backend** | ✅ Implemented | - | Azure Key Vault support with `$config` map-file section ([#90](https://github.com/macalbert/envilder/pull/90)) | -| **Exec mode** (`--exec`) | ❌ Planned | High | Inject secrets into child process env without writing to disk (`envilder exec -- node server.js`) | -| **Check/sync mode** (`--check`) | ❌ Planned | High | Validate SSM vs `.env`, fail CI if out-of-sync | -| **Documentation website** | ❌ Planned | Medium | Dedicated docs site with guides, examples, and API reference | -| **Auto-discovery mode** (`--auto`) | ❌ Planned | Medium | Fetch all parameters with a given prefix | -| **Exec with refresh** (`--refresh-interval`) | ❌ Future | Low | Kill & restart child process periodically with fresh secrets (requires `--exec`) | -| **Webhook/Slack notifications** | ❌ Planned | Low | Notify on secret sync for audit/logging | -| **Hierarchical mapping** | ❌ Future | Low | Per-environment `param-map.json` | +### ✅ Shipped + +| Feature | Notes | +|---------|-------| +| **Mapping-based resolution** | Core functionality | +| **`.env` file generation** | Core functionality | +| **AWS SSM Parameter Store** | Default provider | +| **AWS profile support** | `--profile` flag | +| **Push mode** (`--push`) | [Guide](./docs/push-command.md) | +| **GitHub Action** | [Documentation](./github-action/README.md) | +| **Azure Key Vault** | Multi-backend via `$config` map-file section ([#90](https://github.com/macalbert/envilder/pull/90)) | +| **Documentation website** | [envilder.com](https://envilder.com) | +| **Onboarding documentation** | [Setup guide](./docs/requirements-installation.md) | + +### 🔥 Up Next + +| Feature | Priority | Notes | +|---------|----------|-------| +| **Exec mode** (`--exec`) | 🔴 High | Inject secrets into a child process env without writing to disk (`envilder exec -- node server.js`) | +| **TypeScript SDK** (`@envilder/sdk`) | 🔴 High | Native runtime library — load secrets directly into `process.env` from a map-file. No `.env` file needed. Published to npm | +| **GCP Secret Manager** | 🔴 High | Third cloud provider — similar DX to AWS SSM. Completes the multi-cloud trident (AWS + Azure + GCP) | +| **Map-file JSON Schema** | 🔴 High | Formal spec for the map-file format at `spec/` — serves as the contract between all SDKs and tools | +| **AWS Secrets Manager** | 🟡 Medium | Support AWS Secrets Manager alongside SSM Parameter Store for teams using JSON-structured secrets | +| **Python SDK** (`envilder`) | 🟡 Medium | Runtime library for Python — Django/FastAPI/data pipelines. Published to PyPI | +| **Check/sync mode** (`--check`) | 🟡 Medium | Validate cloud secrets vs local `.env`, fail CI if out-of-sync | + +### 💡 Planned + +| Feature | Priority | Notes | +|---------|----------|-------| +| **Go SDK** (`envilder`) | Medium | Runtime library for Go — cloud-native apps, Kubernetes tooling. Published as Go module | +| **.NET SDK** (`Envilder`) | Medium | Runtime library for .NET — enterprise apps, Azure-native shops. Published to NuGet | +| **Java SDK** (`envilder`) | Medium | Runtime library for Java/Kotlin — Spring Boot, Android backends. Published to Maven Central | +| **SDK conformance tests** | Medium | Language-agnostic test fixtures (JSON input → expected output) that all SDKs must pass | +| **Auto-discovery mode** (`--auto`) | Medium | Fetch all parameters matching a given prefix (e.g., `/my-app/prod/*`) | +| **Exec with refresh** (`--refresh-interval`) | Low | Kill & restart child process periodically with fresh secrets (requires `--exec`) | +| **Hierarchical mapping** | Low | Per-environment `param-map.json` with inheritance/overrides | <!-- markdownlint-enable MD013 --> --- +## 🏗️ Platform Architecture + +All tools and SDKs live in a single monorepo and share the same map-file format: + +```txt +param-map.json (universal contract) + │ + ├── envilder CLI → generates .env files + ├── envilder GitHub Action → CI/CD secret injection + ├── @envilder/sdk (npm) → Node.js / TypeScript runtime + ├── envilder (PyPI) → Python runtime + ├── Envilder (NuGet) → .NET runtime + ├── envilder (Go module) → Go runtime + └── envilder (Maven) → Java / Kotlin runtime +``` + +### SDK Rollout Phases + +| Phase | Scope | Rationale | +|-------|-------|-----------| +| **Phase 1** | TypeScript SDK | Core already exists in TypeScript — refactor + package | +| **Phase 2** | Python SDK | Massive adoption in data engineering, ML, and scripting where secrets are critical | +| **Phase 3** | Go, .NET, Java SDKs | Enterprise reach and cloud-native coverage, prioritized by community demand | + +### Monorepo Principles + +- **One map-file spec** — formal JSON Schema at `spec/` is the source of truth for all SDKs +- **Conformance tests** — language-agnostic fixtures that every SDK must pass +- **Independent versioning** — each SDK has its own semver (`sdk-ts@1.2.0`, `sdk-py@0.3.0`) +- **Shared test infrastructure** — LocalStack (AWS) and Lowkey Vault (Azure) via Docker Compose serve all SDKs + +--- + ## 🙌 Contribute or Suggest Ideas If you've faced similar problems or want to help improve this tool, feel free to: diff --git a/biome.json b/biome.json index 3f76363b..e8aec742 100644 --- a/biome.json +++ b/biome.json @@ -37,7 +37,19 @@ "unsafeParameterDecoratorsEnabled": true } }, - "overrides": [], + "overrides": [ + { + "includes": ["**/*.astro"], + "linter": { + "rules": { + "correctness": { + "noUnusedVariables": "off", + "noUnusedImports": "off" + } + } + } + } + ], "plugins": null, "root": true, "vcs": { diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 41bd2708..7956282b 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,3 @@ -<!-- markdownlint-disable MD024 --> -# Changelog - ## [0.8.0] - 2026-03-22 ### Added @@ -163,13 +160,6 @@ prints a warning. It will be removed in a future release. --- -## Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - ## [0.6.6] - 2025-11-02 ### Changed @@ -393,95 +383,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.1.4] - 2024-10-01 Initial public release of Envilder. - ---- - -## How to Update This Changelog - -This changelog follows [Conventional Commits](https://www.conventionalcommits.org/) specification. - -### Commit Message Format - -```txt -<type>[optional scope]: <description> - -[optional body] - -[optional footer(s)] -``` - -### Types - -* `feat`: A new feature (triggers MINOR version bump) -* `fix`: A bug fix (triggers PATCH version bump) -* `docs`: Documentation-only changes -* `style`: Changes that don't affect code meaning (formatting, etc.) -* `refactor`: Code change that neither fixes a bug nor adds a feature -* `perf`: Performance improvements -* `test`: Adding or correcting tests -* `chore`: Changes to build process or auxiliary tools -* `ci`: Changes to CI configuration files and scripts - -### Breaking Changes - -Add `BREAKING CHANGE:` in the footer or append `!` after type/scope: - -```txt -feat!: remove AWS profile auto-detection - -BREAKING CHANGE: Users must now explicitly specify --profile flag -``` - -This triggers a MAJOR version bump. - -### Examples - -```bash -# Feature addition (0.7.0 -> 0.8.0) -git commit -m "feat(gha): add GitHub Action support" - -# Bug fix (0.7.0 -> 0.7.1) -git commit -m "fix(cli): handle empty environment files" - -# Breaking change (0.7.0 -> 1.0.0) -git commit -m "feat!: redesign CLI interface" -``` - ---- - -## Maintenance - -This project follows [Conventional Commits](https://www.conventionalcommits.org/) for commit messages. - -**To update this changelog**: - -1. Edit this file following the format above -2. Add entries under `[Unreleased]` section -3. Run `pnpm version [patch|minor|major]` to create a new release -4. Move `[Unreleased]` entries to the new version section - -**Alternative**: Use [GitHub Releases](https://github.com/macalbert/envilder/releases) to auto-generate release notes -from commit messages. - -[0.7.6]: https://github.com/macalbert/envilder/compare/v0.7.5...v0.7.6 -[0.7.5]: https://github.com/macalbert/envilder/compare/v0.7.4...v0.7.5 -[0.7.4]: https://github.com/macalbert/envilder/compare/v0.7.3...v0.7.4 -[0.7.3]: https://github.com/macalbert/envilder/compare/v0.7.2...v0.7.3 -[0.7.2]: https://github.com/macalbert/envilder/compare/v0.7.1...v0.7.2 -[0.7.1]: https://github.com/macalbert/envilder/compare/v0.6.6...v0.7.1 -[0.6.6]: https://github.com/macalbert/envilder/compare/v0.6.5...v0.6.6 -[0.6.5]: https://github.com/macalbert/envilder/compare/v0.6.4...v0.6.5 -[0.6.4]: https://github.com/macalbert/envilder/compare/v0.6.3...v0.6.4 -[0.6.3]: https://github.com/macalbert/envilder/compare/v0.6.1...v0.6.3 -[0.6.1]: https://github.com/macalbert/envilder/compare/v0.5.6...v0.6.1 -[0.5.6]: https://github.com/macalbert/envilder/compare/v0.5.5...v0.5.6 -[0.5.5]: https://github.com/macalbert/envilder/compare/v0.5.4...v0.5.5 -[0.5.4]: https://github.com/macalbert/envilder/compare/v0.5.3...v0.5.4 -[0.5.3]: https://github.com/macalbert/envilder/compare/v0.5.2...v0.5.3 -[0.5.2]: https://github.com/macalbert/envilder/compare/v0.5.1...v0.5.2 -[0.5.1]: https://github.com/macalbert/envilder/compare/v0.3.0...v0.5.1 -[0.3.0]: https://github.com/macalbert/envilder/compare/v0.2.3...v0.3.0 -[0.2.3]: https://github.com/macalbert/envilder/compare/v0.2.1...v0.2.3 -[0.2.1]: https://github.com/macalbert/envilder/compare/v0.1.4...v0.2.1 -[0.1.4]: https://github.com/macalbert/envilder/releases/tag/v0.1.4 -<!-- markdownlint-enable MD024 --> \ No newline at end of file diff --git a/e2e/cli.test.ts b/e2e/cli.test.ts index d181c579..d348c075 100644 --- a/e2e/cli.test.ts +++ b/e2e/cli.test.ts @@ -547,9 +547,9 @@ async function cleanUpSystem() { // Uninstall global package (still sync, as pnpm API is not available async) try { - execSync('pnpm remove -g envilder 2>nul', { - stdio: 'inherit', - shell: 'cmd', + execSync('pnpm remove -g envilder', { + stdio: 'pipe', + shell: true, }); } catch { // Ignore errors if not installed diff --git a/github-action/README.md b/github-action/README.md index 4669d781..e07de0fc 100644 --- a/github-action/README.md +++ b/github-action/README.md @@ -1,7 +1,7 @@ # 🗝️ Envilder GitHub Action 🏰 <p align="center"> - <img src="https://github.com/user-attachments/assets/96bf1efa-7d21-440a-a414-3a20e7f9a1f1" alt="Envilder"> + <img src="https://github.com/user-attachments/assets/8a7188ef-9d8d-45fb-8c37-3af718fb5103" alt="Envilder"> </p> <p align="center"> @@ -36,7 +36,8 @@ source of truth. This GitHub Action makes it easy to: - ☁️ **Multi-provider** - Switch between AWS and Azure with a single input - 🎯 **Type-safe** - Full TypeScript support with IntelliSense -> 💡 **Learn more:** Check out the [full documentation](https://github.com/macalbert/envilder/blob/main/README.md) +> 💡 **Learn more:** Visit [envilder.com](https://envilder.com) for complete documentation, +> or check the [GitHub README](https://github.com/macalbert/envilder/blob/main/README.md) > for CLI usage, advanced features, and more examples. --- diff --git a/github-action/dist/index.js b/github-action/dist/index.js index fab78693..e7dd4acf 100644 --- a/github-action/dist/index.js +++ b/github-action/dist/index.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -import{createRequire as m}from"module";var h={3320:(e,m,h)=>{const C={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")};const q=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!q){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=C;isProtectedKey(e){return Object.values(C).includes(e)}getRequestId(){return this.get(C.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(C.X_RAY_TRACE_ID)}getTenantId(){return this.get(C.TENANT_ID)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(e){return this.currentContext?.[e]}set(e,m){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}this.currentContext=this.currentContext||{};this.currentContext[e]=m}run(e,m){this.currentContext=e;return m()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const e=new InvokeStoreMulti;const m=await Promise.resolve().then(h.t.bind(h,6698,23));e.als=new m.AsyncLocalStorage;return e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(e){return this.als.getStore()?.[e]}set(e,m){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}const h=this.als.getStore();if(!h){throw new Error("No context available")}h[e]=m}run(e,m){return this.als.run(e,m)}}m.InvokeStore=void 0;(function(e){let m=null;async function getInstanceAsync(){if(!m){m=(async()=>{const e="AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const m=e?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!q&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!q&&globalThis.awslambda){globalThis.awslambda.InvokeStore=m;return m}else{return m}})()}return m}e.getInstanceAsync=getInstanceAsync;e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{m=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(m.InvokeStore||(m.InvokeStore={}));m.InvokeStoreBase=InvokeStoreBase},8429:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.resolveHttpAuthSchemeConfig=m.defaultSSMHttpAuthSchemeProvider=m.defaultSSMHttpAuthSchemeParametersProvider=void 0;const C=h(590);const q=h(5496);const defaultSSMHttpAuthSchemeParametersProvider=async(e,m,h)=>({operation:(0,q.getSmithyContext)(m).operation,region:await(0,q.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});m.defaultSSMHttpAuthSchemeParametersProvider=defaultSSMHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ssm",region:e.region},propertiesExtractor:(e,m)=>({signingProperties:{config:e,context:m}})}}const defaultSSMHttpAuthSchemeProvider=e=>{const m=[];switch(e.operation){default:{m.push(createAwsAuthSigv4HttpAuthOption(e))}}return m};m.defaultSSMHttpAuthSchemeProvider=defaultSSMHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const m=(0,C.resolveAwsSdkSigV4Config)(e);return Object.assign(m,{authSchemePreference:(0,q.normalizeProvider)(e.authSchemePreference??[])})};m.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},8787:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.defaultEndpointResolver=void 0;const C=h(3237);const q=h(9356);const V=h(6616);const le=new q.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,m={})=>le.get(e,(()=>(0,q.resolveEndpoint)(V.ruleSet,{endpointParams:e,logger:m.logger})));m.defaultEndpointResolver=defaultEndpointResolver;q.customEndpointFunctions.aws=C.awsEndpointFunctions},6616:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.ruleSet=void 0;const h="required",C="fn",q="argv",V="ref";const le=true,fe="isSet",he="booleanEquals",ye="error",ve="endpoint",Le="tree",Ue="PartitionResult",qe="getAttr",ze={[h]:false,type:"string"},He={[h]:true,default:false,type:"boolean"},We={[V]:"Endpoint"},Qe={[C]:he,[q]:[{[V]:"UseFIPS"},true]},Je={[C]:he,[q]:[{[V]:"UseDualStack"},true]},It={},_t={[C]:qe,[q]:[{[V]:Ue},"supportsFIPS"]},Mt={[V]:Ue},Lt={[C]:he,[q]:[true,{[C]:qe,[q]:[Mt,"supportsDualStack"]}]},Ut=[Qe],qt=[Je],Gt=[{[V]:"Region"}];const zt={version:"1.0",parameters:{Region:ze,UseDualStack:He,UseFIPS:He,Endpoint:ze},rules:[{conditions:[{[C]:fe,[q]:[We]}],rules:[{conditions:Ut,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ye},{conditions:qt,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ye},{endpoint:{url:We,properties:It,headers:It},type:ve}],type:Le},{conditions:[{[C]:fe,[q]:Gt}],rules:[{conditions:[{[C]:"aws.partition",[q]:Gt,assign:Ue}],rules:[{conditions:[Qe,Je],rules:[{conditions:[{[C]:he,[q]:[le,_t]},Lt],rules:[{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:It,headers:It},type:ve}],type:Le},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ye}],type:Le},{conditions:Ut,rules:[{conditions:[{[C]:he,[q]:[_t,le]}],rules:[{conditions:[{[C]:"stringEquals",[q]:[{[C]:qe,[q]:[Mt,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ssm.{Region}.amazonaws.com",properties:It,headers:It},type:ve},{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:It,headers:It},type:ve}],type:Le},{error:"FIPS is enabled but this partition does not support FIPS",type:ye}],type:Le},{conditions:qt,rules:[{conditions:[Lt],rules:[{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:It,headers:It},type:ve}],type:Le},{error:"DualStack is enabled but this partition does not support DualStack",type:ye}],type:Le},{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dnsSuffix}",properties:It,headers:It},type:ve}],type:Le}],type:Le},{error:"Invalid Configuration: Missing Region",type:ye}]};m.ruleSet=zt},4386:(e,m,h)=>{var C=h(4736);var q=h(6626);var V=h(1788);var le=h(8374);var fe=h(6477);var he=h(4918);var ye=h(2566);var ve=h(5700);var Le=h(8946);var Ue=h(4433);var qe=h(4271);var ze=h(8429);var He=h(5956);var We=h(9285);var Qe=h(9228);var Je=h(4522);var It=h(419);var _t=h(1198);var Mt=h(9744);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ssm"});const Lt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const m=e.httpAuthSchemes;let h=e.httpAuthSchemeProvider;let C=e.credentials;return{setHttpAuthScheme(e){const h=m.findIndex((m=>m.schemeId===e.schemeId));if(h===-1){m.push(e)}else{m.splice(h,1,e)}},httpAuthSchemes(){return m},setHttpAuthSchemeProvider(e){h=e},httpAuthSchemeProvider(){return h},setCredentials(e){C=e},credentials(){return C}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,m)=>{const h=Object.assign(We.getAwsRegionExtensionConfiguration(e),qe.getDefaultExtensionConfiguration(e),Qe.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));m.forEach((e=>e.configure(h)));return Object.assign(e,We.resolveAwsRegionExtensionConfiguration(h),qe.resolveDefaultRuntimeConfig(h),Qe.resolveHttpHandlerRuntimeConfig(h),resolveHttpAuthRuntimeConfig(h))};class SSMClient extends qe.Client{config;constructor(...[e]){const m=He.getRuntimeConfig(e||{});super(m);this.initConfig=m;const h=resolveClientEndpointParameters(m);const qe=le.resolveUserAgentConfig(h);const We=Ue.resolveRetryConfig(qe);const Qe=fe.resolveRegionConfig(We);const Je=C.resolveHostHeaderConfig(Qe);const It=Le.resolveEndpointConfig(Je);const _t=ze.resolveHttpAuthSchemeConfig(It);const Mt=resolveRuntimeExtensions(_t,e?.extensions||[]);this.config=Mt;this.middlewareStack.use(ye.getSchemaSerdePlugin(this.config));this.middlewareStack.use(le.getUserAgentPlugin(this.config));this.middlewareStack.use(Ue.getRetryPlugin(this.config));this.middlewareStack.use(ve.getContentLengthPlugin(this.config));this.middlewareStack.use(C.getHostHeaderPlugin(this.config));this.middlewareStack.use(q.getLoggerPlugin(this.config));this.middlewareStack.use(V.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(he.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ze.defaultSSMHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new he.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(he.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class AddTagsToResourceCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","AddTagsToResource",{}).n("SSMClient","AddTagsToResourceCommand").sc(Je.AddTagsToResource$).build()){}class AssociateOpsItemRelatedItemCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","AssociateOpsItemRelatedItem",{}).n("SSMClient","AssociateOpsItemRelatedItemCommand").sc(Je.AssociateOpsItemRelatedItem$).build()){}class CancelCommandCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CancelCommand",{}).n("SSMClient","CancelCommandCommand").sc(Je.CancelCommand$).build()){}class CancelMaintenanceWindowExecutionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CancelMaintenanceWindowExecution",{}).n("SSMClient","CancelMaintenanceWindowExecutionCommand").sc(Je.CancelMaintenanceWindowExecution$).build()){}class CreateActivationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateActivation",{}).n("SSMClient","CreateActivationCommand").sc(Je.CreateActivation$).build()){}class CreateAssociationBatchCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateAssociationBatch",{}).n("SSMClient","CreateAssociationBatchCommand").sc(Je.CreateAssociationBatch$).build()){}class CreateAssociationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateAssociation",{}).n("SSMClient","CreateAssociationCommand").sc(Je.CreateAssociation$).build()){}class CreateDocumentCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateDocument",{}).n("SSMClient","CreateDocumentCommand").sc(Je.CreateDocument$).build()){}class CreateMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateMaintenanceWindow",{}).n("SSMClient","CreateMaintenanceWindowCommand").sc(Je.CreateMaintenanceWindow$).build()){}class CreateOpsItemCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateOpsItem",{}).n("SSMClient","CreateOpsItemCommand").sc(Je.CreateOpsItem$).build()){}class CreateOpsMetadataCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateOpsMetadata",{}).n("SSMClient","CreateOpsMetadataCommand").sc(Je.CreateOpsMetadata$).build()){}class CreatePatchBaselineCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreatePatchBaseline",{}).n("SSMClient","CreatePatchBaselineCommand").sc(Je.CreatePatchBaseline$).build()){}class CreateResourceDataSyncCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateResourceDataSync",{}).n("SSMClient","CreateResourceDataSyncCommand").sc(Je.CreateResourceDataSync$).build()){}class DeleteActivationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteActivation",{}).n("SSMClient","DeleteActivationCommand").sc(Je.DeleteActivation$).build()){}class DeleteAssociationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteAssociation",{}).n("SSMClient","DeleteAssociationCommand").sc(Je.DeleteAssociation$).build()){}class DeleteDocumentCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteDocument",{}).n("SSMClient","DeleteDocumentCommand").sc(Je.DeleteDocument$).build()){}class DeleteInventoryCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteInventory",{}).n("SSMClient","DeleteInventoryCommand").sc(Je.DeleteInventory$).build()){}class DeleteMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteMaintenanceWindow",{}).n("SSMClient","DeleteMaintenanceWindowCommand").sc(Je.DeleteMaintenanceWindow$).build()){}class DeleteOpsItemCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteOpsItem",{}).n("SSMClient","DeleteOpsItemCommand").sc(Je.DeleteOpsItem$).build()){}class DeleteOpsMetadataCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteOpsMetadata",{}).n("SSMClient","DeleteOpsMetadataCommand").sc(Je.DeleteOpsMetadata$).build()){}class DeleteParameterCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteParameter",{}).n("SSMClient","DeleteParameterCommand").sc(Je.DeleteParameter$).build()){}class DeleteParametersCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteParameters",{}).n("SSMClient","DeleteParametersCommand").sc(Je.DeleteParameters$).build()){}class DeletePatchBaselineCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeletePatchBaseline",{}).n("SSMClient","DeletePatchBaselineCommand").sc(Je.DeletePatchBaseline$).build()){}class DeleteResourceDataSyncCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteResourceDataSync",{}).n("SSMClient","DeleteResourceDataSyncCommand").sc(Je.DeleteResourceDataSync$).build()){}class DeleteResourcePolicyCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteResourcePolicy",{}).n("SSMClient","DeleteResourcePolicyCommand").sc(Je.DeleteResourcePolicy$).build()){}class DeregisterManagedInstanceCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterManagedInstance",{}).n("SSMClient","DeregisterManagedInstanceCommand").sc(Je.DeregisterManagedInstance$).build()){}class DeregisterPatchBaselineForPatchGroupCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterPatchBaselineForPatchGroup",{}).n("SSMClient","DeregisterPatchBaselineForPatchGroupCommand").sc(Je.DeregisterPatchBaselineForPatchGroup$).build()){}class DeregisterTargetFromMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterTargetFromMaintenanceWindow",{}).n("SSMClient","DeregisterTargetFromMaintenanceWindowCommand").sc(Je.DeregisterTargetFromMaintenanceWindow$).build()){}class DeregisterTaskFromMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterTaskFromMaintenanceWindow",{}).n("SSMClient","DeregisterTaskFromMaintenanceWindowCommand").sc(Je.DeregisterTaskFromMaintenanceWindow$).build()){}class DescribeActivationsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeActivations",{}).n("SSMClient","DescribeActivationsCommand").sc(Je.DescribeActivations$).build()){}class DescribeAssociationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAssociation",{}).n("SSMClient","DescribeAssociationCommand").sc(Je.DescribeAssociation$).build()){}class DescribeAssociationExecutionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAssociationExecutions",{}).n("SSMClient","DescribeAssociationExecutionsCommand").sc(Je.DescribeAssociationExecutions$).build()){}class DescribeAssociationExecutionTargetsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAssociationExecutionTargets",{}).n("SSMClient","DescribeAssociationExecutionTargetsCommand").sc(Je.DescribeAssociationExecutionTargets$).build()){}class DescribeAutomationExecutionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAutomationExecutions",{}).n("SSMClient","DescribeAutomationExecutionsCommand").sc(Je.DescribeAutomationExecutions$).build()){}class DescribeAutomationStepExecutionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAutomationStepExecutions",{}).n("SSMClient","DescribeAutomationStepExecutionsCommand").sc(Je.DescribeAutomationStepExecutions$).build()){}class DescribeAvailablePatchesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAvailablePatches",{}).n("SSMClient","DescribeAvailablePatchesCommand").sc(Je.DescribeAvailablePatches$).build()){}class DescribeDocumentCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeDocument",{}).n("SSMClient","DescribeDocumentCommand").sc(Je.DescribeDocument$).build()){}class DescribeDocumentPermissionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeDocumentPermission",{}).n("SSMClient","DescribeDocumentPermissionCommand").sc(Je.DescribeDocumentPermission$).build()){}class DescribeEffectiveInstanceAssociationsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeEffectiveInstanceAssociations",{}).n("SSMClient","DescribeEffectiveInstanceAssociationsCommand").sc(Je.DescribeEffectiveInstanceAssociations$).build()){}class DescribeEffectivePatchesForPatchBaselineCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeEffectivePatchesForPatchBaseline",{}).n("SSMClient","DescribeEffectivePatchesForPatchBaselineCommand").sc(Je.DescribeEffectivePatchesForPatchBaseline$).build()){}class DescribeInstanceAssociationsStatusCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstanceAssociationsStatus",{}).n("SSMClient","DescribeInstanceAssociationsStatusCommand").sc(Je.DescribeInstanceAssociationsStatus$).build()){}class DescribeInstanceInformationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstanceInformation",{}).n("SSMClient","DescribeInstanceInformationCommand").sc(Je.DescribeInstanceInformation$).build()){}class DescribeInstancePatchesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstancePatches",{}).n("SSMClient","DescribeInstancePatchesCommand").sc(Je.DescribeInstancePatches$).build()){}class DescribeInstancePatchStatesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstancePatchStates",{}).n("SSMClient","DescribeInstancePatchStatesCommand").sc(Je.DescribeInstancePatchStates$).build()){}class DescribeInstancePatchStatesForPatchGroupCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstancePatchStatesForPatchGroup",{}).n("SSMClient","DescribeInstancePatchStatesForPatchGroupCommand").sc(Je.DescribeInstancePatchStatesForPatchGroup$).build()){}class DescribeInstancePropertiesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstanceProperties",{}).n("SSMClient","DescribeInstancePropertiesCommand").sc(Je.DescribeInstanceProperties$).build()){}class DescribeInventoryDeletionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInventoryDeletions",{}).n("SSMClient","DescribeInventoryDeletionsCommand").sc(Je.DescribeInventoryDeletions$).build()){}class DescribeMaintenanceWindowExecutionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowExecutions",{}).n("SSMClient","DescribeMaintenanceWindowExecutionsCommand").sc(Je.DescribeMaintenanceWindowExecutions$).build()){}class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowExecutionTaskInvocations",{}).n("SSMClient","DescribeMaintenanceWindowExecutionTaskInvocationsCommand").sc(Je.DescribeMaintenanceWindowExecutionTaskInvocations$).build()){}class DescribeMaintenanceWindowExecutionTasksCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowExecutionTasks",{}).n("SSMClient","DescribeMaintenanceWindowExecutionTasksCommand").sc(Je.DescribeMaintenanceWindowExecutionTasks$).build()){}class DescribeMaintenanceWindowScheduleCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowSchedule",{}).n("SSMClient","DescribeMaintenanceWindowScheduleCommand").sc(Je.DescribeMaintenanceWindowSchedule$).build()){}class DescribeMaintenanceWindowsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindows",{}).n("SSMClient","DescribeMaintenanceWindowsCommand").sc(Je.DescribeMaintenanceWindows$).build()){}class DescribeMaintenanceWindowsForTargetCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowsForTarget",{}).n("SSMClient","DescribeMaintenanceWindowsForTargetCommand").sc(Je.DescribeMaintenanceWindowsForTarget$).build()){}class DescribeMaintenanceWindowTargetsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowTargets",{}).n("SSMClient","DescribeMaintenanceWindowTargetsCommand").sc(Je.DescribeMaintenanceWindowTargets$).build()){}class DescribeMaintenanceWindowTasksCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowTasks",{}).n("SSMClient","DescribeMaintenanceWindowTasksCommand").sc(Je.DescribeMaintenanceWindowTasks$).build()){}class DescribeOpsItemsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeOpsItems",{}).n("SSMClient","DescribeOpsItemsCommand").sc(Je.DescribeOpsItems$).build()){}class DescribeParametersCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeParameters",{}).n("SSMClient","DescribeParametersCommand").sc(Je.DescribeParameters$).build()){}class DescribePatchBaselinesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchBaselines",{}).n("SSMClient","DescribePatchBaselinesCommand").sc(Je.DescribePatchBaselines$).build()){}class DescribePatchGroupsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchGroups",{}).n("SSMClient","DescribePatchGroupsCommand").sc(Je.DescribePatchGroups$).build()){}class DescribePatchGroupStateCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchGroupState",{}).n("SSMClient","DescribePatchGroupStateCommand").sc(Je.DescribePatchGroupState$).build()){}class DescribePatchPropertiesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchProperties",{}).n("SSMClient","DescribePatchPropertiesCommand").sc(Je.DescribePatchProperties$).build()){}class DescribeSessionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeSessions",{}).n("SSMClient","DescribeSessionsCommand").sc(Je.DescribeSessions$).build()){}class DisassociateOpsItemRelatedItemCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DisassociateOpsItemRelatedItem",{}).n("SSMClient","DisassociateOpsItemRelatedItemCommand").sc(Je.DisassociateOpsItemRelatedItem$).build()){}class GetAccessTokenCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetAccessToken",{}).n("SSMClient","GetAccessTokenCommand").sc(Je.GetAccessToken$).build()){}class GetAutomationExecutionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetAutomationExecution",{}).n("SSMClient","GetAutomationExecutionCommand").sc(Je.GetAutomationExecution$).build()){}class GetCalendarStateCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetCalendarState",{}).n("SSMClient","GetCalendarStateCommand").sc(Je.GetCalendarState$).build()){}class GetCommandInvocationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetCommandInvocation",{}).n("SSMClient","GetCommandInvocationCommand").sc(Je.GetCommandInvocation$).build()){}class GetConnectionStatusCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetConnectionStatus",{}).n("SSMClient","GetConnectionStatusCommand").sc(Je.GetConnectionStatus$).build()){}class GetDefaultPatchBaselineCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetDefaultPatchBaseline",{}).n("SSMClient","GetDefaultPatchBaselineCommand").sc(Je.GetDefaultPatchBaseline$).build()){}class GetDeployablePatchSnapshotForInstanceCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetDeployablePatchSnapshotForInstance",{}).n("SSMClient","GetDeployablePatchSnapshotForInstanceCommand").sc(Je.GetDeployablePatchSnapshotForInstance$).build()){}class GetDocumentCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetDocument",{}).n("SSMClient","GetDocumentCommand").sc(Je.GetDocument$).build()){}class GetExecutionPreviewCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetExecutionPreview",{}).n("SSMClient","GetExecutionPreviewCommand").sc(Je.GetExecutionPreview$).build()){}class GetInventoryCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetInventory",{}).n("SSMClient","GetInventoryCommand").sc(Je.GetInventory$).build()){}class GetInventorySchemaCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetInventorySchema",{}).n("SSMClient","GetInventorySchemaCommand").sc(Je.GetInventorySchema$).build()){}class GetMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindow",{}).n("SSMClient","GetMaintenanceWindowCommand").sc(Je.GetMaintenanceWindow$).build()){}class GetMaintenanceWindowExecutionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowExecution",{}).n("SSMClient","GetMaintenanceWindowExecutionCommand").sc(Je.GetMaintenanceWindowExecution$).build()){}class GetMaintenanceWindowExecutionTaskCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowExecutionTask",{}).n("SSMClient","GetMaintenanceWindowExecutionTaskCommand").sc(Je.GetMaintenanceWindowExecutionTask$).build()){}class GetMaintenanceWindowExecutionTaskInvocationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowExecutionTaskInvocation",{}).n("SSMClient","GetMaintenanceWindowExecutionTaskInvocationCommand").sc(Je.GetMaintenanceWindowExecutionTaskInvocation$).build()){}class GetMaintenanceWindowTaskCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowTask",{}).n("SSMClient","GetMaintenanceWindowTaskCommand").sc(Je.GetMaintenanceWindowTask$).build()){}class GetOpsItemCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetOpsItem",{}).n("SSMClient","GetOpsItemCommand").sc(Je.GetOpsItem$).build()){}class GetOpsMetadataCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetOpsMetadata",{}).n("SSMClient","GetOpsMetadataCommand").sc(Je.GetOpsMetadata$).build()){}class GetOpsSummaryCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetOpsSummary",{}).n("SSMClient","GetOpsSummaryCommand").sc(Je.GetOpsSummary$).build()){}class GetParameterCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParameter",{}).n("SSMClient","GetParameterCommand").sc(Je.GetParameter$).build()){}class GetParameterHistoryCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParameterHistory",{}).n("SSMClient","GetParameterHistoryCommand").sc(Je.GetParameterHistory$).build()){}class GetParametersByPathCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParametersByPath",{}).n("SSMClient","GetParametersByPathCommand").sc(Je.GetParametersByPath$).build()){}class GetParametersCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParameters",{}).n("SSMClient","GetParametersCommand").sc(Je.GetParameters$).build()){}class GetPatchBaselineCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetPatchBaseline",{}).n("SSMClient","GetPatchBaselineCommand").sc(Je.GetPatchBaseline$).build()){}class GetPatchBaselineForPatchGroupCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetPatchBaselineForPatchGroup",{}).n("SSMClient","GetPatchBaselineForPatchGroupCommand").sc(Je.GetPatchBaselineForPatchGroup$).build()){}class GetResourcePoliciesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetResourcePolicies",{}).n("SSMClient","GetResourcePoliciesCommand").sc(Je.GetResourcePolicies$).build()){}class GetServiceSettingCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetServiceSetting",{}).n("SSMClient","GetServiceSettingCommand").sc(Je.GetServiceSetting$).build()){}class LabelParameterVersionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","LabelParameterVersion",{}).n("SSMClient","LabelParameterVersionCommand").sc(Je.LabelParameterVersion$).build()){}class ListAssociationsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListAssociations",{}).n("SSMClient","ListAssociationsCommand").sc(Je.ListAssociations$).build()){}class ListAssociationVersionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListAssociationVersions",{}).n("SSMClient","ListAssociationVersionsCommand").sc(Je.ListAssociationVersions$).build()){}class ListCommandInvocationsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListCommandInvocations",{}).n("SSMClient","ListCommandInvocationsCommand").sc(Je.ListCommandInvocations$).build()){}class ListCommandsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListCommands",{}).n("SSMClient","ListCommandsCommand").sc(Je.ListCommands$).build()){}class ListComplianceItemsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListComplianceItems",{}).n("SSMClient","ListComplianceItemsCommand").sc(Je.ListComplianceItems$).build()){}class ListComplianceSummariesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListComplianceSummaries",{}).n("SSMClient","ListComplianceSummariesCommand").sc(Je.ListComplianceSummaries$).build()){}class ListDocumentMetadataHistoryCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListDocumentMetadataHistory",{}).n("SSMClient","ListDocumentMetadataHistoryCommand").sc(Je.ListDocumentMetadataHistory$).build()){}class ListDocumentsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListDocuments",{}).n("SSMClient","ListDocumentsCommand").sc(Je.ListDocuments$).build()){}class ListDocumentVersionsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListDocumentVersions",{}).n("SSMClient","ListDocumentVersionsCommand").sc(Je.ListDocumentVersions$).build()){}class ListInventoryEntriesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListInventoryEntries",{}).n("SSMClient","ListInventoryEntriesCommand").sc(Je.ListInventoryEntries$).build()){}class ListNodesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListNodes",{}).n("SSMClient","ListNodesCommand").sc(Je.ListNodes$).build()){}class ListNodesSummaryCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListNodesSummary",{}).n("SSMClient","ListNodesSummaryCommand").sc(Je.ListNodesSummary$).build()){}class ListOpsItemEventsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListOpsItemEvents",{}).n("SSMClient","ListOpsItemEventsCommand").sc(Je.ListOpsItemEvents$).build()){}class ListOpsItemRelatedItemsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListOpsItemRelatedItems",{}).n("SSMClient","ListOpsItemRelatedItemsCommand").sc(Je.ListOpsItemRelatedItems$).build()){}class ListOpsMetadataCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListOpsMetadata",{}).n("SSMClient","ListOpsMetadataCommand").sc(Je.ListOpsMetadata$).build()){}class ListResourceComplianceSummariesCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListResourceComplianceSummaries",{}).n("SSMClient","ListResourceComplianceSummariesCommand").sc(Je.ListResourceComplianceSummaries$).build()){}class ListResourceDataSyncCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListResourceDataSync",{}).n("SSMClient","ListResourceDataSyncCommand").sc(Je.ListResourceDataSync$).build()){}class ListTagsForResourceCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListTagsForResource",{}).n("SSMClient","ListTagsForResourceCommand").sc(Je.ListTagsForResource$).build()){}class ModifyDocumentPermissionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ModifyDocumentPermission",{}).n("SSMClient","ModifyDocumentPermissionCommand").sc(Je.ModifyDocumentPermission$).build()){}class PutComplianceItemsCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutComplianceItems",{}).n("SSMClient","PutComplianceItemsCommand").sc(Je.PutComplianceItems$).build()){}class PutInventoryCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutInventory",{}).n("SSMClient","PutInventoryCommand").sc(Je.PutInventory$).build()){}class PutParameterCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutParameter",{}).n("SSMClient","PutParameterCommand").sc(Je.PutParameter$).build()){}class PutResourcePolicyCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutResourcePolicy",{}).n("SSMClient","PutResourcePolicyCommand").sc(Je.PutResourcePolicy$).build()){}class RegisterDefaultPatchBaselineCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterDefaultPatchBaseline",{}).n("SSMClient","RegisterDefaultPatchBaselineCommand").sc(Je.RegisterDefaultPatchBaseline$).build()){}class RegisterPatchBaselineForPatchGroupCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterPatchBaselineForPatchGroup",{}).n("SSMClient","RegisterPatchBaselineForPatchGroupCommand").sc(Je.RegisterPatchBaselineForPatchGroup$).build()){}class RegisterTargetWithMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterTargetWithMaintenanceWindow",{}).n("SSMClient","RegisterTargetWithMaintenanceWindowCommand").sc(Je.RegisterTargetWithMaintenanceWindow$).build()){}class RegisterTaskWithMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterTaskWithMaintenanceWindow",{}).n("SSMClient","RegisterTaskWithMaintenanceWindowCommand").sc(Je.RegisterTaskWithMaintenanceWindow$).build()){}class RemoveTagsFromResourceCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RemoveTagsFromResource",{}).n("SSMClient","RemoveTagsFromResourceCommand").sc(Je.RemoveTagsFromResource$).build()){}class ResetServiceSettingCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ResetServiceSetting",{}).n("SSMClient","ResetServiceSettingCommand").sc(Je.ResetServiceSetting$).build()){}class ResumeSessionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ResumeSession",{}).n("SSMClient","ResumeSessionCommand").sc(Je.ResumeSession$).build()){}class SendAutomationSignalCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","SendAutomationSignal",{}).n("SSMClient","SendAutomationSignalCommand").sc(Je.SendAutomationSignal$).build()){}class SendCommandCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","SendCommand",{}).n("SSMClient","SendCommandCommand").sc(Je.SendCommand$).build()){}class StartAccessRequestCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartAccessRequest",{}).n("SSMClient","StartAccessRequestCommand").sc(Je.StartAccessRequest$).build()){}class StartAssociationsOnceCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartAssociationsOnce",{}).n("SSMClient","StartAssociationsOnceCommand").sc(Je.StartAssociationsOnce$).build()){}class StartAutomationExecutionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartAutomationExecution",{}).n("SSMClient","StartAutomationExecutionCommand").sc(Je.StartAutomationExecution$).build()){}class StartChangeRequestExecutionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartChangeRequestExecution",{}).n("SSMClient","StartChangeRequestExecutionCommand").sc(Je.StartChangeRequestExecution$).build()){}class StartExecutionPreviewCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartExecutionPreview",{}).n("SSMClient","StartExecutionPreviewCommand").sc(Je.StartExecutionPreview$).build()){}class StartSessionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartSession",{}).n("SSMClient","StartSessionCommand").sc(Je.StartSession$).build()){}class StopAutomationExecutionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StopAutomationExecution",{}).n("SSMClient","StopAutomationExecutionCommand").sc(Je.StopAutomationExecution$).build()){}class TerminateSessionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","TerminateSession",{}).n("SSMClient","TerminateSessionCommand").sc(Je.TerminateSession$).build()){}class UnlabelParameterVersionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UnlabelParameterVersion",{}).n("SSMClient","UnlabelParameterVersionCommand").sc(Je.UnlabelParameterVersion$).build()){}class UpdateAssociationCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateAssociation",{}).n("SSMClient","UpdateAssociationCommand").sc(Je.UpdateAssociation$).build()){}class UpdateAssociationStatusCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateAssociationStatus",{}).n("SSMClient","UpdateAssociationStatusCommand").sc(Je.UpdateAssociationStatus$).build()){}class UpdateDocumentCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateDocument",{}).n("SSMClient","UpdateDocumentCommand").sc(Je.UpdateDocument$).build()){}class UpdateDocumentDefaultVersionCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateDocumentDefaultVersion",{}).n("SSMClient","UpdateDocumentDefaultVersionCommand").sc(Je.UpdateDocumentDefaultVersion$).build()){}class UpdateDocumentMetadataCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateDocumentMetadata",{}).n("SSMClient","UpdateDocumentMetadataCommand").sc(Je.UpdateDocumentMetadata$).build()){}class UpdateMaintenanceWindowCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateMaintenanceWindow",{}).n("SSMClient","UpdateMaintenanceWindowCommand").sc(Je.UpdateMaintenanceWindow$).build()){}class UpdateMaintenanceWindowTargetCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateMaintenanceWindowTarget",{}).n("SSMClient","UpdateMaintenanceWindowTargetCommand").sc(Je.UpdateMaintenanceWindowTarget$).build()){}class UpdateMaintenanceWindowTaskCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateMaintenanceWindowTask",{}).n("SSMClient","UpdateMaintenanceWindowTaskCommand").sc(Je.UpdateMaintenanceWindowTask$).build()){}class UpdateManagedInstanceRoleCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateManagedInstanceRole",{}).n("SSMClient","UpdateManagedInstanceRoleCommand").sc(Je.UpdateManagedInstanceRole$).build()){}class UpdateOpsItemCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateOpsItem",{}).n("SSMClient","UpdateOpsItemCommand").sc(Je.UpdateOpsItem$).build()){}class UpdateOpsMetadataCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateOpsMetadata",{}).n("SSMClient","UpdateOpsMetadataCommand").sc(Je.UpdateOpsMetadata$).build()){}class UpdatePatchBaselineCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdatePatchBaseline",{}).n("SSMClient","UpdatePatchBaselineCommand").sc(Je.UpdatePatchBaseline$).build()){}class UpdateResourceDataSyncCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateResourceDataSync",{}).n("SSMClient","UpdateResourceDataSyncCommand").sc(Je.UpdateResourceDataSync$).build()){}class UpdateServiceSettingCommand extends(qe.Command.classBuilder().ep(Lt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateServiceSetting",{}).n("SSMClient","UpdateServiceSettingCommand").sc(Je.UpdateServiceSetting$).build()){}const Ut=he.createPaginator(SSMClient,DescribeActivationsCommand,"NextToken","NextToken","MaxResults");const qt=he.createPaginator(SSMClient,DescribeAssociationExecutionsCommand,"NextToken","NextToken","MaxResults");const Gt=he.createPaginator(SSMClient,DescribeAssociationExecutionTargetsCommand,"NextToken","NextToken","MaxResults");const zt=he.createPaginator(SSMClient,DescribeAutomationExecutionsCommand,"NextToken","NextToken","MaxResults");const Ht=he.createPaginator(SSMClient,DescribeAutomationStepExecutionsCommand,"NextToken","NextToken","MaxResults");const Wt=he.createPaginator(SSMClient,DescribeAvailablePatchesCommand,"NextToken","NextToken","MaxResults");const Kt=he.createPaginator(SSMClient,DescribeEffectiveInstanceAssociationsCommand,"NextToken","NextToken","MaxResults");const Yt=he.createPaginator(SSMClient,DescribeEffectivePatchesForPatchBaselineCommand,"NextToken","NextToken","MaxResults");const Qt=he.createPaginator(SSMClient,DescribeInstanceAssociationsStatusCommand,"NextToken","NextToken","MaxResults");const Jt=he.createPaginator(SSMClient,DescribeInstanceInformationCommand,"NextToken","NextToken","MaxResults");const Xt=he.createPaginator(SSMClient,DescribeInstancePatchesCommand,"NextToken","NextToken","MaxResults");const Zt=he.createPaginator(SSMClient,DescribeInstancePatchStatesForPatchGroupCommand,"NextToken","NextToken","MaxResults");const en=he.createPaginator(SSMClient,DescribeInstancePatchStatesCommand,"NextToken","NextToken","MaxResults");const tn=he.createPaginator(SSMClient,DescribeInstancePropertiesCommand,"NextToken","NextToken","MaxResults");const nn=he.createPaginator(SSMClient,DescribeInventoryDeletionsCommand,"NextToken","NextToken","MaxResults");const rn=he.createPaginator(SSMClient,DescribeMaintenanceWindowExecutionsCommand,"NextToken","NextToken","MaxResults");const on=he.createPaginator(SSMClient,DescribeMaintenanceWindowExecutionTaskInvocationsCommand,"NextToken","NextToken","MaxResults");const sn=he.createPaginator(SSMClient,DescribeMaintenanceWindowExecutionTasksCommand,"NextToken","NextToken","MaxResults");const an=he.createPaginator(SSMClient,DescribeMaintenanceWindowScheduleCommand,"NextToken","NextToken","MaxResults");const cn=he.createPaginator(SSMClient,DescribeMaintenanceWindowsForTargetCommand,"NextToken","NextToken","MaxResults");const ln=he.createPaginator(SSMClient,DescribeMaintenanceWindowsCommand,"NextToken","NextToken","MaxResults");const un=he.createPaginator(SSMClient,DescribeMaintenanceWindowTargetsCommand,"NextToken","NextToken","MaxResults");const dn=he.createPaginator(SSMClient,DescribeMaintenanceWindowTasksCommand,"NextToken","NextToken","MaxResults");const pn=he.createPaginator(SSMClient,DescribeOpsItemsCommand,"NextToken","NextToken","MaxResults");const mn=he.createPaginator(SSMClient,DescribeParametersCommand,"NextToken","NextToken","MaxResults");const hn=he.createPaginator(SSMClient,DescribePatchBaselinesCommand,"NextToken","NextToken","MaxResults");const gn=he.createPaginator(SSMClient,DescribePatchGroupsCommand,"NextToken","NextToken","MaxResults");const yn=he.createPaginator(SSMClient,DescribePatchPropertiesCommand,"NextToken","NextToken","MaxResults");const Sn=he.createPaginator(SSMClient,DescribeSessionsCommand,"NextToken","NextToken","MaxResults");const En=he.createPaginator(SSMClient,GetInventoryCommand,"NextToken","NextToken","MaxResults");const vn=he.createPaginator(SSMClient,GetInventorySchemaCommand,"NextToken","NextToken","MaxResults");const Cn=he.createPaginator(SSMClient,GetOpsSummaryCommand,"NextToken","NextToken","MaxResults");const In=he.createPaginator(SSMClient,GetParameterHistoryCommand,"NextToken","NextToken","MaxResults");const bn=he.createPaginator(SSMClient,GetParametersByPathCommand,"NextToken","NextToken","MaxResults");const An=he.createPaginator(SSMClient,GetResourcePoliciesCommand,"NextToken","NextToken","MaxResults");const wn=he.createPaginator(SSMClient,ListAssociationsCommand,"NextToken","NextToken","MaxResults");const Rn=he.createPaginator(SSMClient,ListAssociationVersionsCommand,"NextToken","NextToken","MaxResults");const Tn=he.createPaginator(SSMClient,ListCommandInvocationsCommand,"NextToken","NextToken","MaxResults");const Pn=he.createPaginator(SSMClient,ListCommandsCommand,"NextToken","NextToken","MaxResults");const xn=he.createPaginator(SSMClient,ListComplianceItemsCommand,"NextToken","NextToken","MaxResults");const _n=he.createPaginator(SSMClient,ListComplianceSummariesCommand,"NextToken","NextToken","MaxResults");const On=he.createPaginator(SSMClient,ListDocumentsCommand,"NextToken","NextToken","MaxResults");const Dn=he.createPaginator(SSMClient,ListDocumentVersionsCommand,"NextToken","NextToken","MaxResults");const Mn=he.createPaginator(SSMClient,ListNodesCommand,"NextToken","NextToken","MaxResults");const $n=he.createPaginator(SSMClient,ListNodesSummaryCommand,"NextToken","NextToken","MaxResults");const Nn=he.createPaginator(SSMClient,ListOpsItemEventsCommand,"NextToken","NextToken","MaxResults");const kn=he.createPaginator(SSMClient,ListOpsItemRelatedItemsCommand,"NextToken","NextToken","MaxResults");const Ln=he.createPaginator(SSMClient,ListOpsMetadataCommand,"NextToken","NextToken","MaxResults");const Un=he.createPaginator(SSMClient,ListResourceComplianceSummariesCommand,"NextToken","NextToken","MaxResults");const Fn=he.createPaginator(SSMClient,ListResourceDataSyncCommand,"NextToken","NextToken","MaxResults");const checkState=async(e,m)=>{let h;try{let C=await e.send(new GetCommandInvocationCommand(m));h=C;try{const returnComparator=()=>C.Status;if(returnComparator()==="Pending"){return{state:It.WaiterState.RETRY,reason:h}}}catch(e){}try{const returnComparator=()=>C.Status;if(returnComparator()==="InProgress"){return{state:It.WaiterState.RETRY,reason:h}}}catch(e){}try{const returnComparator=()=>C.Status;if(returnComparator()==="Delayed"){return{state:It.WaiterState.RETRY,reason:h}}}catch(e){}try{const returnComparator=()=>C.Status;if(returnComparator()==="Success"){return{state:It.WaiterState.SUCCESS,reason:h}}}catch(e){}try{const returnComparator=()=>C.Status;if(returnComparator()==="Cancelled"){return{state:It.WaiterState.FAILURE,reason:h}}}catch(e){}try{const returnComparator=()=>C.Status;if(returnComparator()==="TimedOut"){return{state:It.WaiterState.FAILURE,reason:h}}}catch(e){}try{const returnComparator=()=>C.Status;if(returnComparator()==="Failed"){return{state:It.WaiterState.FAILURE,reason:h}}}catch(e){}try{const returnComparator=()=>C.Status;if(returnComparator()==="Cancelling"){return{state:It.WaiterState.FAILURE,reason:h}}}catch(e){}}catch(e){h=e;if(e.name&&e.name=="InvocationDoesNotExist"){return{state:It.WaiterState.RETRY,reason:h}}}return{state:It.WaiterState.RETRY,reason:h}};const waitForCommandExecuted=async(e,m)=>{const h={minDelay:5,maxDelay:120};return It.createWaiter({...h,...e},m,checkState)};const waitUntilCommandExecuted=async(e,m)=>{const h={minDelay:5,maxDelay:120};const C=await It.createWaiter({...h,...e},m,checkState);return It.checkExceptions(C)};const qn={AddTagsToResourceCommand:AddTagsToResourceCommand,AssociateOpsItemRelatedItemCommand:AssociateOpsItemRelatedItemCommand,CancelCommandCommand:CancelCommandCommand,CancelMaintenanceWindowExecutionCommand:CancelMaintenanceWindowExecutionCommand,CreateActivationCommand:CreateActivationCommand,CreateAssociationCommand:CreateAssociationCommand,CreateAssociationBatchCommand:CreateAssociationBatchCommand,CreateDocumentCommand:CreateDocumentCommand,CreateMaintenanceWindowCommand:CreateMaintenanceWindowCommand,CreateOpsItemCommand:CreateOpsItemCommand,CreateOpsMetadataCommand:CreateOpsMetadataCommand,CreatePatchBaselineCommand:CreatePatchBaselineCommand,CreateResourceDataSyncCommand:CreateResourceDataSyncCommand,DeleteActivationCommand:DeleteActivationCommand,DeleteAssociationCommand:DeleteAssociationCommand,DeleteDocumentCommand:DeleteDocumentCommand,DeleteInventoryCommand:DeleteInventoryCommand,DeleteMaintenanceWindowCommand:DeleteMaintenanceWindowCommand,DeleteOpsItemCommand:DeleteOpsItemCommand,DeleteOpsMetadataCommand:DeleteOpsMetadataCommand,DeleteParameterCommand:DeleteParameterCommand,DeleteParametersCommand:DeleteParametersCommand,DeletePatchBaselineCommand:DeletePatchBaselineCommand,DeleteResourceDataSyncCommand:DeleteResourceDataSyncCommand,DeleteResourcePolicyCommand:DeleteResourcePolicyCommand,DeregisterManagedInstanceCommand:DeregisterManagedInstanceCommand,DeregisterPatchBaselineForPatchGroupCommand:DeregisterPatchBaselineForPatchGroupCommand,DeregisterTargetFromMaintenanceWindowCommand:DeregisterTargetFromMaintenanceWindowCommand,DeregisterTaskFromMaintenanceWindowCommand:DeregisterTaskFromMaintenanceWindowCommand,DescribeActivationsCommand:DescribeActivationsCommand,DescribeAssociationCommand:DescribeAssociationCommand,DescribeAssociationExecutionsCommand:DescribeAssociationExecutionsCommand,DescribeAssociationExecutionTargetsCommand:DescribeAssociationExecutionTargetsCommand,DescribeAutomationExecutionsCommand:DescribeAutomationExecutionsCommand,DescribeAutomationStepExecutionsCommand:DescribeAutomationStepExecutionsCommand,DescribeAvailablePatchesCommand:DescribeAvailablePatchesCommand,DescribeDocumentCommand:DescribeDocumentCommand,DescribeDocumentPermissionCommand:DescribeDocumentPermissionCommand,DescribeEffectiveInstanceAssociationsCommand:DescribeEffectiveInstanceAssociationsCommand,DescribeEffectivePatchesForPatchBaselineCommand:DescribeEffectivePatchesForPatchBaselineCommand,DescribeInstanceAssociationsStatusCommand:DescribeInstanceAssociationsStatusCommand,DescribeInstanceInformationCommand:DescribeInstanceInformationCommand,DescribeInstancePatchesCommand:DescribeInstancePatchesCommand,DescribeInstancePatchStatesCommand:DescribeInstancePatchStatesCommand,DescribeInstancePatchStatesForPatchGroupCommand:DescribeInstancePatchStatesForPatchGroupCommand,DescribeInstancePropertiesCommand:DescribeInstancePropertiesCommand,DescribeInventoryDeletionsCommand:DescribeInventoryDeletionsCommand,DescribeMaintenanceWindowExecutionsCommand:DescribeMaintenanceWindowExecutionsCommand,DescribeMaintenanceWindowExecutionTaskInvocationsCommand:DescribeMaintenanceWindowExecutionTaskInvocationsCommand,DescribeMaintenanceWindowExecutionTasksCommand:DescribeMaintenanceWindowExecutionTasksCommand,DescribeMaintenanceWindowsCommand:DescribeMaintenanceWindowsCommand,DescribeMaintenanceWindowScheduleCommand:DescribeMaintenanceWindowScheduleCommand,DescribeMaintenanceWindowsForTargetCommand:DescribeMaintenanceWindowsForTargetCommand,DescribeMaintenanceWindowTargetsCommand:DescribeMaintenanceWindowTargetsCommand,DescribeMaintenanceWindowTasksCommand:DescribeMaintenanceWindowTasksCommand,DescribeOpsItemsCommand:DescribeOpsItemsCommand,DescribeParametersCommand:DescribeParametersCommand,DescribePatchBaselinesCommand:DescribePatchBaselinesCommand,DescribePatchGroupsCommand:DescribePatchGroupsCommand,DescribePatchGroupStateCommand:DescribePatchGroupStateCommand,DescribePatchPropertiesCommand:DescribePatchPropertiesCommand,DescribeSessionsCommand:DescribeSessionsCommand,DisassociateOpsItemRelatedItemCommand:DisassociateOpsItemRelatedItemCommand,GetAccessTokenCommand:GetAccessTokenCommand,GetAutomationExecutionCommand:GetAutomationExecutionCommand,GetCalendarStateCommand:GetCalendarStateCommand,GetCommandInvocationCommand:GetCommandInvocationCommand,GetConnectionStatusCommand:GetConnectionStatusCommand,GetDefaultPatchBaselineCommand:GetDefaultPatchBaselineCommand,GetDeployablePatchSnapshotForInstanceCommand:GetDeployablePatchSnapshotForInstanceCommand,GetDocumentCommand:GetDocumentCommand,GetExecutionPreviewCommand:GetExecutionPreviewCommand,GetInventoryCommand:GetInventoryCommand,GetInventorySchemaCommand:GetInventorySchemaCommand,GetMaintenanceWindowCommand:GetMaintenanceWindowCommand,GetMaintenanceWindowExecutionCommand:GetMaintenanceWindowExecutionCommand,GetMaintenanceWindowExecutionTaskCommand:GetMaintenanceWindowExecutionTaskCommand,GetMaintenanceWindowExecutionTaskInvocationCommand:GetMaintenanceWindowExecutionTaskInvocationCommand,GetMaintenanceWindowTaskCommand:GetMaintenanceWindowTaskCommand,GetOpsItemCommand:GetOpsItemCommand,GetOpsMetadataCommand:GetOpsMetadataCommand,GetOpsSummaryCommand:GetOpsSummaryCommand,GetParameterCommand:GetParameterCommand,GetParameterHistoryCommand:GetParameterHistoryCommand,GetParametersCommand:GetParametersCommand,GetParametersByPathCommand:GetParametersByPathCommand,GetPatchBaselineCommand:GetPatchBaselineCommand,GetPatchBaselineForPatchGroupCommand:GetPatchBaselineForPatchGroupCommand,GetResourcePoliciesCommand:GetResourcePoliciesCommand,GetServiceSettingCommand:GetServiceSettingCommand,LabelParameterVersionCommand:LabelParameterVersionCommand,ListAssociationsCommand:ListAssociationsCommand,ListAssociationVersionsCommand:ListAssociationVersionsCommand,ListCommandInvocationsCommand:ListCommandInvocationsCommand,ListCommandsCommand:ListCommandsCommand,ListComplianceItemsCommand:ListComplianceItemsCommand,ListComplianceSummariesCommand:ListComplianceSummariesCommand,ListDocumentMetadataHistoryCommand:ListDocumentMetadataHistoryCommand,ListDocumentsCommand:ListDocumentsCommand,ListDocumentVersionsCommand:ListDocumentVersionsCommand,ListInventoryEntriesCommand:ListInventoryEntriesCommand,ListNodesCommand:ListNodesCommand,ListNodesSummaryCommand:ListNodesSummaryCommand,ListOpsItemEventsCommand:ListOpsItemEventsCommand,ListOpsItemRelatedItemsCommand:ListOpsItemRelatedItemsCommand,ListOpsMetadataCommand:ListOpsMetadataCommand,ListResourceComplianceSummariesCommand:ListResourceComplianceSummariesCommand,ListResourceDataSyncCommand:ListResourceDataSyncCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,ModifyDocumentPermissionCommand:ModifyDocumentPermissionCommand,PutComplianceItemsCommand:PutComplianceItemsCommand,PutInventoryCommand:PutInventoryCommand,PutParameterCommand:PutParameterCommand,PutResourcePolicyCommand:PutResourcePolicyCommand,RegisterDefaultPatchBaselineCommand:RegisterDefaultPatchBaselineCommand,RegisterPatchBaselineForPatchGroupCommand:RegisterPatchBaselineForPatchGroupCommand,RegisterTargetWithMaintenanceWindowCommand:RegisterTargetWithMaintenanceWindowCommand,RegisterTaskWithMaintenanceWindowCommand:RegisterTaskWithMaintenanceWindowCommand,RemoveTagsFromResourceCommand:RemoveTagsFromResourceCommand,ResetServiceSettingCommand:ResetServiceSettingCommand,ResumeSessionCommand:ResumeSessionCommand,SendAutomationSignalCommand:SendAutomationSignalCommand,SendCommandCommand:SendCommandCommand,StartAccessRequestCommand:StartAccessRequestCommand,StartAssociationsOnceCommand:StartAssociationsOnceCommand,StartAutomationExecutionCommand:StartAutomationExecutionCommand,StartChangeRequestExecutionCommand:StartChangeRequestExecutionCommand,StartExecutionPreviewCommand:StartExecutionPreviewCommand,StartSessionCommand:StartSessionCommand,StopAutomationExecutionCommand:StopAutomationExecutionCommand,TerminateSessionCommand:TerminateSessionCommand,UnlabelParameterVersionCommand:UnlabelParameterVersionCommand,UpdateAssociationCommand:UpdateAssociationCommand,UpdateAssociationStatusCommand:UpdateAssociationStatusCommand,UpdateDocumentCommand:UpdateDocumentCommand,UpdateDocumentDefaultVersionCommand:UpdateDocumentDefaultVersionCommand,UpdateDocumentMetadataCommand:UpdateDocumentMetadataCommand,UpdateMaintenanceWindowCommand:UpdateMaintenanceWindowCommand,UpdateMaintenanceWindowTargetCommand:UpdateMaintenanceWindowTargetCommand,UpdateMaintenanceWindowTaskCommand:UpdateMaintenanceWindowTaskCommand,UpdateManagedInstanceRoleCommand:UpdateManagedInstanceRoleCommand,UpdateOpsItemCommand:UpdateOpsItemCommand,UpdateOpsMetadataCommand:UpdateOpsMetadataCommand,UpdatePatchBaselineCommand:UpdatePatchBaselineCommand,UpdateResourceDataSyncCommand:UpdateResourceDataSyncCommand,UpdateServiceSettingCommand:UpdateServiceSettingCommand};const jn={paginateDescribeActivations:Ut,paginateDescribeAssociationExecutions:qt,paginateDescribeAssociationExecutionTargets:Gt,paginateDescribeAutomationExecutions:zt,paginateDescribeAutomationStepExecutions:Ht,paginateDescribeAvailablePatches:Wt,paginateDescribeEffectiveInstanceAssociations:Kt,paginateDescribeEffectivePatchesForPatchBaseline:Yt,paginateDescribeInstanceAssociationsStatus:Qt,paginateDescribeInstanceInformation:Jt,paginateDescribeInstancePatches:Xt,paginateDescribeInstancePatchStates:en,paginateDescribeInstancePatchStatesForPatchGroup:Zt,paginateDescribeInstanceProperties:tn,paginateDescribeInventoryDeletions:nn,paginateDescribeMaintenanceWindowExecutions:rn,paginateDescribeMaintenanceWindowExecutionTaskInvocations:on,paginateDescribeMaintenanceWindowExecutionTasks:sn,paginateDescribeMaintenanceWindows:ln,paginateDescribeMaintenanceWindowSchedule:an,paginateDescribeMaintenanceWindowsForTarget:cn,paginateDescribeMaintenanceWindowTargets:un,paginateDescribeMaintenanceWindowTasks:dn,paginateDescribeOpsItems:pn,paginateDescribeParameters:mn,paginateDescribePatchBaselines:hn,paginateDescribePatchGroups:gn,paginateDescribePatchProperties:yn,paginateDescribeSessions:Sn,paginateGetInventory:En,paginateGetInventorySchema:vn,paginateGetOpsSummary:Cn,paginateGetParameterHistory:In,paginateGetParametersByPath:bn,paginateGetResourcePolicies:An,paginateListAssociations:wn,paginateListAssociationVersions:Rn,paginateListCommandInvocations:Tn,paginateListCommands:Pn,paginateListComplianceItems:xn,paginateListComplianceSummaries:_n,paginateListDocuments:On,paginateListDocumentVersions:Dn,paginateListNodes:Mn,paginateListNodesSummary:$n,paginateListOpsItemEvents:Nn,paginateListOpsItemRelatedItems:kn,paginateListOpsMetadata:Ln,paginateListResourceComplianceSummaries:Un,paginateListResourceDataSync:Fn};const Bn={waitUntilCommandExecuted:waitUntilCommandExecuted};class SSM extends SSMClient{}qe.createAggregatedClient(qn,SSM,{paginators:jn,waiters:Bn});const Gn={APPROVED:"Approved",EXPIRED:"Expired",PENDING:"Pending",REJECTED:"Rejected",REVOKED:"Revoked"};const zn={JUSTINTIME:"JustInTime",STANDARD:"Standard"};const Hn={ASSOCIATION:"Association",AUTOMATION:"Automation",DOCUMENT:"Document",MAINTENANCE_WINDOW:"MaintenanceWindow",MANAGED_INSTANCE:"ManagedInstance",OPSMETADATA:"OpsMetadata",OPS_ITEM:"OpsItem",PARAMETER:"Parameter",PATCH_BASELINE:"PatchBaseline"};const Vn={ALARM:"ALARM",UNKNOWN:"UNKNOWN"};const Wn={Critical:"CRITICAL",High:"HIGH",Low:"LOW",Medium:"MEDIUM",Unspecified:"UNSPECIFIED"};const Kn={Auto:"AUTO",Manual:"MANUAL"};const Yn={Failed:"Failed",Pending:"Pending",Success:"Success"};const Qn={Client:"Client",Server:"Server",Unknown:"Unknown"};const Jn={AttachmentReference:"AttachmentReference",S3FileUrl:"S3FileUrl",SourceUrl:"SourceUrl"};const Xn={JSON:"JSON",TEXT:"TEXT",YAML:"YAML"};const Zn={ApplicationConfiguration:"ApplicationConfiguration",ApplicationConfigurationSchema:"ApplicationConfigurationSchema",AutoApprovalPolicy:"AutoApprovalPolicy",Automation:"Automation",ChangeCalendar:"ChangeCalendar",ChangeTemplate:"Automation.ChangeTemplate",CloudFormation:"CloudFormation",Command:"Command",ConformancePackTemplate:"ConformancePackTemplate",DeploymentStrategy:"DeploymentStrategy",ManualApprovalPolicy:"ManualApprovalPolicy",Package:"Package",Policy:"Policy",ProblemAnalysis:"ProblemAnalysis",ProblemAnalysisTemplate:"ProblemAnalysisTemplate",QuickSetup:"QuickSetup",Session:"Session"};const er={SHA1:"Sha1",SHA256:"Sha256"};const tr={String:"String",StringList:"StringList"};const nr={LINUX:"Linux",MACOS:"MacOS",WINDOWS:"Windows"};const rr={APPROVED:"APPROVED",NOT_REVIEWED:"NOT_REVIEWED",PENDING:"PENDING",REJECTED:"REJECTED"};const or={Active:"Active",Creating:"Creating",Deleting:"Deleting",Failed:"Failed",Updating:"Updating"};const ir={SEARCHABLE_STRING:"SearchableString",STRING:"String"};const sr={Critical:"CRITICAL",High:"HIGH",Informational:"INFORMATIONAL",Low:"LOW",Medium:"MEDIUM",Unspecified:"UNSPECIFIED"};const ar={AdvisoryId:"ADVISORY_ID",Arch:"ARCH",BugzillaId:"BUGZILLA_ID",CVEId:"CVE_ID",Classification:"CLASSIFICATION",Epoch:"EPOCH",MsrcSeverity:"MSRC_SEVERITY",Name:"NAME",PatchId:"PATCH_ID",PatchSet:"PATCH_SET",Priority:"PRIORITY",Product:"PRODUCT",ProductFamily:"PRODUCT_FAMILY",Release:"RELEASE",Repository:"REPOSITORY",Section:"SECTION",Security:"SECURITY",Severity:"SEVERITY",Version:"VERSION"};const cr={Compliant:"COMPLIANT",NonCompliant:"NON_COMPLIANT"};const lr={AlmaLinux:"ALMA_LINUX",AmazonLinux:"AMAZON_LINUX",AmazonLinux2:"AMAZON_LINUX_2",AmazonLinux2022:"AMAZON_LINUX_2022",AmazonLinux2023:"AMAZON_LINUX_2023",CentOS:"CENTOS",Debian:"DEBIAN",MacOS:"MACOS",OracleLinux:"ORACLE_LINUX",Raspbian:"RASPBIAN",RedhatEnterpriseLinux:"REDHAT_ENTERPRISE_LINUX",Rocky_Linux:"ROCKY_LINUX",Suse:"SUSE",Ubuntu:"UBUNTU",Windows:"WINDOWS"};const ur={AllowAsDependency:"ALLOW_AS_DEPENDENCY",Block:"BLOCK"};const dr={JSON_SERDE:"JsonSerDe"};const pr={DELETE_SCHEMA:"DeleteSchema",DISABLE_SCHEMA:"DisableSchema"};const mr={ACTIVATION_IDS:"ActivationIds",DEFAULT_INSTANCE_NAME:"DefaultInstanceName",IAM_ROLE:"IamRole"};const fr={CreatedTime:"CreatedTime",ExecutionId:"ExecutionId",Status:"Status"};const hr={Equal:"EQUAL",GreaterThan:"GREATER_THAN",LessThan:"LESS_THAN"};const gr={ResourceId:"ResourceId",ResourceType:"ResourceType",Status:"Status"};const yr={AUTOMATION_SUBTYPE:"AutomationSubtype",AUTOMATION_TYPE:"AutomationType",CURRENT_ACTION:"CurrentAction",DOCUMENT_NAME_PREFIX:"DocumentNamePrefix",EXECUTION_ID:"ExecutionId",EXECUTION_STATUS:"ExecutionStatus",OPS_ITEM_ID:"OpsItemId",PARENT_EXECUTION_ID:"ParentExecutionId",START_TIME_AFTER:"StartTimeAfter",START_TIME_BEFORE:"StartTimeBefore",TAG_KEY:"TagKey",TARGET_RESOURCE_GROUP:"TargetResourceGroup"};const Sr={APPROVED:"Approved",CANCELLED:"Cancelled",CANCELLING:"Cancelling",CHANGE_CALENDAR_OVERRIDE_APPROVED:"ChangeCalendarOverrideApproved",CHANGE_CALENDAR_OVERRIDE_REJECTED:"ChangeCalendarOverrideRejected",COMPLETED_WITH_FAILURE:"CompletedWithFailure",COMPLETED_WITH_SUCCESS:"CompletedWithSuccess",EXITED:"Exited",FAILED:"Failed",INPROGRESS:"InProgress",PENDING:"Pending",PENDING_APPROVAL:"PendingApproval",PENDING_CHANGE_CALENDAR_OVERRIDE:"PendingChangeCalendarOverride",REJECTED:"Rejected",RUNBOOK_INPROGRESS:"RunbookInProgress",SCHEDULED:"Scheduled",SUCCESS:"Success",TIMEDOUT:"TimedOut",WAITING:"Waiting"};const Er={AccessRequest:"AccessRequest",ChangeRequest:"ChangeRequest"};const vr={CrossAccount:"CrossAccount",Local:"Local"};const Cr={Auto:"Auto",Interactive:"Interactive"};const Ir={ACTION:"Action",PARENT_STEP_EXECUTION_ID:"ParentStepExecutionId",PARENT_STEP_ITERATION:"ParentStepIteration",PARENT_STEP_ITERATOR_VALUE:"ParentStepIteratorValue",START_TIME_AFTER:"StartTimeAfter",START_TIME_BEFORE:"StartTimeBefore",STEP_EXECUTION_ID:"StepExecutionId",STEP_EXECUTION_STATUS:"StepExecutionStatus",STEP_NAME:"StepName"};const br={SHARE:"Share"};const Ar={Approved:"APPROVED",ExplicitApproved:"EXPLICIT_APPROVED",ExplicitRejected:"EXPLICIT_REJECTED",PendingApproval:"PENDING_APPROVAL"};const wr={ACTIVATION_IDS:"ActivationIds",AGENT_VERSION:"AgentVersion",ASSOCIATION_STATUS:"AssociationStatus",IAM_ROLE:"IamRole",INSTANCE_IDS:"InstanceIds",PING_STATUS:"PingStatus",PLATFORM_TYPES:"PlatformTypes",RESOURCE_TYPE:"ResourceType"};const Rr={CONNECTION_LOST:"ConnectionLost",INACTIVE:"Inactive",ONLINE:"Online"};const Tr={EC2_INSTANCE:"EC2Instance",MANAGED_INSTANCE:"ManagedInstance"};const Pr={AWS_EC2_INSTANCE:"AWS::EC2::Instance",AWS_IOT_THING:"AWS::IoT::Thing",AWS_SSM_MANAGEDINSTANCE:"AWS::SSM::ManagedInstance"};const xr={AvailableSecurityUpdate:"AVAILABLE_SECURITY_UPDATE",Failed:"FAILED",Installed:"INSTALLED",InstalledOther:"INSTALLED_OTHER",InstalledPendingReboot:"INSTALLED_PENDING_REBOOT",InstalledRejected:"INSTALLED_REJECTED",Missing:"MISSING",NotApplicable:"NOT_APPLICABLE"};const _r={INSTALL:"Install",SCAN:"Scan"};const Or={NO_REBOOT:"NoReboot",REBOOT_IF_NEEDED:"RebootIfNeeded"};const Dr={EQUAL:"Equal",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const Mr={BEGIN_WITH:"BeginWith",EQUAL:"Equal",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const $r={ACTIVATION_IDS:"ActivationIds",AGENT_VERSION:"AgentVersion",ASSOCIATION_STATUS:"AssociationStatus",DOCUMENT_NAME:"DocumentName",IAM_ROLE:"IamRole",INSTANCE_IDS:"InstanceIds",PING_STATUS:"PingStatus",PLATFORM_TYPES:"PlatformTypes",RESOURCE_TYPE:"ResourceType"};const Nr={COMPLETE:"Complete",IN_PROGRESS:"InProgress"};const kr={Cancelled:"CANCELLED",Cancelling:"CANCELLING",Failed:"FAILED",InProgress:"IN_PROGRESS",Pending:"PENDING",SkippedOverlapping:"SKIPPED_OVERLAPPING",Success:"SUCCESS",TimedOut:"TIMED_OUT"};const Lr={Automation:"AUTOMATION",Lambda:"LAMBDA",RunCommand:"RUN_COMMAND",StepFunctions:"STEP_FUNCTIONS"};const Ur={Instance:"INSTANCE",ResourceGroup:"RESOURCE_GROUP"};const Fr={CancelTask:"CANCEL_TASK",ContinueTask:"CONTINUE_TASK"};const qr={ACCESS_REQUEST_APPROVER_ARN:"AccessRequestByApproverArn",ACCESS_REQUEST_APPROVER_ID:"AccessRequestByApproverId",ACCESS_REQUEST_IS_REPLICA:"AccessRequestByIsReplica",ACCESS_REQUEST_REQUESTER_ARN:"AccessRequestByRequesterArn",ACCESS_REQUEST_REQUESTER_ID:"AccessRequestByRequesterId",ACCESS_REQUEST_SOURCE_ACCOUNT_ID:"AccessRequestBySourceAccountId",ACCESS_REQUEST_SOURCE_OPS_ITEM_ID:"AccessRequestBySourceOpsItemId",ACCESS_REQUEST_SOURCE_REGION:"AccessRequestBySourceRegion",ACCESS_REQUEST_TARGET_RESOURCE_ID:"AccessRequestByTargetResourceId",ACCOUNT_ID:"AccountId",ACTUAL_END_TIME:"ActualEndTime",ACTUAL_START_TIME:"ActualStartTime",AUTOMATION_ID:"AutomationId",CATEGORY:"Category",CHANGE_REQUEST_APPROVER_ARN:"ChangeRequestByApproverArn",CHANGE_REQUEST_APPROVER_NAME:"ChangeRequestByApproverName",CHANGE_REQUEST_REQUESTER_ARN:"ChangeRequestByRequesterArn",CHANGE_REQUEST_REQUESTER_NAME:"ChangeRequestByRequesterName",CHANGE_REQUEST_TARGETS_RESOURCE_GROUP:"ChangeRequestByTargetsResourceGroup",CHANGE_REQUEST_TEMPLATE:"ChangeRequestByTemplate",CREATED_BY:"CreatedBy",CREATED_TIME:"CreatedTime",INSIGHT_TYPE:"InsightByType",LAST_MODIFIED_TIME:"LastModifiedTime",OPERATIONAL_DATA:"OperationalData",OPERATIONAL_DATA_KEY:"OperationalDataKey",OPERATIONAL_DATA_VALUE:"OperationalDataValue",OPSITEM_ID:"OpsItemId",OPSITEM_TYPE:"OpsItemType",PLANNED_END_TIME:"PlannedEndTime",PLANNED_START_TIME:"PlannedStartTime",PRIORITY:"Priority",RESOURCE_ID:"ResourceId",SEVERITY:"Severity",SOURCE:"Source",STATUS:"Status",TITLE:"Title"};const jr={CONTAINS:"Contains",EQUAL:"Equal",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan"};const Br={APPROVED:"Approved",CANCELLED:"Cancelled",CANCELLING:"Cancelling",CHANGE_CALENDAR_OVERRIDE_APPROVED:"ChangeCalendarOverrideApproved",CHANGE_CALENDAR_OVERRIDE_REJECTED:"ChangeCalendarOverrideRejected",CLOSED:"Closed",COMPLETED_WITH_FAILURE:"CompletedWithFailure",COMPLETED_WITH_SUCCESS:"CompletedWithSuccess",FAILED:"Failed",IN_PROGRESS:"InProgress",OPEN:"Open",PENDING:"Pending",PENDING_APPROVAL:"PendingApproval",PENDING_CHANGE_CALENDAR_OVERRIDE:"PendingChangeCalendarOverride",REJECTED:"Rejected",RESOLVED:"Resolved",REVOKED:"Revoked",RUNBOOK_IN_PROGRESS:"RunbookInProgress",SCHEDULED:"Scheduled",TIMED_OUT:"TimedOut"};const Gr={KEY_ID:"KeyId",NAME:"Name",TYPE:"Type"};const zr={ADVANCED:"Advanced",INTELLIGENT_TIERING:"Intelligent-Tiering",STANDARD:"Standard"};const Hr={SECURE_STRING:"SecureString",STRING:"String",STRING_LIST:"StringList"};const Vr={Application:"APPLICATION",Os:"OS"};const Wr={PatchClassification:"CLASSIFICATION",PatchMsrcSeverity:"MSRC_SEVERITY",PatchPriority:"PRIORITY",PatchProductFamily:"PRODUCT_FAMILY",PatchSeverity:"SEVERITY",Product:"PRODUCT"};const Kr={ACCESS_TYPE:"AccessType",INVOKED_AFTER:"InvokedAfter",INVOKED_BEFORE:"InvokedBefore",OWNER:"Owner",SESSION_ID:"SessionId",STATUS:"Status",TARGET_ID:"Target"};const Yr={ACTIVE:"Active",HISTORY:"History"};const Qr={CONNECTED:"Connected",CONNECTING:"Connecting",DISCONNECTED:"Disconnected",FAILED:"Failed",TERMINATED:"Terminated",TERMINATING:"Terminating"};const Jr={CLOSED:"CLOSED",OPEN:"OPEN"};const Xr={CANCELLED:"Cancelled",CANCELLING:"Cancelling",DELAYED:"Delayed",FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const Zr={CONNECTED:"connected",NOT_CONNECTED:"notconnected"};const eo={SHA256:"Sha256"};const to={MUTATING:"Mutating",NON_MUTATING:"NonMutating",UNDETERMINED:"Undetermined"};const no={FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success"};const ro={BEGIN_WITH:"BeginWith",EQUAL:"Equal",EXISTS:"Exists",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const oo={NUMBER:"number",STRING:"string"};const io={ALL:"All",CANCELLED:"Cancelled",FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const so={Command:"Command",Invocation:"Invocation"};const ao={BEGIN_WITH:"BeginWith",EQUAL:"Equal",EXISTS:"Exists",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const co={AssociationId:"AssociationId",AssociationName:"AssociationName",InstanceId:"InstanceId",LastExecutedAfter:"LastExecutedAfter",LastExecutedBefore:"LastExecutedBefore",Name:"Name",ResourceGroupName:"ResourceGroupName",Status:"AssociationStatusName"};const lo={DOCUMENT_NAME:"DocumentName",EXECUTION_STAGE:"ExecutionStage",INVOKED_AFTER:"InvokedAfter",INVOKED_BEFORE:"InvokedBefore",STATUS:"Status"};const uo={CANCELLED:"Cancelled",FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const po={CANCELLED:"Cancelled",CANCELLING:"Cancelling",FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const mo={BeginWith:"BEGIN_WITH",Equal:"EQUAL",GreaterThan:"GREATER_THAN",LessThan:"LESS_THAN",NotEqual:"NOT_EQUAL"};const fo={Critical:"CRITICAL",High:"HIGH",Informational:"INFORMATIONAL",Low:"LOW",Medium:"MEDIUM",Unspecified:"UNSPECIFIED"};const ho={Compliant:"COMPLIANT",NonCompliant:"NON_COMPLIANT"};const go={DocumentReviews:"DocumentReviews"};const yo={Comment:"Comment"};const So={DocumentType:"DocumentType",Name:"Name",Owner:"Owner",PlatformTypes:"PlatformTypes"};const Eo={ACCOUNT_ID:"AccountId",AGENT_TYPE:"AgentType",AGENT_VERSION:"AgentVersion",COMPUTER_NAME:"ComputerName",INSTANCE_ID:"InstanceId",INSTANCE_STATUS:"InstanceStatus",IP_ADDRESS:"IpAddress",MANAGED_STATUS:"ManagedStatus",ORGANIZATIONAL_UNIT_ID:"OrganizationalUnitId",ORGANIZATIONAL_UNIT_PATH:"OrganizationalUnitPath",PLATFORM_NAME:"PlatformName",PLATFORM_TYPE:"PlatformType",PLATFORM_VERSION:"PlatformVersion",REGION:"Region",RESOURCE_TYPE:"ResourceType"};const vo={BEGIN_WITH:"BeginWith",EQUAL:"Equal",NOT_EQUAL:"NotEqual"};const Co={ALL:"All",MANAGED:"Managed",UNMANAGED:"Unmanaged"};const Io={COUNT:"Count"};const bo={AGENT_VERSION:"AgentVersion",PLATFORM_NAME:"PlatformName",PLATFORM_TYPE:"PlatformType",PLATFORM_VERSION:"PlatformVersion",REGION:"Region",RESOURCE_TYPE:"ResourceType"};const Ao={INSTANCE:"Instance"};const wo={OPSITEM_ID:"OpsItemId"};const Ro={EQUAL:"Equal"};const To={ASSOCIATION_ID:"AssociationId",RESOURCE_TYPE:"ResourceType",RESOURCE_URI:"ResourceUri"};const Po={EQUAL:"Equal"};const xo={FAILED:"Failed",INPROGRESS:"InProgress",SUCCESSFUL:"Successful"};const _o={Complete:"COMPLETE",Partial:"PARTIAL"};const Oo={APPROVE:"Approve",REJECT:"Reject",RESUME:"Resume",REVOKE:"Revoke",START_STEP:"StartStep",STOP_STEP:"StopStep"};const Do={CANCEL:"Cancel",COMPLETE:"Complete"};const Mo={Approve:"Approve",Reject:"Reject",SendForReview:"SendForReview",UpdateReview:"UpdateReview"};m.$Command=qe.Command;m.__Client=qe.Client;m.SSMServiceException=Mt.SSMServiceException;m.AccessRequestStatus=Gn;m.AccessType=zn;m.AddTagsToResourceCommand=AddTagsToResourceCommand;m.AssociateOpsItemRelatedItemCommand=AssociateOpsItemRelatedItemCommand;m.AssociationComplianceSeverity=Wn;m.AssociationExecutionFilterKey=fr;m.AssociationExecutionTargetsFilterKey=gr;m.AssociationFilterKey=co;m.AssociationFilterOperatorType=hr;m.AssociationStatusName=Yn;m.AssociationSyncCompliance=Kn;m.AttachmentHashType=eo;m.AttachmentsSourceKey=Jn;m.AutomationExecutionFilterKey=yr;m.AutomationExecutionStatus=Sr;m.AutomationSubtype=Er;m.AutomationType=vr;m.CalendarState=Jr;m.CancelCommandCommand=CancelCommandCommand;m.CancelMaintenanceWindowExecutionCommand=CancelMaintenanceWindowExecutionCommand;m.CommandFilterKey=lo;m.CommandInvocationStatus=Xr;m.CommandPluginStatus=uo;m.CommandStatus=po;m.ComplianceQueryOperatorType=mo;m.ComplianceSeverity=fo;m.ComplianceStatus=ho;m.ComplianceUploadType=_o;m.ConnectionStatus=Zr;m.CreateActivationCommand=CreateActivationCommand;m.CreateAssociationBatchCommand=CreateAssociationBatchCommand;m.CreateAssociationCommand=CreateAssociationCommand;m.CreateDocumentCommand=CreateDocumentCommand;m.CreateMaintenanceWindowCommand=CreateMaintenanceWindowCommand;m.CreateOpsItemCommand=CreateOpsItemCommand;m.CreateOpsMetadataCommand=CreateOpsMetadataCommand;m.CreatePatchBaselineCommand=CreatePatchBaselineCommand;m.CreateResourceDataSyncCommand=CreateResourceDataSyncCommand;m.DeleteActivationCommand=DeleteActivationCommand;m.DeleteAssociationCommand=DeleteAssociationCommand;m.DeleteDocumentCommand=DeleteDocumentCommand;m.DeleteInventoryCommand=DeleteInventoryCommand;m.DeleteMaintenanceWindowCommand=DeleteMaintenanceWindowCommand;m.DeleteOpsItemCommand=DeleteOpsItemCommand;m.DeleteOpsMetadataCommand=DeleteOpsMetadataCommand;m.DeleteParameterCommand=DeleteParameterCommand;m.DeleteParametersCommand=DeleteParametersCommand;m.DeletePatchBaselineCommand=DeletePatchBaselineCommand;m.DeleteResourceDataSyncCommand=DeleteResourceDataSyncCommand;m.DeleteResourcePolicyCommand=DeleteResourcePolicyCommand;m.DeregisterManagedInstanceCommand=DeregisterManagedInstanceCommand;m.DeregisterPatchBaselineForPatchGroupCommand=DeregisterPatchBaselineForPatchGroupCommand;m.DeregisterTargetFromMaintenanceWindowCommand=DeregisterTargetFromMaintenanceWindowCommand;m.DeregisterTaskFromMaintenanceWindowCommand=DeregisterTaskFromMaintenanceWindowCommand;m.DescribeActivationsCommand=DescribeActivationsCommand;m.DescribeActivationsFilterKeys=mr;m.DescribeAssociationCommand=DescribeAssociationCommand;m.DescribeAssociationExecutionTargetsCommand=DescribeAssociationExecutionTargetsCommand;m.DescribeAssociationExecutionsCommand=DescribeAssociationExecutionsCommand;m.DescribeAutomationExecutionsCommand=DescribeAutomationExecutionsCommand;m.DescribeAutomationStepExecutionsCommand=DescribeAutomationStepExecutionsCommand;m.DescribeAvailablePatchesCommand=DescribeAvailablePatchesCommand;m.DescribeDocumentCommand=DescribeDocumentCommand;m.DescribeDocumentPermissionCommand=DescribeDocumentPermissionCommand;m.DescribeEffectiveInstanceAssociationsCommand=DescribeEffectiveInstanceAssociationsCommand;m.DescribeEffectivePatchesForPatchBaselineCommand=DescribeEffectivePatchesForPatchBaselineCommand;m.DescribeInstanceAssociationsStatusCommand=DescribeInstanceAssociationsStatusCommand;m.DescribeInstanceInformationCommand=DescribeInstanceInformationCommand;m.DescribeInstancePatchStatesCommand=DescribeInstancePatchStatesCommand;m.DescribeInstancePatchStatesForPatchGroupCommand=DescribeInstancePatchStatesForPatchGroupCommand;m.DescribeInstancePatchesCommand=DescribeInstancePatchesCommand;m.DescribeInstancePropertiesCommand=DescribeInstancePropertiesCommand;m.DescribeInventoryDeletionsCommand=DescribeInventoryDeletionsCommand;m.DescribeMaintenanceWindowExecutionTaskInvocationsCommand=DescribeMaintenanceWindowExecutionTaskInvocationsCommand;m.DescribeMaintenanceWindowExecutionTasksCommand=DescribeMaintenanceWindowExecutionTasksCommand;m.DescribeMaintenanceWindowExecutionsCommand=DescribeMaintenanceWindowExecutionsCommand;m.DescribeMaintenanceWindowScheduleCommand=DescribeMaintenanceWindowScheduleCommand;m.DescribeMaintenanceWindowTargetsCommand=DescribeMaintenanceWindowTargetsCommand;m.DescribeMaintenanceWindowTasksCommand=DescribeMaintenanceWindowTasksCommand;m.DescribeMaintenanceWindowsCommand=DescribeMaintenanceWindowsCommand;m.DescribeMaintenanceWindowsForTargetCommand=DescribeMaintenanceWindowsForTargetCommand;m.DescribeOpsItemsCommand=DescribeOpsItemsCommand;m.DescribeParametersCommand=DescribeParametersCommand;m.DescribePatchBaselinesCommand=DescribePatchBaselinesCommand;m.DescribePatchGroupStateCommand=DescribePatchGroupStateCommand;m.DescribePatchGroupsCommand=DescribePatchGroupsCommand;m.DescribePatchPropertiesCommand=DescribePatchPropertiesCommand;m.DescribeSessionsCommand=DescribeSessionsCommand;m.DisassociateOpsItemRelatedItemCommand=DisassociateOpsItemRelatedItemCommand;m.DocumentFilterKey=So;m.DocumentFormat=Xn;m.DocumentHashType=er;m.DocumentMetadataEnum=go;m.DocumentParameterType=tr;m.DocumentPermissionType=br;m.DocumentReviewAction=Mo;m.DocumentReviewCommentType=yo;m.DocumentStatus=or;m.DocumentType=Zn;m.ExecutionMode=Cr;m.ExecutionPreviewStatus=no;m.ExternalAlarmState=Vn;m.Fault=Qn;m.GetAccessTokenCommand=GetAccessTokenCommand;m.GetAutomationExecutionCommand=GetAutomationExecutionCommand;m.GetCalendarStateCommand=GetCalendarStateCommand;m.GetCommandInvocationCommand=GetCommandInvocationCommand;m.GetConnectionStatusCommand=GetConnectionStatusCommand;m.GetDefaultPatchBaselineCommand=GetDefaultPatchBaselineCommand;m.GetDeployablePatchSnapshotForInstanceCommand=GetDeployablePatchSnapshotForInstanceCommand;m.GetDocumentCommand=GetDocumentCommand;m.GetExecutionPreviewCommand=GetExecutionPreviewCommand;m.GetInventoryCommand=GetInventoryCommand;m.GetInventorySchemaCommand=GetInventorySchemaCommand;m.GetMaintenanceWindowCommand=GetMaintenanceWindowCommand;m.GetMaintenanceWindowExecutionCommand=GetMaintenanceWindowExecutionCommand;m.GetMaintenanceWindowExecutionTaskCommand=GetMaintenanceWindowExecutionTaskCommand;m.GetMaintenanceWindowExecutionTaskInvocationCommand=GetMaintenanceWindowExecutionTaskInvocationCommand;m.GetMaintenanceWindowTaskCommand=GetMaintenanceWindowTaskCommand;m.GetOpsItemCommand=GetOpsItemCommand;m.GetOpsMetadataCommand=GetOpsMetadataCommand;m.GetOpsSummaryCommand=GetOpsSummaryCommand;m.GetParameterCommand=GetParameterCommand;m.GetParameterHistoryCommand=GetParameterHistoryCommand;m.GetParametersByPathCommand=GetParametersByPathCommand;m.GetParametersCommand=GetParametersCommand;m.GetPatchBaselineCommand=GetPatchBaselineCommand;m.GetPatchBaselineForPatchGroupCommand=GetPatchBaselineForPatchGroupCommand;m.GetResourcePoliciesCommand=GetResourcePoliciesCommand;m.GetServiceSettingCommand=GetServiceSettingCommand;m.ImpactType=to;m.InstanceInformationFilterKey=wr;m.InstancePatchStateOperatorType=Dr;m.InstancePropertyFilterKey=$r;m.InstancePropertyFilterOperator=Mr;m.InventoryAttributeDataType=oo;m.InventoryDeletionStatus=Nr;m.InventoryQueryOperatorType=ro;m.InventorySchemaDeleteOption=pr;m.LabelParameterVersionCommand=LabelParameterVersionCommand;m.LastResourceDataSyncStatus=xo;m.ListAssociationVersionsCommand=ListAssociationVersionsCommand;m.ListAssociationsCommand=ListAssociationsCommand;m.ListCommandInvocationsCommand=ListCommandInvocationsCommand;m.ListCommandsCommand=ListCommandsCommand;m.ListComplianceItemsCommand=ListComplianceItemsCommand;m.ListComplianceSummariesCommand=ListComplianceSummariesCommand;m.ListDocumentMetadataHistoryCommand=ListDocumentMetadataHistoryCommand;m.ListDocumentVersionsCommand=ListDocumentVersionsCommand;m.ListDocumentsCommand=ListDocumentsCommand;m.ListInventoryEntriesCommand=ListInventoryEntriesCommand;m.ListNodesCommand=ListNodesCommand;m.ListNodesSummaryCommand=ListNodesSummaryCommand;m.ListOpsItemEventsCommand=ListOpsItemEventsCommand;m.ListOpsItemRelatedItemsCommand=ListOpsItemRelatedItemsCommand;m.ListOpsMetadataCommand=ListOpsMetadataCommand;m.ListResourceComplianceSummariesCommand=ListResourceComplianceSummariesCommand;m.ListResourceDataSyncCommand=ListResourceDataSyncCommand;m.ListTagsForResourceCommand=ListTagsForResourceCommand;m.MaintenanceWindowExecutionStatus=kr;m.MaintenanceWindowResourceType=Ur;m.MaintenanceWindowTaskCutoffBehavior=Fr;m.MaintenanceWindowTaskType=Lr;m.ManagedStatus=Co;m.ModifyDocumentPermissionCommand=ModifyDocumentPermissionCommand;m.NodeAggregatorType=Io;m.NodeAttributeName=bo;m.NodeFilterKey=Eo;m.NodeFilterOperatorType=vo;m.NodeTypeName=Ao;m.NotificationEvent=io;m.NotificationType=so;m.OperatingSystem=lr;m.OpsFilterOperatorType=ao;m.OpsItemDataType=ir;m.OpsItemEventFilterKey=wo;m.OpsItemEventFilterOperator=Ro;m.OpsItemFilterKey=qr;m.OpsItemFilterOperator=jr;m.OpsItemRelatedItemsFilterKey=To;m.OpsItemRelatedItemsFilterOperator=Po;m.OpsItemStatus=Br;m.ParameterTier=zr;m.ParameterType=Hr;m.ParametersFilterKey=Gr;m.PatchAction=ur;m.PatchComplianceDataState=xr;m.PatchComplianceLevel=sr;m.PatchComplianceStatus=cr;m.PatchDeploymentStatus=Ar;m.PatchFilterKey=ar;m.PatchOperationType=_r;m.PatchProperty=Wr;m.PatchSet=Vr;m.PingStatus=Rr;m.PlatformType=nr;m.PutComplianceItemsCommand=PutComplianceItemsCommand;m.PutInventoryCommand=PutInventoryCommand;m.PutParameterCommand=PutParameterCommand;m.PutResourcePolicyCommand=PutResourcePolicyCommand;m.RebootOption=Or;m.RegisterDefaultPatchBaselineCommand=RegisterDefaultPatchBaselineCommand;m.RegisterPatchBaselineForPatchGroupCommand=RegisterPatchBaselineForPatchGroupCommand;m.RegisterTargetWithMaintenanceWindowCommand=RegisterTargetWithMaintenanceWindowCommand;m.RegisterTaskWithMaintenanceWindowCommand=RegisterTaskWithMaintenanceWindowCommand;m.RemoveTagsFromResourceCommand=RemoveTagsFromResourceCommand;m.ResetServiceSettingCommand=ResetServiceSettingCommand;m.ResourceDataSyncS3Format=dr;m.ResourceType=Tr;m.ResourceTypeForTagging=Hn;m.ResumeSessionCommand=ResumeSessionCommand;m.ReviewStatus=rr;m.SSM=SSM;m.SSMClient=SSMClient;m.SendAutomationSignalCommand=SendAutomationSignalCommand;m.SendCommandCommand=SendCommandCommand;m.SessionFilterKey=Kr;m.SessionState=Yr;m.SessionStatus=Qr;m.SignalType=Oo;m.SourceType=Pr;m.StartAccessRequestCommand=StartAccessRequestCommand;m.StartAssociationsOnceCommand=StartAssociationsOnceCommand;m.StartAutomationExecutionCommand=StartAutomationExecutionCommand;m.StartChangeRequestExecutionCommand=StartChangeRequestExecutionCommand;m.StartExecutionPreviewCommand=StartExecutionPreviewCommand;m.StartSessionCommand=StartSessionCommand;m.StepExecutionFilterKey=Ir;m.StopAutomationExecutionCommand=StopAutomationExecutionCommand;m.StopType=Do;m.TerminateSessionCommand=TerminateSessionCommand;m.UnlabelParameterVersionCommand=UnlabelParameterVersionCommand;m.UpdateAssociationCommand=UpdateAssociationCommand;m.UpdateAssociationStatusCommand=UpdateAssociationStatusCommand;m.UpdateDocumentCommand=UpdateDocumentCommand;m.UpdateDocumentDefaultVersionCommand=UpdateDocumentDefaultVersionCommand;m.UpdateDocumentMetadataCommand=UpdateDocumentMetadataCommand;m.UpdateMaintenanceWindowCommand=UpdateMaintenanceWindowCommand;m.UpdateMaintenanceWindowTargetCommand=UpdateMaintenanceWindowTargetCommand;m.UpdateMaintenanceWindowTaskCommand=UpdateMaintenanceWindowTaskCommand;m.UpdateManagedInstanceRoleCommand=UpdateManagedInstanceRoleCommand;m.UpdateOpsItemCommand=UpdateOpsItemCommand;m.UpdateOpsMetadataCommand=UpdateOpsMetadataCommand;m.UpdatePatchBaselineCommand=UpdatePatchBaselineCommand;m.UpdateResourceDataSyncCommand=UpdateResourceDataSyncCommand;m.UpdateServiceSettingCommand=UpdateServiceSettingCommand;m.paginateDescribeActivations=Ut;m.paginateDescribeAssociationExecutionTargets=Gt;m.paginateDescribeAssociationExecutions=qt;m.paginateDescribeAutomationExecutions=zt;m.paginateDescribeAutomationStepExecutions=Ht;m.paginateDescribeAvailablePatches=Wt;m.paginateDescribeEffectiveInstanceAssociations=Kt;m.paginateDescribeEffectivePatchesForPatchBaseline=Yt;m.paginateDescribeInstanceAssociationsStatus=Qt;m.paginateDescribeInstanceInformation=Jt;m.paginateDescribeInstancePatchStates=en;m.paginateDescribeInstancePatchStatesForPatchGroup=Zt;m.paginateDescribeInstancePatches=Xt;m.paginateDescribeInstanceProperties=tn;m.paginateDescribeInventoryDeletions=nn;m.paginateDescribeMaintenanceWindowExecutionTaskInvocations=on;m.paginateDescribeMaintenanceWindowExecutionTasks=sn;m.paginateDescribeMaintenanceWindowExecutions=rn;m.paginateDescribeMaintenanceWindowSchedule=an;m.paginateDescribeMaintenanceWindowTargets=un;m.paginateDescribeMaintenanceWindowTasks=dn;m.paginateDescribeMaintenanceWindows=ln;m.paginateDescribeMaintenanceWindowsForTarget=cn;m.paginateDescribeOpsItems=pn;m.paginateDescribeParameters=mn;m.paginateDescribePatchBaselines=hn;m.paginateDescribePatchGroups=gn;m.paginateDescribePatchProperties=yn;m.paginateDescribeSessions=Sn;m.paginateGetInventory=En;m.paginateGetInventorySchema=vn;m.paginateGetOpsSummary=Cn;m.paginateGetParameterHistory=In;m.paginateGetParametersByPath=bn;m.paginateGetResourcePolicies=An;m.paginateListAssociationVersions=Rn;m.paginateListAssociations=wn;m.paginateListCommandInvocations=Tn;m.paginateListCommands=Pn;m.paginateListComplianceItems=xn;m.paginateListComplianceSummaries=_n;m.paginateListDocumentVersions=Dn;m.paginateListDocuments=On;m.paginateListNodes=Mn;m.paginateListNodesSummary=$n;m.paginateListOpsItemEvents=Nn;m.paginateListOpsItemRelatedItems=kn;m.paginateListOpsMetadata=Ln;m.paginateListResourceComplianceSummaries=Un;m.paginateListResourceDataSync=Fn;m.waitForCommandExecuted=waitForCommandExecuted;m.waitUntilCommandExecuted=waitUntilCommandExecuted;Object.prototype.hasOwnProperty.call(Je,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:Je["__proto__"]});Object.keys(Je).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=Je[e]}));Object.prototype.hasOwnProperty.call(_t,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:_t["__proto__"]});Object.keys(_t).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=_t[e]}))},9744:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.SSMServiceException=m.__ServiceException=void 0;const C=h(4271);Object.defineProperty(m,"__ServiceException",{enumerable:true,get:function(){return C.ServiceException}});class SSMServiceException extends C.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSMServiceException.prototype)}}m.SSMServiceException=SSMServiceException},1198:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.InvalidDeleteInventoryParametersException=m.InvalidDocumentOperation=m.AssociatedInstances=m.AssociationDoesNotExist=m.InvalidActivationId=m.InvalidActivation=m.ResourceDataSyncInvalidConfigurationException=m.ResourceDataSyncCountExceededException=m.ResourceDataSyncAlreadyExistsException=m.OpsMetadataTooManyUpdatesException=m.OpsMetadataLimitExceededException=m.OpsMetadataInvalidArgumentException=m.OpsMetadataAlreadyExistsException=m.OpsItemAlreadyExistsException=m.OpsItemAccessDeniedException=m.ResourceLimitExceededException=m.IdempotentParameterMismatch=m.NoLongerSupportedException=m.MaxDocumentSizeExceeded=m.InvalidDocumentSchemaVersion=m.InvalidDocumentContent=m.DocumentLimitExceeded=m.DocumentAlreadyExists=m.UnsupportedPlatformType=m.InvalidTargetMaps=m.InvalidTarget=m.InvalidTag=m.InvalidSchedule=m.InvalidOutputLocation=m.InvalidDocumentVersion=m.InvalidDocument=m.AssociationLimitExceeded=m.AssociationAlreadyExists=m.InvalidParameters=m.DoesNotExistException=m.InvalidInstanceId=m.InvalidCommandId=m.DuplicateInstanceId=m.OpsItemRelatedItemAlreadyExistsException=m.OpsItemNotFoundException=m.OpsItemLimitExceededException=m.OpsItemInvalidParameterException=m.OpsItemConflictException=m.AlreadyExistsException=m.TooManyUpdates=m.TooManyTagsError=m.InvalidResourceType=m.InvalidResourceId=m.InternalServerError=m.AccessDeniedException=void 0;m.ItemContentMismatchException=m.InvalidInventoryItemContextException=m.CustomSchemaCountLimitExceededException=m.TotalSizeLimitExceededException=m.ItemSizeLimitExceededException=m.InvalidItemContentException=m.ComplianceTypeCountLimitExceededException=m.DocumentPermissionLimit=m.UnsupportedOperationException=m.ParameterVersionLabelLimitExceeded=m.ServiceSettingNotFound=m.ParameterVersionNotFound=m.InvalidKeyId=m.InvalidResultAttributeException=m.InvalidInventoryGroupException=m.InvalidAggregatorException=m.UnsupportedFeatureRequiredException=m.InvocationDoesNotExist=m.InvalidPluginName=m.UnsupportedCalendarException=m.InvalidDocumentType=m.ValidationException=m.ThrottlingException=m.OpsItemRelatedItemAssociationNotFoundException=m.InvalidFilterOption=m.InvalidDeletionIdException=m.InvalidInstancePropertyFilterValue=m.InvalidInstanceInformationFilterValue=m.UnsupportedOperatingSystem=m.InvalidPermissionType=m.AutomationExecutionNotFoundException=m.InvalidFilterValue=m.InvalidFilterKey=m.AssociationExecutionDoesNotExist=m.InvalidAssociationVersion=m.InvalidNextToken=m.InvalidFilter=m.TargetInUseException=m.ResourcePolicyNotFoundException=m.ResourcePolicyInvalidParameterException=m.ResourcePolicyConflictException=m.ResourceNotFoundException=m.MalformedResourcePolicyDocumentException=m.ResourceDataSyncNotFoundException=m.ResourceInUseException=m.ParameterNotFound=m.OpsMetadataNotFoundException=m.InvalidTypeNameException=m.InvalidOptionException=m.InvalidInventoryRequestException=void 0;m.ResourceDataSyncConflictException=m.OpsMetadataKeyLimitExceededException=m.DuplicateDocumentVersionName=m.DuplicateDocumentContent=m.DocumentVersionLimitExceeded=m.StatusUnchanged=m.InvalidUpdate=m.AssociationVersionLimitExceeded=m.InvalidAutomationStatusUpdateException=m.TargetNotConnected=m.AutomationDefinitionNotApprovedException=m.InvalidAutomationExecutionParametersException=m.AutomationExecutionLimitExceededException=m.AutomationDefinitionVersionNotFoundException=m.AutomationDefinitionNotFoundException=m.InvalidAssociation=m.ServiceQuotaExceededException=m.InvalidRole=m.InvalidOutputFolder=m.InvalidNotificationConfig=m.InvalidAutomationSignalException=m.AutomationStepNotFoundException=m.FeatureNotAvailableException=m.ResourcePolicyLimitExceededException=m.UnsupportedParameterType=m.PoliciesLimitExceededException=m.ParameterPatternMismatchException=m.ParameterMaxVersionLimitExceeded=m.ParameterLimitExceeded=m.ParameterAlreadyExists=m.InvalidPolicyTypeException=m.InvalidPolicyAttributeException=m.InvalidAllowedPatternException=m.IncompatiblePolicyException=m.HierarchyTypeMismatchException=m.HierarchyLevelLimitExceededException=m.UnsupportedInventorySchemaVersionException=m.UnsupportedInventoryItemContextException=m.SubTypeCountLimitExceededException=void 0;const C=h(9744);class AccessDeniedException extends C.SSMServiceException{name="AccessDeniedException";$fault="client";Message;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.Message=e.Message}}m.AccessDeniedException=AccessDeniedException;class InternalServerError extends C.SSMServiceException{name="InternalServerError";$fault="server";Message;constructor(e){super({name:"InternalServerError",$fault:"server",...e});Object.setPrototypeOf(this,InternalServerError.prototype);this.Message=e.Message}}m.InternalServerError=InternalServerError;class InvalidResourceId extends C.SSMServiceException{name="InvalidResourceId";$fault="client";constructor(e){super({name:"InvalidResourceId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidResourceId.prototype)}}m.InvalidResourceId=InvalidResourceId;class InvalidResourceType extends C.SSMServiceException{name="InvalidResourceType";$fault="client";constructor(e){super({name:"InvalidResourceType",$fault:"client",...e});Object.setPrototypeOf(this,InvalidResourceType.prototype)}}m.InvalidResourceType=InvalidResourceType;class TooManyTagsError extends C.SSMServiceException{name="TooManyTagsError";$fault="client";constructor(e){super({name:"TooManyTagsError",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsError.prototype)}}m.TooManyTagsError=TooManyTagsError;class TooManyUpdates extends C.SSMServiceException{name="TooManyUpdates";$fault="client";Message;constructor(e){super({name:"TooManyUpdates",$fault:"client",...e});Object.setPrototypeOf(this,TooManyUpdates.prototype);this.Message=e.Message}}m.TooManyUpdates=TooManyUpdates;class AlreadyExistsException extends C.SSMServiceException{name="AlreadyExistsException";$fault="client";Message;constructor(e){super({name:"AlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,AlreadyExistsException.prototype);this.Message=e.Message}}m.AlreadyExistsException=AlreadyExistsException;class OpsItemConflictException extends C.SSMServiceException{name="OpsItemConflictException";$fault="client";Message;constructor(e){super({name:"OpsItemConflictException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemConflictException.prototype);this.Message=e.Message}}m.OpsItemConflictException=OpsItemConflictException;class OpsItemInvalidParameterException extends C.SSMServiceException{name="OpsItemInvalidParameterException";$fault="client";ParameterNames;Message;constructor(e){super({name:"OpsItemInvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemInvalidParameterException.prototype);this.ParameterNames=e.ParameterNames;this.Message=e.Message}}m.OpsItemInvalidParameterException=OpsItemInvalidParameterException;class OpsItemLimitExceededException extends C.SSMServiceException{name="OpsItemLimitExceededException";$fault="client";ResourceTypes;Limit;LimitType;Message;constructor(e){super({name:"OpsItemLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemLimitExceededException.prototype);this.ResourceTypes=e.ResourceTypes;this.Limit=e.Limit;this.LimitType=e.LimitType;this.Message=e.Message}}m.OpsItemLimitExceededException=OpsItemLimitExceededException;class OpsItemNotFoundException extends C.SSMServiceException{name="OpsItemNotFoundException";$fault="client";Message;constructor(e){super({name:"OpsItemNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemNotFoundException.prototype);this.Message=e.Message}}m.OpsItemNotFoundException=OpsItemNotFoundException;class OpsItemRelatedItemAlreadyExistsException extends C.SSMServiceException{name="OpsItemRelatedItemAlreadyExistsException";$fault="client";Message;ResourceUri;OpsItemId;constructor(e){super({name:"OpsItemRelatedItemAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemRelatedItemAlreadyExistsException.prototype);this.Message=e.Message;this.ResourceUri=e.ResourceUri;this.OpsItemId=e.OpsItemId}}m.OpsItemRelatedItemAlreadyExistsException=OpsItemRelatedItemAlreadyExistsException;class DuplicateInstanceId extends C.SSMServiceException{name="DuplicateInstanceId";$fault="client";constructor(e){super({name:"DuplicateInstanceId",$fault:"client",...e});Object.setPrototypeOf(this,DuplicateInstanceId.prototype)}}m.DuplicateInstanceId=DuplicateInstanceId;class InvalidCommandId extends C.SSMServiceException{name="InvalidCommandId";$fault="client";constructor(e){super({name:"InvalidCommandId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidCommandId.prototype)}}m.InvalidCommandId=InvalidCommandId;class InvalidInstanceId extends C.SSMServiceException{name="InvalidInstanceId";$fault="client";Message;constructor(e){super({name:"InvalidInstanceId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInstanceId.prototype);this.Message=e.Message}}m.InvalidInstanceId=InvalidInstanceId;class DoesNotExistException extends C.SSMServiceException{name="DoesNotExistException";$fault="client";Message;constructor(e){super({name:"DoesNotExistException",$fault:"client",...e});Object.setPrototypeOf(this,DoesNotExistException.prototype);this.Message=e.Message}}m.DoesNotExistException=DoesNotExistException;class InvalidParameters extends C.SSMServiceException{name="InvalidParameters";$fault="client";Message;constructor(e){super({name:"InvalidParameters",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameters.prototype);this.Message=e.Message}}m.InvalidParameters=InvalidParameters;class AssociationAlreadyExists extends C.SSMServiceException{name="AssociationAlreadyExists";$fault="client";constructor(e){super({name:"AssociationAlreadyExists",$fault:"client",...e});Object.setPrototypeOf(this,AssociationAlreadyExists.prototype)}}m.AssociationAlreadyExists=AssociationAlreadyExists;class AssociationLimitExceeded extends C.SSMServiceException{name="AssociationLimitExceeded";$fault="client";constructor(e){super({name:"AssociationLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,AssociationLimitExceeded.prototype)}}m.AssociationLimitExceeded=AssociationLimitExceeded;class InvalidDocument extends C.SSMServiceException{name="InvalidDocument";$fault="client";Message;constructor(e){super({name:"InvalidDocument",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocument.prototype);this.Message=e.Message}}m.InvalidDocument=InvalidDocument;class InvalidDocumentVersion extends C.SSMServiceException{name="InvalidDocumentVersion";$fault="client";Message;constructor(e){super({name:"InvalidDocumentVersion",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentVersion.prototype);this.Message=e.Message}}m.InvalidDocumentVersion=InvalidDocumentVersion;class InvalidOutputLocation extends C.SSMServiceException{name="InvalidOutputLocation";$fault="client";constructor(e){super({name:"InvalidOutputLocation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidOutputLocation.prototype)}}m.InvalidOutputLocation=InvalidOutputLocation;class InvalidSchedule extends C.SSMServiceException{name="InvalidSchedule";$fault="client";Message;constructor(e){super({name:"InvalidSchedule",$fault:"client",...e});Object.setPrototypeOf(this,InvalidSchedule.prototype);this.Message=e.Message}}m.InvalidSchedule=InvalidSchedule;class InvalidTag extends C.SSMServiceException{name="InvalidTag";$fault="client";Message;constructor(e){super({name:"InvalidTag",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTag.prototype);this.Message=e.Message}}m.InvalidTag=InvalidTag;class InvalidTarget extends C.SSMServiceException{name="InvalidTarget";$fault="client";Message;constructor(e){super({name:"InvalidTarget",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTarget.prototype);this.Message=e.Message}}m.InvalidTarget=InvalidTarget;class InvalidTargetMaps extends C.SSMServiceException{name="InvalidTargetMaps";$fault="client";Message;constructor(e){super({name:"InvalidTargetMaps",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTargetMaps.prototype);this.Message=e.Message}}m.InvalidTargetMaps=InvalidTargetMaps;class UnsupportedPlatformType extends C.SSMServiceException{name="UnsupportedPlatformType";$fault="client";Message;constructor(e){super({name:"UnsupportedPlatformType",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedPlatformType.prototype);this.Message=e.Message}}m.UnsupportedPlatformType=UnsupportedPlatformType;class DocumentAlreadyExists extends C.SSMServiceException{name="DocumentAlreadyExists";$fault="client";Message;constructor(e){super({name:"DocumentAlreadyExists",$fault:"client",...e});Object.setPrototypeOf(this,DocumentAlreadyExists.prototype);this.Message=e.Message}}m.DocumentAlreadyExists=DocumentAlreadyExists;class DocumentLimitExceeded extends C.SSMServiceException{name="DocumentLimitExceeded";$fault="client";Message;constructor(e){super({name:"DocumentLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,DocumentLimitExceeded.prototype);this.Message=e.Message}}m.DocumentLimitExceeded=DocumentLimitExceeded;class InvalidDocumentContent extends C.SSMServiceException{name="InvalidDocumentContent";$fault="client";Message;constructor(e){super({name:"InvalidDocumentContent",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentContent.prototype);this.Message=e.Message}}m.InvalidDocumentContent=InvalidDocumentContent;class InvalidDocumentSchemaVersion extends C.SSMServiceException{name="InvalidDocumentSchemaVersion";$fault="client";Message;constructor(e){super({name:"InvalidDocumentSchemaVersion",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentSchemaVersion.prototype);this.Message=e.Message}}m.InvalidDocumentSchemaVersion=InvalidDocumentSchemaVersion;class MaxDocumentSizeExceeded extends C.SSMServiceException{name="MaxDocumentSizeExceeded";$fault="client";Message;constructor(e){super({name:"MaxDocumentSizeExceeded",$fault:"client",...e});Object.setPrototypeOf(this,MaxDocumentSizeExceeded.prototype);this.Message=e.Message}}m.MaxDocumentSizeExceeded=MaxDocumentSizeExceeded;class NoLongerSupportedException extends C.SSMServiceException{name="NoLongerSupportedException";$fault="client";Message;constructor(e){super({name:"NoLongerSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,NoLongerSupportedException.prototype);this.Message=e.Message}}m.NoLongerSupportedException=NoLongerSupportedException;class IdempotentParameterMismatch extends C.SSMServiceException{name="IdempotentParameterMismatch";$fault="client";Message;constructor(e){super({name:"IdempotentParameterMismatch",$fault:"client",...e});Object.setPrototypeOf(this,IdempotentParameterMismatch.prototype);this.Message=e.Message}}m.IdempotentParameterMismatch=IdempotentParameterMismatch;class ResourceLimitExceededException extends C.SSMServiceException{name="ResourceLimitExceededException";$fault="client";Message;constructor(e){super({name:"ResourceLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceLimitExceededException.prototype);this.Message=e.Message}}m.ResourceLimitExceededException=ResourceLimitExceededException;class OpsItemAccessDeniedException extends C.SSMServiceException{name="OpsItemAccessDeniedException";$fault="client";Message;constructor(e){super({name:"OpsItemAccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemAccessDeniedException.prototype);this.Message=e.Message}}m.OpsItemAccessDeniedException=OpsItemAccessDeniedException;class OpsItemAlreadyExistsException extends C.SSMServiceException{name="OpsItemAlreadyExistsException";$fault="client";Message;OpsItemId;constructor(e){super({name:"OpsItemAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemAlreadyExistsException.prototype);this.Message=e.Message;this.OpsItemId=e.OpsItemId}}m.OpsItemAlreadyExistsException=OpsItemAlreadyExistsException;class OpsMetadataAlreadyExistsException extends C.SSMServiceException{name="OpsMetadataAlreadyExistsException";$fault="client";constructor(e){super({name:"OpsMetadataAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataAlreadyExistsException.prototype)}}m.OpsMetadataAlreadyExistsException=OpsMetadataAlreadyExistsException;class OpsMetadataInvalidArgumentException extends C.SSMServiceException{name="OpsMetadataInvalidArgumentException";$fault="client";constructor(e){super({name:"OpsMetadataInvalidArgumentException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataInvalidArgumentException.prototype)}}m.OpsMetadataInvalidArgumentException=OpsMetadataInvalidArgumentException;class OpsMetadataLimitExceededException extends C.SSMServiceException{name="OpsMetadataLimitExceededException";$fault="client";constructor(e){super({name:"OpsMetadataLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataLimitExceededException.prototype)}}m.OpsMetadataLimitExceededException=OpsMetadataLimitExceededException;class OpsMetadataTooManyUpdatesException extends C.SSMServiceException{name="OpsMetadataTooManyUpdatesException";$fault="client";constructor(e){super({name:"OpsMetadataTooManyUpdatesException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataTooManyUpdatesException.prototype)}}m.OpsMetadataTooManyUpdatesException=OpsMetadataTooManyUpdatesException;class ResourceDataSyncAlreadyExistsException extends C.SSMServiceException{name="ResourceDataSyncAlreadyExistsException";$fault="client";SyncName;constructor(e){super({name:"ResourceDataSyncAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncAlreadyExistsException.prototype);this.SyncName=e.SyncName}}m.ResourceDataSyncAlreadyExistsException=ResourceDataSyncAlreadyExistsException;class ResourceDataSyncCountExceededException extends C.SSMServiceException{name="ResourceDataSyncCountExceededException";$fault="client";Message;constructor(e){super({name:"ResourceDataSyncCountExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncCountExceededException.prototype);this.Message=e.Message}}m.ResourceDataSyncCountExceededException=ResourceDataSyncCountExceededException;class ResourceDataSyncInvalidConfigurationException extends C.SSMServiceException{name="ResourceDataSyncInvalidConfigurationException";$fault="client";Message;constructor(e){super({name:"ResourceDataSyncInvalidConfigurationException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncInvalidConfigurationException.prototype);this.Message=e.Message}}m.ResourceDataSyncInvalidConfigurationException=ResourceDataSyncInvalidConfigurationException;class InvalidActivation extends C.SSMServiceException{name="InvalidActivation";$fault="client";Message;constructor(e){super({name:"InvalidActivation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidActivation.prototype);this.Message=e.Message}}m.InvalidActivation=InvalidActivation;class InvalidActivationId extends C.SSMServiceException{name="InvalidActivationId";$fault="client";Message;constructor(e){super({name:"InvalidActivationId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidActivationId.prototype);this.Message=e.Message}}m.InvalidActivationId=InvalidActivationId;class AssociationDoesNotExist extends C.SSMServiceException{name="AssociationDoesNotExist";$fault="client";Message;constructor(e){super({name:"AssociationDoesNotExist",$fault:"client",...e});Object.setPrototypeOf(this,AssociationDoesNotExist.prototype);this.Message=e.Message}}m.AssociationDoesNotExist=AssociationDoesNotExist;class AssociatedInstances extends C.SSMServiceException{name="AssociatedInstances";$fault="client";constructor(e){super({name:"AssociatedInstances",$fault:"client",...e});Object.setPrototypeOf(this,AssociatedInstances.prototype)}}m.AssociatedInstances=AssociatedInstances;class InvalidDocumentOperation extends C.SSMServiceException{name="InvalidDocumentOperation";$fault="client";Message;constructor(e){super({name:"InvalidDocumentOperation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentOperation.prototype);this.Message=e.Message}}m.InvalidDocumentOperation=InvalidDocumentOperation;class InvalidDeleteInventoryParametersException extends C.SSMServiceException{name="InvalidDeleteInventoryParametersException";$fault="client";Message;constructor(e){super({name:"InvalidDeleteInventoryParametersException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDeleteInventoryParametersException.prototype);this.Message=e.Message}}m.InvalidDeleteInventoryParametersException=InvalidDeleteInventoryParametersException;class InvalidInventoryRequestException extends C.SSMServiceException{name="InvalidInventoryRequestException";$fault="client";Message;constructor(e){super({name:"InvalidInventoryRequestException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInventoryRequestException.prototype);this.Message=e.Message}}m.InvalidInventoryRequestException=InvalidInventoryRequestException;class InvalidOptionException extends C.SSMServiceException{name="InvalidOptionException";$fault="client";Message;constructor(e){super({name:"InvalidOptionException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidOptionException.prototype);this.Message=e.Message}}m.InvalidOptionException=InvalidOptionException;class InvalidTypeNameException extends C.SSMServiceException{name="InvalidTypeNameException";$fault="client";Message;constructor(e){super({name:"InvalidTypeNameException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTypeNameException.prototype);this.Message=e.Message}}m.InvalidTypeNameException=InvalidTypeNameException;class OpsMetadataNotFoundException extends C.SSMServiceException{name="OpsMetadataNotFoundException";$fault="client";constructor(e){super({name:"OpsMetadataNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataNotFoundException.prototype)}}m.OpsMetadataNotFoundException=OpsMetadataNotFoundException;class ParameterNotFound extends C.SSMServiceException{name="ParameterNotFound";$fault="client";constructor(e){super({name:"ParameterNotFound",$fault:"client",...e});Object.setPrototypeOf(this,ParameterNotFound.prototype)}}m.ParameterNotFound=ParameterNotFound;class ResourceInUseException extends C.SSMServiceException{name="ResourceInUseException";$fault="client";Message;constructor(e){super({name:"ResourceInUseException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceInUseException.prototype);this.Message=e.Message}}m.ResourceInUseException=ResourceInUseException;class ResourceDataSyncNotFoundException extends C.SSMServiceException{name="ResourceDataSyncNotFoundException";$fault="client";SyncName;SyncType;Message;constructor(e){super({name:"ResourceDataSyncNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncNotFoundException.prototype);this.SyncName=e.SyncName;this.SyncType=e.SyncType;this.Message=e.Message}}m.ResourceDataSyncNotFoundException=ResourceDataSyncNotFoundException;class MalformedResourcePolicyDocumentException extends C.SSMServiceException{name="MalformedResourcePolicyDocumentException";$fault="client";Message;constructor(e){super({name:"MalformedResourcePolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,MalformedResourcePolicyDocumentException.prototype);this.Message=e.Message}}m.MalformedResourcePolicyDocumentException=MalformedResourcePolicyDocumentException;class ResourceNotFoundException extends C.SSMServiceException{name="ResourceNotFoundException";$fault="client";Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceNotFoundException.prototype);this.Message=e.Message}}m.ResourceNotFoundException=ResourceNotFoundException;class ResourcePolicyConflictException extends C.SSMServiceException{name="ResourcePolicyConflictException";$fault="client";Message;constructor(e){super({name:"ResourcePolicyConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyConflictException.prototype);this.Message=e.Message}}m.ResourcePolicyConflictException=ResourcePolicyConflictException;class ResourcePolicyInvalidParameterException extends C.SSMServiceException{name="ResourcePolicyInvalidParameterException";$fault="client";ParameterNames;Message;constructor(e){super({name:"ResourcePolicyInvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyInvalidParameterException.prototype);this.ParameterNames=e.ParameterNames;this.Message=e.Message}}m.ResourcePolicyInvalidParameterException=ResourcePolicyInvalidParameterException;class ResourcePolicyNotFoundException extends C.SSMServiceException{name="ResourcePolicyNotFoundException";$fault="client";Message;constructor(e){super({name:"ResourcePolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyNotFoundException.prototype);this.Message=e.Message}}m.ResourcePolicyNotFoundException=ResourcePolicyNotFoundException;class TargetInUseException extends C.SSMServiceException{name="TargetInUseException";$fault="client";Message;constructor(e){super({name:"TargetInUseException",$fault:"client",...e});Object.setPrototypeOf(this,TargetInUseException.prototype);this.Message=e.Message}}m.TargetInUseException=TargetInUseException;class InvalidFilter extends C.SSMServiceException{name="InvalidFilter";$fault="client";Message;constructor(e){super({name:"InvalidFilter",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilter.prototype);this.Message=e.Message}}m.InvalidFilter=InvalidFilter;class InvalidNextToken extends C.SSMServiceException{name="InvalidNextToken";$fault="client";Message;constructor(e){super({name:"InvalidNextToken",$fault:"client",...e});Object.setPrototypeOf(this,InvalidNextToken.prototype);this.Message=e.Message}}m.InvalidNextToken=InvalidNextToken;class InvalidAssociationVersion extends C.SSMServiceException{name="InvalidAssociationVersion";$fault="client";Message;constructor(e){super({name:"InvalidAssociationVersion",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAssociationVersion.prototype);this.Message=e.Message}}m.InvalidAssociationVersion=InvalidAssociationVersion;class AssociationExecutionDoesNotExist extends C.SSMServiceException{name="AssociationExecutionDoesNotExist";$fault="client";Message;constructor(e){super({name:"AssociationExecutionDoesNotExist",$fault:"client",...e});Object.setPrototypeOf(this,AssociationExecutionDoesNotExist.prototype);this.Message=e.Message}}m.AssociationExecutionDoesNotExist=AssociationExecutionDoesNotExist;class InvalidFilterKey extends C.SSMServiceException{name="InvalidFilterKey";$fault="client";constructor(e){super({name:"InvalidFilterKey",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilterKey.prototype)}}m.InvalidFilterKey=InvalidFilterKey;class InvalidFilterValue extends C.SSMServiceException{name="InvalidFilterValue";$fault="client";Message;constructor(e){super({name:"InvalidFilterValue",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilterValue.prototype);this.Message=e.Message}}m.InvalidFilterValue=InvalidFilterValue;class AutomationExecutionNotFoundException extends C.SSMServiceException{name="AutomationExecutionNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationExecutionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationExecutionNotFoundException.prototype);this.Message=e.Message}}m.AutomationExecutionNotFoundException=AutomationExecutionNotFoundException;class InvalidPermissionType extends C.SSMServiceException{name="InvalidPermissionType";$fault="client";Message;constructor(e){super({name:"InvalidPermissionType",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPermissionType.prototype);this.Message=e.Message}}m.InvalidPermissionType=InvalidPermissionType;class UnsupportedOperatingSystem extends C.SSMServiceException{name="UnsupportedOperatingSystem";$fault="client";Message;constructor(e){super({name:"UnsupportedOperatingSystem",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedOperatingSystem.prototype);this.Message=e.Message}}m.UnsupportedOperatingSystem=UnsupportedOperatingSystem;class InvalidInstanceInformationFilterValue extends C.SSMServiceException{name="InvalidInstanceInformationFilterValue";$fault="client";constructor(e){super({name:"InvalidInstanceInformationFilterValue",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInstanceInformationFilterValue.prototype)}}m.InvalidInstanceInformationFilterValue=InvalidInstanceInformationFilterValue;class InvalidInstancePropertyFilterValue extends C.SSMServiceException{name="InvalidInstancePropertyFilterValue";$fault="client";constructor(e){super({name:"InvalidInstancePropertyFilterValue",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInstancePropertyFilterValue.prototype)}}m.InvalidInstancePropertyFilterValue=InvalidInstancePropertyFilterValue;class InvalidDeletionIdException extends C.SSMServiceException{name="InvalidDeletionIdException";$fault="client";Message;constructor(e){super({name:"InvalidDeletionIdException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDeletionIdException.prototype);this.Message=e.Message}}m.InvalidDeletionIdException=InvalidDeletionIdException;class InvalidFilterOption extends C.SSMServiceException{name="InvalidFilterOption";$fault="client";constructor(e){super({name:"InvalidFilterOption",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilterOption.prototype)}}m.InvalidFilterOption=InvalidFilterOption;class OpsItemRelatedItemAssociationNotFoundException extends C.SSMServiceException{name="OpsItemRelatedItemAssociationNotFoundException";$fault="client";Message;constructor(e){super({name:"OpsItemRelatedItemAssociationNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemRelatedItemAssociationNotFoundException.prototype);this.Message=e.Message}}m.OpsItemRelatedItemAssociationNotFoundException=OpsItemRelatedItemAssociationNotFoundException;class ThrottlingException extends C.SSMServiceException{name="ThrottlingException";$fault="client";Message;QuotaCode;ServiceCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e});Object.setPrototypeOf(this,ThrottlingException.prototype);this.Message=e.Message;this.QuotaCode=e.QuotaCode;this.ServiceCode=e.ServiceCode}}m.ThrottlingException=ThrottlingException;class ValidationException extends C.SSMServiceException{name="ValidationException";$fault="client";Message;ReasonCode;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,ValidationException.prototype);this.Message=e.Message;this.ReasonCode=e.ReasonCode}}m.ValidationException=ValidationException;class InvalidDocumentType extends C.SSMServiceException{name="InvalidDocumentType";$fault="client";Message;constructor(e){super({name:"InvalidDocumentType",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentType.prototype);this.Message=e.Message}}m.InvalidDocumentType=InvalidDocumentType;class UnsupportedCalendarException extends C.SSMServiceException{name="UnsupportedCalendarException";$fault="client";Message;constructor(e){super({name:"UnsupportedCalendarException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedCalendarException.prototype);this.Message=e.Message}}m.UnsupportedCalendarException=UnsupportedCalendarException;class InvalidPluginName extends C.SSMServiceException{name="InvalidPluginName";$fault="client";constructor(e){super({name:"InvalidPluginName",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPluginName.prototype)}}m.InvalidPluginName=InvalidPluginName;class InvocationDoesNotExist extends C.SSMServiceException{name="InvocationDoesNotExist";$fault="client";constructor(e){super({name:"InvocationDoesNotExist",$fault:"client",...e});Object.setPrototypeOf(this,InvocationDoesNotExist.prototype)}}m.InvocationDoesNotExist=InvocationDoesNotExist;class UnsupportedFeatureRequiredException extends C.SSMServiceException{name="UnsupportedFeatureRequiredException";$fault="client";Message;constructor(e){super({name:"UnsupportedFeatureRequiredException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedFeatureRequiredException.prototype);this.Message=e.Message}}m.UnsupportedFeatureRequiredException=UnsupportedFeatureRequiredException;class InvalidAggregatorException extends C.SSMServiceException{name="InvalidAggregatorException";$fault="client";Message;constructor(e){super({name:"InvalidAggregatorException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAggregatorException.prototype);this.Message=e.Message}}m.InvalidAggregatorException=InvalidAggregatorException;class InvalidInventoryGroupException extends C.SSMServiceException{name="InvalidInventoryGroupException";$fault="client";Message;constructor(e){super({name:"InvalidInventoryGroupException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInventoryGroupException.prototype);this.Message=e.Message}}m.InvalidInventoryGroupException=InvalidInventoryGroupException;class InvalidResultAttributeException extends C.SSMServiceException{name="InvalidResultAttributeException";$fault="client";Message;constructor(e){super({name:"InvalidResultAttributeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidResultAttributeException.prototype);this.Message=e.Message}}m.InvalidResultAttributeException=InvalidResultAttributeException;class InvalidKeyId extends C.SSMServiceException{name="InvalidKeyId";$fault="client";constructor(e){super({name:"InvalidKeyId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidKeyId.prototype)}}m.InvalidKeyId=InvalidKeyId;class ParameterVersionNotFound extends C.SSMServiceException{name="ParameterVersionNotFound";$fault="client";constructor(e){super({name:"ParameterVersionNotFound",$fault:"client",...e});Object.setPrototypeOf(this,ParameterVersionNotFound.prototype)}}m.ParameterVersionNotFound=ParameterVersionNotFound;class ServiceSettingNotFound extends C.SSMServiceException{name="ServiceSettingNotFound";$fault="client";Message;constructor(e){super({name:"ServiceSettingNotFound",$fault:"client",...e});Object.setPrototypeOf(this,ServiceSettingNotFound.prototype);this.Message=e.Message}}m.ServiceSettingNotFound=ServiceSettingNotFound;class ParameterVersionLabelLimitExceeded extends C.SSMServiceException{name="ParameterVersionLabelLimitExceeded";$fault="client";constructor(e){super({name:"ParameterVersionLabelLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,ParameterVersionLabelLimitExceeded.prototype)}}m.ParameterVersionLabelLimitExceeded=ParameterVersionLabelLimitExceeded;class UnsupportedOperationException extends C.SSMServiceException{name="UnsupportedOperationException";$fault="client";Message;constructor(e){super({name:"UnsupportedOperationException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedOperationException.prototype);this.Message=e.Message}}m.UnsupportedOperationException=UnsupportedOperationException;class DocumentPermissionLimit extends C.SSMServiceException{name="DocumentPermissionLimit";$fault="client";Message;constructor(e){super({name:"DocumentPermissionLimit",$fault:"client",...e});Object.setPrototypeOf(this,DocumentPermissionLimit.prototype);this.Message=e.Message}}m.DocumentPermissionLimit=DocumentPermissionLimit;class ComplianceTypeCountLimitExceededException extends C.SSMServiceException{name="ComplianceTypeCountLimitExceededException";$fault="client";Message;constructor(e){super({name:"ComplianceTypeCountLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ComplianceTypeCountLimitExceededException.prototype);this.Message=e.Message}}m.ComplianceTypeCountLimitExceededException=ComplianceTypeCountLimitExceededException;class InvalidItemContentException extends C.SSMServiceException{name="InvalidItemContentException";$fault="client";TypeName;Message;constructor(e){super({name:"InvalidItemContentException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidItemContentException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}m.InvalidItemContentException=InvalidItemContentException;class ItemSizeLimitExceededException extends C.SSMServiceException{name="ItemSizeLimitExceededException";$fault="client";TypeName;Message;constructor(e){super({name:"ItemSizeLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ItemSizeLimitExceededException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}m.ItemSizeLimitExceededException=ItemSizeLimitExceededException;class TotalSizeLimitExceededException extends C.SSMServiceException{name="TotalSizeLimitExceededException";$fault="client";Message;constructor(e){super({name:"TotalSizeLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,TotalSizeLimitExceededException.prototype);this.Message=e.Message}}m.TotalSizeLimitExceededException=TotalSizeLimitExceededException;class CustomSchemaCountLimitExceededException extends C.SSMServiceException{name="CustomSchemaCountLimitExceededException";$fault="client";Message;constructor(e){super({name:"CustomSchemaCountLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,CustomSchemaCountLimitExceededException.prototype);this.Message=e.Message}}m.CustomSchemaCountLimitExceededException=CustomSchemaCountLimitExceededException;class InvalidInventoryItemContextException extends C.SSMServiceException{name="InvalidInventoryItemContextException";$fault="client";Message;constructor(e){super({name:"InvalidInventoryItemContextException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInventoryItemContextException.prototype);this.Message=e.Message}}m.InvalidInventoryItemContextException=InvalidInventoryItemContextException;class ItemContentMismatchException extends C.SSMServiceException{name="ItemContentMismatchException";$fault="client";TypeName;Message;constructor(e){super({name:"ItemContentMismatchException",$fault:"client",...e});Object.setPrototypeOf(this,ItemContentMismatchException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}m.ItemContentMismatchException=ItemContentMismatchException;class SubTypeCountLimitExceededException extends C.SSMServiceException{name="SubTypeCountLimitExceededException";$fault="client";Message;constructor(e){super({name:"SubTypeCountLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,SubTypeCountLimitExceededException.prototype);this.Message=e.Message}}m.SubTypeCountLimitExceededException=SubTypeCountLimitExceededException;class UnsupportedInventoryItemContextException extends C.SSMServiceException{name="UnsupportedInventoryItemContextException";$fault="client";TypeName;Message;constructor(e){super({name:"UnsupportedInventoryItemContextException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedInventoryItemContextException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}m.UnsupportedInventoryItemContextException=UnsupportedInventoryItemContextException;class UnsupportedInventorySchemaVersionException extends C.SSMServiceException{name="UnsupportedInventorySchemaVersionException";$fault="client";Message;constructor(e){super({name:"UnsupportedInventorySchemaVersionException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedInventorySchemaVersionException.prototype);this.Message=e.Message}}m.UnsupportedInventorySchemaVersionException=UnsupportedInventorySchemaVersionException;class HierarchyLevelLimitExceededException extends C.SSMServiceException{name="HierarchyLevelLimitExceededException";$fault="client";constructor(e){super({name:"HierarchyLevelLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,HierarchyLevelLimitExceededException.prototype)}}m.HierarchyLevelLimitExceededException=HierarchyLevelLimitExceededException;class HierarchyTypeMismatchException extends C.SSMServiceException{name="HierarchyTypeMismatchException";$fault="client";constructor(e){super({name:"HierarchyTypeMismatchException",$fault:"client",...e});Object.setPrototypeOf(this,HierarchyTypeMismatchException.prototype)}}m.HierarchyTypeMismatchException=HierarchyTypeMismatchException;class IncompatiblePolicyException extends C.SSMServiceException{name="IncompatiblePolicyException";$fault="client";constructor(e){super({name:"IncompatiblePolicyException",$fault:"client",...e});Object.setPrototypeOf(this,IncompatiblePolicyException.prototype)}}m.IncompatiblePolicyException=IncompatiblePolicyException;class InvalidAllowedPatternException extends C.SSMServiceException{name="InvalidAllowedPatternException";$fault="client";constructor(e){super({name:"InvalidAllowedPatternException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAllowedPatternException.prototype)}}m.InvalidAllowedPatternException=InvalidAllowedPatternException;class InvalidPolicyAttributeException extends C.SSMServiceException{name="InvalidPolicyAttributeException";$fault="client";constructor(e){super({name:"InvalidPolicyAttributeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPolicyAttributeException.prototype)}}m.InvalidPolicyAttributeException=InvalidPolicyAttributeException;class InvalidPolicyTypeException extends C.SSMServiceException{name="InvalidPolicyTypeException";$fault="client";constructor(e){super({name:"InvalidPolicyTypeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPolicyTypeException.prototype)}}m.InvalidPolicyTypeException=InvalidPolicyTypeException;class ParameterAlreadyExists extends C.SSMServiceException{name="ParameterAlreadyExists";$fault="client";constructor(e){super({name:"ParameterAlreadyExists",$fault:"client",...e});Object.setPrototypeOf(this,ParameterAlreadyExists.prototype)}}m.ParameterAlreadyExists=ParameterAlreadyExists;class ParameterLimitExceeded extends C.SSMServiceException{name="ParameterLimitExceeded";$fault="client";constructor(e){super({name:"ParameterLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,ParameterLimitExceeded.prototype)}}m.ParameterLimitExceeded=ParameterLimitExceeded;class ParameterMaxVersionLimitExceeded extends C.SSMServiceException{name="ParameterMaxVersionLimitExceeded";$fault="client";constructor(e){super({name:"ParameterMaxVersionLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,ParameterMaxVersionLimitExceeded.prototype)}}m.ParameterMaxVersionLimitExceeded=ParameterMaxVersionLimitExceeded;class ParameterPatternMismatchException extends C.SSMServiceException{name="ParameterPatternMismatchException";$fault="client";constructor(e){super({name:"ParameterPatternMismatchException",$fault:"client",...e});Object.setPrototypeOf(this,ParameterPatternMismatchException.prototype)}}m.ParameterPatternMismatchException=ParameterPatternMismatchException;class PoliciesLimitExceededException extends C.SSMServiceException{name="PoliciesLimitExceededException";$fault="client";constructor(e){super({name:"PoliciesLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,PoliciesLimitExceededException.prototype)}}m.PoliciesLimitExceededException=PoliciesLimitExceededException;class UnsupportedParameterType extends C.SSMServiceException{name="UnsupportedParameterType";$fault="client";constructor(e){super({name:"UnsupportedParameterType",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedParameterType.prototype)}}m.UnsupportedParameterType=UnsupportedParameterType;class ResourcePolicyLimitExceededException extends C.SSMServiceException{name="ResourcePolicyLimitExceededException";$fault="client";Limit;LimitType;Message;constructor(e){super({name:"ResourcePolicyLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyLimitExceededException.prototype);this.Limit=e.Limit;this.LimitType=e.LimitType;this.Message=e.Message}}m.ResourcePolicyLimitExceededException=ResourcePolicyLimitExceededException;class FeatureNotAvailableException extends C.SSMServiceException{name="FeatureNotAvailableException";$fault="client";Message;constructor(e){super({name:"FeatureNotAvailableException",$fault:"client",...e});Object.setPrototypeOf(this,FeatureNotAvailableException.prototype);this.Message=e.Message}}m.FeatureNotAvailableException=FeatureNotAvailableException;class AutomationStepNotFoundException extends C.SSMServiceException{name="AutomationStepNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationStepNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationStepNotFoundException.prototype);this.Message=e.Message}}m.AutomationStepNotFoundException=AutomationStepNotFoundException;class InvalidAutomationSignalException extends C.SSMServiceException{name="InvalidAutomationSignalException";$fault="client";Message;constructor(e){super({name:"InvalidAutomationSignalException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAutomationSignalException.prototype);this.Message=e.Message}}m.InvalidAutomationSignalException=InvalidAutomationSignalException;class InvalidNotificationConfig extends C.SSMServiceException{name="InvalidNotificationConfig";$fault="client";Message;constructor(e){super({name:"InvalidNotificationConfig",$fault:"client",...e});Object.setPrototypeOf(this,InvalidNotificationConfig.prototype);this.Message=e.Message}}m.InvalidNotificationConfig=InvalidNotificationConfig;class InvalidOutputFolder extends C.SSMServiceException{name="InvalidOutputFolder";$fault="client";constructor(e){super({name:"InvalidOutputFolder",$fault:"client",...e});Object.setPrototypeOf(this,InvalidOutputFolder.prototype)}}m.InvalidOutputFolder=InvalidOutputFolder;class InvalidRole extends C.SSMServiceException{name="InvalidRole";$fault="client";Message;constructor(e){super({name:"InvalidRole",$fault:"client",...e});Object.setPrototypeOf(this,InvalidRole.prototype);this.Message=e.Message}}m.InvalidRole=InvalidRole;class ServiceQuotaExceededException extends C.SSMServiceException{name="ServiceQuotaExceededException";$fault="client";Message;ResourceId;ResourceType;QuotaCode;ServiceCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ServiceQuotaExceededException.prototype);this.Message=e.Message;this.ResourceId=e.ResourceId;this.ResourceType=e.ResourceType;this.QuotaCode=e.QuotaCode;this.ServiceCode=e.ServiceCode}}m.ServiceQuotaExceededException=ServiceQuotaExceededException;class InvalidAssociation extends C.SSMServiceException{name="InvalidAssociation";$fault="client";Message;constructor(e){super({name:"InvalidAssociation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAssociation.prototype);this.Message=e.Message}}m.InvalidAssociation=InvalidAssociation;class AutomationDefinitionNotFoundException extends C.SSMServiceException{name="AutomationDefinitionNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationDefinitionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationDefinitionNotFoundException.prototype);this.Message=e.Message}}m.AutomationDefinitionNotFoundException=AutomationDefinitionNotFoundException;class AutomationDefinitionVersionNotFoundException extends C.SSMServiceException{name="AutomationDefinitionVersionNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationDefinitionVersionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationDefinitionVersionNotFoundException.prototype);this.Message=e.Message}}m.AutomationDefinitionVersionNotFoundException=AutomationDefinitionVersionNotFoundException;class AutomationExecutionLimitExceededException extends C.SSMServiceException{name="AutomationExecutionLimitExceededException";$fault="client";Message;constructor(e){super({name:"AutomationExecutionLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationExecutionLimitExceededException.prototype);this.Message=e.Message}}m.AutomationExecutionLimitExceededException=AutomationExecutionLimitExceededException;class InvalidAutomationExecutionParametersException extends C.SSMServiceException{name="InvalidAutomationExecutionParametersException";$fault="client";Message;constructor(e){super({name:"InvalidAutomationExecutionParametersException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAutomationExecutionParametersException.prototype);this.Message=e.Message}}m.InvalidAutomationExecutionParametersException=InvalidAutomationExecutionParametersException;class AutomationDefinitionNotApprovedException extends C.SSMServiceException{name="AutomationDefinitionNotApprovedException";$fault="client";Message;constructor(e){super({name:"AutomationDefinitionNotApprovedException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationDefinitionNotApprovedException.prototype);this.Message=e.Message}}m.AutomationDefinitionNotApprovedException=AutomationDefinitionNotApprovedException;class TargetNotConnected extends C.SSMServiceException{name="TargetNotConnected";$fault="client";Message;constructor(e){super({name:"TargetNotConnected",$fault:"client",...e});Object.setPrototypeOf(this,TargetNotConnected.prototype);this.Message=e.Message}}m.TargetNotConnected=TargetNotConnected;class InvalidAutomationStatusUpdateException extends C.SSMServiceException{name="InvalidAutomationStatusUpdateException";$fault="client";Message;constructor(e){super({name:"InvalidAutomationStatusUpdateException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAutomationStatusUpdateException.prototype);this.Message=e.Message}}m.InvalidAutomationStatusUpdateException=InvalidAutomationStatusUpdateException;class AssociationVersionLimitExceeded extends C.SSMServiceException{name="AssociationVersionLimitExceeded";$fault="client";Message;constructor(e){super({name:"AssociationVersionLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,AssociationVersionLimitExceeded.prototype);this.Message=e.Message}}m.AssociationVersionLimitExceeded=AssociationVersionLimitExceeded;class InvalidUpdate extends C.SSMServiceException{name="InvalidUpdate";$fault="client";Message;constructor(e){super({name:"InvalidUpdate",$fault:"client",...e});Object.setPrototypeOf(this,InvalidUpdate.prototype);this.Message=e.Message}}m.InvalidUpdate=InvalidUpdate;class StatusUnchanged extends C.SSMServiceException{name="StatusUnchanged";$fault="client";constructor(e){super({name:"StatusUnchanged",$fault:"client",...e});Object.setPrototypeOf(this,StatusUnchanged.prototype)}}m.StatusUnchanged=StatusUnchanged;class DocumentVersionLimitExceeded extends C.SSMServiceException{name="DocumentVersionLimitExceeded";$fault="client";Message;constructor(e){super({name:"DocumentVersionLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,DocumentVersionLimitExceeded.prototype);this.Message=e.Message}}m.DocumentVersionLimitExceeded=DocumentVersionLimitExceeded;class DuplicateDocumentContent extends C.SSMServiceException{name="DuplicateDocumentContent";$fault="client";Message;constructor(e){super({name:"DuplicateDocumentContent",$fault:"client",...e});Object.setPrototypeOf(this,DuplicateDocumentContent.prototype);this.Message=e.Message}}m.DuplicateDocumentContent=DuplicateDocumentContent;class DuplicateDocumentVersionName extends C.SSMServiceException{name="DuplicateDocumentVersionName";$fault="client";Message;constructor(e){super({name:"DuplicateDocumentVersionName",$fault:"client",...e});Object.setPrototypeOf(this,DuplicateDocumentVersionName.prototype);this.Message=e.Message}}m.DuplicateDocumentVersionName=DuplicateDocumentVersionName;class OpsMetadataKeyLimitExceededException extends C.SSMServiceException{name="OpsMetadataKeyLimitExceededException";$fault="client";constructor(e){super({name:"OpsMetadataKeyLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataKeyLimitExceededException.prototype)}}m.OpsMetadataKeyLimitExceededException=OpsMetadataKeyLimitExceededException;class ResourceDataSyncConflictException extends C.SSMServiceException{name="ResourceDataSyncConflictException";$fault="client";Message;constructor(e){super({name:"ResourceDataSyncConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncConflictException.prototype);this.Message=e.Message}}m.ResourceDataSyncConflictException=ResourceDataSyncConflictException},5956:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(7892);const q=C.__importDefault(h(8153));const V=h(590);const le=h(4102);const fe=h(3832);const he=h(6477);const ye=h(8300);const ve=h(4433);const Le=h(1125);const Ue=h(5422);const qe=h(4271);const ze=h(6e3);const He=h(8322);const We=h(2346);const Qe=h(6469);const getRuntimeConfig=e=>{(0,qe.emitWarningIfUnsupportedVersion)(process.version);const m=(0,He.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>m().then(qe.loadConfigsForDefaultMode);const h=(0,Qe.getRuntimeConfig)(e);(0,V.emitWarningIfUnsupportedVersion)(process.version);const C={profile:e?.profile,logger:h.logger};return{...h,...e,runtime:"node",defaultsMode:m,authSchemePreference:e?.authSchemePreference??(0,Le.loadConfig)(V.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,C),bodyLengthChecker:e?.bodyLengthChecker??ze.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??le.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,fe.createDefaultUserAgentProvider)({serviceId:h.serviceId,clientVersion:q.default.version}),maxAttempts:e?.maxAttempts??(0,Le.loadConfig)(ve.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,Le.loadConfig)(he.NODE_REGION_CONFIG_OPTIONS,{...he.NODE_REGION_CONFIG_FILE_OPTIONS,...C}),requestHandler:Ue.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,Le.loadConfig)({...ve.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||We.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ye.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ue.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Le.loadConfig)(he.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,C),useFipsEndpoint:e?.useFipsEndpoint??(0,Le.loadConfig)(he.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,C),userAgentAppId:e?.userAgentAppId??(0,Le.loadConfig)(fe.NODE_APP_ID_CONFIG_OPTIONS,C)}};m.getRuntimeConfig=getRuntimeConfig},6469:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(590);const q=h(5778);const V=h(4271);const le=h(4418);const fe=h(3158);const he=h(8165);const ye=h(8429);const ve=h(8787);const Le=h(4522);const getRuntimeConfig=e=>({apiVersion:"2014-11-06",base64Decoder:e?.base64Decoder??fe.fromBase64,base64Encoder:e?.base64Encoder??fe.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??ve.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ye.defaultSSMHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new C.AwsSdkSigV4Signer}],logger:e?.logger??new V.NoOpLogger,protocol:e?.protocol??q.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssm",errorTypeRegistries:Le.errorTypeRegistries,xmlNamespace:"http://ssm.amazonaws.com/doc/2014-11-06/",version:"2014-11-06",serviceTarget:"AmazonSSM"},serviceId:e?.serviceId??"SSM",urlParser:e?.urlParser??le.parseUrl,utf8Decoder:e?.utf8Decoder??he.fromUtf8,utf8Encoder:e?.utf8Encoder??he.toUtf8});m.getRuntimeConfig=getRuntimeConfig},4522:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.InvalidFilter$=m.InvalidDocumentVersion$=m.InvalidDocumentType$=m.InvalidDocumentSchemaVersion$=m.InvalidDocumentOperation$=m.InvalidDocumentContent$=m.InvalidDocument$=m.InvalidDeletionIdException$=m.InvalidDeleteInventoryParametersException$=m.InvalidCommandId$=m.InvalidAutomationStatusUpdateException$=m.InvalidAutomationSignalException$=m.InvalidAutomationExecutionParametersException$=m.InvalidAssociationVersion$=m.InvalidAssociation$=m.InvalidAllowedPatternException$=m.InvalidAggregatorException$=m.InvalidActivationId$=m.InvalidActivation$=m.InternalServerError$=m.IncompatiblePolicyException$=m.IdempotentParameterMismatch$=m.HierarchyTypeMismatchException$=m.HierarchyLevelLimitExceededException$=m.FeatureNotAvailableException$=m.DuplicateInstanceId$=m.DuplicateDocumentVersionName$=m.DuplicateDocumentContent$=m.DoesNotExistException$=m.DocumentVersionLimitExceeded$=m.DocumentPermissionLimit$=m.DocumentLimitExceeded$=m.DocumentAlreadyExists$=m.CustomSchemaCountLimitExceededException$=m.ComplianceTypeCountLimitExceededException$=m.AutomationStepNotFoundException$=m.AutomationExecutionNotFoundException$=m.AutomationExecutionLimitExceededException$=m.AutomationDefinitionVersionNotFoundException$=m.AutomationDefinitionNotFoundException$=m.AutomationDefinitionNotApprovedException$=m.AssociationVersionLimitExceeded$=m.AssociationLimitExceeded$=m.AssociationExecutionDoesNotExist$=m.AssociationDoesNotExist$=m.AssociationAlreadyExists$=m.AssociatedInstances$=m.AlreadyExistsException$=m.AccessDeniedException$=m.SSMServiceException$=void 0;m.OpsMetadataNotFoundException$=m.OpsMetadataLimitExceededException$=m.OpsMetadataKeyLimitExceededException$=m.OpsMetadataInvalidArgumentException$=m.OpsMetadataAlreadyExistsException$=m.OpsItemRelatedItemAssociationNotFoundException$=m.OpsItemRelatedItemAlreadyExistsException$=m.OpsItemNotFoundException$=m.OpsItemLimitExceededException$=m.OpsItemInvalidParameterException$=m.OpsItemConflictException$=m.OpsItemAlreadyExistsException$=m.OpsItemAccessDeniedException$=m.NoLongerSupportedException$=m.MaxDocumentSizeExceeded$=m.MalformedResourcePolicyDocumentException$=m.ItemSizeLimitExceededException$=m.ItemContentMismatchException$=m.InvocationDoesNotExist$=m.InvalidUpdate$=m.InvalidTypeNameException$=m.InvalidTargetMaps$=m.InvalidTarget$=m.InvalidTag$=m.InvalidSchedule$=m.InvalidRole$=m.InvalidResultAttributeException$=m.InvalidResourceType$=m.InvalidResourceId$=m.InvalidPolicyTypeException$=m.InvalidPolicyAttributeException$=m.InvalidPluginName$=m.InvalidPermissionType$=m.InvalidParameters$=m.InvalidOutputLocation$=m.InvalidOutputFolder$=m.InvalidOptionException$=m.InvalidNotificationConfig$=m.InvalidNextToken$=m.InvalidKeyId$=m.InvalidItemContentException$=m.InvalidInventoryRequestException$=m.InvalidInventoryItemContextException$=m.InvalidInventoryGroupException$=m.InvalidInstancePropertyFilterValue$=m.InvalidInstanceInformationFilterValue$=m.InvalidInstanceId$=m.InvalidFilterValue$=m.InvalidFilterOption$=m.InvalidFilterKey$=void 0;m.AssociateOpsItemRelatedItemResponse$=m.AssociateOpsItemRelatedItemRequest$=m.AlarmStateInformation$=m.AlarmConfiguration$=m.Alarm$=m.AddTagsToResourceResult$=m.AddTagsToResourceRequest$=m.Activation$=m.AccountSharingInfo$=m.errorTypeRegistries=m.ValidationException$=m.UnsupportedPlatformType$=m.UnsupportedParameterType$=m.UnsupportedOperationException$=m.UnsupportedOperatingSystem$=m.UnsupportedInventorySchemaVersionException$=m.UnsupportedInventoryItemContextException$=m.UnsupportedFeatureRequiredException$=m.UnsupportedCalendarException$=m.TotalSizeLimitExceededException$=m.TooManyUpdates$=m.TooManyTagsError$=m.ThrottlingException$=m.TargetNotConnected$=m.TargetInUseException$=m.SubTypeCountLimitExceededException$=m.StatusUnchanged$=m.ServiceSettingNotFound$=m.ServiceQuotaExceededException$=m.ResourcePolicyNotFoundException$=m.ResourcePolicyLimitExceededException$=m.ResourcePolicyInvalidParameterException$=m.ResourcePolicyConflictException$=m.ResourceNotFoundException$=m.ResourceLimitExceededException$=m.ResourceInUseException$=m.ResourceDataSyncNotFoundException$=m.ResourceDataSyncInvalidConfigurationException$=m.ResourceDataSyncCountExceededException$=m.ResourceDataSyncConflictException$=m.ResourceDataSyncAlreadyExistsException$=m.PoliciesLimitExceededException$=m.ParameterVersionNotFound$=m.ParameterVersionLabelLimitExceeded$=m.ParameterPatternMismatchException$=m.ParameterNotFound$=m.ParameterMaxVersionLimitExceeded$=m.ParameterLimitExceeded$=m.ParameterAlreadyExists$=m.OpsMetadataTooManyUpdatesException$=void 0;m.CreatePatchBaselineRequest$=m.CreateOpsMetadataResult$=m.CreateOpsMetadataRequest$=m.CreateOpsItemResponse$=m.CreateOpsItemRequest$=m.CreateMaintenanceWindowResult$=m.CreateMaintenanceWindowRequest$=m.CreateDocumentResult$=m.CreateDocumentRequest$=m.CreateAssociationResult$=m.CreateAssociationRequest$=m.CreateAssociationBatchResult$=m.CreateAssociationBatchRequestEntry$=m.CreateAssociationBatchRequest$=m.CreateActivationResult$=m.CreateActivationRequest$=m.CompliantSummary$=m.ComplianceSummaryItem$=m.ComplianceStringFilter$=m.ComplianceItemEntry$=m.ComplianceItem$=m.ComplianceExecutionSummary$=m.CommandPlugin$=m.CommandInvocation$=m.CommandFilter$=m.Command$=m.CloudWatchOutputConfig$=m.CancelMaintenanceWindowExecutionResult$=m.CancelMaintenanceWindowExecutionRequest$=m.CancelCommandResult$=m.CancelCommandRequest$=m.BaselineOverride$=m.AutomationExecutionPreview$=m.AutomationExecutionMetadata$=m.AutomationExecutionInputs$=m.AutomationExecutionFilter$=m.AutomationExecution$=m.AttachmentsSource$=m.AttachmentInformation$=m.AttachmentContent$=m.AssociationVersionInfo$=m.AssociationStatus$=m.AssociationOverview$=m.AssociationFilter$=m.AssociationExecutionTargetsFilter$=m.AssociationExecutionTarget$=m.AssociationExecutionFilter$=m.AssociationExecution$=m.AssociationDescription$=m.Association$=void 0;m.DescribeAvailablePatchesRequest$=m.DescribeAutomationStepExecutionsResult$=m.DescribeAutomationStepExecutionsRequest$=m.DescribeAutomationExecutionsResult$=m.DescribeAutomationExecutionsRequest$=m.DescribeAssociationResult$=m.DescribeAssociationRequest$=m.DescribeAssociationExecutionTargetsResult$=m.DescribeAssociationExecutionTargetsRequest$=m.DescribeAssociationExecutionsResult$=m.DescribeAssociationExecutionsRequest$=m.DescribeActivationsResult$=m.DescribeActivationsRequest$=m.DescribeActivationsFilter$=m.DeregisterTaskFromMaintenanceWindowResult$=m.DeregisterTaskFromMaintenanceWindowRequest$=m.DeregisterTargetFromMaintenanceWindowResult$=m.DeregisterTargetFromMaintenanceWindowRequest$=m.DeregisterPatchBaselineForPatchGroupResult$=m.DeregisterPatchBaselineForPatchGroupRequest$=m.DeregisterManagedInstanceResult$=m.DeregisterManagedInstanceRequest$=m.DeleteResourcePolicyResponse$=m.DeleteResourcePolicyRequest$=m.DeleteResourceDataSyncResult$=m.DeleteResourceDataSyncRequest$=m.DeletePatchBaselineResult$=m.DeletePatchBaselineRequest$=m.DeleteParametersResult$=m.DeleteParametersRequest$=m.DeleteParameterResult$=m.DeleteParameterRequest$=m.DeleteOpsMetadataResult$=m.DeleteOpsMetadataRequest$=m.DeleteOpsItemResponse$=m.DeleteOpsItemRequest$=m.DeleteMaintenanceWindowResult$=m.DeleteMaintenanceWindowRequest$=m.DeleteInventoryResult$=m.DeleteInventoryRequest$=m.DeleteDocumentResult$=m.DeleteDocumentRequest$=m.DeleteAssociationResult$=m.DeleteAssociationRequest$=m.DeleteActivationResult$=m.DeleteActivationRequest$=m.Credentials$=m.CreateResourceDataSyncResult$=m.CreateResourceDataSyncRequest$=m.CreatePatchBaselineResult$=void 0;m.DescribePatchPropertiesRequest$=m.DescribePatchGroupStateResult$=m.DescribePatchGroupStateRequest$=m.DescribePatchGroupsResult$=m.DescribePatchGroupsRequest$=m.DescribePatchBaselinesResult$=m.DescribePatchBaselinesRequest$=m.DescribeParametersResult$=m.DescribeParametersRequest$=m.DescribeOpsItemsResponse$=m.DescribeOpsItemsRequest$=m.DescribeMaintenanceWindowTasksResult$=m.DescribeMaintenanceWindowTasksRequest$=m.DescribeMaintenanceWindowTargetsResult$=m.DescribeMaintenanceWindowTargetsRequest$=m.DescribeMaintenanceWindowsResult$=m.DescribeMaintenanceWindowsRequest$=m.DescribeMaintenanceWindowsForTargetResult$=m.DescribeMaintenanceWindowsForTargetRequest$=m.DescribeMaintenanceWindowScheduleResult$=m.DescribeMaintenanceWindowScheduleRequest$=m.DescribeMaintenanceWindowExecutionTasksResult$=m.DescribeMaintenanceWindowExecutionTasksRequest$=m.DescribeMaintenanceWindowExecutionTaskInvocationsResult$=m.DescribeMaintenanceWindowExecutionTaskInvocationsRequest$=m.DescribeMaintenanceWindowExecutionsResult$=m.DescribeMaintenanceWindowExecutionsRequest$=m.DescribeInventoryDeletionsResult$=m.DescribeInventoryDeletionsRequest$=m.DescribeInstancePropertiesResult$=m.DescribeInstancePropertiesRequest$=m.DescribeInstancePatchStatesResult$=m.DescribeInstancePatchStatesRequest$=m.DescribeInstancePatchStatesForPatchGroupResult$=m.DescribeInstancePatchStatesForPatchGroupRequest$=m.DescribeInstancePatchesResult$=m.DescribeInstancePatchesRequest$=m.DescribeInstanceInformationResult$=m.DescribeInstanceInformationRequest$=m.DescribeInstanceAssociationsStatusResult$=m.DescribeInstanceAssociationsStatusRequest$=m.DescribeEffectivePatchesForPatchBaselineResult$=m.DescribeEffectivePatchesForPatchBaselineRequest$=m.DescribeEffectiveInstanceAssociationsResult$=m.DescribeEffectiveInstanceAssociationsRequest$=m.DescribeDocumentResult$=m.DescribeDocumentRequest$=m.DescribeDocumentPermissionResponse$=m.DescribeDocumentPermissionRequest$=m.DescribeAvailablePatchesResult$=void 0;m.GetMaintenanceWindowResult$=m.GetMaintenanceWindowRequest$=m.GetMaintenanceWindowExecutionTaskResult$=m.GetMaintenanceWindowExecutionTaskRequest$=m.GetMaintenanceWindowExecutionTaskInvocationResult$=m.GetMaintenanceWindowExecutionTaskInvocationRequest$=m.GetMaintenanceWindowExecutionResult$=m.GetMaintenanceWindowExecutionRequest$=m.GetInventorySchemaResult$=m.GetInventorySchemaRequest$=m.GetInventoryResult$=m.GetInventoryRequest$=m.GetExecutionPreviewResponse$=m.GetExecutionPreviewRequest$=m.GetDocumentResult$=m.GetDocumentRequest$=m.GetDeployablePatchSnapshotForInstanceResult$=m.GetDeployablePatchSnapshotForInstanceRequest$=m.GetDefaultPatchBaselineResult$=m.GetDefaultPatchBaselineRequest$=m.GetConnectionStatusResponse$=m.GetConnectionStatusRequest$=m.GetCommandInvocationResult$=m.GetCommandInvocationRequest$=m.GetCalendarStateResponse$=m.GetCalendarStateRequest$=m.GetAutomationExecutionResult$=m.GetAutomationExecutionRequest$=m.GetAccessTokenResponse$=m.GetAccessTokenRequest$=m.FailureDetails$=m.FailedCreateAssociation$=m.EffectivePatch$=m.DocumentVersionInfo$=m.DocumentReviews$=m.DocumentReviewerResponseSource$=m.DocumentReviewCommentSource$=m.DocumentRequires$=m.DocumentParameter$=m.DocumentMetadataResponseInfo$=m.DocumentKeyValuesFilter$=m.DocumentIdentifier$=m.DocumentFilter$=m.DocumentDescription$=m.DocumentDefaultVersionDescription$=m.DisassociateOpsItemRelatedItemResponse$=m.DisassociateOpsItemRelatedItemRequest$=m.DescribeSessionsResponse$=m.DescribeSessionsRequest$=m.DescribePatchPropertiesResult$=void 0;m.InventoryResultItem$=m.InventoryResultEntity$=m.InventoryItemSchema$=m.InventoryItemAttribute$=m.InventoryItem$=m.InventoryGroup$=m.InventoryFilter$=m.InventoryDeletionSummaryItem$=m.InventoryDeletionSummary$=m.InventoryDeletionStatusItem$=m.InventoryAggregator$=m.InstancePropertyStringFilter$=m.InstancePropertyFilter$=m.InstanceProperty$=m.InstancePatchStateFilter$=m.InstancePatchState$=m.InstanceInformationStringFilter$=m.InstanceInformationFilter$=m.InstanceInformation$=m.InstanceInfo$=m.InstanceAssociationStatusInfo$=m.InstanceAssociationOutputUrl$=m.InstanceAssociationOutputLocation$=m.InstanceAssociation$=m.InstanceAggregatedAssociationOverview$=m.GetServiceSettingResult$=m.GetServiceSettingRequest$=m.GetResourcePoliciesResponseEntry$=m.GetResourcePoliciesResponse$=m.GetResourcePoliciesRequest$=m.GetPatchBaselineResult$=m.GetPatchBaselineRequest$=m.GetPatchBaselineForPatchGroupResult$=m.GetPatchBaselineForPatchGroupRequest$=m.GetParametersResult$=m.GetParametersRequest$=m.GetParametersByPathResult$=m.GetParametersByPathRequest$=m.GetParameterResult$=m.GetParameterRequest$=m.GetParameterHistoryResult$=m.GetParameterHistoryRequest$=m.GetOpsSummaryResult$=m.GetOpsSummaryRequest$=m.GetOpsMetadataResult$=m.GetOpsMetadataRequest$=m.GetOpsItemResponse$=m.GetOpsItemRequest$=m.GetMaintenanceWindowTaskResult$=m.GetMaintenanceWindowTaskRequest$=void 0;m.MaintenanceWindowTarget$=m.MaintenanceWindowStepFunctionsParameters$=m.MaintenanceWindowRunCommandParameters$=m.MaintenanceWindowLambdaParameters$=m.MaintenanceWindowIdentityForTarget$=m.MaintenanceWindowIdentity$=m.MaintenanceWindowFilter$=m.MaintenanceWindowExecutionTaskInvocationIdentity$=m.MaintenanceWindowExecutionTaskIdentity$=m.MaintenanceWindowExecution$=m.MaintenanceWindowAutomationParameters$=m.LoggingInfo$=m.ListTagsForResourceResult$=m.ListTagsForResourceRequest$=m.ListResourceDataSyncResult$=m.ListResourceDataSyncRequest$=m.ListResourceComplianceSummariesResult$=m.ListResourceComplianceSummariesRequest$=m.ListOpsMetadataResult$=m.ListOpsMetadataRequest$=m.ListOpsItemRelatedItemsResponse$=m.ListOpsItemRelatedItemsRequest$=m.ListOpsItemEventsResponse$=m.ListOpsItemEventsRequest$=m.ListNodesSummaryResult$=m.ListNodesSummaryRequest$=m.ListNodesResult$=m.ListNodesRequest$=m.ListInventoryEntriesResult$=m.ListInventoryEntriesRequest$=m.ListDocumentVersionsResult$=m.ListDocumentVersionsRequest$=m.ListDocumentsResult$=m.ListDocumentsRequest$=m.ListDocumentMetadataHistoryResponse$=m.ListDocumentMetadataHistoryRequest$=m.ListComplianceSummariesResult$=m.ListComplianceSummariesRequest$=m.ListComplianceItemsResult$=m.ListComplianceItemsRequest$=m.ListCommandsResult$=m.ListCommandsRequest$=m.ListCommandInvocationsResult$=m.ListCommandInvocationsRequest$=m.ListAssociationVersionsResult$=m.ListAssociationVersionsRequest$=m.ListAssociationsResult$=m.ListAssociationsRequest$=m.LabelParameterVersionResult$=m.LabelParameterVersionRequest$=void 0;m.PutComplianceItemsRequest$=m.ProgressCounters$=m.PatchStatus$=m.PatchSource$=m.PatchRuleGroup$=m.PatchRule$=m.PatchOrchestratorFilter$=m.PatchGroupPatchBaselineMapping$=m.PatchFilterGroup$=m.PatchFilter$=m.PatchComplianceData$=m.PatchBaselineIdentity$=m.Patch$=m.ParentStepDetails$=m.ParameterStringFilter$=m.ParametersFilter$=m.ParameterMetadata$=m.ParameterInlinePolicy$=m.ParameterHistory$=m.Parameter$=m.OutputSource$=m.OpsResultAttribute$=m.OpsMetadataFilter$=m.OpsMetadata$=m.OpsItemSummary$=m.OpsItemRelatedItemSummary$=m.OpsItemRelatedItemsFilter$=m.OpsItemNotification$=m.OpsItemIdentity$=m.OpsItemFilter$=m.OpsItemEventSummary$=m.OpsItemEventFilter$=m.OpsItemDataValue$=m.OpsItem$=m.OpsFilter$=m.OpsEntityItem$=m.OpsEntity$=m.OpsAggregator$=m.NotificationConfig$=m.NonCompliantSummary$=m.NodeOwnerInfo$=m.NodeFilter$=m.NodeAggregator$=m.Node$=m.ModifyDocumentPermissionResponse$=m.ModifyDocumentPermissionRequest$=m.MetadataValue$=m.MaintenanceWindowTaskParameterValueExpression$=m.MaintenanceWindowTaskInvocationParameters$=m.MaintenanceWindowTask$=void 0;m.StartAssociationsOnceRequest$=m.StartAccessRequestResponse$=m.StartAccessRequestRequest$=m.SeveritySummary$=m.SessionManagerOutputUrl$=m.SessionFilter$=m.Session$=m.ServiceSetting$=m.SendCommandResult$=m.SendCommandRequest$=m.SendAutomationSignalResult$=m.SendAutomationSignalRequest$=m.ScheduledWindowExecution$=m.S3OutputUrl$=m.S3OutputLocation$=m.Runbook$=m.ReviewInformation$=m.ResumeSessionResponse$=m.ResumeSessionRequest$=m.ResultAttribute$=m.ResourceDataSyncSourceWithState$=m.ResourceDataSyncSource$=m.ResourceDataSyncS3Destination$=m.ResourceDataSyncOrganizationalUnit$=m.ResourceDataSyncItem$=m.ResourceDataSyncDestinationDataSharing$=m.ResourceDataSyncAwsOrganizationsSource$=m.ResourceComplianceSummaryItem$=m.ResolvedTargets$=m.ResetServiceSettingResult$=m.ResetServiceSettingRequest$=m.RemoveTagsFromResourceResult$=m.RemoveTagsFromResourceRequest$=m.RelatedOpsItem$=m.RegistrationMetadataItem$=m.RegisterTaskWithMaintenanceWindowResult$=m.RegisterTaskWithMaintenanceWindowRequest$=m.RegisterTargetWithMaintenanceWindowResult$=m.RegisterTargetWithMaintenanceWindowRequest$=m.RegisterPatchBaselineForPatchGroupResult$=m.RegisterPatchBaselineForPatchGroupRequest$=m.RegisterDefaultPatchBaselineResult$=m.RegisterDefaultPatchBaselineRequest$=m.PutResourcePolicyResponse$=m.PutResourcePolicyRequest$=m.PutParameterResult$=m.PutParameterRequest$=m.PutInventoryResult$=m.PutInventoryRequest$=m.PutComplianceItemsResult$=void 0;m.ExecutionInputs$=m.UpdateServiceSettingResult$=m.UpdateServiceSettingRequest$=m.UpdateResourceDataSyncResult$=m.UpdateResourceDataSyncRequest$=m.UpdatePatchBaselineResult$=m.UpdatePatchBaselineRequest$=m.UpdateOpsMetadataResult$=m.UpdateOpsMetadataRequest$=m.UpdateOpsItemResponse$=m.UpdateOpsItemRequest$=m.UpdateManagedInstanceRoleResult$=m.UpdateManagedInstanceRoleRequest$=m.UpdateMaintenanceWindowTaskResult$=m.UpdateMaintenanceWindowTaskRequest$=m.UpdateMaintenanceWindowTargetResult$=m.UpdateMaintenanceWindowTargetRequest$=m.UpdateMaintenanceWindowResult$=m.UpdateMaintenanceWindowRequest$=m.UpdateDocumentResult$=m.UpdateDocumentRequest$=m.UpdateDocumentMetadataResponse$=m.UpdateDocumentMetadataRequest$=m.UpdateDocumentDefaultVersionResult$=m.UpdateDocumentDefaultVersionRequest$=m.UpdateAssociationStatusResult$=m.UpdateAssociationStatusRequest$=m.UpdateAssociationResult$=m.UpdateAssociationRequest$=m.UnlabelParameterVersionResult$=m.UnlabelParameterVersionRequest$=m.TerminateSessionResponse$=m.TerminateSessionRequest$=m.TargetPreview$=m.TargetLocation$=m.Target$=m.Tag$=m.StopAutomationExecutionResult$=m.StopAutomationExecutionRequest$=m.StepExecutionFilter$=m.StepExecution$=m.StartSessionResponse$=m.StartSessionRequest$=m.StartExecutionPreviewResponse$=m.StartExecutionPreviewRequest$=m.StartChangeRequestExecutionResult$=m.StartChangeRequestExecutionRequest$=m.StartAutomationExecutionResult$=m.StartAutomationExecutionRequest$=m.StartAssociationsOnceResult$=void 0;m.DescribeMaintenanceWindowExecutions$=m.DescribeInventoryDeletions$=m.DescribeInstanceProperties$=m.DescribeInstancePatchStatesForPatchGroup$=m.DescribeInstancePatchStates$=m.DescribeInstancePatches$=m.DescribeInstanceInformation$=m.DescribeInstanceAssociationsStatus$=m.DescribeEffectivePatchesForPatchBaseline$=m.DescribeEffectiveInstanceAssociations$=m.DescribeDocumentPermission$=m.DescribeDocument$=m.DescribeAvailablePatches$=m.DescribeAutomationStepExecutions$=m.DescribeAutomationExecutions$=m.DescribeAssociationExecutionTargets$=m.DescribeAssociationExecutions$=m.DescribeAssociation$=m.DescribeActivations$=m.DeregisterTaskFromMaintenanceWindow$=m.DeregisterTargetFromMaintenanceWindow$=m.DeregisterPatchBaselineForPatchGroup$=m.DeregisterManagedInstance$=m.DeleteResourcePolicy$=m.DeleteResourceDataSync$=m.DeletePatchBaseline$=m.DeleteParameters$=m.DeleteParameter$=m.DeleteOpsMetadata$=m.DeleteOpsItem$=m.DeleteMaintenanceWindow$=m.DeleteInventory$=m.DeleteDocument$=m.DeleteAssociation$=m.DeleteActivation$=m.CreateResourceDataSync$=m.CreatePatchBaseline$=m.CreateOpsMetadata$=m.CreateOpsItem$=m.CreateMaintenanceWindow$=m.CreateDocument$=m.CreateAssociationBatch$=m.CreateAssociation$=m.CreateActivation$=m.CancelMaintenanceWindowExecution$=m.CancelCommand$=m.AssociateOpsItemRelatedItem$=m.AddTagsToResource$=m.NodeType$=m.ExecutionPreview$=void 0;m.ListDocumentMetadataHistory$=m.ListComplianceSummaries$=m.ListComplianceItems$=m.ListCommands$=m.ListCommandInvocations$=m.ListAssociationVersions$=m.ListAssociations$=m.LabelParameterVersion$=m.GetServiceSetting$=m.GetResourcePolicies$=m.GetPatchBaselineForPatchGroup$=m.GetPatchBaseline$=m.GetParametersByPath$=m.GetParameters$=m.GetParameterHistory$=m.GetParameter$=m.GetOpsSummary$=m.GetOpsMetadata$=m.GetOpsItem$=m.GetMaintenanceWindowTask$=m.GetMaintenanceWindowExecutionTaskInvocation$=m.GetMaintenanceWindowExecutionTask$=m.GetMaintenanceWindowExecution$=m.GetMaintenanceWindow$=m.GetInventorySchema$=m.GetInventory$=m.GetExecutionPreview$=m.GetDocument$=m.GetDeployablePatchSnapshotForInstance$=m.GetDefaultPatchBaseline$=m.GetConnectionStatus$=m.GetCommandInvocation$=m.GetCalendarState$=m.GetAutomationExecution$=m.GetAccessToken$=m.DisassociateOpsItemRelatedItem$=m.DescribeSessions$=m.DescribePatchProperties$=m.DescribePatchGroupState$=m.DescribePatchGroups$=m.DescribePatchBaselines$=m.DescribeParameters$=m.DescribeOpsItems$=m.DescribeMaintenanceWindowTasks$=m.DescribeMaintenanceWindowTargets$=m.DescribeMaintenanceWindowsForTarget$=m.DescribeMaintenanceWindowSchedule$=m.DescribeMaintenanceWindows$=m.DescribeMaintenanceWindowExecutionTasks$=m.DescribeMaintenanceWindowExecutionTaskInvocations$=void 0;m.UpdateServiceSetting$=m.UpdateResourceDataSync$=m.UpdatePatchBaseline$=m.UpdateOpsMetadata$=m.UpdateOpsItem$=m.UpdateManagedInstanceRole$=m.UpdateMaintenanceWindowTask$=m.UpdateMaintenanceWindowTarget$=m.UpdateMaintenanceWindow$=m.UpdateDocumentMetadata$=m.UpdateDocumentDefaultVersion$=m.UpdateDocument$=m.UpdateAssociationStatus$=m.UpdateAssociation$=m.UnlabelParameterVersion$=m.TerminateSession$=m.StopAutomationExecution$=m.StartSession$=m.StartExecutionPreview$=m.StartChangeRequestExecution$=m.StartAutomationExecution$=m.StartAssociationsOnce$=m.StartAccessRequest$=m.SendCommand$=m.SendAutomationSignal$=m.ResumeSession$=m.ResetServiceSetting$=m.RemoveTagsFromResource$=m.RegisterTaskWithMaintenanceWindow$=m.RegisterTargetWithMaintenanceWindow$=m.RegisterPatchBaselineForPatchGroup$=m.RegisterDefaultPatchBaseline$=m.PutResourcePolicy$=m.PutParameter$=m.PutInventory$=m.PutComplianceItems$=m.ModifyDocumentPermission$=m.ListTagsForResource$=m.ListResourceDataSync$=m.ListResourceComplianceSummaries$=m.ListOpsMetadata$=m.ListOpsItemRelatedItems$=m.ListOpsItemEvents$=m.ListNodesSummary$=m.ListNodes$=m.ListInventoryEntries$=m.ListDocumentVersions$=m.ListDocuments$=void 0;const C="Activation";const q="AutoApprove";const V="ApproveAfterDays";const le="AssociationAlreadyExists";const fe="AlarmConfiguration";const he="AttachmentContentList";const ye="ActivationCode";const ve="AttachmentContent";const Le="AttachmentsContent";const Ue="AssociationDescription";const qe="AssociationDispatchAssumeRole";const ze="AccessDeniedException";const He="AssociationDescriptionList";const We="AutomationDefinitionNotApprovedException";const Qe="AssociationDoesNotExist";const Je="AutomationDefinitionNotFoundException";const It="AutomationDefinitionVersionNotFoundException";const _t="ApprovalDate";const Mt="AssociationExecution";const Lt="AssociationExecutionDoesNotExist";const Ut="AlreadyExistsException";const qt="AssociationExecutionFilter";const Gt="AssociationExecutionFilterList";const zt="AutomationExecutionFilterList";const Ht="AutomationExecutionFilter";const Wt="AutomationExecutionId";const Kt="AutomationExecutionInputs";const Yt="AssociationExecutionsList";const Qt="AutomationExecutionLimitExceededException";const Jt="AutomationExecutionMetadata";const Xt="AutomationExecutionMetadataList";const Zt="AutomationExecutionNotFoundException";const en="AutomationExecutionPreview";const tn="AutomationExecutionStatus";const nn="AssociationExecutionTarget";const rn="AssociationExecutionTargetsFilter";const on="AssociationExecutionTargetsFilterList";const sn="AssociationExecutionTargetsList";const an="ActualEndTime";const cn="AssociationExecutionTargets";const ln="AssociationExecutions";const un="AutomationExecution";const dn="AssociationFilter";const pn="AssociationFilterList";const mn="AssociatedInstances";const hn="AccountIdList";const gn="AttachmentInformationList";const yn="AccountIdsToAdd";const Sn="AccountIdsToRemove";const En="AccountId";const vn="AccountIds";const Cn="ActivationId";const In="AdditionalInfo";const bn="AdvisoryIds";const An="AssociationId";const wn="AssociationIds";const Rn="AttachmentInformation";const Tn="AttachmentsInformation";const Pn="AccessKeyId";const xn="AccessKeySecretType";const _n="ActivationList";const On="AssociationLimitExceeded";const Dn="AlarmList";const Mn="AssociationList";const $n="AssociationName";const Nn="AttributeName";const kn="AssociationOverview";const Ln="ApplyOnlyAtCronInterval";const Un="AssociateOpsItemRelatedItem";const Fn="AssociateOpsItemRelatedItemRequest";const qn="AssociateOpsItemRelatedItemResponse";const jn="AwsOrganizationsSource";const Bn="ApprovedPatches";const Gn="ApprovedPatchesComplianceLevel";const zn="ApprovedPatchesEnableNonSecurity";const Hn="AutomationParameterMap";const Vn="AllowedPattern";const Wn="ApprovalRules";const Kn="AccessRequestId";const Yn="ARN";const Qn="AccessRequestStatus";const Jn="AssociationStatus";const Xn="AssociationStatusAggregatedCount";const Zn="AccountSharingInfo";const er="AccountSharingInfoList";const tr="AlarmStateInformationList";const nr="AlarmStateInformation";const rr="AttachmentsSourceList";const or="AutomationStepNotFoundException";const ir="ActualStartTime";const sr="AvailableSecurityUpdateCount";const ar="AvailableSecurityUpdatesComplianceStatus";const cr="AttachmentsSource";const lr="AutomationSubtype";const ur="AssociationType";const dr="AutomationTargetParameterName";const pr="AddTagsToResource";const mr="AddTagsToResourceRequest";const fr="AddTagsToResourceResult";const hr="AccessType";const gr="AgentType";const yr="AggregatorType";const Sr="AtTime";const Er="AutomationType";const vr="ApproveUntilDate";const Cr="AllowUnassociatedTargets";const Ir="AssociationVersion";const br="AssociationVersionInfo";const Ar="AssociationVersionList";const wr="AssociationVersionLimitExceeded";const Rr="AgentVersion";const Tr="ApprovedVersion";const Pr="AssociationVersions";const xr="AWSKMSKeyARN";const _r="Action";const Or="Accounts";const Dr="Aggregators";const Mr="Aggregator";const $r="Alarm";const Nr="Alarms";const kr="Architecture";const Lr="Arch";const Ur="Arn";const Fr="Association";const qr="Associations";const jr="Attachments";const Br="Attributes";const Gr="Attribute";const zr="Author";const Hr="Automation";const Vr="BaselineDescription";const Wr="BaselineId";const Kr="BaselineIdentities";const Yr="BaselineIdentity";const Qr="BugzillaIds";const Jr="BaselineName";const Xr="BucketName";const Zr="BaselineOverride";const eo="Command";const to="CurrentAction";const no="CreateAssociationBatch";const ro="CreateAssociationBatchRequest";const oo="CreateAssociationBatchRequestEntry";const io="CreateAssociationBatchRequestEntries";const so="CreateAssociationBatchResult";const ao="CreateActivationRequest";const co="CreateActivationResult";const lo="CreateAssociationRequest";const uo="CreateAssociationResult";const po="CreateActivation";const mo="CreateAssociation";const fo="CutoffBehavior";const ho="CreatedBy";const go="CompletedCount";const yo="CancelCommandRequest";const So="CancelCommandResult";const Eo="CancelCommand";const vo="ClientContext";const Co="CompliantCount";const Io="CriticalCount";const bo="CreatedDate";const Ao="CreateDocumentRequest";const wo="CreateDocumentResult";const Ro="ChangeDetails";const To="CreationDate";const Po="CreateDocument";const xo="CategoryEnum";const _o="ComplianceExecutionSummary";const Oo="CommandFilter";const Do="CommandFilterList";const Mo="ComplianceFilter";const $o="ContentHash";const No="CommandId";const ko="ComplianceItemEntry";const Lo="ComplianceItemEntryList";const Uo="CommandInvocationList";const Fo="ComplianceItemList";const qo="CommandInvocation";const jo="ComplianceItem";const Bo="CommandInvocations";const Go="ComplianceItems";const zo="ComplianceLevel";const Ho="CommandList";const Vo="CreateMaintenanceWindow";const Wo="CancelMaintenanceWindowExecution";const Ko="CancelMaintenanceWindowExecutionRequest";const Yo="CancelMaintenanceWindowExecutionResult";const Qo="CreateMaintenanceWindowRequest";const Jo="CreateMaintenanceWindowResult";const Xo="CalendarNames";const Zo="CriticalNonCompliantCount";const ei="ComputerName";const ti="CreateOpsItem";const ni="CreateOpsItemRequest";const ri="CreateOpsItemResponse";const oi="CreateOpsMetadata";const ii="CreateOpsMetadataRequest";const si="CreateOpsMetadataResult";const ai="CommandPlugins";const ci="CreatePatchBaseline";const li="CreatePatchBaselineRequest";const ui="CreatePatchBaselineResult";const di="CommandPluginList";const pi="CommandPlugin";const mi="CreateResourceDataSync";const fi="CreateResourceDataSyncRequest";const hi="CreateResourceDataSyncResult";const gi="ChangeRequestName";const yi="ComplianceSeverity";const Si="CustomSchemaCountLimitExceededException";const Ei="ComplianceStringFilter";const vi="ComplianceStringFilterList";const Ci="ComplianceStringFilterValueList";const Ii="ComplianceSummaryItem";const bi="ComplianceSummaryItemList";const Ai="ComplianceSummaryItems";const wi="CurrentStepName";const Ri="CancelledSteps";const Ti="CompliantSummary";const Pi="CreatedTime";const xi="ComplianceTypeCountLimitExceededException";const _i="CaptureTime";const Oi="ClientToken";const Di="ComplianceType";const Mi="CreateTime";const $i="ContentUrl";const Ni="CVEIds";const ki="CloudWatchLogGroupName";const Li="CloudWatchOutputConfig";const Ui="CloudWatchOutputEnabled";const Fi="CloudWatchOutputUrl";const qi="Category";const ji="Classification";const Bi="Comment";const Gi="Commands";const zi="Content";const Hi="Configuration";const Vi="Context";const Wi="Count";const Ki="Credentials";const Yi="Cutoff";const Qi="Description";const Ji="DeleteActivation";const Xi="DocumentAlreadyExists";const Zi="DescribeAssociationExecutionsRequest";const es="DescribeAssociationExecutionsResult";const ts="DescribeAutomationExecutionsRequest";const ns="DescribeAutomationExecutionsResult";const rs="DescribeAssociationExecutionTargets";const os="DescribeAssociationExecutionTargetsRequest";const is="DescribeAssociationExecutionTargetsResult";const ss="DescribeAssociationExecutions";const as="DescribeAutomationExecutions";const cs="DescribeActivationsFilter";const ls="DescribeActivationsFilterList";const us="DescribeAvailablePatches";const ds="DescribeAvailablePatchesRequest";const ps="DescribeAvailablePatchesResult";const ms="DeleteActivationRequest";const fs="DeleteActivationResult";const hs="DeleteAssociationRequest";const gs="DeleteAssociationResult";const ys="DescribeActivationsRequest";const Ss="DescribeActivationsResult";const Es="DescribeAssociationRequest";const vs="DescribeAssociationResult";const Cs="DescribeAutomationStepExecutions";const Is="DescribeAutomationStepExecutionsRequest";const bs="DescribeAutomationStepExecutionsResult";const As="DeleteAssociation";const ws="DescribeActivations";const Rs="DescribeAssociation";const Ts="DefaultBaseline";const Ps="DocumentDescription";const xs="DuplicateDocumentContent";const _s="DescribeDocumentPermission";const Os="DescribeDocumentPermissionRequest";const Ds="DescribeDocumentPermissionResponse";const Ms="DeleteDocumentRequest";const $s="DeleteDocumentResult";const Ns="DescribeDocumentRequest";const ks="DescribeDocumentResult";const Ls="DestinationDataSharing";const Us="DestinationDataSharingType";const Fs="DocumentDefaultVersionDescription";const qs="DuplicateDocumentVersionName";const js="DeleteDocument";const Bs="DescribeDocument";const Gs="DescribeEffectiveInstanceAssociations";const zs="DescribeEffectiveInstanceAssociationsRequest";const Hs="DescribeEffectiveInstanceAssociationsResult";const Vs="DescribeEffectivePatchesForPatchBaseline";const Ws="DescribeEffectivePatchesForPatchBaselineRequest";const Ks="DescribeEffectivePatchesForPatchBaselineResult";const Ys="DocumentFormat";const Qs="DocumentFilterList";const Js="DocumentFilter";const Xs="DocumentHash";const Zs="DocumentHashType";const ea="DeletionId";const ta="DescribeInstanceAssociationsStatus";const na="DescribeInstanceAssociationsStatusRequest";const ra="DescribeInstanceAssociationsStatusResult";const oa="DescribeInventoryDeletions";const ia="DescribeInventoryDeletionsRequest";const sa="DescribeInventoryDeletionsResult";const aa="DuplicateInstanceId";const ca="DescribeInstanceInformationRequest";const la="DescribeInstanceInformationResult";const ua="DescribeInstanceInformation";const da="DocumentIdentifierList";const pa="DefaultInstanceName";const ma="DescribeInstancePatches";const fa="DescribeInstancePatchesRequest";const ha="DescribeInstancePatchesResult";const ga="DescribeInstancePropertiesRequest";const ya="DescribeInstancePropertiesResult";const Sa="DescribeInstancePatchStates";const Ea="DescribeInstancePatchStatesForPatchGroup";const va="DescribeInstancePatchStatesForPatchGroupRequest";const Ca="DescribeInstancePatchStatesForPatchGroupResult";const Ia="DescribeInstancePatchStatesRequest";const ba="DescribeInstancePatchStatesResult";const Aa="DescribeInstanceProperties";const wa="DeleteInventoryRequest";const Ra="DeleteInventoryResult";const Ta="DeleteInventory";const Pa="DocumentIdentifier";const xa="DocumentIdentifiers";const _a="DocumentKeyValuesFilter";const Oa="DocumentKeyValuesFilterList";const Da="DocumentLimitExceeded";const Ma="DeregisterManagedInstance";const $a="DeregisterManagedInstanceRequest";const Na="DeregisterManagedInstanceResult";const ka="DocumentMetadataResponseInfo";const La="DeleteMaintenanceWindow";const Ua="DescribeMaintenanceWindowExecutions";const Fa="DescribeMaintenanceWindowExecutionsRequest";const qa="DescribeMaintenanceWindowExecutionsResult";const ja="DescribeMaintenanceWindowExecutionTasks";const Ba="DescribeMaintenanceWindowExecutionTaskInvocations";const Ga="DescribeMaintenanceWindowExecutionTaskInvocationsRequest";const za="DescribeMaintenanceWindowExecutionTaskInvocationsResult";const Ha="DescribeMaintenanceWindowExecutionTasksRequest";const Va="DescribeMaintenanceWindowExecutionTasksResult";const Wa="DescribeMaintenanceWindowsForTarget";const Ka="DescribeMaintenanceWindowsForTargetRequest";const Ya="DescribeMaintenanceWindowsForTargetResult";const Qa="DeleteMaintenanceWindowRequest";const Ja="DeleteMaintenanceWindowResult";const Xa="DescribeMaintenanceWindowsRequest";const Za="DescribeMaintenanceWindowsResult";const ec="DescribeMaintenanceWindowSchedule";const tc="DescribeMaintenanceWindowScheduleRequest";const nc="DescribeMaintenanceWindowScheduleResult";const rc="DescribeMaintenanceWindowTargets";const oc="DescribeMaintenanceWindowTargetsRequest";const ic="DescribeMaintenanceWindowTargetsResult";const sc="DescribeMaintenanceWindowTasksRequest";const ac="DescribeMaintenanceWindowTasksResult";const cc="DescribeMaintenanceWindowTasks";const lc="DescribeMaintenanceWindows";const uc="DocumentName";const dc="DoesNotExistException";const pc="DisplayName";const mc="DeleteOpsItem";const fc="DeleteOpsItemRequest";const hc="DisassociateOpsItemRelatedItem";const gc="DisassociateOpsItemRelatedItemRequest";const yc="DisassociateOpsItemRelatedItemResponse";const Sc="DeleteOpsItemResponse";const Ec="DescribeOpsItemsRequest";const vc="DescribeOpsItemsResponse";const Cc="DescribeOpsItems";const Ic="DeleteOpsMetadata";const bc="DeleteOpsMetadataRequest";const Ac="DeleteOpsMetadataResult";const wc="DeletedParameters";const Rc="DeletePatchBaseline";const Tc="DeregisterPatchBaselineForPatchGroup";const Pc="DeregisterPatchBaselineForPatchGroupRequest";const xc="DeregisterPatchBaselineForPatchGroupResult";const _c="DeletePatchBaselineRequest";const Oc="DeletePatchBaselineResult";const Dc="DescribePatchBaselinesRequest";const Mc="DescribePatchBaselinesResult";const $c="DescribePatchBaselines";const Nc="DescribePatchGroups";const kc="DescribePatchGroupsRequest";const Lc="DescribePatchGroupsResult";const Uc="DescribePatchGroupState";const Fc="DescribePatchGroupStateRequest";const qc="DescribePatchGroupStateResult";const jc="DocumentPermissionLimit";const Bc="DocumentParameterList";const Gc="DescribePatchProperties";const zc="DescribePatchPropertiesRequest";const Hc="DescribePatchPropertiesResult";const Vc="DeleteParameterRequest";const Wc="DeleteParameterResult";const Kc="DeleteParametersRequest";const Yc="DeleteParametersResult";const Qc="DescribeParametersRequest";const Jc="DescribeParametersResult";const Xc="DeleteParameter";const Zc="DeleteParameters";const el="DescribeParameters";const tl="DocumentParameter";const nl="DryRun";const rl="DocumentReviewCommentList";const ol="DocumentReviewCommentSource";const il="DeleteResourceDataSync";const sl="DeleteResourceDataSyncRequest";const al="DeleteResourceDataSyncResult";const cl="DocumentRequiresList";const ll="DeleteResourcePolicy";const ul="DeleteResourcePolicyRequest";const dl="DeleteResourcePolicyResponse";const pl="DocumentReviewerResponseList";const ml="DocumentReviewerResponseSource";const fl="DocumentRequires";const hl="DocumentReviews";const gl="DetailedStatus";const yl="DescribeSessionsRequest";const Sl="DescribeSessionsResponse";const El="DeletionStartTime";const vl="DeletionSummary";const Cl="DeploymentStatus";const Il="DescribeSessions";const bl="DocumentType";const Al="DeregisterTargetFromMaintenanceWindow";const wl="DeregisterTargetFromMaintenanceWindowRequest";const Rl="DeregisterTargetFromMaintenanceWindowResult";const Tl="DeregisterTaskFromMaintenanceWindowRequest";const Pl="DeregisterTaskFromMaintenanceWindowResult";const xl="DeregisterTaskFromMaintenanceWindow";const _l="DeliveryTimedOutCount";const Ol="DataType";const Dl="DetailType";const Ml="DocumentVersion";const $l="DocumentVersionInfo";const Nl="DocumentVersionList";const kl="DocumentVersionLimitExceeded";const Ll="DefaultVersionName";const Ul="DefaultVersion";const Fl="DefaultValue";const ql="DocumentVersions";const jl="Date";const Bl="Data";const Gl="Details";const zl="Detail";const Hl="Document";const Vl="Duration";const Wl="Expired";const Kl="ExpiresAfter";const Yl="EnableAllOpsDataSources";const Ql="EndedAt";const Jl="ExcludeAccounts";const Xl="ExecutedBy";const Zl="ErrorCount";const eu="ErrorCode";const tu="ExpirationDate";const nu="EndDate";const ru="ExecutionDate";const ou="ExecutionEndDateTime";const iu="ExecutionEndTime";const su="ExecutionElapsedTime";const au="ExecutionId";const cu="EventId";const lu="ExecutionInputs";const uu="EnableNonSecurity";const du="EffectivePatches";const pu="ExecutionPreviewId";const mu="EffectivePatchList";const fu="EffectivePatch";const hu="ExecutionPreview";const gu="ExecutionRoleName";const yu="ExecutionSummary";const Su="ExecutionStartDateTime";const Eu="ExecutionStartTime";const vu="ExecutionTime";const Cu="EndTime";const Iu="ExecutionType";const bu="ExpirationTime";const Au="Entries";const wu="Enabled";const Ru="Entry";const Tu="Entities";const Pu="Entity";const xu="Epoch";const _u="Expression";const Ou="Failed";const Du="FailedCount";const Mu="FailedCreateAssociation";const $u="FailedCreateAssociationEntry";const Nu="FailedCreateAssociationList";const ku="FailureDetails";const Lu="FilterKey";const Uu="FailureMessage";const Fu="FeatureNotAvailableException";const qu="FailureStage";const ju="FailedSteps";const Bu="FailureType";const Gu="FilterValues";const zu="FilterValue";const Hu="FiltersWithOperator";const Vu="Fault";const Wu="Filters";const Ku="Force";const Yu="Groups";const Qu="GetAutomationExecution";const Ju="GetAutomationExecutionRequest";const Xu="GetAutomationExecutionResult";const Zu="GetAccessToken";const ed="GetAccessTokenRequest";const td="GetAccessTokenResponse";const nd="GetCommandInvocation";const rd="GetCommandInvocationRequest";const od="GetCommandInvocationResult";const id="GetCalendarState";const sd="GetCalendarStateRequest";const ad="GetCalendarStateResponse";const cd="GetConnectionStatusRequest";const ld="GetConnectionStatusResponse";const ud="GetConnectionStatus";const dd="GetDocument";const pd="GetDefaultPatchBaseline";const md="GetDefaultPatchBaselineRequest";const fd="GetDefaultPatchBaselineResult";const hd="GetDeployablePatchSnapshotForInstance";const gd="GetDeployablePatchSnapshotForInstanceRequest";const yd="GetDeployablePatchSnapshotForInstanceResult";const Sd="GetDocumentRequest";const Ed="GetDocumentResult";const vd="GetExecutionPreview";const Cd="GetExecutionPreviewRequest";const Id="GetExecutionPreviewResponse";const bd="GlobalFilters";const Ad="GetInventory";const wd="GetInventoryRequest";const Rd="GetInventoryResult";const Td="GetInventorySchema";const Pd="GetInventorySchemaRequest";const xd="GetInventorySchemaResult";const _d="GetMaintenanceWindow";const Od="GetMaintenanceWindowExecution";const Dd="GetMaintenanceWindowExecutionRequest";const Md="GetMaintenanceWindowExecutionResult";const $d="GetMaintenanceWindowExecutionTask";const Nd="GetMaintenanceWindowExecutionTaskInvocation";const kd="GetMaintenanceWindowExecutionTaskInvocationRequest";const Ld="GetMaintenanceWindowExecutionTaskInvocationResult";const Ud="GetMaintenanceWindowExecutionTaskRequest";const Fd="GetMaintenanceWindowExecutionTaskResult";const qd="GetMaintenanceWindowRequest";const jd="GetMaintenanceWindowResult";const Bd="GetMaintenanceWindowTask";const Gd="GetMaintenanceWindowTaskRequest";const zd="GetMaintenanceWindowTaskResult";const Hd="GetOpsItem";const Vd="GetOpsItemRequest";const Wd="GetOpsItemResponse";const Kd="GetOpsMetadata";const Yd="GetOpsMetadataRequest";const Qd="GetOpsMetadataResult";const Jd="GetOpsSummary";const Xd="GetOpsSummaryRequest";const Zd="GetOpsSummaryResult";const ep="GetParameter";const tp="GetPatchBaseline";const np="GetPatchBaselineForPatchGroup";const rp="GetPatchBaselineForPatchGroupRequest";const ip="GetPatchBaselineForPatchGroupResult";const sp="GetParametersByPath";const ap="GetParametersByPathRequest";const cp="GetParametersByPathResult";const lp="GetPatchBaselineRequest";const up="GetPatchBaselineResult";const dp="GetParameterHistory";const pp="GetParameterHistoryRequest";const mp="GetParameterHistoryResult";const fp="GetParameterRequest";const hp="GetParameterResult";const gp="GetParametersRequest";const yp="GetParametersResult";const Sp="GetParameters";const Ep="GetResourcePolicies";const vp="GetResourcePoliciesRequest";const Cp="GetResourcePoliciesResponseEntry";const Ip="GetResourcePoliciesResponseEntries";const bp="GetResourcePoliciesResponse";const Ap="GetServiceSetting";const wp="GetServiceSettingRequest";const Rp="GetServiceSettingResult";const Tp="Hash";const Pp="HighCount";const xp="HierarchyLevelLimitExceededException";const _p="HashType";const Op="HierarchyTypeMismatchException";const Dp="Id";const Mp="InvalidActivation";const $p="InstanceAggregatedAssociationOverview";const Np="InvalidAggregatorException";const kp="InvalidAutomationExecutionParametersException";const Lp="InvalidActivationId";const Up="InstanceAssociationList";const Fp="InventoryAggregatorList";const qp="InstanceAssociationOutputLocation";const jp="InstanceAssociationOutputUrl";const Bp="InvalidAllowedPatternException";const Gp="InstanceAssociationStatusAggregatedCount";const zp="InvalidAutomationSignalException";const Hp="InstanceAssociationStatusInfos";const Vp="InstanceAssociationStatusInfo";const Wp="InvalidAutomationStatusUpdateException";const Kp="InvalidAssociationVersion";const Yp="InvalidAssociation";const Qp="InstanceAssociation";const Jp="InventoryAggregator";const Xp="IpAddress";const Zp="InstalledCount";const em="ItemContentHash";const tm="InvalidCommandId";const nm="ItemContentMismatchException";const rm="IncludeChildOrganizationUnits";const om="InformationalCount";const im="IsCritical";const sm="InvalidDocument";const am="InvalidDocumentContent";const cm="InvalidDeletionIdException";const lm="InvalidDeleteInventoryParametersException";const um="InventoryDeletionsList";const dm="InvocationDoesNotExist";const pm="InvalidDocumentOperation";const mm="InventoryDeletionSummary";const fm="InventoryDeletionStatusItem";const hm="InventoryDeletionSummaryItem";const gm="InventoryDeletionSummaryItems";const ym="InvalidDocumentSchemaVersion";const Sm="InvalidDocumentType";const Em="InvalidDocumentVersion";const vm="IsDefaultVersion";const Cm="InventoryDeletions";const Im="IsEnd";const bm="InvalidFilter";const Am="InvalidFilterKey";const wm="InventoryFilterList";const Rm="InvalidFilterOption";const Tm="IncludeFutureRegions";const Pm="InvalidFilterValue";const xm="InventoryFilterValueList";const _m="InventoryFilter";const Om="InventoryGroup";const Dm="InventoryGroupList";const Mm="InstanceId";const $m="InventoryItemAttribute";const Nm="InventoryItemAttributeList";const km="InvalidItemContentException";const Lm="InventoryItemEntryList";const Um="InstanceInformationFilter";const Fm="InstanceInformationFilterList";const qm="InstanceInformationFilterValue";const jm="InstanceInformationFilterValueSet";const Bm="InvalidInventoryGroupException";const Gm="InvalidInstanceId";const zm="InvalidInventoryItemContextException";const Hm="InvalidInstanceInformationFilterValue";const Vm="InstanceInformationList";const Wm="InventoryItemList";const Km="InvalidInstancePropertyFilterValue";const Ym="InvalidInventoryRequestException";const Qm="InventoryItemSchema";const Jm="InstanceInformationStringFilter";const Xm="InstanceInformationStringFilterList";const Zm="InventoryItemSchemaResultList";const ef="InstanceIds";const tf="InstanceInfo";const nf="InstanceInformation";const rf="InvocationId";const of="InventoryItem";const sf="InvalidKeyId";const af="InvalidLabels";const cf="IsLatestVersion";const lf="InstanceName";const uf="InvalidNotificationConfig";const df="InvalidNextToken";const pf="InstalledOtherCount";const mf="InvalidOptionException";const ff="InvalidOutputFolder";const hf="InvalidOutputLocation";const gf="InstallOverrideList";const yf="InvalidParameters";const Sf="IPAddress";const Ef="InvalidPolicyAttributeException";const vf="IgnorePollAlarmFailure";const Cf="IncompatiblePolicyException";const If="InstancePropertyFilter";const bf="InstancePropertyFilterList";const Af="InstancePropertyFilterValue";const wf="InstancePropertyFilterValueSet";const Rf="IdempotentParameterMismatch";const Tf="InvalidPluginName";const Pf="InstalledPendingRebootCount";const xf="InstancePatchStates";const _f="InstancePatchStateFilter";const Of="InstancePatchStateFilterList";const Df="InstancePropertyStringFilterList";const Mf="InstancePropertyStringFilter";const $f="InstancePatchStateList";const Nf="InstancePatchStatesList";const kf="InstancePatchState";const Lf="InvalidPermissionType";const Uf="InvalidPolicyTypeException";const Ff="InstanceProperties";const qf="InstanceProperty";const jf="InvalidRole";const Bf="InvalidResultAttributeException";const Gf="InstalledRejectedCount";const zf="InventoryResultEntity";const Hf="InventoryResultEntityList";const Vf="InvalidResourceId";const Wf="InventoryResultItemMap";const Kf="InventoryResultItem";const Yf="InvalidResourceType";const Qf="IamRole";const Jf="InstanceRole";const Xf="InvalidSchedule";const Zf="InternalServerError";const eh="ItemSizeLimitExceededException";const th="InstanceStatus";const nh="InstanceState";const rh="InvalidTag";const oh="InvalidTargetMaps";const ih="InvalidTypeNameException";const sh="InvalidTarget";const ah="InstanceType";const ch="InstalledTime";const lh="InvalidUpdate";const uh="IteratorValue";const dh="InstancesWithAvailableSecurityUpdates";const ph="InstancesWithCriticalNonCompliantPatches";const mh="InstancesWithFailedPatches";const fh="InstancesWithInstalledOtherPatches";const hh="InstancesWithInstalledPatches";const gh="InstancesWithInstalledPendingRebootPatches";const yh="InstancesWithInstalledRejectedPatches";const Sh="InstancesWithMissingPatches";const Eh="InstancesWithNotApplicablePatches";const vh="InstancesWithOtherNonCompliantPatches";const Ch="InstancesWithSecurityNonCompliantPatches";const Ih="InstancesWithUnreportedNotApplicablePatches";const bh="Instances";const Ah="Input";const wh="Inputs";const Rh="Instance";const Th="Iteration";const Ph="Items";const xh="Item";const _h="Key";const Oh="KBId";const Dh="KeyId";const Mh="KeyName";const $h="KbNumber";const Nh="KeysToDelete";const kh="Limit";const Lh="ListAssociations";const Uh="LastAssociationExecutionDate";const Fh="ListAssociationsRequest";const qh="ListAssociationsResult";const jh="ListAssociationVersions";const Bh="ListAssociationVersionsRequest";const Gh="ListAssociationVersionsResult";const zh="LowCount";const Hh="ListCommandInvocations";const Vh="ListCommandInvocationsRequest";const Wh="ListCommandInvocationsResult";const Kh="ListComplianceItemsRequest";const Yh="ListComplianceItemsResult";const Qh="ListComplianceItems";const Jh="ListCommandsRequest";const Xh="ListCommandsResult";const Zh="ListComplianceSummaries";const eg="ListComplianceSummariesRequest";const tg="ListComplianceSummariesResult";const ng="ListCommands";const rg="ListDocuments";const og="ListDocumentMetadataHistory";const ig="ListDocumentMetadataHistoryRequest";const sg="ListDocumentMetadataHistoryResponse";const ag="ListDocumentsRequest";const cg="ListDocumentsResult";const lg="ListDocumentVersions";const ug="ListDocumentVersionsRequest";const dg="ListDocumentVersionsResult";const pg="LastExecutionDate";const mg="LogFile";const fg="LoggingInfo";const hg="ListInventoryEntries";const gg="ListInventoryEntriesRequest";const yg="ListInventoryEntriesResult";const Sg="LastModifiedBy";const Eg="LastModifiedDate";const vg="LastModifiedTime";const Cg="LastModifiedUser";const Ig="ListNodes";const bg="ListNodesRequest";const Ag="LastNoRebootInstallOperationTime";const wg="ListNodesResult";const Rg="ListNodesSummary";const Tg="ListNodesSummaryRequest";const Pg="ListNodesSummaryResult";const xg="ListOpsItemEvents";const _g="ListOpsItemEventsRequest";const Og="ListOpsItemEventsResponse";const Dg="ListOpsItemRelatedItems";const Mg="ListOpsItemRelatedItemsRequest";const $g="ListOpsItemRelatedItemsResponse";const Ng="ListOpsMetadata";const kg="ListOpsMetadataRequest";const Lg="ListOpsMetadataResult";const Ug="LastPingDateTime";const Fg="LabelParameterVersion";const qg="LabelParameterVersionRequest";const jg="LabelParameterVersionResult";const Bg="ListResourceComplianceSummaries";const Gg="ListResourceComplianceSummariesRequest";const zg="ListResourceComplianceSummariesResult";const Hg="ListResourceDataSync";const Vg="ListResourceDataSyncRequest";const Wg="ListResourceDataSyncResult";const Kg="LastStatus";const Yg="LastSuccessfulAssociationExecutionDate";const Qg="LastSuccessfulExecutionDate";const Jg="LastStatusMessage";const Xg="LastSyncStatusMessage";const Zg="LastSuccessfulSyncTime";const ey="LastSyncTime";const ty="LastStatusUpdateTime";const ny="LimitType";const ry="ListTagsForResource";const oy="ListTagsForResourceRequest";const iy="ListTagsForResourceResult";const sy="LaunchTime";const ay="LastUpdateAssociationDate";const cy="LatestVersion";const ly="Labels";const uy="Lambda";const dy="Language";const py="Message";const my="MaxAttempts";const fy="MaxConcurrency";const hy="MediumCount";const gy="MissingCount";const yy="ModifiedDate";const Sy="ModifyDocumentPermission";const Ey="ModifyDocumentPermissionRequest";const vy="ModifyDocumentPermissionResponse";const Cy="MaxDocumentSizeExceeded";const Iy="MaxErrors";const by="MetadataMap";const Ay="MsrcNumber";const wy="MaxResults";const Ry="MalformedResourcePolicyDocumentException";const Ty="ManagedStatus";const Py="MaxSessionDuration";const xy="MsrcSeverity";const _y="MetadataToUpdate";const Oy="MetadataValue";const Dy="MaintenanceWindowAutomationParameters";const My="MaintenanceWindowDescription";const $y="MaintenanceWindowExecution";const Ny="MaintenanceWindowExecutionList";const ky="MaintenanceWindowExecutionTaskIdentity";const Ly="MaintenanceWindowExecutionTaskInvocationIdentity";const Uy="MaintenanceWindowExecutionTaskInvocationIdentityList";const Fy="MaintenanceWindowExecutionTaskIdentityList";const qy="MaintenanceWindowExecutionTaskInvocationParameters";const jy="MaintenanceWindowFilter";const By="MaintenanceWindowFilterList";const Gy="MaintenanceWindowsForTargetList";const zy="MaintenanceWindowIdentity";const Hy="MaintenanceWindowIdentityForTarget";const Vy="MaintenanceWindowIdentityList";const Wy="MaintenanceWindowLambdaPayload";const Ky="MaintenanceWindowLambdaParameters";const Yy="MaintenanceWindowRunCommandParameters";const Qy="MaintenanceWindowStepFunctionsInput";const Jy="MaintenanceWindowStepFunctionsParameters";const Xy="MaintenanceWindowTarget";const Zy="MaintenanceWindowTaskInvocationParameters";const eS="MaintenanceWindowTargetList";const tS="MaintenanceWindowTaskList";const nS="MaintenanceWindowTaskParameters";const rS="MaintenanceWindowTaskParametersList";const oS="MaintenanceWindowTaskParameterValue";const iS="MaintenanceWindowTaskParameterValueExpression";const sS="MaintenanceWindowTaskParameterValueList";const aS="MaintenanceWindowTask";const cS="Mappings";const lS="Metadata";const uS="Mode";const dS="Name";const pS="NodeAggregator";const mS="NotApplicableCount";const fS="NodeAggregatorList";const hS="NotificationArn";const gS="NotificationConfig";const yS="NonCompliantCount";const SS="NonCompliantSummary";const ES="NotificationEvents";const vS="NextExecutionTime";const CS="NodeFilter";const IS="NodeFilterList";const bS="NodeFilterValueList";const AS="NodeList";const wS="NoLongerSupportedException";const RS="NodeOwnerInfo";const TS="NextStep";const PS="NodeSummaryList";const xS="NextToken";const _S="NextTransitionTime";const OS="NodeType";const DS="NotificationType";const MS="Names";const $S="Notifications";const NS="Nodes";const kS="Node";const LS="Overview";const US="OpsAggregator";const FS="OpsAggregatorList";const qS="OperationalData";const jS="OperationalDataToDelete";const BS="OpsEntity";const GS="OpsEntityItem";const zS="OpsEntityItemEntryList";const HS="OpsEntityItemMap";const VS="OpsEntityList";const WS="OperationEndTime";const KS="OpsFilter";const YS="OpsFilterList";const QS="OpsFilterValueList";const JS="OnFailure";const XS="OwnerInformation";const ZS="OpsItemArn";const eE="OpsItemAccessDeniedException";const tE="OpsItemAlreadyExistsException";const nE="OpsItemConflictException";const rE="OpsItemDataValue";const oE="OpsItemEventFilter";const iE="OpsItemEventFilters";const sE="OpsItemEventSummary";const aE="OpsItemEventSummaries";const cE="OpsItemFilters";const lE="OpsItemFilter";const uE="OpsItemId";const dE="OpsItemInvalidParameterException";const pE="OpsItemIdentity";const mE="OpsItemLimitExceededException";const fE="OpsItemNotification";const hE="OpsItemNotFoundException";const gE="OpsItemNotifications";const yE="OpsItemOperationalData";const SE="OpsItemRelatedItemAlreadyExistsException";const EE="OpsItemRelatedItemAssociationNotFoundException";const vE="OpsItemRelatedItemsFilter";const CE="OpsItemRelatedItemsFilters";const IE="OpsItemRelatedItemSummary";const bE="OpsItemRelatedItemSummaries";const AE="OpsItemSummaries";const wE="OpsItemSummary";const RE="OpsItemType";const TE="OpsItem";const PE="OutputLocation";const xE="OpsMetadata";const _E="OpsMetadataArn";const OE="OpsMetadataAlreadyExistsException";const DE="OpsMetadataFilter";const ME="OpsMetadataFilterList";const $E="OpsMetadataInvalidArgumentException";const NE="OpsMetadataKeyLimitExceededException";const kE="OpsMetadataList";const LE="OpsMetadataLimitExceededException";const UE="OpsMetadataNotFoundException";const FE="OpsMetadataTooManyUpdatesException";const qE="OtherNonCompliantCount";const jE="OverriddenParameters";const BE="OpsResultAttribute";const GE="OpsResultAttributeList";const zE="OutputSource";const HE="OutputS3BucketName";const VE="OutputSourceId";const WE="OutputS3KeyPrefix";const KE="OutputS3Region";const YE="OperationStartTime";const QE="OrganizationSourceType";const JE="OutputSourceType";const XE="OperatingSystem";const ZE="OverallSeverity";const ev="OutputUrl";const tv="OrganizationalUnitId";const rv="OrganizationalUnitPath";const ov="OrganizationalUnits";const iv="Operation";const sv="Operator";const av="Option";const cv="Outputs";const lv="Output";const uv="Overwrite";const dv="Owner";const pv="Parameters";const mv="ParameterAlreadyExists";const fv="ParentAutomationExecutionId";const hv="PatchBaselineIdentity";const gv="PatchBaselineIdentityList";const yv="ProgressCounters";const Sv="PatchComplianceData";const Ev="PatchComplianceDataList";const vv="PutComplianceItems";const Cv="PutComplianceItemsRequest";const Iv="PutComplianceItemsResult";const bv="PlannedEndTime";const Av="ParameterFilters";const wv="PatchFilterGroup";const Rv="ParametersFilterList";const Tv="PatchFilterList";const Pv="ParametersFilter";const xv="PatchFilter";const _v="PatchFilters";const Ov="ProductFamily";const Dv="PatchGroup";const Mv="PatchGroupPatchBaselineMapping";const $v="PatchGroupPatchBaselineMappingList";const Nv="PatchGroups";const kv="PolicyHash";const Lv="ParameterHistoryList";const Uv="ParameterHistory";const Fv="PolicyId";const qv="ParameterInlinePolicy";const jv="PutInventoryRequest";const Bv="PutInventoryResult";const Gv="PutInventory";const zv="ParameterList";const Hv="ParameterLimitExceeded";const Vv="PoliciesLimitExceededException";const Wv="PatchList";const Kv="ParameterMetadata";const Yv="ParameterMetadataList";const Qv="ParameterMaxVersionLimitExceeded";const Jv="ParameterNames";const Xv="ParameterNotFound";const Zv="PluginName";const eC="PlatformName";const tC="PatchOrchestratorFilter";const nC="PatchOrchestratorFilterList";const rC="PutParameter";const oC="PatchPropertiesList";const iC="ParameterPolicyList";const sC="ParameterPatternMismatchException";const aC="PutParameterRequest";const cC="PutParameterResult";const lC="PatchRule";const uC="PatchRuleGroup";const dC="PatchRuleList";const pC="PutResourcePolicy";const mC="PutResourcePolicyRequest";const fC="PutResourcePolicyResponse";const hC="PendingReviewVersion";const gC="PatchRules";const yC="PatchSet";const SC="PatchSourceConfiguration";const EC="ParentStepDetails";const vC="ParameterStringFilter";const CC="ParameterStringFilterList";const IC="PatchSourceList";const bC="PSParameterValue";const AC="PlannedStartTime";const wC="PatchStatus";const RC="PatchSource";const TC="PingStatus";const PC="PolicyStatus";const xC="PermissionType";const _C="PlatformTypeList";const OC="PlatformTypes";const DC="PlatformType";const MC="PolicyText";const $C="PolicyType";const NC="PlatformVersion";const kC="ParameterVersionLabelLimitExceeded";const LC="ParameterVersionNotFound";const UC="ParameterVersion";const FC="ParameterValues";const qC="Patches";const jC="Parameter";const BC="Patch";const GC="Path";const zC="Payload";const HC="Policies";const VC="Policy";const WC="Priority";const KC="Prefix";const YC="Property";const QC="Product";const JC="Products";const XC="Properties";const ZC="Qualifier";const eI="QuotaCode";const tI="Runbooks";const nI="ResourceArn";const rI="ResultAttributeList";const oI="ResultAttributes";const iI="ResultAttribute";const sI="ReasonCode";const aI="ResourceCountByStatus";const cI="ResourceComplianceSummaryItems";const lI="ResourceComplianceSummaryItemList";const uI="ResourceComplianceSummaryItem";const dI="RegistrationsCount";const pI="RemainingCount";const mI="ResponseCode";const fI="RunCommand";const hI="RegistrationDate";const gI="RegisterDefaultPatchBaseline";const yI="RegisterDefaultPatchBaselineRequest";const SI="RegisterDefaultPatchBaselineResult";const EI="ResourceDataSyncAlreadyExistsException";const vI="ResourceDataSyncAwsOrganizationsSource";const CI="ResourceDataSyncConflictException";const II="ResourceDataSyncCountExceededException";const bI="ResourceDataSyncDestinationDataSharing";const AI="ResourceDataSyncItems";const wI="ResourceDataSyncInvalidConfigurationException";const RI="ResourceDataSyncItemList";const TI="ResourceDataSyncItem";const PI="ResourceDataSyncNotFoundException";const xI="ResourceDataSyncOrganizationalUnit";const _I="ResourceDataSyncOrganizationalUnitList";const OI="ResourceDataSyncSource";const DI="ResourceDataSyncS3Destination";const MI="ResourceDataSyncSourceWithState";const $I="RequestedDateTime";const NI="ReleaseDate";const kI="ResponseFinishDateTime";const LI="ResourceId";const UI="ReviewInformationList";const FI="ResourceInUseException";const qI="ReviewInformation";const jI="ResourceIds";const BI="RegistrationLimit";const GI="ResourceLimitExceededException";const zI="RemovedLabels";const HI="RegistrationMetadata";const VI="RegistrationMetadataItem";const WI="RegistrationMetadataList";const KI="ResourceNotFoundException";const YI="ReverseOrder";const QI="RelatedOpsItems";const JI="RelatedOpsItem";const XI="RebootOption";const ZI="RejectedPatches";const eb="RejectedPatchesAction";const tb="RegisterPatchBaselineForPatchGroup";const nb="RegisterPatchBaselineForPatchGroupRequest";const rb="RegisterPatchBaselineForPatchGroupResult";const ob="ResourcePolicyConflictException";const ib="ResourcePolicyInvalidParameterException";const sb="ResourcePolicyLimitExceededException";const ab="ResourcePolicyNotFoundException";const cb="ReviewerResponse";const lb="ReviewStatus";const ub="ResponseStartDateTime";const db="ResumeSessionRequest";const pb="ResumeSessionResponse";const mb="ResetServiceSetting";const fb="ResetServiceSettingRequest";const hb="ResetServiceSettingResult";const gb="ResumeSession";const yb="ResourceTypes";const Sb="RemoveTagsFromResource";const Eb="RemoveTagsFromResourceRequest";const vb="RemoveTagsFromResourceResult";const Cb="RegisterTargetWithMaintenanceWindow";const Ib="RegisterTargetWithMaintenanceWindowRequest";const bb="RegisterTargetWithMaintenanceWindowResult";const Ab="RegisterTaskWithMaintenanceWindowRequest";const wb="RegisterTaskWithMaintenanceWindowResult";const Rb="RegisterTaskWithMaintenanceWindow";const Tb="ResourceType";const Pb="RequireType";const xb="ResolvedTargets";const _b="ReviewedTime";const Ob="ResourceUri";const Db="Regions";const Mb="Reason";const $b="Recursive";const Nb="Region";const kb="Release";const Lb="Repository";const Ub="Replace";const Fb="Requires";const qb="Response";const jb="Reviewer";const Bb="Runbook";const Gb="State";const zb="StartAutomationExecution";const Hb="StartAutomationExecutionRequest";const Vb="StartAutomationExecutionResult";const Wb="StopAutomationExecutionRequest";const Kb="StopAutomationExecutionResult";const Yb="StopAutomationExecution";const Qb="SecretAccessKey";const Jb="StartAssociationsOnce";const Xb="StartAssociationsOnceRequest";const Zb="StartAssociationsOnceResult";const eA="StartAccessRequest";const tA="StartAccessRequestRequest";const nA="StartAccessRequestResponse";const rA="SendAutomationSignal";const oA="SendAutomationSignalRequest";const iA="SendAutomationSignalResult";const sA="S3BucketName";const aA="ServiceCode";const cA="SendCommandRequest";const lA="StartChangeRequestExecution";const uA="StartChangeRequestExecutionRequest";const dA="StartChangeRequestExecutionResult";const pA="SendCommandResult";const mA="SyncCreatedTime";const fA="SendCommand";const hA="SyncCompliance";const gA="StatusDetails";const yA="SchemaDeleteOption";const SA="SnapshotDownloadUrl";const EA="SharedDocumentVersion";const vA="S3Destination";const CA="StartDate";const IA="ScheduleExpression";const bA="StandardErrorContent";const AA="StepExecutionFilter";const wA="StepExecutionFilterList";const RA="StepExecutionId";const TA="StepExecutionList";const PA="StartExecutionPreview";const xA="StartExecutionPreviewRequest";const _A="StartExecutionPreviewResponse";const OA="StepExecutionsTruncated";const DA="ScheduledEndTime";const MA="StandardErrorUrl";const $A="StepExecutions";const NA="StepExecution";const kA="StepFunctions";const LA="SessionFilterList";const UA="SessionFilter";const FA="SyncFormat";const qA="StatusInformation";const jA="SettingId";const BA="SessionId";const GA="SnapshotId";const zA="SourceId";const HA="SummaryItems";const VA="S3KeyPrefix";const WA="S3Location";const KA="SyncLastModifiedTime";const YA="SessionList";const QA="StatusMessage";const JA="SessionManagerOutputUrl";const XA="SessionManagerParameters";const ZA="SyncName";const ew="SecurityNonCompliantCount";const tw="StepName";const nw="ScheduleOffset";const rw="StandardOutputContent";const ow="S3OutputLocation";const iw="StandardOutputUrl";const sw="S3OutputUrl";const aw="StepPreviews";const cw="ServiceQuotaExceededException";const lw="ServiceRole";const uw="ServiceRoleArn";const dw="S3Region";const pw="SourceResult";const mw="SourceRegions";const fw="SeveritySummary";const hw="ServiceSettingNotFound";const gw="StartSessionRequest";const yw="StartSessionResponse";const Sw="ServiceSetting";const Ew="StepStatus";const vw="StartSession";const Cw="SuccessSteps";const Iw="SyncSource";const bw="SyncType";const Aw="SubTypeCountLimitExceededException";const ww="SessionTokenType";const Rw="ScheduledTime";const Tw="ScheduleTimezone";const Pw="SessionToken";const xw="SignalType";const _w="SourceType";const Ow="StartTime";const Dw="SubType";const Mw="StatusUnchanged";const $w="StreamUrl";const Nw="SchemaVersion";const kw="SettingValue";const Lw="ScheduledWindowExecutions";const Uw="ScheduledWindowExecutionList";const Fw="ScheduledWindowExecution";const qw="Safe";const jw="Schedule";const Bw="Schemas";const Gw="Severity";const zw="Selector";const Hw="Sessions";const Vw="Session";const Ww="Shared";const Kw="Sha1";const Yw="Size";const Qw="Sources";const Jw="Source";const Xw="Status";const Zw="Successful";const eR="Summary";const tR="Summaries";const nR="Tags";const rR="TriggeredAlarms";const oR="TaskArn";const iR="TotalAccounts";const sR="TargetCount";const aR="TotalCount";const cR="ThrottlingException";const lR="TaskExecutionId";const uR="TaskId";const dR="TaskInvocationParameters";const pR="TargetInUseException";const mR="TaskIds";const fR="TagKeys";const hR="TargetLocations";const gR="TargetLocationAlarmConfiguration";const yR="TargetLocationMaxConcurrency";const SR="TargetLocationMaxErrors";const ER="TargetLocationsURL";const vR="TagList";const CR="TargetLocation";const IR="TargetMaps";const bR="TargetsMaxConcurrency";const AR="TargetsMaxErrors";const wR="TooManyTagsError";const RR="TooManyUpdates";const TR="TargetMap";const PR="TypeName";const xR="TargetNotConnected";const _R="TraceOutput";const OR="TimedOutSteps";const DR="TargetPreviews";const MR="TargetPreviewList";const $R="TargetParameterName";const NR="TaskParameters";const kR="TargetPreview";const LR="TimeoutSeconds";const UR="TotalSizeLimitExceededException";const FR="TerminateSessionRequest";const qR="TerminateSessionResponse";const jR="TerminateSession";const BR="TotalSteps";const GR="TargetType";const zR="TaskType";const HR="TokenValue";const VR="Targets";const WR="Tag";const KR="Target";const YR="Tasks";const QR="Title";const JR="Tier";const XR="Truncated";const ZR="Type";const eT="Url";const tT="UpdateAssociation";const nT="UpdateAssociationRequest";const rT="UpdateAssociationResult";const oT="UpdateAssociationStatus";const iT="UpdateAssociationStatusRequest";const sT="UpdateAssociationStatusResult";const aT="UnspecifiedCount";const cT="UnsupportedCalendarException";const lT="UpdateDocument";const uT="UpdateDocumentDefaultVersion";const dT="UpdateDocumentDefaultVersionRequest";const pT="UpdateDocumentDefaultVersionResult";const mT="UpdateDocumentMetadata";const fT="UpdateDocumentMetadataRequest";const hT="UpdateDocumentMetadataResponse";const gT="UpdateDocumentRequest";const yT="UpdateDocumentResult";const ST="UnsupportedFeatureRequiredException";const ET="UnsupportedInventoryItemContextException";const vT="UnsupportedInventorySchemaVersionException";const CT="UpdateManagedInstanceRole";const IT="UpdateManagedInstanceRoleRequest";const bT="UpdateManagedInstanceRoleResult";const AT="UpdateMaintenanceWindow";const wT="UpdateMaintenanceWindowRequest";const RT="UpdateMaintenanceWindowResult";const TT="UpdateMaintenanceWindowTarget";const PT="UpdateMaintenanceWindowTargetRequest";const xT="UpdateMaintenanceWindowTargetResult";const _T="UpdateMaintenanceWindowTaskRequest";const OT="UpdateMaintenanceWindowTaskResult";const DT="UpdateMaintenanceWindowTask";const MT="UnreportedNotApplicableCount";const $T="UnsupportedOperationException";const NT="UpdateOpsItem";const kT="UpdateOpsItemRequest";const LT="UpdateOpsItemResponse";const UT="UpdateOpsMetadata";const FT="UpdateOpsMetadataRequest";const qT="UpdateOpsMetadataResult";const jT="UnsupportedOperatingSystem";const BT="UpdatePatchBaseline";const GT="UpdatePatchBaselineRequest";const zT="UpdatePatchBaselineResult";const HT="UnsupportedParameterType";const VT="UnsupportedPlatformType";const WT="UnlabelParameterVersion";const KT="UnlabelParameterVersionRequest";const YT="UnlabelParameterVersionResult";const QT="UpdateResourceDataSync";const JT="UpdateResourceDataSyncRequest";const XT="UpdateResourceDataSyncResult";const ZT="UseS3DualStackEndpoint";const eP="UpdateServiceSetting";const tP="UpdateServiceSettingRequest";const nP="UpdateServiceSettingResult";const rP="UpdatedTime";const oP="UploadType";const iP="Value";const sP="ValidationException";const aP="VersionName";const cP="ValidNextSteps";const lP="Values";const uP="Variables";const dP="Version";const pP="Vendor";const mP="WithDecryption";const fP="WindowExecutions";const hP="WindowExecutionId";const gP="WindowExecutionTaskIdentities";const yP="WindowExecutionTaskInvocationIdentities";const SP="WindowId";const EP="WindowIdentities";const vP="WindowTargetId";const CP="WindowTaskId";const IP="awsQueryError";const bP="client";const AP="error";const wP="entries";const RP="key";const TP="message";const PP="smithy.ts.sdk.synthetic.com.amazonaws.ssm";const xP="server";const _P="value";const OP="valueSet";const DP="xmlName";const MP="com.amazonaws.ssm";const $P=h(2566);const NP=h(1198);const kP=h(9744);const LP=$P.TypeRegistry.for(PP);m.SSMServiceException$=[-3,PP,"SSMServiceException",0,[],[]];LP.registerError(m.SSMServiceException$,kP.SSMServiceException);const UP=$P.TypeRegistry.for(MP);m.AccessDeniedException$=[-3,MP,ze,{[AP]:bP},[py],[0],1];UP.registerError(m.AccessDeniedException$,NP.AccessDeniedException);m.AlreadyExistsException$=[-3,MP,Ut,{[IP]:[`AlreadyExistsException`,400],[AP]:bP},[py],[0]];UP.registerError(m.AlreadyExistsException$,NP.AlreadyExistsException);m.AssociatedInstances$=[-3,MP,mn,{[IP]:[`AssociatedInstances`,400],[AP]:bP},[],[]];UP.registerError(m.AssociatedInstances$,NP.AssociatedInstances);m.AssociationAlreadyExists$=[-3,MP,le,{[IP]:[`AssociationAlreadyExists`,400],[AP]:bP},[],[]];UP.registerError(m.AssociationAlreadyExists$,NP.AssociationAlreadyExists);m.AssociationDoesNotExist$=[-3,MP,Qe,{[IP]:[`AssociationDoesNotExist`,404],[AP]:bP},[py],[0]];UP.registerError(m.AssociationDoesNotExist$,NP.AssociationDoesNotExist);m.AssociationExecutionDoesNotExist$=[-3,MP,Lt,{[IP]:[`AssociationExecutionDoesNotExist`,404],[AP]:bP},[py],[0]];UP.registerError(m.AssociationExecutionDoesNotExist$,NP.AssociationExecutionDoesNotExist);m.AssociationLimitExceeded$=[-3,MP,On,{[IP]:[`AssociationLimitExceeded`,400],[AP]:bP},[],[]];UP.registerError(m.AssociationLimitExceeded$,NP.AssociationLimitExceeded);m.AssociationVersionLimitExceeded$=[-3,MP,wr,{[IP]:[`AssociationVersionLimitExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.AssociationVersionLimitExceeded$,NP.AssociationVersionLimitExceeded);m.AutomationDefinitionNotApprovedException$=[-3,MP,We,{[IP]:[`AutomationDefinitionNotApproved`,400],[AP]:bP},[py],[0]];UP.registerError(m.AutomationDefinitionNotApprovedException$,NP.AutomationDefinitionNotApprovedException);m.AutomationDefinitionNotFoundException$=[-3,MP,Je,{[IP]:[`AutomationDefinitionNotFound`,404],[AP]:bP},[py],[0]];UP.registerError(m.AutomationDefinitionNotFoundException$,NP.AutomationDefinitionNotFoundException);m.AutomationDefinitionVersionNotFoundException$=[-3,MP,It,{[IP]:[`AutomationDefinitionVersionNotFound`,404],[AP]:bP},[py],[0]];UP.registerError(m.AutomationDefinitionVersionNotFoundException$,NP.AutomationDefinitionVersionNotFoundException);m.AutomationExecutionLimitExceededException$=[-3,MP,Qt,{[IP]:[`AutomationExecutionLimitExceeded`,429],[AP]:bP},[py],[0]];UP.registerError(m.AutomationExecutionLimitExceededException$,NP.AutomationExecutionLimitExceededException);m.AutomationExecutionNotFoundException$=[-3,MP,Zt,{[IP]:[`AutomationExecutionNotFound`,404],[AP]:bP},[py],[0]];UP.registerError(m.AutomationExecutionNotFoundException$,NP.AutomationExecutionNotFoundException);m.AutomationStepNotFoundException$=[-3,MP,or,{[IP]:[`AutomationStepNotFoundException`,404],[AP]:bP},[py],[0]];UP.registerError(m.AutomationStepNotFoundException$,NP.AutomationStepNotFoundException);m.ComplianceTypeCountLimitExceededException$=[-3,MP,xi,{[IP]:[`ComplianceTypeCountLimitExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.ComplianceTypeCountLimitExceededException$,NP.ComplianceTypeCountLimitExceededException);m.CustomSchemaCountLimitExceededException$=[-3,MP,Si,{[IP]:[`CustomSchemaCountLimitExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.CustomSchemaCountLimitExceededException$,NP.CustomSchemaCountLimitExceededException);m.DocumentAlreadyExists$=[-3,MP,Xi,{[IP]:[`DocumentAlreadyExists`,400],[AP]:bP},[py],[0]];UP.registerError(m.DocumentAlreadyExists$,NP.DocumentAlreadyExists);m.DocumentLimitExceeded$=[-3,MP,Da,{[IP]:[`DocumentLimitExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.DocumentLimitExceeded$,NP.DocumentLimitExceeded);m.DocumentPermissionLimit$=[-3,MP,jc,{[IP]:[`DocumentPermissionLimit`,400],[AP]:bP},[py],[0]];UP.registerError(m.DocumentPermissionLimit$,NP.DocumentPermissionLimit);m.DocumentVersionLimitExceeded$=[-3,MP,kl,{[IP]:[`DocumentVersionLimitExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.DocumentVersionLimitExceeded$,NP.DocumentVersionLimitExceeded);m.DoesNotExistException$=[-3,MP,dc,{[IP]:[`DoesNotExistException`,404],[AP]:bP},[py],[0]];UP.registerError(m.DoesNotExistException$,NP.DoesNotExistException);m.DuplicateDocumentContent$=[-3,MP,xs,{[IP]:[`DuplicateDocumentContent`,400],[AP]:bP},[py],[0]];UP.registerError(m.DuplicateDocumentContent$,NP.DuplicateDocumentContent);m.DuplicateDocumentVersionName$=[-3,MP,qs,{[IP]:[`DuplicateDocumentVersionName`,400],[AP]:bP},[py],[0]];UP.registerError(m.DuplicateDocumentVersionName$,NP.DuplicateDocumentVersionName);m.DuplicateInstanceId$=[-3,MP,aa,{[IP]:[`DuplicateInstanceId`,404],[AP]:bP},[],[]];UP.registerError(m.DuplicateInstanceId$,NP.DuplicateInstanceId);m.FeatureNotAvailableException$=[-3,MP,Fu,{[IP]:[`FeatureNotAvailableException`,400],[AP]:bP},[py],[0]];UP.registerError(m.FeatureNotAvailableException$,NP.FeatureNotAvailableException);m.HierarchyLevelLimitExceededException$=[-3,MP,xp,{[IP]:[`HierarchyLevelLimitExceededException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.HierarchyLevelLimitExceededException$,NP.HierarchyLevelLimitExceededException);m.HierarchyTypeMismatchException$=[-3,MP,Op,{[IP]:[`HierarchyTypeMismatchException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.HierarchyTypeMismatchException$,NP.HierarchyTypeMismatchException);m.IdempotentParameterMismatch$=[-3,MP,Rf,{[IP]:[`IdempotentParameterMismatch`,400],[AP]:bP},[py],[0]];UP.registerError(m.IdempotentParameterMismatch$,NP.IdempotentParameterMismatch);m.IncompatiblePolicyException$=[-3,MP,Cf,{[IP]:[`IncompatiblePolicyException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.IncompatiblePolicyException$,NP.IncompatiblePolicyException);m.InternalServerError$=[-3,MP,Zf,{[IP]:[`InternalServerError`,500],[AP]:xP},[py],[0]];UP.registerError(m.InternalServerError$,NP.InternalServerError);m.InvalidActivation$=[-3,MP,Mp,{[IP]:[`InvalidActivation`,404],[AP]:bP},[py],[0]];UP.registerError(m.InvalidActivation$,NP.InvalidActivation);m.InvalidActivationId$=[-3,MP,Lp,{[IP]:[`InvalidActivationId`,404],[AP]:bP},[py],[0]];UP.registerError(m.InvalidActivationId$,NP.InvalidActivationId);m.InvalidAggregatorException$=[-3,MP,Np,{[IP]:[`InvalidAggregator`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidAggregatorException$,NP.InvalidAggregatorException);m.InvalidAllowedPatternException$=[-3,MP,Bp,{[IP]:[`InvalidAllowedPatternException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.InvalidAllowedPatternException$,NP.InvalidAllowedPatternException);m.InvalidAssociation$=[-3,MP,Yp,{[IP]:[`InvalidAssociation`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidAssociation$,NP.InvalidAssociation);m.InvalidAssociationVersion$=[-3,MP,Kp,{[IP]:[`InvalidAssociationVersion`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidAssociationVersion$,NP.InvalidAssociationVersion);m.InvalidAutomationExecutionParametersException$=[-3,MP,kp,{[IP]:[`InvalidAutomationExecutionParameters`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidAutomationExecutionParametersException$,NP.InvalidAutomationExecutionParametersException);m.InvalidAutomationSignalException$=[-3,MP,zp,{[IP]:[`InvalidAutomationSignalException`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidAutomationSignalException$,NP.InvalidAutomationSignalException);m.InvalidAutomationStatusUpdateException$=[-3,MP,Wp,{[IP]:[`InvalidAutomationStatusUpdateException`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidAutomationStatusUpdateException$,NP.InvalidAutomationStatusUpdateException);m.InvalidCommandId$=[-3,MP,tm,{[IP]:[`InvalidCommandId`,404],[AP]:bP},[],[]];UP.registerError(m.InvalidCommandId$,NP.InvalidCommandId);m.InvalidDeleteInventoryParametersException$=[-3,MP,lm,{[IP]:[`InvalidDeleteInventoryParameters`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDeleteInventoryParametersException$,NP.InvalidDeleteInventoryParametersException);m.InvalidDeletionIdException$=[-3,MP,cm,{[IP]:[`InvalidDeletionId`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDeletionIdException$,NP.InvalidDeletionIdException);m.InvalidDocument$=[-3,MP,sm,{[IP]:[`InvalidDocument`,404],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDocument$,NP.InvalidDocument);m.InvalidDocumentContent$=[-3,MP,am,{[IP]:[`InvalidDocumentContent`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDocumentContent$,NP.InvalidDocumentContent);m.InvalidDocumentOperation$=[-3,MP,pm,{[IP]:[`InvalidDocumentOperation`,403],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDocumentOperation$,NP.InvalidDocumentOperation);m.InvalidDocumentSchemaVersion$=[-3,MP,ym,{[IP]:[`InvalidDocumentSchemaVersion`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDocumentSchemaVersion$,NP.InvalidDocumentSchemaVersion);m.InvalidDocumentType$=[-3,MP,Sm,{[IP]:[`InvalidDocumentType`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDocumentType$,NP.InvalidDocumentType);m.InvalidDocumentVersion$=[-3,MP,Em,{[IP]:[`InvalidDocumentVersion`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidDocumentVersion$,NP.InvalidDocumentVersion);m.InvalidFilter$=[-3,MP,bm,{[IP]:[`InvalidFilter`,441],[AP]:bP},[py],[0]];UP.registerError(m.InvalidFilter$,NP.InvalidFilter);m.InvalidFilterKey$=[-3,MP,Am,{[IP]:[`InvalidFilterKey`,400],[AP]:bP},[],[]];UP.registerError(m.InvalidFilterKey$,NP.InvalidFilterKey);m.InvalidFilterOption$=[-3,MP,Rm,{[IP]:[`InvalidFilterOption`,400],[AP]:bP},[TP],[0]];UP.registerError(m.InvalidFilterOption$,NP.InvalidFilterOption);m.InvalidFilterValue$=[-3,MP,Pm,{[IP]:[`InvalidFilterValue`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidFilterValue$,NP.InvalidFilterValue);m.InvalidInstanceId$=[-3,MP,Gm,{[IP]:[`InvalidInstanceId`,404],[AP]:bP},[py],[0]];UP.registerError(m.InvalidInstanceId$,NP.InvalidInstanceId);m.InvalidInstanceInformationFilterValue$=[-3,MP,Hm,{[IP]:[`InvalidInstanceInformationFilterValue`,400],[AP]:bP},[TP],[0]];UP.registerError(m.InvalidInstanceInformationFilterValue$,NP.InvalidInstanceInformationFilterValue);m.InvalidInstancePropertyFilterValue$=[-3,MP,Km,{[IP]:[`InvalidInstancePropertyFilterValue`,400],[AP]:bP},[TP],[0]];UP.registerError(m.InvalidInstancePropertyFilterValue$,NP.InvalidInstancePropertyFilterValue);m.InvalidInventoryGroupException$=[-3,MP,Bm,{[IP]:[`InvalidInventoryGroup`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidInventoryGroupException$,NP.InvalidInventoryGroupException);m.InvalidInventoryItemContextException$=[-3,MP,zm,{[IP]:[`InvalidInventoryItemContext`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidInventoryItemContextException$,NP.InvalidInventoryItemContextException);m.InvalidInventoryRequestException$=[-3,MP,Ym,{[IP]:[`InvalidInventoryRequest`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidInventoryRequestException$,NP.InvalidInventoryRequestException);m.InvalidItemContentException$=[-3,MP,km,{[IP]:[`InvalidItemContent`,400],[AP]:bP},[PR,py],[0,0]];UP.registerError(m.InvalidItemContentException$,NP.InvalidItemContentException);m.InvalidKeyId$=[-3,MP,sf,{[IP]:[`InvalidKeyId`,400],[AP]:bP},[TP],[0]];UP.registerError(m.InvalidKeyId$,NP.InvalidKeyId);m.InvalidNextToken$=[-3,MP,df,{[IP]:[`InvalidNextToken`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidNextToken$,NP.InvalidNextToken);m.InvalidNotificationConfig$=[-3,MP,uf,{[IP]:[`InvalidNotificationConfig`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidNotificationConfig$,NP.InvalidNotificationConfig);m.InvalidOptionException$=[-3,MP,mf,{[IP]:[`InvalidOption`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidOptionException$,NP.InvalidOptionException);m.InvalidOutputFolder$=[-3,MP,ff,{[IP]:[`InvalidOutputFolder`,400],[AP]:bP},[],[]];UP.registerError(m.InvalidOutputFolder$,NP.InvalidOutputFolder);m.InvalidOutputLocation$=[-3,MP,hf,{[IP]:[`InvalidOutputLocation`,400],[AP]:bP},[],[]];UP.registerError(m.InvalidOutputLocation$,NP.InvalidOutputLocation);m.InvalidParameters$=[-3,MP,yf,{[IP]:[`InvalidParameters`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidParameters$,NP.InvalidParameters);m.InvalidPermissionType$=[-3,MP,Lf,{[IP]:[`InvalidPermissionType`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidPermissionType$,NP.InvalidPermissionType);m.InvalidPluginName$=[-3,MP,Tf,{[IP]:[`InvalidPluginName`,404],[AP]:bP},[],[]];UP.registerError(m.InvalidPluginName$,NP.InvalidPluginName);m.InvalidPolicyAttributeException$=[-3,MP,Ef,{[IP]:[`InvalidPolicyAttributeException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.InvalidPolicyAttributeException$,NP.InvalidPolicyAttributeException);m.InvalidPolicyTypeException$=[-3,MP,Uf,{[IP]:[`InvalidPolicyTypeException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.InvalidPolicyTypeException$,NP.InvalidPolicyTypeException);m.InvalidResourceId$=[-3,MP,Vf,{[IP]:[`InvalidResourceId`,400],[AP]:bP},[],[]];UP.registerError(m.InvalidResourceId$,NP.InvalidResourceId);m.InvalidResourceType$=[-3,MP,Yf,{[IP]:[`InvalidResourceType`,400],[AP]:bP},[],[]];UP.registerError(m.InvalidResourceType$,NP.InvalidResourceType);m.InvalidResultAttributeException$=[-3,MP,Bf,{[IP]:[`InvalidResultAttribute`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidResultAttributeException$,NP.InvalidResultAttributeException);m.InvalidRole$=[-3,MP,jf,{[IP]:[`InvalidRole`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidRole$,NP.InvalidRole);m.InvalidSchedule$=[-3,MP,Xf,{[IP]:[`InvalidSchedule`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidSchedule$,NP.InvalidSchedule);m.InvalidTag$=[-3,MP,rh,{[IP]:[`InvalidTag`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidTag$,NP.InvalidTag);m.InvalidTarget$=[-3,MP,sh,{[IP]:[`InvalidTarget`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidTarget$,NP.InvalidTarget);m.InvalidTargetMaps$=[-3,MP,oh,{[IP]:[`InvalidTargetMaps`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidTargetMaps$,NP.InvalidTargetMaps);m.InvalidTypeNameException$=[-3,MP,ih,{[IP]:[`InvalidTypeName`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidTypeNameException$,NP.InvalidTypeNameException);m.InvalidUpdate$=[-3,MP,lh,{[IP]:[`InvalidUpdate`,400],[AP]:bP},[py],[0]];UP.registerError(m.InvalidUpdate$,NP.InvalidUpdate);m.InvocationDoesNotExist$=[-3,MP,dm,{[IP]:[`InvocationDoesNotExist`,400],[AP]:bP},[],[]];UP.registerError(m.InvocationDoesNotExist$,NP.InvocationDoesNotExist);m.ItemContentMismatchException$=[-3,MP,nm,{[IP]:[`ItemContentMismatch`,400],[AP]:bP},[PR,py],[0,0]];UP.registerError(m.ItemContentMismatchException$,NP.ItemContentMismatchException);m.ItemSizeLimitExceededException$=[-3,MP,eh,{[IP]:[`ItemSizeLimitExceeded`,400],[AP]:bP},[PR,py],[0,0]];UP.registerError(m.ItemSizeLimitExceededException$,NP.ItemSizeLimitExceededException);m.MalformedResourcePolicyDocumentException$=[-3,MP,Ry,{[IP]:[`MalformedResourcePolicyDocumentException`,400],[AP]:bP},[py],[0]];UP.registerError(m.MalformedResourcePolicyDocumentException$,NP.MalformedResourcePolicyDocumentException);m.MaxDocumentSizeExceeded$=[-3,MP,Cy,{[IP]:[`MaxDocumentSizeExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.MaxDocumentSizeExceeded$,NP.MaxDocumentSizeExceeded);m.NoLongerSupportedException$=[-3,MP,wS,{[IP]:[`NoLongerSupported`,400],[AP]:bP},[py],[0]];UP.registerError(m.NoLongerSupportedException$,NP.NoLongerSupportedException);m.OpsItemAccessDeniedException$=[-3,MP,eE,{[IP]:[`OpsItemAccessDeniedException`,403],[AP]:bP},[py],[0]];UP.registerError(m.OpsItemAccessDeniedException$,NP.OpsItemAccessDeniedException);m.OpsItemAlreadyExistsException$=[-3,MP,tE,{[IP]:[`OpsItemAlreadyExistsException`,400],[AP]:bP},[py,uE],[0,0]];UP.registerError(m.OpsItemAlreadyExistsException$,NP.OpsItemAlreadyExistsException);m.OpsItemConflictException$=[-3,MP,nE,{[IP]:[`OpsItemConflictException`,409],[AP]:bP},[py],[0]];UP.registerError(m.OpsItemConflictException$,NP.OpsItemConflictException);m.OpsItemInvalidParameterException$=[-3,MP,dE,{[IP]:[`OpsItemInvalidParameterException`,400],[AP]:bP},[Jv,py],[64|0,0]];UP.registerError(m.OpsItemInvalidParameterException$,NP.OpsItemInvalidParameterException);m.OpsItemLimitExceededException$=[-3,MP,mE,{[IP]:[`OpsItemLimitExceededException`,400],[AP]:bP},[yb,kh,ny,py],[64|0,1,0,0]];UP.registerError(m.OpsItemLimitExceededException$,NP.OpsItemLimitExceededException);m.OpsItemNotFoundException$=[-3,MP,hE,{[IP]:[`OpsItemNotFoundException`,400],[AP]:bP},[py],[0]];UP.registerError(m.OpsItemNotFoundException$,NP.OpsItemNotFoundException);m.OpsItemRelatedItemAlreadyExistsException$=[-3,MP,SE,{[IP]:[`OpsItemRelatedItemAlreadyExistsException`,400],[AP]:bP},[py,Ob,uE],[0,0,0]];UP.registerError(m.OpsItemRelatedItemAlreadyExistsException$,NP.OpsItemRelatedItemAlreadyExistsException);m.OpsItemRelatedItemAssociationNotFoundException$=[-3,MP,EE,{[IP]:[`OpsItemRelatedItemAssociationNotFoundException`,400],[AP]:bP},[py],[0]];UP.registerError(m.OpsItemRelatedItemAssociationNotFoundException$,NP.OpsItemRelatedItemAssociationNotFoundException);m.OpsMetadataAlreadyExistsException$=[-3,MP,OE,{[IP]:[`OpsMetadataAlreadyExistsException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.OpsMetadataAlreadyExistsException$,NP.OpsMetadataAlreadyExistsException);m.OpsMetadataInvalidArgumentException$=[-3,MP,$E,{[IP]:[`OpsMetadataInvalidArgumentException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.OpsMetadataInvalidArgumentException$,NP.OpsMetadataInvalidArgumentException);m.OpsMetadataKeyLimitExceededException$=[-3,MP,NE,{[IP]:[`OpsMetadataKeyLimitExceededException`,429],[AP]:bP},[TP],[0]];UP.registerError(m.OpsMetadataKeyLimitExceededException$,NP.OpsMetadataKeyLimitExceededException);m.OpsMetadataLimitExceededException$=[-3,MP,LE,{[IP]:[`OpsMetadataLimitExceededException`,429],[AP]:bP},[TP],[0]];UP.registerError(m.OpsMetadataLimitExceededException$,NP.OpsMetadataLimitExceededException);m.OpsMetadataNotFoundException$=[-3,MP,UE,{[IP]:[`OpsMetadataNotFoundException`,404],[AP]:bP},[TP],[0]];UP.registerError(m.OpsMetadataNotFoundException$,NP.OpsMetadataNotFoundException);m.OpsMetadataTooManyUpdatesException$=[-3,MP,FE,{[IP]:[`OpsMetadataTooManyUpdatesException`,429],[AP]:bP},[TP],[0]];UP.registerError(m.OpsMetadataTooManyUpdatesException$,NP.OpsMetadataTooManyUpdatesException);m.ParameterAlreadyExists$=[-3,MP,mv,{[IP]:[`ParameterAlreadyExists`,400],[AP]:bP},[TP],[0]];UP.registerError(m.ParameterAlreadyExists$,NP.ParameterAlreadyExists);m.ParameterLimitExceeded$=[-3,MP,Hv,{[IP]:[`ParameterLimitExceeded`,429],[AP]:bP},[TP],[0]];UP.registerError(m.ParameterLimitExceeded$,NP.ParameterLimitExceeded);m.ParameterMaxVersionLimitExceeded$=[-3,MP,Qv,{[IP]:[`ParameterMaxVersionLimitExceeded`,400],[AP]:bP},[TP],[0]];UP.registerError(m.ParameterMaxVersionLimitExceeded$,NP.ParameterMaxVersionLimitExceeded);m.ParameterNotFound$=[-3,MP,Xv,{[IP]:[`ParameterNotFound`,404],[AP]:bP},[TP],[0]];UP.registerError(m.ParameterNotFound$,NP.ParameterNotFound);m.ParameterPatternMismatchException$=[-3,MP,sC,{[IP]:[`ParameterPatternMismatchException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.ParameterPatternMismatchException$,NP.ParameterPatternMismatchException);m.ParameterVersionLabelLimitExceeded$=[-3,MP,kC,{[IP]:[`ParameterVersionLabelLimitExceeded`,400],[AP]:bP},[TP],[0]];UP.registerError(m.ParameterVersionLabelLimitExceeded$,NP.ParameterVersionLabelLimitExceeded);m.ParameterVersionNotFound$=[-3,MP,LC,{[IP]:[`ParameterVersionNotFound`,400],[AP]:bP},[TP],[0]];UP.registerError(m.ParameterVersionNotFound$,NP.ParameterVersionNotFound);m.PoliciesLimitExceededException$=[-3,MP,Vv,{[IP]:[`PoliciesLimitExceededException`,400],[AP]:bP},[TP],[0]];UP.registerError(m.PoliciesLimitExceededException$,NP.PoliciesLimitExceededException);m.ResourceDataSyncAlreadyExistsException$=[-3,MP,EI,{[IP]:[`ResourceDataSyncAlreadyExists`,400],[AP]:bP},[ZA],[0]];UP.registerError(m.ResourceDataSyncAlreadyExistsException$,NP.ResourceDataSyncAlreadyExistsException);m.ResourceDataSyncConflictException$=[-3,MP,CI,{[IP]:[`ResourceDataSyncConflictException`,409],[AP]:bP},[py],[0]];UP.registerError(m.ResourceDataSyncConflictException$,NP.ResourceDataSyncConflictException);m.ResourceDataSyncCountExceededException$=[-3,MP,II,{[IP]:[`ResourceDataSyncCountExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.ResourceDataSyncCountExceededException$,NP.ResourceDataSyncCountExceededException);m.ResourceDataSyncInvalidConfigurationException$=[-3,MP,wI,{[IP]:[`ResourceDataSyncInvalidConfiguration`,400],[AP]:bP},[py],[0]];UP.registerError(m.ResourceDataSyncInvalidConfigurationException$,NP.ResourceDataSyncInvalidConfigurationException);m.ResourceDataSyncNotFoundException$=[-3,MP,PI,{[IP]:[`ResourceDataSyncNotFound`,404],[AP]:bP},[ZA,bw,py],[0,0,0]];UP.registerError(m.ResourceDataSyncNotFoundException$,NP.ResourceDataSyncNotFoundException);m.ResourceInUseException$=[-3,MP,FI,{[IP]:[`ResourceInUseException`,400],[AP]:bP},[py],[0]];UP.registerError(m.ResourceInUseException$,NP.ResourceInUseException);m.ResourceLimitExceededException$=[-3,MP,GI,{[IP]:[`ResourceLimitExceededException`,400],[AP]:bP},[py],[0]];UP.registerError(m.ResourceLimitExceededException$,NP.ResourceLimitExceededException);m.ResourceNotFoundException$=[-3,MP,KI,{[IP]:[`ResourceNotFoundException`,404],[AP]:bP},[py],[0]];UP.registerError(m.ResourceNotFoundException$,NP.ResourceNotFoundException);m.ResourcePolicyConflictException$=[-3,MP,ob,{[IP]:[`ResourcePolicyConflictException`,400],[AP]:bP},[py],[0]];UP.registerError(m.ResourcePolicyConflictException$,NP.ResourcePolicyConflictException);m.ResourcePolicyInvalidParameterException$=[-3,MP,ib,{[IP]:[`ResourcePolicyInvalidParameterException`,400],[AP]:bP},[Jv,py],[64|0,0]];UP.registerError(m.ResourcePolicyInvalidParameterException$,NP.ResourcePolicyInvalidParameterException);m.ResourcePolicyLimitExceededException$=[-3,MP,sb,{[IP]:[`ResourcePolicyLimitExceededException`,400],[AP]:bP},[kh,ny,py],[1,0,0]];UP.registerError(m.ResourcePolicyLimitExceededException$,NP.ResourcePolicyLimitExceededException);m.ResourcePolicyNotFoundException$=[-3,MP,ab,{[IP]:[`ResourcePolicyNotFoundException`,404],[AP]:bP},[py],[0]];UP.registerError(m.ResourcePolicyNotFoundException$,NP.ResourcePolicyNotFoundException);m.ServiceQuotaExceededException$=[-3,MP,cw,{[AP]:bP},[py,eI,aA,LI,Tb],[0,0,0,0,0],3];UP.registerError(m.ServiceQuotaExceededException$,NP.ServiceQuotaExceededException);m.ServiceSettingNotFound$=[-3,MP,hw,{[IP]:[`ServiceSettingNotFound`,400],[AP]:bP},[py],[0]];UP.registerError(m.ServiceSettingNotFound$,NP.ServiceSettingNotFound);m.StatusUnchanged$=[-3,MP,Mw,{[IP]:[`StatusUnchanged`,400],[AP]:bP},[],[]];UP.registerError(m.StatusUnchanged$,NP.StatusUnchanged);m.SubTypeCountLimitExceededException$=[-3,MP,Aw,{[IP]:[`SubTypeCountLimitExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.SubTypeCountLimitExceededException$,NP.SubTypeCountLimitExceededException);m.TargetInUseException$=[-3,MP,pR,{[IP]:[`TargetInUseException`,400],[AP]:bP},[py],[0]];UP.registerError(m.TargetInUseException$,NP.TargetInUseException);m.TargetNotConnected$=[-3,MP,xR,{[IP]:[`TargetNotConnected`,430],[AP]:bP},[py],[0]];UP.registerError(m.TargetNotConnected$,NP.TargetNotConnected);m.ThrottlingException$=[-3,MP,cR,{[AP]:bP},[py,eI,aA],[0,0,0],1];UP.registerError(m.ThrottlingException$,NP.ThrottlingException);m.TooManyTagsError$=[-3,MP,wR,{[IP]:[`TooManyTagsError`,400],[AP]:bP},[],[]];UP.registerError(m.TooManyTagsError$,NP.TooManyTagsError);m.TooManyUpdates$=[-3,MP,RR,{[IP]:[`TooManyUpdates`,429],[AP]:bP},[py],[0]];UP.registerError(m.TooManyUpdates$,NP.TooManyUpdates);m.TotalSizeLimitExceededException$=[-3,MP,UR,{[IP]:[`TotalSizeLimitExceeded`,400],[AP]:bP},[py],[0]];UP.registerError(m.TotalSizeLimitExceededException$,NP.TotalSizeLimitExceededException);m.UnsupportedCalendarException$=[-3,MP,cT,{[IP]:[`UnsupportedCalendarException`,400],[AP]:bP},[py],[0]];UP.registerError(m.UnsupportedCalendarException$,NP.UnsupportedCalendarException);m.UnsupportedFeatureRequiredException$=[-3,MP,ST,{[IP]:[`UnsupportedFeatureRequiredException`,400],[AP]:bP},[py],[0]];UP.registerError(m.UnsupportedFeatureRequiredException$,NP.UnsupportedFeatureRequiredException);m.UnsupportedInventoryItemContextException$=[-3,MP,ET,{[IP]:[`UnsupportedInventoryItemContext`,400],[AP]:bP},[PR,py],[0,0]];UP.registerError(m.UnsupportedInventoryItemContextException$,NP.UnsupportedInventoryItemContextException);m.UnsupportedInventorySchemaVersionException$=[-3,MP,vT,{[IP]:[`UnsupportedInventorySchemaVersion`,400],[AP]:bP},[py],[0]];UP.registerError(m.UnsupportedInventorySchemaVersionException$,NP.UnsupportedInventorySchemaVersionException);m.UnsupportedOperatingSystem$=[-3,MP,jT,{[IP]:[`UnsupportedOperatingSystem`,400],[AP]:bP},[py],[0]];UP.registerError(m.UnsupportedOperatingSystem$,NP.UnsupportedOperatingSystem);m.UnsupportedOperationException$=[-3,MP,$T,{[IP]:[`UnsupportedOperation`,400],[AP]:bP},[py],[0]];UP.registerError(m.UnsupportedOperationException$,NP.UnsupportedOperationException);m.UnsupportedParameterType$=[-3,MP,HT,{[IP]:[`UnsupportedParameterType`,400],[AP]:bP},[TP],[0]];UP.registerError(m.UnsupportedParameterType$,NP.UnsupportedParameterType);m.UnsupportedPlatformType$=[-3,MP,VT,{[IP]:[`UnsupportedPlatformType`,400],[AP]:bP},[py],[0]];UP.registerError(m.UnsupportedPlatformType$,NP.UnsupportedPlatformType);m.ValidationException$=[-3,MP,sP,{[IP]:[`ValidationException`,400],[AP]:bP},[py,sI],[0,0]];UP.registerError(m.ValidationException$,NP.ValidationException);m.errorTypeRegistries=[LP,UP];var FP=[0,MP,xn,8,0];var qP=[0,MP,Sf,8,0];var jP=[0,MP,My,8,0];var BP=[0,MP,qy,8,0];var GP=[0,MP,Wy,8,21];var zP=[0,MP,Qy,8,0];var HP=[0,MP,oS,8,0];var VP=[0,MP,XS,8,0];var WP=[0,MP,SC,8,0];var KP=[0,MP,bC,8,0];var YP=[0,MP,ww,8,0];m.AccountSharingInfo$=[3,MP,Zn,0,[En,EA],[0,0]];m.Activation$=[3,MP,C,0,[Cn,Qi,pa,Qf,BI,dI,tu,Wl,bo,nR],[0,0,0,0,1,1,4,2,4,()=>rD]];m.AddTagsToResourceRequest$=[3,MP,mr,0,[Tb,LI,nR],[0,0,()=>rD],3];m.AddTagsToResourceResult$=[3,MP,fr,0,[],[]];m.Alarm$=[3,MP,$r,0,[dS],[0],1];m.AlarmConfiguration$=[3,MP,fe,0,[Nr,vf],[()=>ex,2],1];m.AlarmStateInformation$=[3,MP,nr,0,[dS,Gb],[0,0],2];m.AssociateOpsItemRelatedItemRequest$=[3,MP,Fn,0,[uE,ur,Tb,Ob],[0,0,0,0],4];m.AssociateOpsItemRelatedItemResponse$=[3,MP,qn,0,[An],[0]];m.Association$=[3,MP,Fr,0,[dS,Mm,An,Ir,Ml,VR,pg,LS,IA,$n,nw,Vl,IR],[0,0,0,0,0,()=>lD,4,()=>m.AssociationOverview$,0,0,1,1,[1,MP,IR,0,[2,MP,TR,0,0,64|0]]]];m.AssociationDescription$=[3,MP,Ue,0,[dS,Mm,Ir,jl,ay,Xw,LS,Ml,dr,pv,An,VR,IA,PE,pg,Qg,$n,Iy,fy,yi,hA,Ln,Xo,hR,nw,Vl,IR,fe,rR,qe],[0,0,0,4,4,()=>m.AssociationStatus$,()=>m.AssociationOverview$,0,0,[()=>TD,0],0,()=>lD,0,()=>m.InstanceAssociationOutputLocation$,4,4,0,0,0,0,0,2,64|0,()=>oD,1,1,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],()=>m.AlarmConfiguration$,()=>tx,0]];m.AssociationExecution$=[3,MP,Mt,0,[An,Ir,au,Xw,gl,Pi,pg,aI,fe,rR],[0,0,0,0,0,4,4,0,()=>m.AlarmConfiguration$,()=>tx]];m.AssociationExecutionFilter$=[3,MP,qt,0,[_h,iP,ZR],[0,0,0],3];m.AssociationExecutionTarget$=[3,MP,nn,0,[An,Ir,au,LI,Tb,Xw,gl,pg,zE],[0,0,0,0,0,0,0,4,()=>m.OutputSource$]];m.AssociationExecutionTargetsFilter$=[3,MP,rn,0,[_h,iP],[0,0],2];m.AssociationFilter$=[3,MP,dn,0,[RP,_P],[0,0],2];m.AssociationOverview$=[3,MP,kn,0,[Xw,gl,Xn],[0,0,128|1]];m.AssociationStatus$=[3,MP,Jn,0,[jl,dS,py,In],[4,0,0,0],3];m.AssociationVersionInfo$=[3,MP,br,0,[An,Ir,bo,dS,Ml,pv,VR,IA,PE,$n,Iy,fy,yi,hA,Ln,Xo,hR,nw,Vl,IR,qe],[0,0,4,0,0,[()=>TD,0],()=>lD,0,()=>m.InstanceAssociationOutputLocation$,0,0,0,0,0,2,64|0,()=>oD,1,1,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],0]];m.AttachmentContent$=[3,MP,ve,0,[dS,Yw,Tp,_p,eT],[0,1,0,0,0]];m.AttachmentInformation$=[3,MP,Rn,0,[dS],[0]];m.AttachmentsSource$=[3,MP,cr,0,[_h,lP,dS],[0,64|0,0]];m.AutomationExecution$=[3,MP,un,0,[Wt,uc,Ml,Eu,iu,tn,$A,OA,pv,cv,Uu,uS,fv,Xl,wi,to,$R,VR,IR,xb,fy,Iy,KR,hR,yv,fe,rR,ER,lr,Rw,tI,uE,An,gi,uP],[0,0,0,4,4,0,()=>tD,2,[2,MP,Hn,0,0,64|0],[2,MP,Hn,0,0,64|0],0,0,0,0,0,0,0,()=>lD,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],()=>m.ResolvedTargets$,0,0,0,()=>oD,()=>m.ProgressCounters$,()=>m.AlarmConfiguration$,()=>tx,0,0,4,()=>KO,0,0,0,[2,MP,Hn,0,0,64|0]]];m.AutomationExecutionFilter$=[3,MP,Ht,0,[_h,lP],[0,64|0],2];m.AutomationExecutionInputs$=[3,MP,Kt,0,[pv,$R,VR,IR,hR,ER],[[2,MP,Hn,0,0,64|0],0,()=>lD,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],()=>oD,0]];m.AutomationExecutionMetadata$=[3,MP,Jt,0,[Wt,uc,Ml,tn,Eu,iu,Xl,mg,cv,uS,fv,wi,to,Uu,$R,VR,IR,xb,fy,Iy,KR,Er,fe,rR,ER,lr,Rw,tI,uE,An,gi],[0,0,0,0,4,4,0,0,[2,MP,Hn,0,0,64|0],0,0,0,0,0,0,()=>lD,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],()=>m.ResolvedTargets$,0,0,0,0,()=>m.AlarmConfiguration$,()=>tx,0,0,4,()=>KO,0,0,0]];m.AutomationExecutionPreview$=[3,MP,en,0,[aw,Db,DR,iR],[128|1,64|0,()=>cD,1]];m.BaselineOverride$=[3,MP,Zr,0,[XE,bd,Wn,Bn,Gn,ZI,eb,zn,Qw,ar],[0,()=>m.PatchFilterGroup$,()=>m.PatchRuleGroup$,64|0,0,64|0,0,2,[()=>$O,0],0]];m.CancelCommandRequest$=[3,MP,yo,0,[No,ef],[0,64|0],1];m.CancelCommandResult$=[3,MP,So,0,[],[]];m.CancelMaintenanceWindowExecutionRequest$=[3,MP,Ko,0,[hP],[0],1];m.CancelMaintenanceWindowExecutionResult$=[3,MP,Yo,0,[hP],[0]];m.CloudWatchOutputConfig$=[3,MP,Li,0,[ki,Ui],[0,2]];m.Command$=[3,MP,eo,0,[No,uc,Ml,Bi,Kl,pv,ef,VR,$I,Xw,gA,KE,HE,WE,fy,Iy,sR,go,Zl,_l,lw,gS,Li,LR,fe,rR],[0,0,0,0,4,[()=>TD,0],64|0,()=>lD,4,0,0,0,0,0,0,0,1,1,1,1,0,()=>m.NotificationConfig$,()=>m.CloudWatchOutputConfig$,1,()=>m.AlarmConfiguration$,()=>tx]];m.CommandFilter$=[3,MP,Oo,0,[RP,_P],[0,0],2];m.CommandInvocation$=[3,MP,qo,0,[No,Mm,lf,Bi,uc,Ml,$I,Xw,gA,_R,iw,MA,ai,lw,gS,Li],[0,0,0,0,0,0,4,0,0,0,0,0,()=>wx,0,()=>m.NotificationConfig$,()=>m.CloudWatchOutputConfig$]];m.CommandPlugin$=[3,MP,pi,0,[dS,Xw,gA,mI,ub,kI,lv,iw,MA,KE,HE,WE],[0,0,0,1,4,4,0,0,0,0,0,0]];m.ComplianceExecutionSummary$=[3,MP,_o,0,[vu,au,Iu],[4,0,0],1];m.ComplianceItem$=[3,MP,jo,0,[Di,Tb,LI,Dp,QR,Xw,Gw,yu,Gl],[0,0,0,0,0,0,0,()=>m.ComplianceExecutionSummary$,128|0]];m.ComplianceItemEntry$=[3,MP,ko,0,[Gw,Xw,Dp,QR,Gl],[0,0,0,0,128|0],2];m.ComplianceStringFilter$=[3,MP,Ei,0,[_h,lP,ZR],[0,[()=>Ox,0],0]];m.ComplianceSummaryItem$=[3,MP,Ii,0,[Di,Ti,SS],[0,()=>m.CompliantSummary$,()=>m.NonCompliantSummary$]];m.CompliantSummary$=[3,MP,Ti,0,[Co,fw],[1,()=>m.SeveritySummary$]];m.CreateActivationRequest$=[3,MP,ao,0,[Qf,Qi,pa,BI,tu,nR,HI],[0,0,0,1,4,()=>rD,()=>FO],1];m.CreateActivationResult$=[3,MP,co,0,[Cn,ye],[0,0]];m.CreateAssociationBatchRequest$=[3,MP,ro,0,[Au,qe],[[()=>Mx,0],0],1];m.CreateAssociationBatchRequestEntry$=[3,MP,oo,0,[dS,Mm,pv,dr,Ml,VR,IA,PE,$n,Iy,fy,yi,hA,Ln,Xo,hR,nw,Vl,IR,fe],[0,0,[()=>TD,0],0,0,()=>lD,0,()=>m.InstanceAssociationOutputLocation$,0,0,0,0,0,2,64|0,()=>oD,1,1,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],()=>m.AlarmConfiguration$],1];m.CreateAssociationBatchResult$=[3,MP,so,0,[Zw,Ou],[[()=>nx,0],[()=>Vx,0]]];m.CreateAssociationRequest$=[3,MP,lo,0,[dS,Ml,Mm,pv,VR,IA,PE,$n,dr,Iy,fy,yi,hA,Ln,Xo,hR,nw,Vl,IR,nR,fe,qe],[0,0,0,[()=>TD,0],()=>lD,0,()=>m.InstanceAssociationOutputLocation$,0,0,0,0,0,0,2,64|0,()=>oD,1,1,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],()=>rD,()=>m.AlarmConfiguration$,0],1];m.CreateAssociationResult$=[3,MP,uo,0,[Ue],[[()=>m.AssociationDescription$,0]]];m.CreateDocumentRequest$=[3,MP,Ao,0,[zi,dS,Fb,jr,pc,aP,bl,Ys,GR,nR],[0,0,()=>qx,()=>mx,0,0,0,0,0,()=>rD],2];m.CreateDocumentResult$=[3,MP,wo,0,[Ps],[[()=>m.DocumentDescription$,0]]];m.CreateMaintenanceWindowRequest$=[3,MP,Qo,0,[dS,jw,Vl,Yi,Cr,Qi,CA,nu,Tw,nw,Oi,nR],[0,0,1,1,2,[()=>jP,0],0,0,0,1,[0,4],()=>rD],5];m.CreateMaintenanceWindowResult$=[3,MP,Jo,0,[SP],[0]];m.CreateOpsItemRequest$=[3,MP,ni,0,[Qi,Jw,QR,RE,qS,$S,WC,QI,nR,qi,Gw,ir,an,AC,bv,En],[0,0,0,0,()=>RD,()=>J_,1,()=>qO,()=>rD,0,0,4,4,4,4,0],3];m.CreateOpsItemResponse$=[3,MP,ri,0,[uE,ZS],[0,0]];m.CreateOpsMetadataRequest$=[3,MP,ii,0,[LI,lS,nR],[0,()=>vD,()=>rD],1];m.CreateOpsMetadataResult$=[3,MP,si,0,[_E],[0]];m.CreatePatchBaselineRequest$=[3,MP,li,0,[dS,XE,bd,Wn,Bn,Gn,zn,ZI,eb,Qi,Qw,ar,Oi,nR],[0,0,()=>m.PatchFilterGroup$,()=>m.PatchRuleGroup$,64|0,0,2,64|0,0,0,[()=>$O,0],0,[0,4],()=>rD],1];m.CreatePatchBaselineResult$=[3,MP,ui,0,[Wr],[0]];m.CreateResourceDataSyncRequest$=[3,MP,fi,0,[ZA,vA,bw,Iw],[0,()=>m.ResourceDataSyncS3Destination$,0,()=>m.ResourceDataSyncSource$],1];m.CreateResourceDataSyncResult$=[3,MP,hi,0,[],[]];m.Credentials$=[3,MP,Ki,0,[Pn,Qb,Pw,bu],[0,[()=>FP,0],[()=>YP,0],4],4];m.DeleteActivationRequest$=[3,MP,ms,0,[Cn],[0],1];m.DeleteActivationResult$=[3,MP,fs,0,[],[]];m.DeleteAssociationRequest$=[3,MP,hs,0,[dS,Mm,An],[0,0,0]];m.DeleteAssociationResult$=[3,MP,gs,0,[],[]];m.DeleteDocumentRequest$=[3,MP,Ms,0,[dS,Ml,aP,Ku],[0,0,0,2],1];m.DeleteDocumentResult$=[3,MP,$s,0,[],[]];m.DeleteInventoryRequest$=[3,MP,wa,0,[PR,yA,nl,Oi],[0,0,2,[0,4]],1];m.DeleteInventoryResult$=[3,MP,Ra,0,[ea,PR,vl],[0,0,()=>m.InventoryDeletionSummary$]];m.DeleteMaintenanceWindowRequest$=[3,MP,Qa,0,[SP],[0],1];m.DeleteMaintenanceWindowResult$=[3,MP,Ja,0,[SP],[0]];m.DeleteOpsItemRequest$=[3,MP,fc,0,[uE],[0],1];m.DeleteOpsItemResponse$=[3,MP,Sc,0,[],[]];m.DeleteOpsMetadataRequest$=[3,MP,bc,0,[_E],[0],1];m.DeleteOpsMetadataResult$=[3,MP,Ac,0,[],[]];m.DeleteParameterRequest$=[3,MP,Vc,0,[dS],[0],1];m.DeleteParameterResult$=[3,MP,Wc,0,[],[]];m.DeleteParametersRequest$=[3,MP,Kc,0,[MS],[64|0],1];m.DeleteParametersResult$=[3,MP,Yc,0,[wc,yf],[64|0,64|0]];m.DeletePatchBaselineRequest$=[3,MP,_c,0,[Wr],[0],1];m.DeletePatchBaselineResult$=[3,MP,Oc,0,[Wr],[0]];m.DeleteResourceDataSyncRequest$=[3,MP,sl,0,[ZA,bw],[0,0],1];m.DeleteResourceDataSyncResult$=[3,MP,al,0,[],[]];m.DeleteResourcePolicyRequest$=[3,MP,ul,0,[nI,Fv,kv],[0,0,0],3];m.DeleteResourcePolicyResponse$=[3,MP,dl,0,[],[]];m.DeregisterManagedInstanceRequest$=[3,MP,$a,0,[Mm],[0],1];m.DeregisterManagedInstanceResult$=[3,MP,Na,0,[],[]];m.DeregisterPatchBaselineForPatchGroupRequest$=[3,MP,Pc,0,[Wr,Dv],[0,0],2];m.DeregisterPatchBaselineForPatchGroupResult$=[3,MP,xc,0,[Wr,Dv],[0,0]];m.DeregisterTargetFromMaintenanceWindowRequest$=[3,MP,wl,0,[SP,vP,qw],[0,0,2],2];m.DeregisterTargetFromMaintenanceWindowResult$=[3,MP,Rl,0,[SP,vP],[0,0]];m.DeregisterTaskFromMaintenanceWindowRequest$=[3,MP,Tl,0,[SP,CP],[0,0],2];m.DeregisterTaskFromMaintenanceWindowResult$=[3,MP,Pl,0,[SP,CP],[0,0]];m.DescribeActivationsFilter$=[3,MP,cs,0,[Lu,Gu],[0,64|0]];m.DescribeActivationsRequest$=[3,MP,ys,0,[Wu,wy,xS],[()=>$x,1,0]];m.DescribeActivationsResult$=[3,MP,Ss,0,[_n,xS],[()=>ZP,0]];m.DescribeAssociationExecutionsRequest$=[3,MP,Zi,0,[An,Wu,wy,xS],[0,[()=>rx,0],1,0],1];m.DescribeAssociationExecutionsResult$=[3,MP,es,0,[ln,xS],[[()=>ox,0],0]];m.DescribeAssociationExecutionTargetsRequest$=[3,MP,os,0,[An,au,Wu,wy,xS],[0,0,[()=>ix,0],1,0],2];m.DescribeAssociationExecutionTargetsResult$=[3,MP,is,0,[cn,xS],[[()=>sx,0],0]];m.DescribeAssociationRequest$=[3,MP,Es,0,[dS,Mm,An,Ir],[0,0,0,0]];m.DescribeAssociationResult$=[3,MP,vs,0,[Ue],[[()=>m.AssociationDescription$,0]]];m.DescribeAutomationExecutionsRequest$=[3,MP,ts,0,[Wu,wy,xS],[()=>hx,1,0]];m.DescribeAutomationExecutionsResult$=[3,MP,ns,0,[Xt,xS],[()=>yx,0]];m.DescribeAutomationStepExecutionsRequest$=[3,MP,Is,0,[Wt,Wu,xS,wy,YI],[0,()=>ZO,0,1,2],1];m.DescribeAutomationStepExecutionsResult$=[3,MP,bs,0,[$A,xS],[()=>tD,0]];m.DescribeAvailablePatchesRequest$=[3,MP,ds,0,[Wu,wy,xS],[()=>_O,1,0]];m.DescribeAvailablePatchesResult$=[3,MP,ps,0,[qC,xS],[()=>xO,0]];m.DescribeDocumentPermissionRequest$=[3,MP,Os,0,[dS,xC,wy,xS],[0,0,1,0],2];m.DescribeDocumentPermissionResponse$=[3,MP,Ds,0,[vn,er,xS],[[()=>QP,0],[()=>XP,0],0]];m.DescribeDocumentRequest$=[3,MP,Ns,0,[dS,Ml,aP],[0,0,0],1];m.DescribeDocumentResult$=[3,MP,ks,0,[Hl],[[()=>m.DocumentDescription$,0]]];m.DescribeEffectiveInstanceAssociationsRequest$=[3,MP,zs,0,[Mm,wy,xS],[0,1,0],1];m.DescribeEffectiveInstanceAssociationsResult$=[3,MP,Hs,0,[qr,xS],[()=>Kx,0]];m.DescribeEffectivePatchesForPatchBaselineRequest$=[3,MP,Ws,0,[Wr,wy,xS],[0,1,0],1];m.DescribeEffectivePatchesForPatchBaselineResult$=[3,MP,Ks,0,[du,xS],[()=>zx,0]];m.DescribeInstanceAssociationsStatusRequest$=[3,MP,na,0,[Mm,wy,xS],[0,1,0],1];m.DescribeInstanceAssociationsStatusResult$=[3,MP,ra,0,[Hp,xS],[()=>Yx,0]];m.DescribeInstanceInformationRequest$=[3,MP,ca,0,[Fm,Wu,wy,xS],[[()=>Jx,0],[()=>e_,0],1,0]];m.DescribeInstanceInformationResult$=[3,MP,la,0,[Vm,xS],[[()=>Zx,0],0]];m.DescribeInstancePatchesRequest$=[3,MP,fa,0,[Mm,Wu,xS,wy],[0,()=>_O,0,1],1];m.DescribeInstancePatchesResult$=[3,MP,ha,0,[qC,xS],[()=>IO,0]];m.DescribeInstancePatchStatesForPatchGroupRequest$=[3,MP,va,0,[Dv,Wu,xS,wy],[0,()=>t_,0,1],1];m.DescribeInstancePatchStatesForPatchGroupResult$=[3,MP,Ca,0,[xf,xS],[[()=>o_,0],0]];m.DescribeInstancePatchStatesRequest$=[3,MP,Ia,0,[ef,xS,wy],[64|0,0,1],1];m.DescribeInstancePatchStatesResult$=[3,MP,ba,0,[xf,xS],[[()=>r_,0],0]];m.DescribeInstancePropertiesRequest$=[3,MP,ga,0,[bf,Hu,wy,xS],[[()=>s_,0],[()=>c_,0],1,0]];m.DescribeInstancePropertiesResult$=[3,MP,ya,0,[Ff,xS],[[()=>i_,0],0]];m.DescribeInventoryDeletionsRequest$=[3,MP,ia,0,[ea,xS,wy],[0,0,1]];m.DescribeInventoryDeletionsResult$=[3,MP,sa,0,[Cm,xS],[()=>u_,0]];m.DescribeMaintenanceWindowExecutionsRequest$=[3,MP,Fa,0,[SP,Wu,wy,xS],[0,()=>w_,1,0],1];m.DescribeMaintenanceWindowExecutionsResult$=[3,MP,qa,0,[fP,xS],[()=>C_,0]];m.DescribeMaintenanceWindowExecutionTaskInvocationsRequest$=[3,MP,Ga,0,[hP,uR,Wu,wy,xS],[0,0,()=>w_,1,0],2];m.DescribeMaintenanceWindowExecutionTaskInvocationsResult$=[3,MP,za,0,[yP,xS],[[()=>A_,0],0]];m.DescribeMaintenanceWindowExecutionTasksRequest$=[3,MP,Ha,0,[hP,Wu,wy,xS],[0,()=>w_,1,0],1];m.DescribeMaintenanceWindowExecutionTasksResult$=[3,MP,Va,0,[gP,xS],[()=>I_,0]];m.DescribeMaintenanceWindowScheduleRequest$=[3,MP,tc,0,[SP,VR,Tb,Wu,wy,xS],[0,()=>lD,0,()=>_O,1,0]];m.DescribeMaintenanceWindowScheduleResult$=[3,MP,nc,0,[Lw,xS],[()=>YO,0]];m.DescribeMaintenanceWindowsForTargetRequest$=[3,MP,Ka,0,[VR,Tb,wy,xS],[()=>lD,0,1,0],2];m.DescribeMaintenanceWindowsForTargetResult$=[3,MP,Ya,0,[EP,xS],[()=>P_,0]];m.DescribeMaintenanceWindowsRequest$=[3,MP,Xa,0,[Wu,wy,xS],[()=>w_,1,0]];m.DescribeMaintenanceWindowsResult$=[3,MP,Za,0,[EP,xS],[[()=>T_,0],0]];m.DescribeMaintenanceWindowTargetsRequest$=[3,MP,oc,0,[SP,Wu,wy,xS],[0,()=>w_,1,0],1];m.DescribeMaintenanceWindowTargetsResult$=[3,MP,ic,0,[VR,xS],[[()=>x_,0],0]];m.DescribeMaintenanceWindowTasksRequest$=[3,MP,sc,0,[SP,Wu,wy,xS],[0,()=>w_,1,0],1];m.DescribeMaintenanceWindowTasksResult$=[3,MP,ac,0,[YR,xS],[[()=>O_,0],0]];m.DescribeOpsItemsRequest$=[3,MP,Ec,0,[cE,wy,xS],[()=>Y_,1,0]];m.DescribeOpsItemsResponse$=[3,MP,vc,0,[xS,AE],[0,()=>rO]];m.DescribeParametersRequest$=[3,MP,Qc,0,[Wu,Av,wy,xS,Ww],[()=>fO,()=>gO,1,0,2]];m.DescribeParametersResult$=[3,MP,Jc,0,[pv,xS],[()=>dO,0]];m.DescribePatchBaselinesRequest$=[3,MP,Dc,0,[Wu,wy,xS],[()=>_O,1,0]];m.DescribePatchBaselinesResult$=[3,MP,Mc,0,[Kr,xS],[()=>vO,0]];m.DescribePatchGroupsRequest$=[3,MP,kc,0,[wy,Wu,xS],[1,()=>_O,0]];m.DescribePatchGroupsResult$=[3,MP,Lc,0,[cS,xS],[()=>TO,0]];m.DescribePatchGroupStateRequest$=[3,MP,Fc,0,[Dv],[0],1];m.DescribePatchGroupStateResult$=[3,MP,qc,0,[bh,hh,fh,gh,yh,Sh,mh,Eh,Ih,ph,Ch,vh,dh],[1,1,1,1,1,1,1,1,1,1,1,1,1]];m.DescribePatchPropertiesRequest$=[3,MP,zc,0,[XE,YC,yC,wy,xS],[0,0,0,1,0],2];m.DescribePatchPropertiesResult$=[3,MP,Hc,0,[XC,xS],[[1,MP,oC,0,128|0],0]];m.DescribeSessionsRequest$=[3,MP,yl,0,[Gb,wy,xS,Wu],[0,1,0,()=>QO],1];m.DescribeSessionsResponse$=[3,MP,Sl,0,[Hw,xS],[()=>JO,0]];m.DisassociateOpsItemRelatedItemRequest$=[3,MP,gc,0,[uE,An],[0,0],2];m.DisassociateOpsItemRelatedItemResponse$=[3,MP,yc,0,[],[]];m.DocumentDefaultVersionDescription$=[3,MP,Fs,0,[dS,Ul,Ll],[0,0,0]];m.DocumentDescription$=[3,MP,Ps,0,[Kw,Tp,_p,dS,pc,aP,dv,bo,Xw,qA,Ml,Qi,pv,OC,bl,Nw,cy,Ul,Ys,GR,nR,Tn,Fb,zr,qI,Tr,hC,lb,qi,xo],[0,0,0,0,0,0,0,4,0,0,0,0,[()=>Fx,0],[()=>kO,0],0,0,0,0,0,0,()=>rD,[()=>px,0],()=>qx,0,[()=>WO,0],0,0,0,64|0,64|0]];m.DocumentFilter$=[3,MP,Js,0,[RP,_P],[0,0],2];m.DocumentIdentifier$=[3,MP,Pa,0,[dS,bo,pc,dv,aP,OC,Ml,bl,Nw,Ys,GR,nR,Fb,lb,zr],[0,4,0,0,0,[()=>kO,0],0,0,0,0,0,()=>rD,()=>qx,0,0]];m.DocumentKeyValuesFilter$=[3,MP,_a,0,[_h,lP],[0,64|0]];m.DocumentMetadataResponseInfo$=[3,MP,ka,0,[cb],[()=>Bx]];m.DocumentParameter$=[3,MP,tl,0,[dS,ZR,Qi,Fl],[0,0,0,0]];m.DocumentRequires$=[3,MP,fl,0,[dS,dP,Pb,aP],[0,0,0,0],1];m.DocumentReviewCommentSource$=[3,MP,ol,0,[ZR,zi],[0,0]];m.DocumentReviewerResponseSource$=[3,MP,ml,0,[Mi,rP,lb,Bi,jb],[4,4,0,()=>jx,0]];m.DocumentReviews$=[3,MP,hl,0,[_r,Bi],[0,()=>jx],1];m.DocumentVersionInfo$=[3,MP,$l,0,[dS,pc,Ml,aP,bo,vm,Ys,Xw,qA,lb],[0,0,0,0,4,2,0,0,0,0]];m.EffectivePatch$=[3,MP,fu,0,[BC,wC],[()=>m.Patch$,()=>m.PatchStatus$]];m.FailedCreateAssociation$=[3,MP,Mu,0,[Ru,py,Vu],[[()=>m.CreateAssociationBatchRequestEntry$,0],0,0]];m.FailureDetails$=[3,MP,ku,0,[qu,Bu,Gl],[0,0,[2,MP,Hn,0,0,64|0]]];m.GetAccessTokenRequest$=[3,MP,ed,0,[Kn],[0],1];m.GetAccessTokenResponse$=[3,MP,td,0,[Ki,Qn],[[()=>m.Credentials$,0],0]];m.GetAutomationExecutionRequest$=[3,MP,Ju,0,[Wt],[0],1];m.GetAutomationExecutionResult$=[3,MP,Xu,0,[un],[()=>m.AutomationExecution$]];m.GetCalendarStateRequest$=[3,MP,sd,0,[Xo,Sr],[64|0,0],1];m.GetCalendarStateResponse$=[3,MP,ad,0,[Gb,Sr,_S],[0,0,0]];m.GetCommandInvocationRequest$=[3,MP,rd,0,[No,Mm,Zv],[0,0,0],2];m.GetCommandInvocationResult$=[3,MP,od,0,[No,Mm,Bi,uc,Ml,Zv,mI,Su,su,ou,Xw,gA,rw,iw,bA,MA,Li],[0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,()=>m.CloudWatchOutputConfig$]];m.GetConnectionStatusRequest$=[3,MP,cd,0,[KR],[0],1];m.GetConnectionStatusResponse$=[3,MP,ld,0,[KR,Xw],[0,0]];m.GetDefaultPatchBaselineRequest$=[3,MP,md,0,[XE],[0]];m.GetDefaultPatchBaselineResult$=[3,MP,fd,0,[Wr,XE],[0,0]];m.GetDeployablePatchSnapshotForInstanceRequest$=[3,MP,gd,0,[Mm,GA,Zr,ZT],[0,0,[()=>m.BaselineOverride$,0],2],2];m.GetDeployablePatchSnapshotForInstanceResult$=[3,MP,yd,0,[Mm,GA,SA,QC],[0,0,0,0]];m.GetDocumentRequest$=[3,MP,Sd,0,[dS,aP,Ml,Ys],[0,0,0,0],1];m.GetDocumentResult$=[3,MP,Ed,0,[dS,bo,pc,aP,Ml,Xw,qA,zi,bl,Ys,Fb,Le,lb],[0,4,0,0,0,0,0,0,0,0,()=>qx,[()=>dx,0],0]];m.GetExecutionPreviewRequest$=[3,MP,Cd,0,[pu],[0],1];m.GetExecutionPreviewResponse$=[3,MP,Id,0,[pu,Ql,Xw,QA,hu],[0,4,0,0,()=>m.ExecutionPreview$]];m.GetInventoryRequest$=[3,MP,wd,0,[Wu,Dr,oI,xS,wy],[[()=>p_,0],[()=>l_,0],[()=>VO,0],0,1]];m.GetInventoryResult$=[3,MP,Rd,0,[Tu,xS],[[()=>E_,0],0]];m.GetInventorySchemaRequest$=[3,MP,Pd,0,[PR,xS,wy,Mr,Dw],[0,0,1,2,2]];m.GetInventorySchemaResult$=[3,MP,xd,0,[Bw,xS],[[()=>S_,0],0]];m.GetMaintenanceWindowExecutionRequest$=[3,MP,Dd,0,[hP],[0],1];m.GetMaintenanceWindowExecutionResult$=[3,MP,Md,0,[hP,mR,Xw,gA,Ow,Cu],[0,64|0,0,0,4,4]];m.GetMaintenanceWindowExecutionTaskInvocationRequest$=[3,MP,kd,0,[hP,uR,rf],[0,0,0],3];m.GetMaintenanceWindowExecutionTaskInvocationResult$=[3,MP,Ld,0,[hP,lR,rf,au,zR,pv,Xw,gA,Ow,Cu,XS,vP],[0,0,0,0,0,[()=>BP,0],0,0,4,4,[()=>VP,0],0]];m.GetMaintenanceWindowExecutionTaskRequest$=[3,MP,Ud,0,[hP,uR],[0,0],2];m.GetMaintenanceWindowExecutionTaskResult$=[3,MP,Fd,0,[hP,lR,oR,lw,ZR,NR,WC,fy,Iy,Xw,gA,Ow,Cu,fe,rR],[0,0,0,0,0,[()=>D_,0],1,0,0,0,0,4,4,()=>m.AlarmConfiguration$,()=>tx]];m.GetMaintenanceWindowRequest$=[3,MP,qd,0,[SP],[0],1];m.GetMaintenanceWindowResult$=[3,MP,jd,0,[SP,dS,Qi,CA,nu,jw,Tw,nw,vS,Vl,Yi,Cr,wu,bo,yy],[0,0,[()=>jP,0],0,0,0,0,1,0,1,1,2,2,4,4]];m.GetMaintenanceWindowTaskRequest$=[3,MP,Gd,0,[SP,CP],[0,0],2];m.GetMaintenanceWindowTaskResult$=[3,MP,zd,0,[SP,CP,VR,oR,uw,zR,NR,dR,WC,fy,Iy,fg,dS,Qi,fo,fe],[0,0,()=>lD,0,0,0,[()=>ED,0],[()=>m.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>m.LoggingInfo$,0,[()=>jP,0],0,()=>m.AlarmConfiguration$]];m.GetOpsItemRequest$=[3,MP,Vd,0,[uE,ZS],[0,0],1];m.GetOpsItemResponse$=[3,MP,Wd,0,[TE],[()=>m.OpsItem$]];m.GetOpsMetadataRequest$=[3,MP,Yd,0,[_E,wy,xS],[0,1,0],1];m.GetOpsMetadataResult$=[3,MP,Qd,0,[LI,lS,xS],[0,()=>vD,0]];m.GetOpsSummaryRequest$=[3,MP,Xd,0,[ZA,Wu,Dr,oI,xS,wy],[0,[()=>z_,0],[()=>j_,0],[()=>aO,0],0,1]];m.GetOpsSummaryResult$=[3,MP,Zd,0,[Tu,xS],[[()=>G_,0],0]];m.GetParameterHistoryRequest$=[3,MP,pp,0,[dS,mP,wy,xS],[0,2,1,0],1];m.GetParameterHistoryResult$=[3,MP,mp,0,[pv,xS],[[()=>cO,0],0]];m.GetParameterRequest$=[3,MP,fp,0,[dS,mP],[0,2],1];m.GetParameterResult$=[3,MP,hp,0,[jC],[[()=>m.Parameter$,0]]];m.GetParametersByPathRequest$=[3,MP,ap,0,[GC,$b,Av,mP,wy,xS],[0,2,()=>gO,2,1,0],1];m.GetParametersByPathResult$=[3,MP,cp,0,[pv,xS],[[()=>uO,0],0]];m.GetParametersRequest$=[3,MP,gp,0,[MS,mP],[64|0,2],1];m.GetParametersResult$=[3,MP,yp,0,[pv,yf],[[()=>uO,0],64|0]];m.GetPatchBaselineForPatchGroupRequest$=[3,MP,rp,0,[Dv,XE],[0,0],1];m.GetPatchBaselineForPatchGroupResult$=[3,MP,ip,0,[Wr,Dv,XE],[0,0,0]];m.GetPatchBaselineRequest$=[3,MP,lp,0,[Wr],[0],1];m.GetPatchBaselineResult$=[3,MP,up,0,[Wr,dS,XE,bd,Wn,Bn,Gn,zn,ZI,eb,Nv,bo,yy,Qi,Qw,ar],[0,0,0,()=>m.PatchFilterGroup$,()=>m.PatchRuleGroup$,64|0,0,2,64|0,0,64|0,4,4,0,[()=>$O,0],0]];m.GetResourcePoliciesRequest$=[3,MP,vp,0,[nI,xS,wy],[0,0,1],1];m.GetResourcePoliciesResponse$=[3,MP,bp,0,[xS,HC],[0,()=>Wx]];m.GetResourcePoliciesResponseEntry$=[3,MP,Cp,0,[Fv,kv,VC],[0,0,0]];m.GetServiceSettingRequest$=[3,MP,wp,0,[jA],[0],1];m.GetServiceSettingResult$=[3,MP,Rp,0,[Sw],[()=>m.ServiceSetting$]];m.InstanceAggregatedAssociationOverview$=[3,MP,$p,0,[gl,Gp],[0,128|1]];m.InstanceAssociation$=[3,MP,Qp,0,[An,Mm,zi,Ir],[0,0,0,0]];m.InstanceAssociationOutputLocation$=[3,MP,qp,0,[WA],[()=>m.S3OutputLocation$]];m.InstanceAssociationOutputUrl$=[3,MP,jp,0,[sw],[()=>m.S3OutputUrl$]];m.InstanceAssociationStatusInfo$=[3,MP,Vp,0,[An,dS,Ml,Ir,Mm,ru,Xw,gl,yu,eu,ev,$n],[0,0,0,0,0,4,0,0,0,0,()=>m.InstanceAssociationOutputUrl$,0]];m.InstanceInfo$=[3,MP,tf,0,[gr,Rr,ei,th,Xp,Ty,DC,eC,NC,Tb],[0,0,0,0,[()=>qP,0],0,0,0,0,0]];m.InstanceInformation$=[3,MP,nf,0,[Mm,TC,Ug,Rr,cf,DC,eC,NC,Cn,Qf,hI,Tb,dS,Sf,ei,Jn,Uh,Yg,kn,zA,_w],[0,0,4,0,2,0,0,0,0,0,4,0,0,[()=>qP,0],0,0,4,4,()=>m.InstanceAggregatedAssociationOverview$,0,0]];m.InstanceInformationFilter$=[3,MP,Um,0,[RP,OP],[0,[()=>Xx,0]],2];m.InstanceInformationStringFilter$=[3,MP,Jm,0,[_h,lP],[0,[()=>Xx,0]],2];m.InstancePatchState$=[3,MP,kf,0,[Mm,Dv,Wr,YE,WS,iv,GA,gf,XS,Zp,pf,Pf,Gf,gy,Du,MT,mS,sr,Ag,XI,Zo,ew,qE],[0,0,0,4,4,0,0,0,[()=>VP,0],1,1,1,1,1,1,1,1,1,4,0,1,1,1],6];m.InstancePatchStateFilter$=[3,MP,_f,0,[_h,lP,ZR],[0,64|0,0],3];m.InstanceProperty$=[3,MP,qf,0,[dS,Mm,ah,Jf,Mh,nh,kr,Sf,sy,TC,Ug,Rr,DC,eC,NC,Cn,Qf,hI,Tb,ei,Jn,Uh,Yg,kn,zA,_w],[0,0,0,0,0,0,0,[()=>qP,0],4,0,4,0,0,0,0,0,0,4,0,0,0,4,4,()=>m.InstanceAggregatedAssociationOverview$,0,0]];m.InstancePropertyFilter$=[3,MP,If,0,[RP,OP],[0,[()=>a_,0]],2];m.InstancePropertyStringFilter$=[3,MP,Mf,0,[_h,lP,sv],[0,[()=>a_,0],0],2];m.InventoryAggregator$=[3,MP,Jp,0,[_u,Dr,Yu],[0,[()=>l_,0],[()=>f_,0]]];m.InventoryDeletionStatusItem$=[3,MP,fm,0,[ea,PR,El,Kg,Jg,vl,ty],[0,0,4,0,0,()=>m.InventoryDeletionSummary$,4]];m.InventoryDeletionSummary$=[3,MP,mm,0,[aR,pI,HA],[1,1,()=>d_]];m.InventoryDeletionSummaryItem$=[3,MP,hm,0,[dP,Wi,pI],[0,1,1]];m.InventoryFilter$=[3,MP,_m,0,[_h,lP,ZR],[0,[()=>m_,0],0],2];m.InventoryGroup$=[3,MP,Om,0,[dS,Wu],[0,[()=>p_,0]],2];m.InventoryItem$=[3,MP,of,0,[PR,Nw,_i,$o,zi,Vi],[0,0,0,0,[1,MP,Lm,0,128|0],128|0],3];m.InventoryItemAttribute$=[3,MP,$m,0,[dS,Ol],[0,0],2];m.InventoryItemSchema$=[3,MP,Qm,0,[PR,Br,dP,pc],[0,[()=>h_,0],0,0],2];m.InventoryResultEntity$=[3,MP,zf,0,[Dp,Bl],[0,()=>SD]];m.InventoryResultItem$=[3,MP,Kf,0,[PR,Nw,zi,_i,$o],[0,0,[1,MP,Lm,0,128|0],0,0],3];m.LabelParameterVersionRequest$=[3,MP,qg,0,[dS,ly,UC],[0,64|0,1],2];m.LabelParameterVersionResult$=[3,MP,jg,0,[af,UC],[64|0,1]];m.ListAssociationsRequest$=[3,MP,Fh,0,[pn,wy,xS],[[()=>ax,0],1,0]];m.ListAssociationsResult$=[3,MP,qh,0,[qr,xS],[[()=>lx,0],0]];m.ListAssociationVersionsRequest$=[3,MP,Bh,0,[An,wy,xS],[0,1,0],1];m.ListAssociationVersionsResult$=[3,MP,Gh,0,[Pr,xS],[[()=>ux,0],0]];m.ListCommandInvocationsRequest$=[3,MP,Vh,0,[No,Mm,wy,xS,Wu,Gl],[0,0,1,0,()=>Ix,2]];m.ListCommandInvocationsResult$=[3,MP,Wh,0,[Bo,xS],[()=>bx,0]];m.ListCommandsRequest$=[3,MP,Jh,0,[No,Mm,wy,xS,Wu],[0,0,1,0,()=>Ix]];m.ListCommandsResult$=[3,MP,Xh,0,[Gi,xS],[[()=>Ax,0],0]];m.ListComplianceItemsRequest$=[3,MP,Kh,0,[Wu,jI,yb,xS,wy],[[()=>_x,0],64|0,64|0,0,1]];m.ListComplianceItemsResult$=[3,MP,Yh,0,[Go,xS],[[()=>Tx,0],0]];m.ListComplianceSummariesRequest$=[3,MP,eg,0,[Wu,xS,wy],[[()=>_x,0],0,1]];m.ListComplianceSummariesResult$=[3,MP,tg,0,[Ai,xS],[[()=>Dx,0],0]];m.ListDocumentMetadataHistoryRequest$=[3,MP,ig,0,[dS,lS,Ml,xS,wy],[0,0,0,0,1],2];m.ListDocumentMetadataHistoryResponse$=[3,MP,sg,0,[dS,Ml,zr,lS,xS],[0,0,0,()=>m.DocumentMetadataResponseInfo$,0]];m.ListDocumentsRequest$=[3,MP,ag,0,[Qs,Wu,wy,xS],[[()=>Nx,0],()=>Lx,1,0]];m.ListDocumentsResult$=[3,MP,cg,0,[xa,xS],[[()=>kx,0],0]];m.ListDocumentVersionsRequest$=[3,MP,ug,0,[dS,wy,xS],[0,1,0],1];m.ListDocumentVersionsResult$=[3,MP,dg,0,[ql,xS],[()=>Gx,0]];m.ListInventoryEntriesRequest$=[3,MP,gg,0,[Mm,PR,Wu,xS,wy],[0,0,[()=>p_,0],0,1],2];m.ListInventoryEntriesResult$=[3,MP,yg,0,[PR,Mm,Nw,_i,Au,xS],[0,0,0,0,[1,MP,Lm,0,128|0],0]];m.ListNodesRequest$=[3,MP,bg,0,[ZA,Wu,xS,wy],[0,[()=>k_,0],0,1]];m.ListNodesResult$=[3,MP,wg,0,[NS,xS],[[()=>U_,0],0]];m.ListNodesSummaryRequest$=[3,MP,Tg,0,[Dr,ZA,Wu,xS,wy],[[()=>N_,0],0,[()=>k_,0],0,1],1];m.ListNodesSummaryResult$=[3,MP,Pg,0,[eR,xS],[[1,MP,PS,0,128|0],0]];m.ListOpsItemEventsRequest$=[3,MP,_g,0,[Wu,wy,xS],[()=>V_,1,0]];m.ListOpsItemEventsResponse$=[3,MP,Og,0,[xS,tR],[0,()=>K_]];m.ListOpsItemRelatedItemsRequest$=[3,MP,Mg,0,[uE,Wu,wy,xS],[0,()=>eO,1,0]];m.ListOpsItemRelatedItemsResponse$=[3,MP,$g,0,[xS,tR],[0,()=>nO]];m.ListOpsMetadataRequest$=[3,MP,kg,0,[Wu,wy,xS],[()=>oO,1,0]];m.ListOpsMetadataResult$=[3,MP,Lg,0,[kE,xS],[()=>sO,0]];m.ListResourceComplianceSummariesRequest$=[3,MP,Gg,0,[Wu,xS,wy],[[()=>_x,0],0,1]];m.ListResourceComplianceSummariesResult$=[3,MP,zg,0,[cI,xS],[[()=>jO,0],0]];m.ListResourceDataSyncRequest$=[3,MP,Vg,0,[bw,xS,wy],[0,0,1]];m.ListResourceDataSyncResult$=[3,MP,Wg,0,[AI,xS],[()=>BO,0]];m.ListTagsForResourceRequest$=[3,MP,oy,0,[Tb,LI],[0,0],2];m.ListTagsForResourceResult$=[3,MP,iy,0,[vR],[()=>rD]];m.LoggingInfo$=[3,MP,fg,0,[sA,dw,VA],[0,0,0],2];m.MaintenanceWindowAutomationParameters$=[3,MP,Dy,0,[Ml,pv],[0,[2,MP,Hn,0,0,64|0]]];m.MaintenanceWindowExecution$=[3,MP,$y,0,[SP,hP,Xw,gA,Ow,Cu],[0,0,0,0,4,4]];m.MaintenanceWindowExecutionTaskIdentity$=[3,MP,ky,0,[hP,lR,Xw,gA,Ow,Cu,oR,zR,fe,rR],[0,0,0,0,4,4,0,0,()=>m.AlarmConfiguration$,()=>tx]];m.MaintenanceWindowExecutionTaskInvocationIdentity$=[3,MP,Ly,0,[hP,lR,rf,au,zR,pv,Xw,gA,Ow,Cu,XS,vP],[0,0,0,0,0,[()=>BP,0],0,0,4,4,[()=>VP,0],0]];m.MaintenanceWindowFilter$=[3,MP,jy,0,[_h,lP],[0,64|0]];m.MaintenanceWindowIdentity$=[3,MP,zy,0,[SP,dS,Qi,wu,Vl,Yi,jw,Tw,nw,nu,CA,vS],[0,0,[()=>jP,0],2,1,1,0,0,1,0,0,0]];m.MaintenanceWindowIdentityForTarget$=[3,MP,Hy,0,[SP,dS],[0,0]];m.MaintenanceWindowLambdaParameters$=[3,MP,Ky,0,[vo,ZC,zC],[0,0,[()=>GP,0]]];m.MaintenanceWindowRunCommandParameters$=[3,MP,Yy,0,[Bi,Li,Xs,Zs,Ml,gS,HE,WE,pv,uw,LR],[0,()=>m.CloudWatchOutputConfig$,0,0,0,()=>m.NotificationConfig$,0,0,[()=>TD,0],0,1]];m.MaintenanceWindowStepFunctionsParameters$=[3,MP,Jy,0,[Ah,dS],[[()=>zP,0],0]];m.MaintenanceWindowTarget$=[3,MP,Xy,0,[SP,vP,Tb,VR,XS,dS,Qi],[0,0,0,()=>lD,[()=>VP,0],0,[()=>jP,0]]];m.MaintenanceWindowTask$=[3,MP,aS,0,[SP,CP,oR,ZR,VR,NR,WC,fg,uw,fy,Iy,dS,Qi,fo,fe],[0,0,0,0,()=>lD,[()=>ED,0],1,()=>m.LoggingInfo$,0,0,0,0,[()=>jP,0],0,()=>m.AlarmConfiguration$]];m.MaintenanceWindowTaskInvocationParameters$=[3,MP,Zy,0,[fI,Hr,kA,uy],[[()=>m.MaintenanceWindowRunCommandParameters$,0],()=>m.MaintenanceWindowAutomationParameters$,[()=>m.MaintenanceWindowStepFunctionsParameters$,0],[()=>m.MaintenanceWindowLambdaParameters$,0]]];m.MaintenanceWindowTaskParameterValueExpression$=[3,MP,iS,8,[lP],[[()=>M_,0]]];m.MetadataValue$=[3,MP,Oy,0,[iP],[0]];m.ModifyDocumentPermissionRequest$=[3,MP,Ey,0,[dS,xC,yn,Sn,EA],[0,0,[()=>QP,0],[()=>QP,0],0],2];m.ModifyDocumentPermissionResponse$=[3,MP,vy,0,[],[]];m.Node$=[3,MP,kS,0,[_i,Dp,dv,Nb,OS],[4,0,()=>m.NodeOwnerInfo$,0,[()=>m.NodeType$,0]]];m.NodeAggregator$=[3,MP,pS,0,[yr,PR,Nn,Dr],[0,0,0,[()=>N_,0]],3];m.NodeFilter$=[3,MP,CS,0,[_h,lP,ZR],[0,[()=>L_,0],0],2];m.NodeOwnerInfo$=[3,MP,RS,0,[En,tv,rv],[0,0,0]];m.NonCompliantSummary$=[3,MP,SS,0,[yS,fw],[1,()=>m.SeveritySummary$]];m.NotificationConfig$=[3,MP,gS,0,[hS,ES,DS],[0,64|0,0]];m.OpsAggregator$=[3,MP,US,0,[yr,PR,Nn,lP,Wu,Dr],[0,0,0,128|0,[()=>z_,0],[()=>j_,0]]];m.OpsEntity$=[3,MP,BS,0,[Dp,Bl],[0,()=>wD]];m.OpsEntityItem$=[3,MP,GS,0,[_i,zi],[0,[1,MP,zS,0,128|0]]];m.OpsFilter$=[3,MP,KS,0,[_h,lP,ZR],[0,[()=>H_,0],0],2];m.OpsItem$=[3,MP,TE,0,[ho,RE,Pi,Qi,Sg,vg,$S,WC,QI,Xw,uE,dP,QR,Jw,qS,qi,Gw,ir,an,AC,bv,ZS],[0,0,4,0,0,4,()=>J_,1,()=>qO,0,0,0,0,0,()=>RD,0,0,4,4,4,4,0]];m.OpsItemDataValue$=[3,MP,rE,0,[iP,ZR],[0,0]];m.OpsItemEventFilter$=[3,MP,oE,0,[_h,lP,sv],[0,64|0,0],3];m.OpsItemEventSummary$=[3,MP,sE,0,[uE,cu,Jw,Dl,zl,ho,Pi],[0,0,0,0,0,()=>m.OpsItemIdentity$,4]];m.OpsItemFilter$=[3,MP,lE,0,[_h,lP,sv],[0,64|0,0],3];m.OpsItemIdentity$=[3,MP,pE,0,[Ur],[0]];m.OpsItemNotification$=[3,MP,fE,0,[Ur],[0]];m.OpsItemRelatedItemsFilter$=[3,MP,vE,0,[_h,lP,sv],[0,64|0,0],3];m.OpsItemRelatedItemSummary$=[3,MP,IE,0,[uE,An,Tb,ur,Ob,ho,Pi,Sg,vg],[0,0,0,0,0,()=>m.OpsItemIdentity$,4,()=>m.OpsItemIdentity$,4]];m.OpsItemSummary$=[3,MP,wE,0,[ho,Pi,Sg,vg,WC,Jw,Xw,uE,QR,qS,qi,Gw,RE,ir,an,AC,bv],[0,4,0,4,1,0,0,0,0,()=>RD,0,0,0,4,4,4,4]];m.OpsMetadata$=[3,MP,xE,0,[LI,_E,Eg,Cg,To],[0,0,4,0,4]];m.OpsMetadataFilter$=[3,MP,DE,0,[_h,lP],[0,64|0],2];m.OpsResultAttribute$=[3,MP,BE,0,[PR],[0],1];m.OutputSource$=[3,MP,zE,0,[VE,JE],[0,0]];m.Parameter$=[3,MP,jC,0,[dS,ZR,iP,dP,zw,pw,Eg,Yn,Ol],[0,0,[()=>KP,0],1,0,0,4,0,0]];m.ParameterHistory$=[3,MP,Uv,0,[dS,ZR,Dh,Eg,Cg,Qi,iP,Vn,dP,ly,JR,HC,Ol],[0,0,0,4,0,0,[()=>KP,0],0,1,64|0,0,()=>mO,0]];m.ParameterInlinePolicy$=[3,MP,qv,0,[MC,$C,PC],[0,0,0]];m.ParameterMetadata$=[3,MP,Kv,0,[dS,Yn,ZR,Dh,Eg,Cg,Qi,Vn,dP,JR,HC,Ol],[0,0,0,0,4,0,0,0,1,0,()=>mO,0]];m.ParametersFilter$=[3,MP,Pv,0,[_h,lP],[0,64|0],2];m.ParameterStringFilter$=[3,MP,vC,0,[_h,av,lP],[0,0,64|0],1];m.ParentStepDetails$=[3,MP,EC,0,[RA,tw,_r,Th,uh],[0,0,0,1,0]];m.Patch$=[3,MP,BC,0,[Dp,NI,QR,Qi,$i,pP,Ov,QC,ji,xy,$h,Ay,dy,bn,Qr,Ni,dS,xu,dP,kb,Lr,Gw,Lb],[0,4,0,0,0,0,0,0,0,0,0,0,0,64|0,64|0,64|0,0,1,0,0,0,0,0]];m.PatchBaselineIdentity$=[3,MP,hv,0,[Wr,Jr,XE,Vr,Ts],[0,0,0,0,2]];m.PatchComplianceData$=[3,MP,Sv,0,[QR,Oh,ji,Gw,Gb,ch,Ni],[0,0,0,0,0,4,0],6];m.PatchFilter$=[3,MP,xv,0,[_h,lP],[0,64|0],2];m.PatchFilterGroup$=[3,MP,wv,0,[_v],[()=>AO],1];m.PatchGroupPatchBaselineMapping$=[3,MP,Mv,0,[Dv,Yr],[0,()=>m.PatchBaselineIdentity$]];m.PatchOrchestratorFilter$=[3,MP,tC,0,[_h,lP],[0,64|0]];m.PatchRule$=[3,MP,lC,0,[wv,zo,V,vr,uu],[()=>m.PatchFilterGroup$,0,1,0,2],1];m.PatchRuleGroup$=[3,MP,uC,0,[gC],[()=>MO],1];m.PatchSource$=[3,MP,RC,0,[dS,JC,Hi],[0,64|0,[()=>WP,0]],3];m.PatchStatus$=[3,MP,wC,0,[Cl,zo,_t],[0,0,4]];m.ProgressCounters$=[3,MP,yv,0,[BR,Cw,ju,Ri,OR],[1,1,1,1,1]];m.PutComplianceItemsRequest$=[3,MP,Cv,0,[LI,Tb,Di,yu,Ph,em,oP],[0,0,0,()=>m.ComplianceExecutionSummary$,()=>Rx,0,0],5];m.PutComplianceItemsResult$=[3,MP,Iv,0,[],[]];m.PutInventoryRequest$=[3,MP,jv,0,[Mm,Ph],[0,[()=>y_,0]],2];m.PutInventoryResult$=[3,MP,Bv,0,[py],[0]];m.PutParameterRequest$=[3,MP,aC,0,[dS,iP,Qi,ZR,Dh,uv,Vn,nR,JR,HC,Ol],[0,[()=>KP,0],0,0,0,2,0,()=>rD,0,0,0],2];m.PutParameterResult$=[3,MP,cC,0,[dP,JR],[1,0]];m.PutResourcePolicyRequest$=[3,MP,mC,0,[nI,VC,Fv,kv],[0,0,0,0],2];m.PutResourcePolicyResponse$=[3,MP,fC,0,[Fv,kv],[0,0]];m.RegisterDefaultPatchBaselineRequest$=[3,MP,yI,0,[Wr],[0],1];m.RegisterDefaultPatchBaselineResult$=[3,MP,SI,0,[Wr],[0]];m.RegisterPatchBaselineForPatchGroupRequest$=[3,MP,nb,0,[Wr,Dv],[0,0],2];m.RegisterPatchBaselineForPatchGroupResult$=[3,MP,rb,0,[Wr,Dv],[0,0]];m.RegisterTargetWithMaintenanceWindowRequest$=[3,MP,Ib,0,[SP,Tb,VR,XS,dS,Qi,Oi],[0,0,()=>lD,[()=>VP,0],0,[()=>jP,0],[0,4]],3];m.RegisterTargetWithMaintenanceWindowResult$=[3,MP,bb,0,[vP],[0]];m.RegisterTaskWithMaintenanceWindowRequest$=[3,MP,Ab,0,[SP,oR,zR,VR,uw,NR,dR,WC,fy,Iy,fg,dS,Qi,Oi,fo,fe],[0,0,0,()=>lD,0,[()=>ED,0],[()=>m.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>m.LoggingInfo$,0,[()=>jP,0],[0,4],0,()=>m.AlarmConfiguration$],3];m.RegisterTaskWithMaintenanceWindowResult$=[3,MP,wb,0,[CP],[0]];m.RegistrationMetadataItem$=[3,MP,VI,0,[_h,iP],[0,0],2];m.RelatedOpsItem$=[3,MP,JI,0,[uE],[0],1];m.RemoveTagsFromResourceRequest$=[3,MP,Eb,0,[Tb,LI,fR],[0,0,64|0],3];m.RemoveTagsFromResourceResult$=[3,MP,vb,0,[],[]];m.ResetServiceSettingRequest$=[3,MP,fb,0,[jA],[0],1];m.ResetServiceSettingResult$=[3,MP,hb,0,[Sw],[()=>m.ServiceSetting$]];m.ResolvedTargets$=[3,MP,xb,0,[FC,XR],[64|0,2]];m.ResourceComplianceSummaryItem$=[3,MP,uI,0,[Di,Tb,LI,Xw,ZE,yu,Ti,SS],[0,0,0,0,0,()=>m.ComplianceExecutionSummary$,()=>m.CompliantSummary$,()=>m.NonCompliantSummary$]];m.ResourceDataSyncAwsOrganizationsSource$=[3,MP,vI,0,[QE,ov],[0,()=>GO],1];m.ResourceDataSyncDestinationDataSharing$=[3,MP,bI,0,[Us],[0]];m.ResourceDataSyncItem$=[3,MP,TI,0,[ZA,bw,Iw,vA,ey,Zg,KA,Kg,mA,Xg],[0,0,()=>m.ResourceDataSyncSourceWithState$,()=>m.ResourceDataSyncS3Destination$,4,4,4,0,4,0]];m.ResourceDataSyncOrganizationalUnit$=[3,MP,xI,0,[tv],[0]];m.ResourceDataSyncS3Destination$=[3,MP,DI,0,[Xr,FA,Nb,KC,xr,Ls],[0,0,0,0,0,()=>m.ResourceDataSyncDestinationDataSharing$],3];m.ResourceDataSyncSource$=[3,MP,OI,0,[_w,mw,jn,Tm,Yl],[0,64|0,()=>m.ResourceDataSyncAwsOrganizationsSource$,2,2],2];m.ResourceDataSyncSourceWithState$=[3,MP,MI,0,[_w,jn,mw,Tm,Gb,Yl],[0,()=>m.ResourceDataSyncAwsOrganizationsSource$,64|0,2,0,2]];m.ResultAttribute$=[3,MP,iI,0,[PR],[0],1];m.ResumeSessionRequest$=[3,MP,db,0,[BA],[0],1];m.ResumeSessionResponse$=[3,MP,pb,0,[BA,HR,$w],[0,0,0]];m.ReviewInformation$=[3,MP,qI,0,[_b,Xw,jb],[4,0,0]];m.Runbook$=[3,MP,Bb,0,[uc,Ml,pv,$R,VR,IR,fy,Iy,hR],[0,0,[2,MP,Hn,0,0,64|0],0,()=>lD,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],0,0,()=>oD],1];m.S3OutputLocation$=[3,MP,ow,0,[KE,HE,WE],[0,0,0]];m.S3OutputUrl$=[3,MP,sw,0,[ev],[0]];m.ScheduledWindowExecution$=[3,MP,Fw,0,[SP,dS,vu],[0,0,0]];m.SendAutomationSignalRequest$=[3,MP,oA,0,[Wt,xw,zC],[0,0,[2,MP,Hn,0,0,64|0]],2];m.SendAutomationSignalResult$=[3,MP,iA,0,[],[]];m.SendCommandRequest$=[3,MP,cA,0,[uc,ef,VR,Ml,Xs,Zs,LR,Bi,pv,KE,HE,WE,fy,Iy,uw,gS,Li,fe],[0,64|0,()=>lD,0,0,0,1,0,[()=>TD,0],0,0,0,0,0,0,()=>m.NotificationConfig$,()=>m.CloudWatchOutputConfig$,()=>m.AlarmConfiguration$],1];m.SendCommandResult$=[3,MP,pA,0,[eo],[[()=>m.Command$,0]]];m.ServiceSetting$=[3,MP,Sw,0,[jA,kw,Eg,Cg,Yn,Xw],[0,0,4,0,0,0]];m.Session$=[3,MP,Vw,0,[BA,KR,Xw,CA,nu,uc,dv,Mb,Gl,ev,Py,hr],[0,0,0,4,4,0,0,0,0,()=>m.SessionManagerOutputUrl$,0,0]];m.SessionFilter$=[3,MP,UA,0,[RP,_P],[0,0],2];m.SessionManagerOutputUrl$=[3,MP,JA,0,[sw,Fi],[0,0]];m.SeveritySummary$=[3,MP,fw,0,[Io,Pp,hy,zh,om,aT],[1,1,1,1,1,1]];m.StartAccessRequestRequest$=[3,MP,tA,0,[Mb,VR,nR],[0,()=>lD,()=>rD],2];m.StartAccessRequestResponse$=[3,MP,nA,0,[Kn],[0]];m.StartAssociationsOnceRequest$=[3,MP,Xb,0,[wn],[64|0],1];m.StartAssociationsOnceResult$=[3,MP,Zb,0,[],[]];m.StartAutomationExecutionRequest$=[3,MP,Hb,0,[uc,Ml,pv,Oi,uS,$R,VR,IR,fy,Iy,hR,nR,fe,ER],[0,0,[2,MP,Hn,0,0,64|0],0,0,0,()=>lD,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],0,0,()=>oD,()=>rD,()=>m.AlarmConfiguration$,0],1];m.StartAutomationExecutionResult$=[3,MP,Vb,0,[Wt],[0]];m.StartChangeRequestExecutionRequest$=[3,MP,uA,0,[uc,tI,Rw,Ml,pv,gi,Oi,q,nR,DA,Ro],[0,()=>KO,4,0,[2,MP,Hn,0,0,64|0],0,0,2,()=>rD,4,0],2];m.StartChangeRequestExecutionResult$=[3,MP,dA,0,[Wt],[0]];m.StartExecutionPreviewRequest$=[3,MP,xA,0,[uc,Ml,lu],[0,0,()=>m.ExecutionInputs$],1];m.StartExecutionPreviewResponse$=[3,MP,_A,0,[pu],[0]];m.StartSessionRequest$=[3,MP,gw,0,[KR,uc,Mb,pv],[0,0,0,[2,MP,XA,0,0,64|0]],1];m.StartSessionResponse$=[3,MP,yw,0,[BA,HR,$w],[0,0,0]];m.StepExecution$=[3,MP,NA,0,[tw,_r,LR,JS,my,Eu,iu,Ew,mI,wh,cv,qb,Uu,ku,RA,jE,Im,TS,im,cP,VR,CR,rR,EC],[0,0,1,0,1,4,4,0,0,128|0,[2,MP,Hn,0,0,64|0],0,0,()=>m.FailureDetails$,0,[2,MP,Hn,0,0,64|0],2,0,2,64|0,()=>lD,()=>m.TargetLocation$,()=>tx,()=>m.ParentStepDetails$]];m.StepExecutionFilter$=[3,MP,AA,0,[_h,lP],[0,64|0],2];m.StopAutomationExecutionRequest$=[3,MP,Wb,0,[Wt,ZR],[0,0],1];m.StopAutomationExecutionResult$=[3,MP,Kb,0,[],[]];m.Tag$=[3,MP,WR,0,[_h,iP],[0,0],2];m.Target$=[3,MP,KR,0,[_h,lP],[0,64|0]];m.TargetLocation$=[3,MP,CR,0,[Or,Db,yR,SR,gu,gR,rm,Jl,VR,bR,AR],[64|0,64|0,0,0,0,()=>m.AlarmConfiguration$,2,64|0,()=>lD,0,0]];m.TargetPreview$=[3,MP,kR,0,[Wi,GR],[1,0]];m.TerminateSessionRequest$=[3,MP,FR,0,[BA],[0],1];m.TerminateSessionResponse$=[3,MP,qR,0,[BA],[0]];m.UnlabelParameterVersionRequest$=[3,MP,KT,0,[dS,UC,ly],[0,1,64|0],3];m.UnlabelParameterVersionResult$=[3,MP,YT,0,[zI,af],[64|0,64|0]];m.UpdateAssociationRequest$=[3,MP,nT,0,[An,pv,Ml,IA,PE,dS,VR,$n,Ir,dr,Iy,fy,yi,hA,Ln,Xo,hR,nw,Vl,IR,fe,qe],[0,[()=>TD,0],0,0,()=>m.InstanceAssociationOutputLocation$,0,()=>lD,0,0,0,0,0,0,0,2,64|0,()=>oD,1,1,[1,MP,IR,0,[2,MP,TR,0,0,64|0]],()=>m.AlarmConfiguration$,0],1];m.UpdateAssociationResult$=[3,MP,rT,0,[Ue],[[()=>m.AssociationDescription$,0]]];m.UpdateAssociationStatusRequest$=[3,MP,iT,0,[dS,Mm,Jn],[0,0,()=>m.AssociationStatus$],3];m.UpdateAssociationStatusResult$=[3,MP,sT,0,[Ue],[[()=>m.AssociationDescription$,0]]];m.UpdateDocumentDefaultVersionRequest$=[3,MP,dT,0,[dS,Ml],[0,0],2];m.UpdateDocumentDefaultVersionResult$=[3,MP,pT,0,[Qi],[()=>m.DocumentDefaultVersionDescription$]];m.UpdateDocumentMetadataRequest$=[3,MP,fT,0,[dS,hl,Ml],[0,()=>m.DocumentReviews$,0],2];m.UpdateDocumentMetadataResponse$=[3,MP,hT,0,[],[]];m.UpdateDocumentRequest$=[3,MP,gT,0,[zi,dS,jr,pc,aP,Ml,Ys,GR],[0,0,()=>mx,0,0,0,0,0],2];m.UpdateDocumentResult$=[3,MP,yT,0,[Ps],[[()=>m.DocumentDescription$,0]]];m.UpdateMaintenanceWindowRequest$=[3,MP,wT,0,[SP,dS,Qi,CA,nu,jw,Tw,nw,Vl,Yi,Cr,wu,Ub],[0,0,[()=>jP,0],0,0,0,0,1,1,1,2,2,2],1];m.UpdateMaintenanceWindowResult$=[3,MP,RT,0,[SP,dS,Qi,CA,nu,jw,Tw,nw,Vl,Yi,Cr,wu],[0,0,[()=>jP,0],0,0,0,0,1,1,1,2,2]];m.UpdateMaintenanceWindowTargetRequest$=[3,MP,PT,0,[SP,vP,VR,XS,dS,Qi,Ub],[0,0,()=>lD,[()=>VP,0],0,[()=>jP,0],2],2];m.UpdateMaintenanceWindowTargetResult$=[3,MP,xT,0,[SP,vP,VR,XS,dS,Qi],[0,0,()=>lD,[()=>VP,0],0,[()=>jP,0]]];m.UpdateMaintenanceWindowTaskRequest$=[3,MP,_T,0,[SP,CP,VR,oR,uw,NR,dR,WC,fy,Iy,fg,dS,Qi,Ub,fo,fe],[0,0,()=>lD,0,0,[()=>ED,0],[()=>m.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>m.LoggingInfo$,0,[()=>jP,0],2,0,()=>m.AlarmConfiguration$],2];m.UpdateMaintenanceWindowTaskResult$=[3,MP,OT,0,[SP,CP,VR,oR,uw,NR,dR,WC,fy,Iy,fg,dS,Qi,fo,fe],[0,0,()=>lD,0,0,[()=>ED,0],[()=>m.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>m.LoggingInfo$,0,[()=>jP,0],0,()=>m.AlarmConfiguration$]];m.UpdateManagedInstanceRoleRequest$=[3,MP,IT,0,[Mm,Qf],[0,0],2];m.UpdateManagedInstanceRoleResult$=[3,MP,bT,0,[],[]];m.UpdateOpsItemRequest$=[3,MP,kT,0,[uE,Qi,qS,jS,$S,WC,QI,Xw,QR,qi,Gw,ir,an,AC,bv,ZS],[0,0,()=>RD,64|0,()=>J_,1,()=>qO,0,0,0,0,4,4,4,4,0],1];m.UpdateOpsItemResponse$=[3,MP,LT,0,[],[]];m.UpdateOpsMetadataRequest$=[3,MP,FT,0,[_E,_y,Nh],[0,()=>vD,64|0],1];m.UpdateOpsMetadataResult$=[3,MP,qT,0,[_E],[0]];m.UpdatePatchBaselineRequest$=[3,MP,GT,0,[Wr,dS,bd,Wn,Bn,Gn,zn,ZI,eb,Qi,Qw,ar,Ub],[0,0,()=>m.PatchFilterGroup$,()=>m.PatchRuleGroup$,64|0,0,2,64|0,0,0,[()=>$O,0],0,2],1];m.UpdatePatchBaselineResult$=[3,MP,zT,0,[Wr,dS,XE,bd,Wn,Bn,Gn,zn,ZI,eb,bo,yy,Qi,Qw,ar],[0,0,0,()=>m.PatchFilterGroup$,()=>m.PatchRuleGroup$,64|0,0,2,64|0,0,4,4,0,[()=>$O,0],0]];m.UpdateResourceDataSyncRequest$=[3,MP,JT,0,[ZA,bw,Iw],[0,0,()=>m.ResourceDataSyncSource$],3];m.UpdateResourceDataSyncResult$=[3,MP,XT,0,[],[]];m.UpdateServiceSettingRequest$=[3,MP,tP,0,[jA,kw],[0,0],2];m.UpdateServiceSettingResult$=[3,MP,nP,0,[],[]];var QP=[1,MP,hn,0,[0,{[DP]:En}]];var JP=null&&64|0;var XP=[1,MP,er,0,[()=>m.AccountSharingInfo$,{[DP]:Zn}]];var ZP=[1,MP,_n,0,()=>m.Activation$];var ex=[1,MP,Dn,0,()=>m.Alarm$];var tx=[1,MP,tr,0,()=>m.AlarmStateInformation$];var nx=[1,MP,He,0,[()=>m.AssociationDescription$,{[DP]:Ue}]];var rx=[1,MP,Gt,0,[()=>m.AssociationExecutionFilter$,{[DP]:qt}]];var ox=[1,MP,Yt,0,[()=>m.AssociationExecution$,{[DP]:Mt}]];var ix=[1,MP,on,0,[()=>m.AssociationExecutionTargetsFilter$,{[DP]:rn}]];var sx=[1,MP,sn,0,[()=>m.AssociationExecutionTarget$,{[DP]:nn}]];var ax=[1,MP,pn,0,[()=>m.AssociationFilter$,{[DP]:dn}]];var cx=null&&64|0;var lx=[1,MP,Mn,0,[()=>m.Association$,{[DP]:Fr}]];var ux=[1,MP,Ar,0,[()=>m.AssociationVersionInfo$,0]];var dx=[1,MP,he,0,[()=>m.AttachmentContent$,{[DP]:ve}]];var px=[1,MP,gn,0,[()=>m.AttachmentInformation$,{[DP]:Rn}]];var mx=[1,MP,rr,0,()=>m.AttachmentsSource$];var fx=null&&64|0;var hx=[1,MP,zt,0,()=>m.AutomationExecutionFilter$];var gx=null&&64|0;var yx=[1,MP,Xt,0,()=>m.AutomationExecutionMetadata$];var Sx=null&&64|0;var Ex=null&&64|0;var vx=null&&64|0;var Cx=null&&64|0;var Ix=[1,MP,Do,0,()=>m.CommandFilter$];var bx=[1,MP,Uo,0,()=>m.CommandInvocation$];var Ax=[1,MP,Ho,0,[()=>m.Command$,0]];var wx=[1,MP,di,0,()=>m.CommandPlugin$];var Rx=[1,MP,Lo,0,()=>m.ComplianceItemEntry$];var Tx=[1,MP,Fo,0,[()=>m.ComplianceItem$,{[DP]:xh}]];var Px=null&&64|0;var xx=null&&64|0;var _x=[1,MP,vi,0,[()=>m.ComplianceStringFilter$,{[DP]:Mo}]];var Ox=[1,MP,Ci,0,[0,{[DP]:zu}]];var Dx=[1,MP,bi,0,[()=>m.ComplianceSummaryItem$,{[DP]:xh}]];var Mx=[1,MP,io,0,[()=>m.CreateAssociationBatchRequestEntry$,{[DP]:wP}]];var $x=[1,MP,ls,0,()=>m.DescribeActivationsFilter$];var Nx=[1,MP,Qs,0,[()=>m.DocumentFilter$,{[DP]:Js}]];var kx=[1,MP,da,0,[()=>m.DocumentIdentifier$,{[DP]:Pa}]];var Lx=[1,MP,Oa,0,()=>m.DocumentKeyValuesFilter$];var Ux=null&&64|0;var Fx=[1,MP,Bc,0,[()=>m.DocumentParameter$,{[DP]:tl}]];var qx=[1,MP,cl,0,()=>m.DocumentRequires$];var jx=[1,MP,rl,0,()=>m.DocumentReviewCommentSource$];var Bx=[1,MP,pl,0,()=>m.DocumentReviewerResponseSource$];var Gx=[1,MP,Nl,0,()=>m.DocumentVersionInfo$];var zx=[1,MP,mu,0,()=>m.EffectivePatch$];var Hx=null&&64|0;var Vx=[1,MP,Nu,0,[()=>m.FailedCreateAssociation$,{[DP]:$u}]];var Wx=[1,MP,Ip,0,()=>m.GetResourcePoliciesResponseEntry$];var Kx=[1,MP,Up,0,()=>m.InstanceAssociation$];var Yx=[1,MP,Hp,0,()=>m.InstanceAssociationStatusInfo$];var Qx=null&&64|0;var Jx=[1,MP,Fm,0,[()=>m.InstanceInformationFilter$,{[DP]:Um}]];var Xx=[1,MP,jm,0,[0,{[DP]:qm}]];var Zx=[1,MP,Vm,0,[()=>m.InstanceInformation$,{[DP]:nf}]];var e_=[1,MP,Xm,0,[()=>m.InstanceInformationStringFilter$,{[DP]:Jm}]];var t_=[1,MP,Of,0,()=>m.InstancePatchStateFilter$];var n_=null&&64|0;var r_=[1,MP,$f,0,[()=>m.InstancePatchState$,0]];var o_=[1,MP,Nf,0,[()=>m.InstancePatchState$,0]];var i_=[1,MP,Ff,0,[()=>m.InstanceProperty$,{[DP]:qf}]];var s_=[1,MP,bf,0,[()=>m.InstancePropertyFilter$,{[DP]:If}]];var a_=[1,MP,wf,0,[0,{[DP]:Af}]];var c_=[1,MP,Df,0,[()=>m.InstancePropertyStringFilter$,{[DP]:Mf}]];var l_=[1,MP,Fp,0,[()=>m.InventoryAggregator$,{[DP]:Mr}]];var u_=[1,MP,um,0,()=>m.InventoryDeletionStatusItem$];var d_=[1,MP,gm,0,()=>m.InventoryDeletionSummaryItem$];var p_=[1,MP,wm,0,[()=>m.InventoryFilter$,{[DP]:_m}]];var m_=[1,MP,xm,0,[0,{[DP]:zu}]];var f_=[1,MP,Dm,0,[()=>m.InventoryGroup$,{[DP]:Om}]];var h_=[1,MP,Nm,0,[()=>m.InventoryItemAttribute$,{[DP]:Gr}]];var g_=[1,MP,Lm,0,128|0];var y_=[1,MP,Wm,0,[()=>m.InventoryItem$,{[DP]:xh}]];var S_=[1,MP,Zm,0,[()=>m.InventoryItemSchema$,0]];var E_=[1,MP,Hf,0,[()=>m.InventoryResultEntity$,{[DP]:Pu}]];var v_=null&&64|0;var C_=[1,MP,Ny,0,()=>m.MaintenanceWindowExecution$];var I_=[1,MP,Fy,0,()=>m.MaintenanceWindowExecutionTaskIdentity$];var b_=null&&64|0;var A_=[1,MP,Uy,0,[()=>m.MaintenanceWindowExecutionTaskInvocationIdentity$,0]];var w_=[1,MP,By,0,()=>m.MaintenanceWindowFilter$];var R_=null&&64|0;var T_=[1,MP,Vy,0,[()=>m.MaintenanceWindowIdentity$,0]];var P_=[1,MP,Gy,0,()=>m.MaintenanceWindowIdentityForTarget$];var x_=[1,MP,eS,0,[()=>m.MaintenanceWindowTarget$,0]];var O_=[1,MP,tS,0,[()=>m.MaintenanceWindowTask$,0]];var D_=[1,MP,rS,8,[()=>ED,0]];var M_=[1,MP,sS,8,[()=>HP,0]];var $_=null&&64|0;var N_=[1,MP,fS,0,[()=>m.NodeAggregator$,{[DP]:pS}]];var k_=[1,MP,IS,0,[()=>m.NodeFilter$,{[DP]:CS}]];var L_=[1,MP,bS,0,[0,{[DP]:zu}]];var U_=[1,MP,AS,0,[()=>m.Node$,0]];var F_=[1,MP,PS,0,128|0];var q_=null&&64|0;var j_=[1,MP,FS,0,[()=>m.OpsAggregator$,{[DP]:Mr}]];var B_=[1,MP,zS,0,128|0];var G_=[1,MP,VS,0,[()=>m.OpsEntity$,{[DP]:Pu}]];var z_=[1,MP,YS,0,[()=>m.OpsFilter$,{[DP]:KS}]];var H_=[1,MP,QS,0,[0,{[DP]:zu}]];var V_=[1,MP,iE,0,()=>m.OpsItemEventFilter$];var W_=null&&64|0;var K_=[1,MP,aE,0,()=>m.OpsItemEventSummary$];var Y_=[1,MP,cE,0,()=>m.OpsItemFilter$];var Q_=null&&64|0;var J_=[1,MP,gE,0,()=>m.OpsItemNotification$];var X_=null&&64|0;var Z_=null&&64|0;var eO=[1,MP,CE,0,()=>m.OpsItemRelatedItemsFilter$];var tO=null&&64|0;var nO=[1,MP,bE,0,()=>m.OpsItemRelatedItemSummary$];var rO=[1,MP,AE,0,()=>m.OpsItemSummary$];var oO=[1,MP,ME,0,()=>m.OpsMetadataFilter$];var iO=null&&64|0;var sO=[1,MP,kE,0,()=>m.OpsMetadata$];var aO=[1,MP,GE,0,[()=>m.OpsResultAttribute$,{[DP]:BE}]];var cO=[1,MP,Lv,0,[()=>m.ParameterHistory$,0]];var lO=null&&64|0;var uO=[1,MP,zv,0,[()=>m.Parameter$,0]];var dO=[1,MP,Yv,0,()=>m.ParameterMetadata$];var pO=null&&64|0;var mO=[1,MP,iC,0,()=>m.ParameterInlinePolicy$];var fO=[1,MP,Rv,0,()=>m.ParametersFilter$];var hO=null&&64|0;var gO=[1,MP,CC,0,()=>m.ParameterStringFilter$];var yO=null&&64|0;var SO=null&&64|0;var EO=null&&64|0;var vO=[1,MP,gv,0,()=>m.PatchBaselineIdentity$];var CO=null&&64|0;var IO=[1,MP,Ev,0,()=>m.PatchComplianceData$];var bO=null&&64|0;var AO=[1,MP,Tv,0,()=>m.PatchFilter$];var wO=null&&64|0;var RO=null&&64|0;var TO=[1,MP,$v,0,()=>m.PatchGroupPatchBaselineMapping$];var PO=null&&64|0;var xO=[1,MP,Wv,0,()=>m.Patch$];var _O=[1,MP,nC,0,()=>m.PatchOrchestratorFilter$];var OO=null&&64|0;var DO=[1,MP,oC,0,128|0];var MO=[1,MP,dC,0,()=>m.PatchRule$];var $O=[1,MP,IC,0,[()=>m.PatchSource$,0]];var NO=null&&64|0;var kO=[1,MP,_C,0,[0,{[DP]:DC}]];var LO=null&&64|0;var UO=null&&64|0;var FO=[1,MP,WI,0,()=>m.RegistrationMetadataItem$];var qO=[1,MP,QI,0,()=>m.RelatedOpsItem$];var jO=[1,MP,lI,0,[()=>m.ResourceComplianceSummaryItem$,{[DP]:xh}]];var BO=[1,MP,RI,0,()=>m.ResourceDataSyncItem$];var GO=[1,MP,_I,0,()=>m.ResourceDataSyncOrganizationalUnit$];var zO=null&&64|0;var HO=null&&64|0;var VO=[1,MP,rI,0,[()=>m.ResultAttribute$,{[DP]:iI}]];var WO=[1,MP,UI,0,[()=>m.ReviewInformation$,{[DP]:qI}]];var KO=[1,MP,tI,0,()=>m.Runbook$];var YO=[1,MP,Uw,0,()=>m.ScheduledWindowExecution$];var QO=[1,MP,LA,0,()=>m.SessionFilter$];var JO=[1,MP,YA,0,()=>m.Session$];var XO=null&&64|0;var ZO=[1,MP,wA,0,()=>m.StepExecutionFilter$];var eD=null&&64|0;var tD=[1,MP,TA,0,()=>m.StepExecution$];var nD=null&&64|0;var rD=[1,MP,vR,0,()=>m.Tag$];var oD=[1,MP,hR,0,()=>m.TargetLocation$];var iD=[1,MP,IR,0,[2,MP,TR,0,0,64|0]];var sD=null&&64|0;var aD=null&&64|0;var cD=[1,MP,MR,0,()=>m.TargetPreview$];var lD=[1,MP,VR,0,()=>m.Target$];var uD=null&&64|0;var dD=null&&64|0;var pD=null&&128|1;var mD=[2,MP,Hn,0,0,64|0];var fD=null&&128|0;var hD=null&&128|1;var gD=null&&128|0;var yD=null&&128|0;var SD=[2,MP,Wf,0,0,()=>m.InventoryResultItem$];var ED=[2,MP,nS,8,[0,0],[()=>m.MaintenanceWindowTaskParameterValueExpression$,0]];var vD=[2,MP,by,0,0,()=>m.MetadataValue$];var CD=null&&128|0;var ID=null&&128|0;var bD=null&&128|0;var AD=null&&128|0;var wD=[2,MP,HS,0,0,()=>m.OpsEntityItem$];var RD=[2,MP,yE,0,0,()=>m.OpsItemDataValue$];var TD=[2,MP,pv,8,0,64|0];var PD=null&&128|0;var xD=[2,MP,XA,0,0,64|0];var _D=null&&128|1;var OD=[2,MP,TR,0,0,64|0];m.ExecutionInputs$=[4,MP,lu,0,[Hr],[()=>m.AutomationExecutionInputs$]];m.ExecutionPreview$=[4,MP,hu,0,[Hr],[()=>m.AutomationExecutionPreview$]];m.NodeType$=[4,MP,OS,0,[Rh],[[()=>m.InstanceInfo$,0]]];m.AddTagsToResource$=[9,MP,pr,0,()=>m.AddTagsToResourceRequest$,()=>m.AddTagsToResourceResult$];m.AssociateOpsItemRelatedItem$=[9,MP,Un,0,()=>m.AssociateOpsItemRelatedItemRequest$,()=>m.AssociateOpsItemRelatedItemResponse$];m.CancelCommand$=[9,MP,Eo,0,()=>m.CancelCommandRequest$,()=>m.CancelCommandResult$];m.CancelMaintenanceWindowExecution$=[9,MP,Wo,0,()=>m.CancelMaintenanceWindowExecutionRequest$,()=>m.CancelMaintenanceWindowExecutionResult$];m.CreateActivation$=[9,MP,po,0,()=>m.CreateActivationRequest$,()=>m.CreateActivationResult$];m.CreateAssociation$=[9,MP,mo,0,()=>m.CreateAssociationRequest$,()=>m.CreateAssociationResult$];m.CreateAssociationBatch$=[9,MP,no,0,()=>m.CreateAssociationBatchRequest$,()=>m.CreateAssociationBatchResult$];m.CreateDocument$=[9,MP,Po,0,()=>m.CreateDocumentRequest$,()=>m.CreateDocumentResult$];m.CreateMaintenanceWindow$=[9,MP,Vo,0,()=>m.CreateMaintenanceWindowRequest$,()=>m.CreateMaintenanceWindowResult$];m.CreateOpsItem$=[9,MP,ti,0,()=>m.CreateOpsItemRequest$,()=>m.CreateOpsItemResponse$];m.CreateOpsMetadata$=[9,MP,oi,0,()=>m.CreateOpsMetadataRequest$,()=>m.CreateOpsMetadataResult$];m.CreatePatchBaseline$=[9,MP,ci,0,()=>m.CreatePatchBaselineRequest$,()=>m.CreatePatchBaselineResult$];m.CreateResourceDataSync$=[9,MP,mi,0,()=>m.CreateResourceDataSyncRequest$,()=>m.CreateResourceDataSyncResult$];m.DeleteActivation$=[9,MP,Ji,0,()=>m.DeleteActivationRequest$,()=>m.DeleteActivationResult$];m.DeleteAssociation$=[9,MP,As,0,()=>m.DeleteAssociationRequest$,()=>m.DeleteAssociationResult$];m.DeleteDocument$=[9,MP,js,0,()=>m.DeleteDocumentRequest$,()=>m.DeleteDocumentResult$];m.DeleteInventory$=[9,MP,Ta,0,()=>m.DeleteInventoryRequest$,()=>m.DeleteInventoryResult$];m.DeleteMaintenanceWindow$=[9,MP,La,0,()=>m.DeleteMaintenanceWindowRequest$,()=>m.DeleteMaintenanceWindowResult$];m.DeleteOpsItem$=[9,MP,mc,0,()=>m.DeleteOpsItemRequest$,()=>m.DeleteOpsItemResponse$];m.DeleteOpsMetadata$=[9,MP,Ic,0,()=>m.DeleteOpsMetadataRequest$,()=>m.DeleteOpsMetadataResult$];m.DeleteParameter$=[9,MP,Xc,0,()=>m.DeleteParameterRequest$,()=>m.DeleteParameterResult$];m.DeleteParameters$=[9,MP,Zc,0,()=>m.DeleteParametersRequest$,()=>m.DeleteParametersResult$];m.DeletePatchBaseline$=[9,MP,Rc,0,()=>m.DeletePatchBaselineRequest$,()=>m.DeletePatchBaselineResult$];m.DeleteResourceDataSync$=[9,MP,il,0,()=>m.DeleteResourceDataSyncRequest$,()=>m.DeleteResourceDataSyncResult$];m.DeleteResourcePolicy$=[9,MP,ll,0,()=>m.DeleteResourcePolicyRequest$,()=>m.DeleteResourcePolicyResponse$];m.DeregisterManagedInstance$=[9,MP,Ma,0,()=>m.DeregisterManagedInstanceRequest$,()=>m.DeregisterManagedInstanceResult$];m.DeregisterPatchBaselineForPatchGroup$=[9,MP,Tc,0,()=>m.DeregisterPatchBaselineForPatchGroupRequest$,()=>m.DeregisterPatchBaselineForPatchGroupResult$];m.DeregisterTargetFromMaintenanceWindow$=[9,MP,Al,0,()=>m.DeregisterTargetFromMaintenanceWindowRequest$,()=>m.DeregisterTargetFromMaintenanceWindowResult$];m.DeregisterTaskFromMaintenanceWindow$=[9,MP,xl,0,()=>m.DeregisterTaskFromMaintenanceWindowRequest$,()=>m.DeregisterTaskFromMaintenanceWindowResult$];m.DescribeActivations$=[9,MP,ws,0,()=>m.DescribeActivationsRequest$,()=>m.DescribeActivationsResult$];m.DescribeAssociation$=[9,MP,Rs,0,()=>m.DescribeAssociationRequest$,()=>m.DescribeAssociationResult$];m.DescribeAssociationExecutions$=[9,MP,ss,0,()=>m.DescribeAssociationExecutionsRequest$,()=>m.DescribeAssociationExecutionsResult$];m.DescribeAssociationExecutionTargets$=[9,MP,rs,0,()=>m.DescribeAssociationExecutionTargetsRequest$,()=>m.DescribeAssociationExecutionTargetsResult$];m.DescribeAutomationExecutions$=[9,MP,as,0,()=>m.DescribeAutomationExecutionsRequest$,()=>m.DescribeAutomationExecutionsResult$];m.DescribeAutomationStepExecutions$=[9,MP,Cs,0,()=>m.DescribeAutomationStepExecutionsRequest$,()=>m.DescribeAutomationStepExecutionsResult$];m.DescribeAvailablePatches$=[9,MP,us,0,()=>m.DescribeAvailablePatchesRequest$,()=>m.DescribeAvailablePatchesResult$];m.DescribeDocument$=[9,MP,Bs,0,()=>m.DescribeDocumentRequest$,()=>m.DescribeDocumentResult$];m.DescribeDocumentPermission$=[9,MP,_s,0,()=>m.DescribeDocumentPermissionRequest$,()=>m.DescribeDocumentPermissionResponse$];m.DescribeEffectiveInstanceAssociations$=[9,MP,Gs,0,()=>m.DescribeEffectiveInstanceAssociationsRequest$,()=>m.DescribeEffectiveInstanceAssociationsResult$];m.DescribeEffectivePatchesForPatchBaseline$=[9,MP,Vs,0,()=>m.DescribeEffectivePatchesForPatchBaselineRequest$,()=>m.DescribeEffectivePatchesForPatchBaselineResult$];m.DescribeInstanceAssociationsStatus$=[9,MP,ta,0,()=>m.DescribeInstanceAssociationsStatusRequest$,()=>m.DescribeInstanceAssociationsStatusResult$];m.DescribeInstanceInformation$=[9,MP,ua,0,()=>m.DescribeInstanceInformationRequest$,()=>m.DescribeInstanceInformationResult$];m.DescribeInstancePatches$=[9,MP,ma,0,()=>m.DescribeInstancePatchesRequest$,()=>m.DescribeInstancePatchesResult$];m.DescribeInstancePatchStates$=[9,MP,Sa,0,()=>m.DescribeInstancePatchStatesRequest$,()=>m.DescribeInstancePatchStatesResult$];m.DescribeInstancePatchStatesForPatchGroup$=[9,MP,Ea,0,()=>m.DescribeInstancePatchStatesForPatchGroupRequest$,()=>m.DescribeInstancePatchStatesForPatchGroupResult$];m.DescribeInstanceProperties$=[9,MP,Aa,0,()=>m.DescribeInstancePropertiesRequest$,()=>m.DescribeInstancePropertiesResult$];m.DescribeInventoryDeletions$=[9,MP,oa,0,()=>m.DescribeInventoryDeletionsRequest$,()=>m.DescribeInventoryDeletionsResult$];m.DescribeMaintenanceWindowExecutions$=[9,MP,Ua,0,()=>m.DescribeMaintenanceWindowExecutionsRequest$,()=>m.DescribeMaintenanceWindowExecutionsResult$];m.DescribeMaintenanceWindowExecutionTaskInvocations$=[9,MP,Ba,0,()=>m.DescribeMaintenanceWindowExecutionTaskInvocationsRequest$,()=>m.DescribeMaintenanceWindowExecutionTaskInvocationsResult$];m.DescribeMaintenanceWindowExecutionTasks$=[9,MP,ja,0,()=>m.DescribeMaintenanceWindowExecutionTasksRequest$,()=>m.DescribeMaintenanceWindowExecutionTasksResult$];m.DescribeMaintenanceWindows$=[9,MP,lc,0,()=>m.DescribeMaintenanceWindowsRequest$,()=>m.DescribeMaintenanceWindowsResult$];m.DescribeMaintenanceWindowSchedule$=[9,MP,ec,0,()=>m.DescribeMaintenanceWindowScheduleRequest$,()=>m.DescribeMaintenanceWindowScheduleResult$];m.DescribeMaintenanceWindowsForTarget$=[9,MP,Wa,0,()=>m.DescribeMaintenanceWindowsForTargetRequest$,()=>m.DescribeMaintenanceWindowsForTargetResult$];m.DescribeMaintenanceWindowTargets$=[9,MP,rc,0,()=>m.DescribeMaintenanceWindowTargetsRequest$,()=>m.DescribeMaintenanceWindowTargetsResult$];m.DescribeMaintenanceWindowTasks$=[9,MP,cc,0,()=>m.DescribeMaintenanceWindowTasksRequest$,()=>m.DescribeMaintenanceWindowTasksResult$];m.DescribeOpsItems$=[9,MP,Cc,0,()=>m.DescribeOpsItemsRequest$,()=>m.DescribeOpsItemsResponse$];m.DescribeParameters$=[9,MP,el,0,()=>m.DescribeParametersRequest$,()=>m.DescribeParametersResult$];m.DescribePatchBaselines$=[9,MP,$c,0,()=>m.DescribePatchBaselinesRequest$,()=>m.DescribePatchBaselinesResult$];m.DescribePatchGroups$=[9,MP,Nc,0,()=>m.DescribePatchGroupsRequest$,()=>m.DescribePatchGroupsResult$];m.DescribePatchGroupState$=[9,MP,Uc,0,()=>m.DescribePatchGroupStateRequest$,()=>m.DescribePatchGroupStateResult$];m.DescribePatchProperties$=[9,MP,Gc,0,()=>m.DescribePatchPropertiesRequest$,()=>m.DescribePatchPropertiesResult$];m.DescribeSessions$=[9,MP,Il,0,()=>m.DescribeSessionsRequest$,()=>m.DescribeSessionsResponse$];m.DisassociateOpsItemRelatedItem$=[9,MP,hc,0,()=>m.DisassociateOpsItemRelatedItemRequest$,()=>m.DisassociateOpsItemRelatedItemResponse$];m.GetAccessToken$=[9,MP,Zu,0,()=>m.GetAccessTokenRequest$,()=>m.GetAccessTokenResponse$];m.GetAutomationExecution$=[9,MP,Qu,0,()=>m.GetAutomationExecutionRequest$,()=>m.GetAutomationExecutionResult$];m.GetCalendarState$=[9,MP,id,0,()=>m.GetCalendarStateRequest$,()=>m.GetCalendarStateResponse$];m.GetCommandInvocation$=[9,MP,nd,0,()=>m.GetCommandInvocationRequest$,()=>m.GetCommandInvocationResult$];m.GetConnectionStatus$=[9,MP,ud,0,()=>m.GetConnectionStatusRequest$,()=>m.GetConnectionStatusResponse$];m.GetDefaultPatchBaseline$=[9,MP,pd,0,()=>m.GetDefaultPatchBaselineRequest$,()=>m.GetDefaultPatchBaselineResult$];m.GetDeployablePatchSnapshotForInstance$=[9,MP,hd,0,()=>m.GetDeployablePatchSnapshotForInstanceRequest$,()=>m.GetDeployablePatchSnapshotForInstanceResult$];m.GetDocument$=[9,MP,dd,0,()=>m.GetDocumentRequest$,()=>m.GetDocumentResult$];m.GetExecutionPreview$=[9,MP,vd,0,()=>m.GetExecutionPreviewRequest$,()=>m.GetExecutionPreviewResponse$];m.GetInventory$=[9,MP,Ad,0,()=>m.GetInventoryRequest$,()=>m.GetInventoryResult$];m.GetInventorySchema$=[9,MP,Td,0,()=>m.GetInventorySchemaRequest$,()=>m.GetInventorySchemaResult$];m.GetMaintenanceWindow$=[9,MP,_d,0,()=>m.GetMaintenanceWindowRequest$,()=>m.GetMaintenanceWindowResult$];m.GetMaintenanceWindowExecution$=[9,MP,Od,0,()=>m.GetMaintenanceWindowExecutionRequest$,()=>m.GetMaintenanceWindowExecutionResult$];m.GetMaintenanceWindowExecutionTask$=[9,MP,$d,0,()=>m.GetMaintenanceWindowExecutionTaskRequest$,()=>m.GetMaintenanceWindowExecutionTaskResult$];m.GetMaintenanceWindowExecutionTaskInvocation$=[9,MP,Nd,0,()=>m.GetMaintenanceWindowExecutionTaskInvocationRequest$,()=>m.GetMaintenanceWindowExecutionTaskInvocationResult$];m.GetMaintenanceWindowTask$=[9,MP,Bd,0,()=>m.GetMaintenanceWindowTaskRequest$,()=>m.GetMaintenanceWindowTaskResult$];m.GetOpsItem$=[9,MP,Hd,0,()=>m.GetOpsItemRequest$,()=>m.GetOpsItemResponse$];m.GetOpsMetadata$=[9,MP,Kd,0,()=>m.GetOpsMetadataRequest$,()=>m.GetOpsMetadataResult$];m.GetOpsSummary$=[9,MP,Jd,0,()=>m.GetOpsSummaryRequest$,()=>m.GetOpsSummaryResult$];m.GetParameter$=[9,MP,ep,0,()=>m.GetParameterRequest$,()=>m.GetParameterResult$];m.GetParameterHistory$=[9,MP,dp,0,()=>m.GetParameterHistoryRequest$,()=>m.GetParameterHistoryResult$];m.GetParameters$=[9,MP,Sp,0,()=>m.GetParametersRequest$,()=>m.GetParametersResult$];m.GetParametersByPath$=[9,MP,sp,0,()=>m.GetParametersByPathRequest$,()=>m.GetParametersByPathResult$];m.GetPatchBaseline$=[9,MP,tp,0,()=>m.GetPatchBaselineRequest$,()=>m.GetPatchBaselineResult$];m.GetPatchBaselineForPatchGroup$=[9,MP,np,0,()=>m.GetPatchBaselineForPatchGroupRequest$,()=>m.GetPatchBaselineForPatchGroupResult$];m.GetResourcePolicies$=[9,MP,Ep,0,()=>m.GetResourcePoliciesRequest$,()=>m.GetResourcePoliciesResponse$];m.GetServiceSetting$=[9,MP,Ap,0,()=>m.GetServiceSettingRequest$,()=>m.GetServiceSettingResult$];m.LabelParameterVersion$=[9,MP,Fg,0,()=>m.LabelParameterVersionRequest$,()=>m.LabelParameterVersionResult$];m.ListAssociations$=[9,MP,Lh,0,()=>m.ListAssociationsRequest$,()=>m.ListAssociationsResult$];m.ListAssociationVersions$=[9,MP,jh,0,()=>m.ListAssociationVersionsRequest$,()=>m.ListAssociationVersionsResult$];m.ListCommandInvocations$=[9,MP,Hh,0,()=>m.ListCommandInvocationsRequest$,()=>m.ListCommandInvocationsResult$];m.ListCommands$=[9,MP,ng,0,()=>m.ListCommandsRequest$,()=>m.ListCommandsResult$];m.ListComplianceItems$=[9,MP,Qh,0,()=>m.ListComplianceItemsRequest$,()=>m.ListComplianceItemsResult$];m.ListComplianceSummaries$=[9,MP,Zh,0,()=>m.ListComplianceSummariesRequest$,()=>m.ListComplianceSummariesResult$];m.ListDocumentMetadataHistory$=[9,MP,og,0,()=>m.ListDocumentMetadataHistoryRequest$,()=>m.ListDocumentMetadataHistoryResponse$];m.ListDocuments$=[9,MP,rg,0,()=>m.ListDocumentsRequest$,()=>m.ListDocumentsResult$];m.ListDocumentVersions$=[9,MP,lg,0,()=>m.ListDocumentVersionsRequest$,()=>m.ListDocumentVersionsResult$];m.ListInventoryEntries$=[9,MP,hg,0,()=>m.ListInventoryEntriesRequest$,()=>m.ListInventoryEntriesResult$];m.ListNodes$=[9,MP,Ig,0,()=>m.ListNodesRequest$,()=>m.ListNodesResult$];m.ListNodesSummary$=[9,MP,Rg,0,()=>m.ListNodesSummaryRequest$,()=>m.ListNodesSummaryResult$];m.ListOpsItemEvents$=[9,MP,xg,0,()=>m.ListOpsItemEventsRequest$,()=>m.ListOpsItemEventsResponse$];m.ListOpsItemRelatedItems$=[9,MP,Dg,0,()=>m.ListOpsItemRelatedItemsRequest$,()=>m.ListOpsItemRelatedItemsResponse$];m.ListOpsMetadata$=[9,MP,Ng,0,()=>m.ListOpsMetadataRequest$,()=>m.ListOpsMetadataResult$];m.ListResourceComplianceSummaries$=[9,MP,Bg,0,()=>m.ListResourceComplianceSummariesRequest$,()=>m.ListResourceComplianceSummariesResult$];m.ListResourceDataSync$=[9,MP,Hg,0,()=>m.ListResourceDataSyncRequest$,()=>m.ListResourceDataSyncResult$];m.ListTagsForResource$=[9,MP,ry,0,()=>m.ListTagsForResourceRequest$,()=>m.ListTagsForResourceResult$];m.ModifyDocumentPermission$=[9,MP,Sy,0,()=>m.ModifyDocumentPermissionRequest$,()=>m.ModifyDocumentPermissionResponse$];m.PutComplianceItems$=[9,MP,vv,0,()=>m.PutComplianceItemsRequest$,()=>m.PutComplianceItemsResult$];m.PutInventory$=[9,MP,Gv,0,()=>m.PutInventoryRequest$,()=>m.PutInventoryResult$];m.PutParameter$=[9,MP,rC,0,()=>m.PutParameterRequest$,()=>m.PutParameterResult$];m.PutResourcePolicy$=[9,MP,pC,0,()=>m.PutResourcePolicyRequest$,()=>m.PutResourcePolicyResponse$];m.RegisterDefaultPatchBaseline$=[9,MP,gI,0,()=>m.RegisterDefaultPatchBaselineRequest$,()=>m.RegisterDefaultPatchBaselineResult$];m.RegisterPatchBaselineForPatchGroup$=[9,MP,tb,0,()=>m.RegisterPatchBaselineForPatchGroupRequest$,()=>m.RegisterPatchBaselineForPatchGroupResult$];m.RegisterTargetWithMaintenanceWindow$=[9,MP,Cb,0,()=>m.RegisterTargetWithMaintenanceWindowRequest$,()=>m.RegisterTargetWithMaintenanceWindowResult$];m.RegisterTaskWithMaintenanceWindow$=[9,MP,Rb,0,()=>m.RegisterTaskWithMaintenanceWindowRequest$,()=>m.RegisterTaskWithMaintenanceWindowResult$];m.RemoveTagsFromResource$=[9,MP,Sb,0,()=>m.RemoveTagsFromResourceRequest$,()=>m.RemoveTagsFromResourceResult$];m.ResetServiceSetting$=[9,MP,mb,0,()=>m.ResetServiceSettingRequest$,()=>m.ResetServiceSettingResult$];m.ResumeSession$=[9,MP,gb,0,()=>m.ResumeSessionRequest$,()=>m.ResumeSessionResponse$];m.SendAutomationSignal$=[9,MP,rA,0,()=>m.SendAutomationSignalRequest$,()=>m.SendAutomationSignalResult$];m.SendCommand$=[9,MP,fA,0,()=>m.SendCommandRequest$,()=>m.SendCommandResult$];m.StartAccessRequest$=[9,MP,eA,0,()=>m.StartAccessRequestRequest$,()=>m.StartAccessRequestResponse$];m.StartAssociationsOnce$=[9,MP,Jb,0,()=>m.StartAssociationsOnceRequest$,()=>m.StartAssociationsOnceResult$];m.StartAutomationExecution$=[9,MP,zb,0,()=>m.StartAutomationExecutionRequest$,()=>m.StartAutomationExecutionResult$];m.StartChangeRequestExecution$=[9,MP,lA,0,()=>m.StartChangeRequestExecutionRequest$,()=>m.StartChangeRequestExecutionResult$];m.StartExecutionPreview$=[9,MP,PA,0,()=>m.StartExecutionPreviewRequest$,()=>m.StartExecutionPreviewResponse$];m.StartSession$=[9,MP,vw,0,()=>m.StartSessionRequest$,()=>m.StartSessionResponse$];m.StopAutomationExecution$=[9,MP,Yb,0,()=>m.StopAutomationExecutionRequest$,()=>m.StopAutomationExecutionResult$];m.TerminateSession$=[9,MP,jR,0,()=>m.TerminateSessionRequest$,()=>m.TerminateSessionResponse$];m.UnlabelParameterVersion$=[9,MP,WT,0,()=>m.UnlabelParameterVersionRequest$,()=>m.UnlabelParameterVersionResult$];m.UpdateAssociation$=[9,MP,tT,0,()=>m.UpdateAssociationRequest$,()=>m.UpdateAssociationResult$];m.UpdateAssociationStatus$=[9,MP,oT,0,()=>m.UpdateAssociationStatusRequest$,()=>m.UpdateAssociationStatusResult$];m.UpdateDocument$=[9,MP,lT,0,()=>m.UpdateDocumentRequest$,()=>m.UpdateDocumentResult$];m.UpdateDocumentDefaultVersion$=[9,MP,uT,0,()=>m.UpdateDocumentDefaultVersionRequest$,()=>m.UpdateDocumentDefaultVersionResult$];m.UpdateDocumentMetadata$=[9,MP,mT,0,()=>m.UpdateDocumentMetadataRequest$,()=>m.UpdateDocumentMetadataResponse$];m.UpdateMaintenanceWindow$=[9,MP,AT,0,()=>m.UpdateMaintenanceWindowRequest$,()=>m.UpdateMaintenanceWindowResult$];m.UpdateMaintenanceWindowTarget$=[9,MP,TT,0,()=>m.UpdateMaintenanceWindowTargetRequest$,()=>m.UpdateMaintenanceWindowTargetResult$];m.UpdateMaintenanceWindowTask$=[9,MP,DT,0,()=>m.UpdateMaintenanceWindowTaskRequest$,()=>m.UpdateMaintenanceWindowTaskResult$];m.UpdateManagedInstanceRole$=[9,MP,CT,0,()=>m.UpdateManagedInstanceRoleRequest$,()=>m.UpdateManagedInstanceRoleResult$];m.UpdateOpsItem$=[9,MP,NT,0,()=>m.UpdateOpsItemRequest$,()=>m.UpdateOpsItemResponse$];m.UpdateOpsMetadata$=[9,MP,UT,0,()=>m.UpdateOpsMetadataRequest$,()=>m.UpdateOpsMetadataResult$];m.UpdatePatchBaseline$=[9,MP,BT,0,()=>m.UpdatePatchBaselineRequest$,()=>m.UpdatePatchBaselineResult$];m.UpdateResourceDataSync$=[9,MP,QT,0,()=>m.UpdateResourceDataSyncRequest$,()=>m.UpdateResourceDataSyncResult$];m.UpdateServiceSetting$=[9,MP,eP,0,()=>m.UpdateServiceSettingRequest$,()=>m.UpdateServiceSettingResult$]},590:(e,m,h)=>{var C=h(9228);var q=h(4918);var V=h(4036);var le=h(7078);var fe=h(7202);var he=h(7657);var ye=h(2566);var ve=h(4271);var Le=h(5770);var Ue=h(8682);var qe=h(3158);var ze=h(8165);var He=h(452);const We={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!We.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){We.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,m,h){if(!e.$source){e.$source={}}e.$source[m]=h;return e}function setFeature(e,m,h){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[m]=h}function setTokenFeature(e,m,h){if(!e.$source){e.$source={}}e.$source[m]=h;return e}const getDateHeader=e=>C.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,m)=>Math.abs(getSkewCorrectedDate(m).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,m)=>{const h=Date.parse(e);if(isClockSkewed(h,m)){return h-Date.now()}return m};const throwSigningPropertyError=(e,m)=>{if(!m){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return m};const validateSigningProperties=async e=>{const m=throwSigningPropertyError("context",e.context);const h=throwSigningPropertyError("config",e.config);const C=m.endpointV2?.properties?.authSchemes?.[0];const q=throwSigningPropertyError("signer",h.signer);const V=await q(C);const le=e?.signingRegion;const fe=e?.signingRegionSet;const he=e?.signingName;return{config:h,signer:V,signingRegion:le,signingRegionSet:fe,signingName:he}};class AwsSdkSigV4Signer{async sign(e,m,h){if(!C.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const q=await validateSigningProperties(h);const{config:V,signer:le}=q;let{signingRegion:fe,signingName:he}=q;const ye=h.context;if(ye?.authSchemes?.length??0>1){const[e,m]=ye.authSchemes;if(e?.name==="sigv4a"&&m?.name==="sigv4"){fe=m?.signingRegion??fe;he=m?.signingName??he}}const ve=await le.sign(e,{signingDate:getSkewCorrectedDate(V.systemClockOffset),signingRegion:fe,signingService:he});return ve}errorHandler(e){return m=>{const h=m.ServerTime??getDateHeader(m.$response);if(h){const C=throwSigningPropertyError("config",e.config);const q=C.systemClockOffset;C.systemClockOffset=getUpdatedSystemClockOffset(h,C.systemClockOffset);const V=C.systemClockOffset!==q;if(V&&m.$metadata){m.$metadata.clockSkewCorrected=true}}throw m}}successHandler(e,m){const h=getDateHeader(e);if(h){const e=throwSigningPropertyError("config",m.config);e.systemClockOffset=getUpdatedSystemClockOffset(h,e.systemClockOffset)}}}const Qe=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,m,h){if(!C.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:q,signer:V,signingRegion:le,signingRegionSet:fe,signingName:he}=await validateSigningProperties(h);const ye=await(q.sigv4aSigningRegionSet?.());const ve=(ye??fe??[le]).join(",");const Le=await V.sign(e,{signingDate:getSkewCorrectedDate(q.systemClockOffset),signingRegion:ve,signingService:he});return Le}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const Je="AWS_AUTH_SCHEME_PREFERENCE";const It="auth_scheme_preference";const _t={environmentVariableSelector:(e,m)=>{if(m?.signingName){const h=getBearerTokenEnvKey(m.signingName);if(h in e)return["httpBearerAuth"]}if(!(Je in e))return undefined;return getArrayForCommaSeparatedString(e[Je])},configFileSelector:e=>{if(!(It in e))return undefined;return getArrayForCommaSeparatedString(e[It])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=q.normalizeProvider(e.sigv4aSigningRegionSet);return e};const Mt={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new V.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new V.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let m=e.credentials;let h=!!e.credentials;let C=undefined;Object.defineProperty(e,"credentials",{set(q){if(q&&q!==m&&q!==C){h=true}m=q;const V=normalizeCredentialProvider(e,{credentials:m,credentialDefaultProvider:e.credentialDefaultProvider});const fe=bindCallerConfig(e,V);if(h&&!fe.attributed){const e=typeof m==="object"&&m!==null;C=async m=>{const h=await fe(m);const C=h;if(e&&(!C.$source||Object.keys(C.$source).length===0)){return le.setCredentialFeature(C,"CREDENTIALS_CODE","e")}return C};C.memoized=fe.memoized;C.configBound=fe.configBound;C.attributed=true}else{C=fe}},get(){return C},enumerable:true,configurable:true});e.credentials=m;const{signingEscapePath:V=true,systemClockOffset:he=e.systemClockOffset||0,sha256:ye}=e;let ve;if(e.signer){ve=q.normalizeProvider(e.signer)}else if(e.regionInfoProvider){ve=()=>q.normalizeProvider(e.region)().then((async m=>[await e.regionInfoProvider(m,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},m])).then((([m,h])=>{const{signingRegion:C,signingService:q}=m;e.signingRegion=e.signingRegion||C||h;e.signingName=e.signingName||q||e.serviceId;const le={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:ye,uriEscapePath:V};const he=e.signerConstructor||fe.SignatureV4;return new he(le)}))}else{ve=async m=>{m=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await q.normalizeProvider(e.region)(),properties:{}},m);const h=m.signingRegion;const C=m.signingName;e.signingRegion=e.signingRegion||h;e.signingName=e.signingName||C||e.serviceId;const le={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:ye,uriEscapePath:V};const he=e.signerConstructor||fe.SignatureV4;return new he(le)}}const Le=Object.assign(e,{systemClockOffset:he,signingEscapePath:V,signer:ve});return Le};const Lt=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:m,credentialDefaultProvider:h}){let C;if(m){if(!m?.memoized){C=q.memoizeIdentityProvider(m,q.isIdentityExpired,q.doesIdentityRequireRefresh)}else{C=m}}else{if(h){C=q.normalizeProvider(h(Object.assign({},e,{parentClientConfig:e})))}else{C=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}C.memoized=true;return C}function bindCallerConfig(e,m){if(m.configBound){return m}const fn=async h=>m({...h,callerClientConfig:e});fn.memoized=m.memoized;fn.configBound=true;return fn}class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,m){const h=m.getMemberSchemas();const C=Object.values(h).find((e=>!!e.getMergedTraits().httpPayload));if(C){const m=C.getMergedTraits().mediaType;if(m){return m}else if(C.isStringSchema()){return"text/plain"}else if(C.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!m.isUnitSchema()){const m=Object.values(h).find((e=>{const{httpQuery:m,httpQueryParams:h,httpHeader:C,httpLabel:q,httpPrefixHeaders:V}=e.getMergedTraits();const le=V===void 0;return!m&&!h&&!C&&!q&&le}));if(m){return e}}}async getErrorSchemaOrThrowBaseException(e,m,h,C,q,V){let le=m;let fe=e;if(e.includes("#")){[le,fe]=e.split("#")}const he={$metadata:q,$fault:h.statusCode<500?"client":"server"};const ve=ye.TypeRegistry.for(le);try{const m=V?.(ve,fe)??ve.getSchema(e);return{errorSchema:m,errorMetadata:he}}catch(e){C.message=C.message??C.Message??"UnknownError";const m=ye.TypeRegistry.for("smithy.ts.sdk.synthetic."+le);const h=m.getBaseException();if(h){const e=m.getErrorCtor(h)??Error;throw this.decorateServiceException(Object.assign(new e({name:fe}),he),C)}throw this.decorateServiceException(Object.assign(new Error(fe),he),C)}}decorateServiceException(e,m={}){if(this.queryCompat){const h=e.Message??m.Message;const C=ve.decorateServiceException(e,m);if(h){C.message=h}C.Error={...C.Error,Type:C.Error?.Type,Code:C.Error?.Code,Message:C.Error?.message??C.Error?.Message??h};const q=C.$metadata.requestId;if(q){C.RequestId=q}return C}return ve.decorateServiceException(e,m)}setQueryCompatError(e,m){const h=m.headers?.["x-amzn-query-error"];if(e!==undefined&&h!=null){const[m,C]=h.split(";");const q=Object.entries(e);const V={Code:m,Type:C};Object.assign(e,V);for(const[e,m]of q){V[e==="message"?"Message":e]=m}delete V.__type;e.Error=V}}queryCompatOutput(e,m){if(e.Error){m.Error=e.Error}if(e.Type){m.Type=e.Type}if(e.Code){m.Code=e.Code}}findQueryCompatibleError(e,m){try{return e.getSchema(m)}catch(h){return e.find((e=>ye.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===m))}}}class AwsSmithyRpcV2CborProtocol extends he.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:m}){super({defaultNamespace:e});this.awsQueryCompatible=!!m;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);if(this.awsQueryCompatible){C.headers["x-amzn-query-mode"]="true"}return C}async handleError(e,m,h,C,q){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(C,h)}const V=(()=>{const e=h.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return he.loadSmithyRpcV2CborErrorCode(h,C)??"Unknown"})();const{errorSchema:le,errorMetadata:fe}=await this.mixin.getErrorSchemaOrThrowBaseException(V,this.options.defaultNamespace,h,C,q,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const ve=ye.NormalizedSchema.of(le);const Le=C.message??C.Message??"Unknown";const Ue=ye.TypeRegistry.for(le[1]).getErrorCtor(le)??Error;const qe=new Ue(Le);const ze={};for(const[e,m]of ve.structIterator()){if(C[e]!=null){ze[e]=this.deserializer.readValue(m,C[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(C,ze)}throw this.mixin.decorateServiceException(Object.assign(qe,fe,{$fault:ve.getMergedTraits().error,message:Le},ze),C)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const m=new Error(`Received number ${e} where a string was expected.`);m.name="Warning";console.warn(m);return String(e)}if(typeof e==="boolean"){const m=new Error(`Received boolean ${e} where a string was expected.`);m.name="Warning";console.warn(m);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const m=e.toLowerCase();if(e!==""&&m!=="false"&&m!=="true"){const m=new Error(`Received string "${e}" where a boolean was expected.`);m.name="Warning";console.warn(m)}return e!==""&&m!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const m=Number(e);if(m.toString()!==e){const m=new Error(`Received string "${e}" where a number was expected.`);m.name="Warning";console.warn(m);return e}return m}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,m){this.from=e;this.to=m;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const m=this.from[e];this.to.$unknown=[e,m]}}}function jsonReviver(e,m,h){if(h?.source){const e=h.source;if(typeof m==="number"){if(m>Number.MAX_SAFE_INTEGER||m<Number.MIN_SAFE_INTEGER||e!==String(m)){const m=e.includes(".");if(m){return new Ue.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return m}const collectBodyString=(e,m)=>ve.collectBody(e,m).then((e=>(m?.utf8Encoder??ze.toUtf8)(e)));const parseJsonBody=(e,m)=>collectBodyString(e,m).then((e=>{if(e.length){try{return JSON.parse(e)}catch(m){if(m?.name==="SyntaxError"){Object.defineProperty(m,"$responseBodyText",{value:e})}throw m}}return{}}));const parseJsonErrorBody=async(e,m)=>{const h=await parseJsonBody(e,m);h.message=h.message??h.Message;return h};const loadRestJsonErrorCode=(e,m)=>{const findKey=(e,m)=>Object.keys(e).find((e=>e.toLowerCase()===m.toLowerCase()));const sanitizeErrorCode=e=>{let m=e;if(typeof m==="number"){m=m.toString()}if(m.indexOf(",")>=0){m=m.split(",")[0]}if(m.indexOf(":")>=0){m=m.split(":")[0]}if(m.indexOf("#")>=0){m=m.split("#")[1]}return m};const h=findKey(e.headers,"x-amzn-errortype");if(h!==undefined){return sanitizeErrorCode(e.headers[h])}if(m&&typeof m==="object"){const e=findKey(m,"code");if(e&&m[e]!==undefined){return sanitizeErrorCode(m[e])}if(m["__type"]!==undefined){return sanitizeErrorCode(m["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,m){return this._read(e,typeof m==="string"?JSON.parse(m,jsonReviver):await parseJsonBody(m,this.serdeContext))}readObject(e,m){return this._read(e,m)}_read(e,m){const h=m!==null&&typeof m==="object";const C=ye.NormalizedSchema.of(e);if(h){if(C.isStructSchema()){const e=m;const h=C.isUnionSchema();const q={};let V=void 0;const{jsonName:le}=this.settings;if(le){V={}}let fe;if(h){fe=new UnionSerde(e,q)}for(const[m,he]of C.structIterator()){let C=m;if(le){C=he.getMergedTraits().jsonName??C;V[C]=m}if(h){fe.mark(C)}if(e[C]!=null){q[m]=this._read(he,e[C])}}if(h){fe.writeUnknown()}else if(typeof e.__type==="string"){for(const[m,h]of Object.entries(e)){const e=le?V[m]??m:m;if(!(e in q)){q[e]=h}}}return q}if(Array.isArray(m)&&C.isListSchema()){const e=C.getValueSchema();const h=[];for(const C of m){h.push(this._read(e,C))}return h}if(C.isMapSchema()){const e=C.getValueSchema();const h={};for(const[C,q]of Object.entries(m)){h[C]=this._read(e,q)}return h}}if(C.isBlobSchema()&&typeof m==="string"){return qe.fromBase64(m)}const q=C.getMergedTraits().mediaType;if(C.isStringSchema()&&typeof m==="string"&&q){const e=q==="application/json"||q.endsWith("+json");if(e){return Ue.LazyJsonString.from(m)}return m}if(C.isTimestampSchema()&&m!=null){const e=Le.determineTimestampFormat(C,this.settings);switch(e){case 5:return Ue.parseRfc3339DateTimeWithOffset(m);case 6:return Ue.parseRfc7231DateTime(m);case 7:return Ue.parseEpochTimestamp(m);default:console.warn("Missing timestamp format, parsing value with Date constructor:",m);return new Date(m)}}if(C.isBigIntegerSchema()&&(typeof m==="number"||typeof m==="string")){return BigInt(m)}if(C.isBigDecimalSchema()&&m!=undefined){if(m instanceof Ue.NumericValue){return m}const e=m;if(e.type==="bigDecimal"&&"string"in e){return new Ue.NumericValue(e.string,e.type)}return new Ue.NumericValue(String(m),"bigDecimal")}if(C.isNumericSchema()&&typeof m==="string"){switch(m){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return m}if(C.isDocumentSchema()){if(h){const e=Array.isArray(m)?[]:{};for(const[h,q]of Object.entries(m)){if(q instanceof Ue.NumericValue){e[h]=q}else{e[h]=this._read(C,q)}}return e}else{return structuredClone(m)}}return m}}const Ut=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,m)=>{if(m instanceof Ue.NumericValue){const e=`${Ut+"nv"+this.counter++}_`+m.string;this.values.set(`"${e}"`,m.string);return e}if(typeof m==="bigint"){const e=m.toString();const h=`${Ut+"b"+this.counter++}_`+e;this.values.set(`"${h}"`,e);return h}return m}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[m,h]of this.values){e=e.replace(m,h)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,m){this.rootSchema=ye.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,m)}writeDiscriminatedDocument(e,m){this.write(e,m);if(typeof this.buffer==="object"){this.buffer.__type=ye.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:m}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!m){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,m,h){const C=m!==null&&typeof m==="object";const q=ye.NormalizedSchema.of(e);if(C){if(q.isStructSchema()){const e=m;const h={};const{jsonName:C}=this.settings;let V=void 0;if(C){V={}}for(const[m,le]of q.structIterator()){const fe=this._write(le,e[m],q);if(fe!==undefined){let e=m;if(C){e=le.getMergedTraits().jsonName??m;V[m]=e}h[e]=fe}}if(q.isUnionSchema()&&Object.keys(h).length===0){const{$unknown:m}=e;if(Array.isArray(m)){const[e,C]=m;h[e]=this._write(15,C)}}else if(typeof e.__type==="string"){for(const[m,q]of Object.entries(e)){const e=C?V[m]??m:m;if(!(e in h)){h[e]=this._write(15,q)}}}return h}if(Array.isArray(m)&&q.isListSchema()){const e=q.getValueSchema();const h=[];const C=!!q.getMergedTraits().sparse;for(const q of m){if(C||q!=null){h.push(this._write(e,q))}}return h}if(q.isMapSchema()){const e=q.getValueSchema();const h={};const C=!!q.getMergedTraits().sparse;for(const[q,V]of Object.entries(m)){if(C||V!=null){h[q]=this._write(e,V)}}return h}if(m instanceof Uint8Array&&(q.isBlobSchema()||q.isDocumentSchema())){if(q===this.rootSchema){return m}return(this.serdeContext?.base64Encoder??qe.toBase64)(m)}if(m instanceof Date&&(q.isTimestampSchema()||q.isDocumentSchema())){const e=Le.determineTimestampFormat(q,this.settings);switch(e){case 5:return m.toISOString().replace(".000Z","Z");case 6:return Ue.dateToUtcString(m);case 7:return m.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",m);return m.getTime()/1e3}}if(m instanceof Ue.NumericValue){this.useReplacer=true}}if(m===null&&h?.isStructSchema()){return void 0}if(q.isStringSchema()){if(typeof m==="undefined"&&q.isIdempotencyToken()){return Ue.generateIdempotencyToken()}const e=q.getMergedTraits().mediaType;if(m!=null&&e){const h=e==="application/json"||e.endsWith("+json");if(h){return Ue.LazyJsonString.from(m)}}return m}if(typeof m==="number"&&q.isNumericSchema()){if(Math.abs(m)===Infinity||isNaN(m)){return String(m)}return m}if(typeof m==="string"&&q.isBlobSchema()){if(q===this.rootSchema){return m}return(this.serdeContext?.base64Encoder??qe.toBase64)(m)}if(typeof m==="bigint"){this.useReplacer=true}if(q.isDocumentSchema()){if(C){const e=Array.isArray(m)?[]:{};for(const[h,C]of Object.entries(m)){if(C instanceof Ue.NumericValue){this.useReplacer=true;e[h]=C}else{e[h]=this._write(q,C)}}return e}else{return structuredClone(m)}}return m}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends Le.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C}){super({defaultNamespace:e});this.serviceTarget=m;this.codec=C??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!h;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);if(!C.path.endsWith("/")){C.path+="/"}Object.assign(C.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){C.headers["x-amzn-query-mode"]="true"}if(ye.deref(e.input)==="unit"||!C.body){C.body="{}"}return C}getPayloadCodec(){return this.codec}async handleError(e,m,h,C,q){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(C,h)}const V=loadRestJsonErrorCode(h,C)??"Unknown";const{errorSchema:le,errorMetadata:fe}=await this.mixin.getErrorSchemaOrThrowBaseException(V,this.options.defaultNamespace,h,C,q,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const he=ye.NormalizedSchema.of(le);const ve=C.message??C.Message??"Unknown";const Le=ye.TypeRegistry.for(le[1]).getErrorCtor(le)??Error;const Ue=new Le(ve);const qe={};for(const[e,m]of he.structIterator()){if(C[e]!=null){qe[e]=this.codec.createDeserializer().readObject(m,C[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(C,qe)}throw this.mixin.decorateServiceException(Object.assign(Ue,fe,{$fault:he.getMergedTraits().error,message:ve},qe),C)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C}){super({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C}){super({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends Le.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const m={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(m);this.serializer=new Le.HttpInterceptingShapeSerializer(this.codec.createSerializer(),m);this.deserializer=new Le.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),m)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);const q=ye.NormalizedSchema.of(e.input);if(!C.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),q);if(e){C.headers["content-type"]=e}}if(C.body==null&&C.headers["content-type"]===this.getDefaultContentType()){C.body="{}"}return C}async deserializeResponse(e,m,h){const C=await super.deserializeResponse(e,m,h);const q=ye.NormalizedSchema.of(e.output);for(const[e,m]of q.structIterator()){if(m.getMemberTraits().httpPayload&&!(e in C)){C[e]=null}}return C}async handleError(e,m,h,C,q){const V=loadRestJsonErrorCode(h,C)??"Unknown";const{errorSchema:le,errorMetadata:fe}=await this.mixin.getErrorSchemaOrThrowBaseException(V,this.options.defaultNamespace,h,C,q);const he=ye.NormalizedSchema.of(le);const ve=C.message??C.Message??"Unknown";const Le=ye.TypeRegistry.for(le[1]).getErrorCtor(le)??Error;const Ue=new Le(ve);await this.deserializeHttpMessage(le,m,h,C);const qe={};for(const[e,m]of he.structIterator()){const h=m.getMergedTraits().jsonName??e;qe[e]=this.codec.createDeserializer().readObject(m,C[h])}throw this.mixin.decorateServiceException(Object.assign(Ue,fe,{$fault:he.getMergedTraits().error,message:ve},qe),C)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return ve.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new Le.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,m,h){const C=ye.NormalizedSchema.of(e);const q=C.getMemberSchemas();const V=C.isStructSchema()&&C.isMemberSchema()&&!!Object.values(q).find((e=>!!e.getMemberTraits().eventPayload));if(V){const e={};const h=Object.keys(q)[0];const C=q[h];if(C.isBlobSchema()){e[h]=m}else{e[h]=this.read(q[h],m)}return e}const le=(this.serdeContext?.utf8Encoder??ze.toUtf8)(m);const fe=this.parseXml(le);return this.readSchema(e,h?fe[h]:fe)}readSchema(e,m){const h=ye.NormalizedSchema.of(e);if(h.isUnitSchema()){return}const C=h.getMergedTraits();if(h.isListSchema()&&!Array.isArray(m)){return this.readSchema(h,[m])}if(m==null){return m}if(typeof m==="object"){const e=!!C.xmlFlattened;if(h.isListSchema()){const C=h.getValueSchema();const q=[];const V=C.getMergedTraits().xmlName??"member";const le=e?m:(m[0]??m)[V];if(le==null){return q}const fe=Array.isArray(le)?le:[le];for(const e of fe){q.push(this.readSchema(C,e))}return q}const q={};if(h.isMapSchema()){const C=h.getKeySchema();const V=h.getValueSchema();let le;if(e){le=Array.isArray(m)?m:[m]}else{le=Array.isArray(m.entry)?m.entry:[m.entry]}const fe=C.getMergedTraits().xmlName??"key";const he=V.getMergedTraits().xmlName??"value";for(const e of le){const m=e[fe];const h=e[he];q[m]=this.readSchema(V,h)}return q}if(h.isStructSchema()){const e=h.isUnionSchema();let C;if(e){C=new UnionSerde(m,q)}for(const[V,le]of h.structIterator()){const h=le.getMergedTraits();const fe=!h.httpPayload?le.getMemberTraits().xmlName??V:h.xmlName??le.getName();if(e){C.mark(fe)}if(m[fe]!=null){q[V]=this.readSchema(le,m[fe])}}if(e){C.writeUnknown()}return q}if(h.isDocumentSchema()){return m}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${h.getName(true)}`)}if(h.isListSchema()){return[]}if(h.isMapSchema()||h.isStructSchema()){return{}}return this.stringDeserializer.read(h,m)}parseXml(e){if(e.length){let m;try{m=He.parseXML(e)}catch(m){if(m&&typeof m==="object"){Object.defineProperty(m,"$responseBodyText",{value:e})}throw m}const h="#text";const C=Object.keys(m)[0];const q=m[C];if(q[h]){q[C]=q[h];delete q[h]}return ve.getValueFromTextNode(q)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,m,h=""){if(this.buffer===undefined){this.buffer=""}const C=ye.NormalizedSchema.of(e);if(h&&!h.endsWith(".")){h+="."}if(C.isBlobSchema()){if(typeof m==="string"||m instanceof Uint8Array){this.writeKey(h);this.writeValue((this.serdeContext?.base64Encoder??qe.toBase64)(m))}}else if(C.isBooleanSchema()||C.isNumericSchema()||C.isStringSchema()){if(m!=null){this.writeKey(h);this.writeValue(String(m))}else if(C.isIdempotencyToken()){this.writeKey(h);this.writeValue(Ue.generateIdempotencyToken())}}else if(C.isBigIntegerSchema()){if(m!=null){this.writeKey(h);this.writeValue(String(m))}}else if(C.isBigDecimalSchema()){if(m!=null){this.writeKey(h);this.writeValue(m instanceof Ue.NumericValue?m.string:String(m))}}else if(C.isTimestampSchema()){if(m instanceof Date){this.writeKey(h);const e=Le.determineTimestampFormat(C,this.settings);switch(e){case 5:this.writeValue(m.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(ve.dateToUtcString(m));break;case 7:this.writeValue(String(m.getTime()/1e3));break}}}else if(C.isDocumentSchema()){if(Array.isArray(m)){this.write(64|15,m,h)}else if(m instanceof Date){this.write(4,m,h)}else if(m instanceof Uint8Array){this.write(21,m,h)}else if(m&&typeof m==="object"){this.write(128|15,m,h)}else{this.writeKey(h);this.writeValue(String(m))}}else if(C.isListSchema()){if(Array.isArray(m)){if(m.length===0){if(this.settings.serializeEmptyLists){this.writeKey(h);this.writeValue("")}}else{const e=C.getValueSchema();const q=this.settings.flattenLists||C.getMergedTraits().xmlFlattened;let V=1;for(const C of m){if(C==null){continue}const m=e.getMergedTraits();const le=this.getKey("member",m.xmlName,m.ec2QueryName);const fe=q?`${h}${V}`:`${h}${le}.${V}`;this.write(e,C,fe);++V}}}}else if(C.isMapSchema()){if(m&&typeof m==="object"){const e=C.getKeySchema();const q=C.getValueSchema();const V=C.getMergedTraits().xmlFlattened;let le=1;for(const[C,fe]of Object.entries(m)){if(fe==null){continue}const m=e.getMergedTraits();const he=this.getKey("key",m.xmlName,m.ec2QueryName);const ye=V?`${h}${le}.${he}`:`${h}entry.${le}.${he}`;const ve=q.getMergedTraits();const Le=this.getKey("value",ve.xmlName,ve.ec2QueryName);const Ue=V?`${h}${le}.${Le}`:`${h}entry.${le}.${Le}`;this.write(e,C,ye);this.write(q,fe,Ue);++le}}}else if(C.isStructSchema()){if(m&&typeof m==="object"){let e=false;for(const[q,V]of C.structIterator()){if(m[q]==null&&!V.isIdempotencyToken()){continue}const C=V.getMergedTraits();const le=this.getKey(q,C.xmlName,C.ec2QueryName,"struct");const fe=`${h}${le}`;this.write(V,m[q],fe);e=true}if(!e&&C.isUnionSchema()){const{$unknown:e}=m;if(Array.isArray(e)){const[m,C]=e;const q=`${h}${m}`;this.write(15,C,q)}}}}else if(C.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${C.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,m,h,C){const{ec2:q,capitalizeKeys:V}=this.settings;if(q&&h){return h}const le=m??e;if(V&&C==="struct"){return le[0].toUpperCase()+le.slice(1)}return le}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${Le.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=Le.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends Le.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const m={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(m);this.deserializer=new XmlShapeDeserializer(m)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);if(!C.path.endsWith("/")){C.path+="/"}Object.assign(C.headers,{"content-type":`application/x-www-form-urlencoded`});if(ye.deref(e.input)==="unit"||!C.body){C.body=""}const q=e.name.split("#")[1]??e.name;C.body=`Action=${q}&Version=${this.options.version}`+C.body;if(C.body.endsWith("&")){C.body=C.body.slice(-1)}return C}async deserializeResponse(e,m,h){const C=this.deserializer;const q=ye.NormalizedSchema.of(e.output);const V={};if(h.statusCode>=300){const q=await Le.collectBody(h.body,m);if(q.byteLength>0){Object.assign(V,await C.read(15,q))}await this.handleError(e,m,h,V,this.deserializeMetadata(h))}for(const e in h.headers){const m=h.headers[e];delete h.headers[e];h.headers[e.toLowerCase()]=m}const le=e.name.split("#")[1]??e.name;const fe=q.isStructSchema()&&this.useNestedResult()?le+"Result":undefined;const he=await Le.collectBody(h.body,m);if(he.byteLength>0){Object.assign(V,await C.read(q,he,fe))}const ve={$metadata:this.deserializeMetadata(h),...V};return ve}useNestedResult(){return true}async handleError(e,m,h,C,q){const V=this.loadQueryErrorCode(h,C)??"Unknown";const le=this.loadQueryError(C)??{};const fe=this.loadQueryErrorMessage(C);le.message=fe;le.Error={Type:le.Type,Code:le.Code,Message:fe};const{errorSchema:he,errorMetadata:ve}=await this.mixin.getErrorSchemaOrThrowBaseException(V,this.options.defaultNamespace,h,le,q,this.mixin.findQueryCompatibleError);const Le=ye.NormalizedSchema.of(he);const Ue=ye.TypeRegistry.for(he[1]).getErrorCtor(he)??Error;const qe=new Ue(fe);const ze={Type:le.Error.Type,Code:le.Error.Code,Error:le.Error};for(const[e,m]of Le.structIterator()){const h=m.getMergedTraits().xmlName??e;const q=le[h]??C[h];ze[e]=this.deserializer.readSchema(m,q)}throw this.mixin.decorateServiceException(Object.assign(qe,ve,{$fault:Le.getMergedTraits().error,message:fe},ze),C)}loadQueryErrorCode(e,m){const h=(m.Errors?.[0]?.Error??m.Errors?.Error??m.Error)?.Code;if(h!==undefined){return h}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const m=this.loadQueryError(e);return m?.message??m?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const m={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,m)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(e,m)=>collectBodyString(e,m).then((e=>{if(e.length){let m;try{m=He.parseXML(e)}catch(m){if(m&&typeof m==="object"){Object.defineProperty(m,"$responseBodyText",{value:e})}throw m}const h="#text";const C=Object.keys(m)[0];const q=m[C];if(q[h]){q[C]=q[h];delete q[h]}return ve.getValueFromTextNode(q)}return{}}));const parseXmlErrorBody=async(e,m)=>{const h=await parseXmlBody(e,m);if(h.Error){h.Error.message=h.Error.message??h.Error.Message}return h};const loadRestXmlErrorCode=(e,m)=>{if(m?.Error?.Code!==undefined){return m.Error.Code}if(m?.Code!==undefined){return m.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,m){const h=ye.NormalizedSchema.of(e);if(h.isStringSchema()&&typeof m==="string"){this.stringBuffer=m}else if(h.isBlobSchema()){this.byteBuffer="byteLength"in m?m:(this.serdeContext?.base64Decoder??qe.fromBase64)(m)}else{this.buffer=this.writeStruct(h,m,undefined);const e=h.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(h.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,m,h){const C=e.getMergedTraits();const q=e.isMemberSchema()&&!C.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():C.xmlName??e.getName();if(!q||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const V=He.XmlNode.of(q);const[le,fe]=this.getXmlnsAttribute(e,h);for(const[h,C]of e.structIterator()){const e=m[h];if(e!=null||C.isIdempotencyToken()){if(C.getMergedTraits().xmlAttribute){V.addAttribute(C.getMergedTraits().xmlName??h,this.writeSimple(C,e));continue}if(C.isListSchema()){this.writeList(C,e,V,fe)}else if(C.isMapSchema()){this.writeMap(C,e,V,fe)}else if(C.isStructSchema()){V.addChildNode(this.writeStruct(C,e,fe))}else{const m=He.XmlNode.of(C.getMergedTraits().xmlName??C.getMemberName());this.writeSimpleInto(C,e,m,fe);V.addChildNode(m)}}}const{$unknown:he}=m;if(he&&e.isUnionSchema()&&Array.isArray(he)&&Object.keys(m).length===1){const[e,h]=he;const C=He.XmlNode.of(e);if(typeof h!=="string"){if(m instanceof He.XmlNode||m instanceof He.XmlText){V.addChildNode(m)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,h,C,fe);V.addChildNode(C)}if(fe){V.addAttribute(le,fe)}return V}writeList(e,m,h,C){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const q=e.getMergedTraits();const V=e.getValueSchema();const le=V.getMergedTraits();const fe=!!le.sparse;const he=!!q.xmlFlattened;const[ye,ve]=this.getXmlnsAttribute(e,C);const writeItem=(m,h)=>{if(V.isListSchema()){this.writeList(V,Array.isArray(h)?h:[h],m,ve)}else if(V.isMapSchema()){this.writeMap(V,h,m,ve)}else if(V.isStructSchema()){const C=this.writeStruct(V,h,ve);m.addChildNode(C.withName(he?q.xmlName??e.getMemberName():le.xmlName??"member"))}else{const C=He.XmlNode.of(he?q.xmlName??e.getMemberName():le.xmlName??"member");this.writeSimpleInto(V,h,C,ve);m.addChildNode(C)}};if(he){for(const e of m){if(fe||e!=null){writeItem(h,e)}}}else{const C=He.XmlNode.of(q.xmlName??e.getMemberName());if(ve){C.addAttribute(ye,ve)}for(const e of m){if(fe||e!=null){writeItem(C,e)}}h.addChildNode(C)}}writeMap(e,m,h,C,q=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const V=e.getMergedTraits();const le=e.getKeySchema();const fe=le.getMergedTraits();const he=fe.xmlName??"key";const ye=e.getValueSchema();const ve=ye.getMergedTraits();const Le=ve.xmlName??"value";const Ue=!!ve.sparse;const qe=!!V.xmlFlattened;const[ze,We]=this.getXmlnsAttribute(e,C);const addKeyValue=(e,m,h)=>{const C=He.XmlNode.of(he,m);const[q,V]=this.getXmlnsAttribute(le,We);if(V){C.addAttribute(q,V)}e.addChildNode(C);let fe=He.XmlNode.of(Le);if(ye.isListSchema()){this.writeList(ye,h,fe,We)}else if(ye.isMapSchema()){this.writeMap(ye,h,fe,We,true)}else if(ye.isStructSchema()){fe=this.writeStruct(ye,h,We)}else{this.writeSimpleInto(ye,h,fe,We)}e.addChildNode(fe)};if(qe){for(const[C,q]of Object.entries(m)){if(Ue||q!=null){const m=He.XmlNode.of(V.xmlName??e.getMemberName());addKeyValue(m,C,q);h.addChildNode(m)}}}else{let C;if(!q){C=He.XmlNode.of(V.xmlName??e.getMemberName());if(We){C.addAttribute(ze,We)}h.addChildNode(C)}for(const[e,V]of Object.entries(m)){if(Ue||V!=null){const m=He.XmlNode.of("entry");addKeyValue(m,e,V);(q?h:C).addChildNode(m)}}}}writeSimple(e,m){if(null===m){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const h=ye.NormalizedSchema.of(e);let C=null;if(m&&typeof m==="object"){if(h.isBlobSchema()){C=(this.serdeContext?.base64Encoder??qe.toBase64)(m)}else if(h.isTimestampSchema()&&m instanceof Date){const e=Le.determineTimestampFormat(h,this.settings);switch(e){case 5:C=m.toISOString().replace(".000Z","Z");break;case 6:C=ve.dateToUtcString(m);break;case 7:C=String(m.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",m);C=ve.dateToUtcString(m);break}}else if(h.isBigDecimalSchema()&&m){if(m instanceof Ue.NumericValue){return m.string}return String(m)}else if(h.isMapSchema()||h.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${h.getName(true)}`)}}if(h.isBooleanSchema()||h.isNumericSchema()||h.isBigIntegerSchema()||h.isBigDecimalSchema()){C=String(m)}if(h.isStringSchema()){if(m===undefined&&h.isIdempotencyToken()){C=Ue.generateIdempotencyToken()}else{C=String(m)}}if(C===null){throw new Error(`Unhandled schema-value pair ${h.getName(true)}=${m}`)}return C}writeSimpleInto(e,m,h,C){const q=this.writeSimple(e,m);const V=ye.NormalizedSchema.of(e);const le=new He.XmlText(q);const[fe,he]=this.getXmlnsAttribute(V,C);if(he){h.addAttribute(fe,he)}h.addChildNode(le)}getXmlnsAttribute(e,m){const h=e.getMergedTraits();const[C,q]=h.xmlNamespace??[];if(q&&q!==m){return[C?`xmlns:${C}`:"xmlns",q]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends Le.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const m={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(m);this.serializer=new Le.HttpInterceptingShapeSerializer(this.codec.createSerializer(),m);this.deserializer=new Le.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),m)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);const q=ye.NormalizedSchema.of(e.input);if(!C.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),q);if(e){C.headers["content-type"]=e}}if(typeof C.body==="string"&&C.headers["content-type"]===this.getDefaultContentType()&&!C.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(q)){C.body='<?xml version="1.0" encoding="UTF-8"?>'+C.body}return C}async deserializeResponse(e,m,h){return super.deserializeResponse(e,m,h)}async handleError(e,m,h,C,q){const V=loadRestXmlErrorCode(h,C)??"Unknown";if(C.Error&&typeof C.Error==="object"){for(const e of Object.keys(C.Error)){C[e]=C.Error[e];if(e.toLowerCase()==="message"){C.message=C.Error[e]}}}if(C.RequestId&&!q.requestId){q.requestId=C.RequestId}const{errorSchema:le,errorMetadata:fe}=await this.mixin.getErrorSchemaOrThrowBaseException(V,this.options.defaultNamespace,h,C,q);const he=ye.NormalizedSchema.of(le);const ve=C.Error?.message??C.Error?.Message??C.message??C.Message??"Unknown";const Le=ye.TypeRegistry.for(le[1]).getErrorCtor(le)??Error;const Ue=new Le(ve);await this.deserializeHttpMessage(le,m,h,C);const qe={};for(const[e,m]of he.structIterator()){const h=m.getMergedTraits().xmlName??e;const q=C.Error?.[h]??C[h];qe[e]=this.codec.createDeserializer().readSchema(m,q)}throw this.mixin.decorateServiceException(Object.assign(Ue,fe,{$fault:he.getMergedTraits().error,message:ve},qe),C)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,m]of e.structIterator()){if(m.getMergedTraits().httpPayload){return!(m.isStructSchema()||m.isMapSchema()||m.isListSchema())}}return false}}m.AWSSDKSigV4Signer=Qe;m.AwsEc2QueryProtocol=AwsEc2QueryProtocol;m.AwsJson1_0Protocol=AwsJson1_0Protocol;m.AwsJson1_1Protocol=AwsJson1_1Protocol;m.AwsJsonRpcProtocol=AwsJsonRpcProtocol;m.AwsQueryProtocol=AwsQueryProtocol;m.AwsRestJsonProtocol=AwsRestJsonProtocol;m.AwsRestXmlProtocol=AwsRestXmlProtocol;m.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;m.AwsSdkSigV4Signer=AwsSdkSigV4Signer;m.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;m.JsonCodec=JsonCodec;m.JsonShapeDeserializer=JsonShapeDeserializer;m.JsonShapeSerializer=JsonShapeSerializer;m.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=_t;m.NODE_SIGV4A_CONFIG_OPTIONS=Mt;m.QueryShapeSerializer=QueryShapeSerializer;m.XmlCodec=XmlCodec;m.XmlShapeDeserializer=XmlShapeDeserializer;m.XmlShapeSerializer=XmlShapeSerializer;m._toBool=_toBool;m._toNum=_toNum;m._toStr=_toStr;m.awsExpectUnion=awsExpectUnion;m.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;m.getBearerTokenEnvKey=getBearerTokenEnvKey;m.loadRestJsonErrorCode=loadRestJsonErrorCode;m.loadRestXmlErrorCode=loadRestXmlErrorCode;m.parseJsonBody=parseJsonBody;m.parseJsonErrorBody=parseJsonErrorBody;m.parseXmlBody=parseXmlBody;m.parseXmlErrorBody=parseXmlErrorBody;m.resolveAWSSDKSigV4Config=Lt;m.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;m.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;m.setCredentialFeature=setCredentialFeature;m.setFeature=setFeature;m.setTokenFeature=setTokenFeature;m.state=We;m.validateSigningProperties=validateSigningProperties},7078:(e,m)=>{const h={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!h.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){h.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,m,h){if(!e.$source){e.$source={}}e.$source[m]=h;return e}function setFeature(e,m,h){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[m]=h}function setTokenFeature(e,m,h){if(!e.$source){e.$source={}}e.$source[m]=h;return e}m.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;m.setCredentialFeature=setCredentialFeature;m.setFeature=setFeature;m.setTokenFeature=setTokenFeature;m.state=h},2097:(e,m,h)=>{var C=h(9228);var q=h(4918);var V=h(4036);var le=h(7078);var fe=h(7202);const getDateHeader=e=>C.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,m)=>Math.abs(getSkewCorrectedDate(m).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,m)=>{const h=Date.parse(e);if(isClockSkewed(h,m)){return h-Date.now()}return m};const throwSigningPropertyError=(e,m)=>{if(!m){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return m};const validateSigningProperties=async e=>{const m=throwSigningPropertyError("context",e.context);const h=throwSigningPropertyError("config",e.config);const C=m.endpointV2?.properties?.authSchemes?.[0];const q=throwSigningPropertyError("signer",h.signer);const V=await q(C);const le=e?.signingRegion;const fe=e?.signingRegionSet;const he=e?.signingName;return{config:h,signer:V,signingRegion:le,signingRegionSet:fe,signingName:he}};class AwsSdkSigV4Signer{async sign(e,m,h){if(!C.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const q=await validateSigningProperties(h);const{config:V,signer:le}=q;let{signingRegion:fe,signingName:he}=q;const ye=h.context;if(ye?.authSchemes?.length??0>1){const[e,m]=ye.authSchemes;if(e?.name==="sigv4a"&&m?.name==="sigv4"){fe=m?.signingRegion??fe;he=m?.signingName??he}}const ve=await le.sign(e,{signingDate:getSkewCorrectedDate(V.systemClockOffset),signingRegion:fe,signingService:he});return ve}errorHandler(e){return m=>{const h=m.ServerTime??getDateHeader(m.$response);if(h){const C=throwSigningPropertyError("config",e.config);const q=C.systemClockOffset;C.systemClockOffset=getUpdatedSystemClockOffset(h,C.systemClockOffset);const V=C.systemClockOffset!==q;if(V&&m.$metadata){m.$metadata.clockSkewCorrected=true}}throw m}}successHandler(e,m){const h=getDateHeader(e);if(h){const e=throwSigningPropertyError("config",m.config);e.systemClockOffset=getUpdatedSystemClockOffset(h,e.systemClockOffset)}}}const he=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,m,h){if(!C.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:q,signer:V,signingRegion:le,signingRegionSet:fe,signingName:he}=await validateSigningProperties(h);const ye=await(q.sigv4aSigningRegionSet?.());const ve=(ye??fe??[le]).join(",");const Le=await V.sign(e,{signingDate:getSkewCorrectedDate(q.systemClockOffset),signingRegion:ve,signingService:he});return Le}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const ye="AWS_AUTH_SCHEME_PREFERENCE";const ve="auth_scheme_preference";const Le={environmentVariableSelector:(e,m)=>{if(m?.signingName){const h=getBearerTokenEnvKey(m.signingName);if(h in e)return["httpBearerAuth"]}if(!(ye in e))return undefined;return getArrayForCommaSeparatedString(e[ye])},configFileSelector:e=>{if(!(ve in e))return undefined;return getArrayForCommaSeparatedString(e[ve])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=q.normalizeProvider(e.sigv4aSigningRegionSet);return e};const Ue={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new V.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new V.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let m=e.credentials;let h=!!e.credentials;let C=undefined;Object.defineProperty(e,"credentials",{set(q){if(q&&q!==m&&q!==C){h=true}m=q;const V=normalizeCredentialProvider(e,{credentials:m,credentialDefaultProvider:e.credentialDefaultProvider});const fe=bindCallerConfig(e,V);if(h&&!fe.attributed){const e=typeof m==="object"&&m!==null;C=async m=>{const h=await fe(m);const C=h;if(e&&(!C.$source||Object.keys(C.$source).length===0)){return le.setCredentialFeature(C,"CREDENTIALS_CODE","e")}return C};C.memoized=fe.memoized;C.configBound=fe.configBound;C.attributed=true}else{C=fe}},get(){return C},enumerable:true,configurable:true});e.credentials=m;const{signingEscapePath:V=true,systemClockOffset:he=e.systemClockOffset||0,sha256:ye}=e;let ve;if(e.signer){ve=q.normalizeProvider(e.signer)}else if(e.regionInfoProvider){ve=()=>q.normalizeProvider(e.region)().then((async m=>[await e.regionInfoProvider(m,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},m])).then((([m,h])=>{const{signingRegion:C,signingService:q}=m;e.signingRegion=e.signingRegion||C||h;e.signingName=e.signingName||q||e.serviceId;const le={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:ye,uriEscapePath:V};const he=e.signerConstructor||fe.SignatureV4;return new he(le)}))}else{ve=async m=>{m=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await q.normalizeProvider(e.region)(),properties:{}},m);const h=m.signingRegion;const C=m.signingName;e.signingRegion=e.signingRegion||h;e.signingName=e.signingName||C||e.serviceId;const le={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:ye,uriEscapePath:V};const he=e.signerConstructor||fe.SignatureV4;return new he(le)}}const Le=Object.assign(e,{systemClockOffset:he,signingEscapePath:V,signer:ve});return Le};const qe=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:m,credentialDefaultProvider:h}){let C;if(m){if(!m?.memoized){C=q.memoizeIdentityProvider(m,q.isIdentityExpired,q.doesIdentityRequireRefresh)}else{C=m}}else{if(h){C=q.normalizeProvider(h(Object.assign({},e,{parentClientConfig:e})))}else{C=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}C.memoized=true;return C}function bindCallerConfig(e,m){if(m.configBound){return m}const fn=async h=>m({...h,callerClientConfig:e});fn.memoized=m.memoized;fn.configBound=true;return fn}m.AWSSDKSigV4Signer=he;m.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;m.AwsSdkSigV4Signer=AwsSdkSigV4Signer;m.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=Le;m.NODE_SIGV4A_CONFIG_OPTIONS=Ue;m.getBearerTokenEnvKey=getBearerTokenEnvKey;m.resolveAWSSDKSigV4Config=qe;m.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;m.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;m.validateSigningProperties=validateSigningProperties},5778:(e,m,h)=>{var C=h(7657);var q=h(2566);var V=h(4271);var le=h(5770);var fe=h(8682);var he=h(3158);var ye=h(8165);var ve=h(452);class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,m){const h=m.getMemberSchemas();const C=Object.values(h).find((e=>!!e.getMergedTraits().httpPayload));if(C){const m=C.getMergedTraits().mediaType;if(m){return m}else if(C.isStringSchema()){return"text/plain"}else if(C.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!m.isUnitSchema()){const m=Object.values(h).find((e=>{const{httpQuery:m,httpQueryParams:h,httpHeader:C,httpLabel:q,httpPrefixHeaders:V}=e.getMergedTraits();const le=V===void 0;return!m&&!h&&!C&&!q&&le}));if(m){return e}}}async getErrorSchemaOrThrowBaseException(e,m,h,C,V,le){let fe=m;let he=e;if(e.includes("#")){[fe,he]=e.split("#")}const ye={$metadata:V,$fault:h.statusCode<500?"client":"server"};const ve=q.TypeRegistry.for(fe);try{const m=le?.(ve,he)??ve.getSchema(e);return{errorSchema:m,errorMetadata:ye}}catch(e){C.message=C.message??C.Message??"UnknownError";const m=q.TypeRegistry.for("smithy.ts.sdk.synthetic."+fe);const h=m.getBaseException();if(h){const e=m.getErrorCtor(h)??Error;throw this.decorateServiceException(Object.assign(new e({name:he}),ye),C)}throw this.decorateServiceException(Object.assign(new Error(he),ye),C)}}decorateServiceException(e,m={}){if(this.queryCompat){const h=e.Message??m.Message;const C=V.decorateServiceException(e,m);if(h){C.message=h}C.Error={...C.Error,Type:C.Error?.Type,Code:C.Error?.Code,Message:C.Error?.message??C.Error?.Message??h};const q=C.$metadata.requestId;if(q){C.RequestId=q}return C}return V.decorateServiceException(e,m)}setQueryCompatError(e,m){const h=m.headers?.["x-amzn-query-error"];if(e!==undefined&&h!=null){const[m,C]=h.split(";");const q=Object.entries(e);const V={Code:m,Type:C};Object.assign(e,V);for(const[e,m]of q){V[e==="message"?"Message":e]=m}delete V.__type;e.Error=V}}queryCompatOutput(e,m){if(e.Error){m.Error=e.Error}if(e.Type){m.Type=e.Type}if(e.Code){m.Code=e.Code}}findQueryCompatibleError(e,m){try{return e.getSchema(m)}catch(h){return e.find((e=>q.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===m))}}}class AwsSmithyRpcV2CborProtocol extends C.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:m}){super({defaultNamespace:e});this.awsQueryCompatible=!!m;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);if(this.awsQueryCompatible){C.headers["x-amzn-query-mode"]="true"}return C}async handleError(e,m,h,V,le){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(V,h)}const fe=(()=>{const e=h.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return C.loadSmithyRpcV2CborErrorCode(h,V)??"Unknown"})();const{errorSchema:he,errorMetadata:ye}=await this.mixin.getErrorSchemaOrThrowBaseException(fe,this.options.defaultNamespace,h,V,le,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const ve=q.NormalizedSchema.of(he);const Le=V.message??V.Message??"Unknown";const Ue=q.TypeRegistry.for(he[1]).getErrorCtor(he)??Error;const qe=new Ue(Le);const ze={};for(const[e,m]of ve.structIterator()){if(V[e]!=null){ze[e]=this.deserializer.readValue(m,V[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(V,ze)}throw this.mixin.decorateServiceException(Object.assign(qe,ye,{$fault:ve.getMergedTraits().error,message:Le},ze),V)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const m=new Error(`Received number ${e} where a string was expected.`);m.name="Warning";console.warn(m);return String(e)}if(typeof e==="boolean"){const m=new Error(`Received boolean ${e} where a string was expected.`);m.name="Warning";console.warn(m);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const m=e.toLowerCase();if(e!==""&&m!=="false"&&m!=="true"){const m=new Error(`Received string "${e}" where a boolean was expected.`);m.name="Warning";console.warn(m)}return e!==""&&m!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const m=Number(e);if(m.toString()!==e){const m=new Error(`Received string "${e}" where a number was expected.`);m.name="Warning";console.warn(m);return e}return m}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,m){this.from=e;this.to=m;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const m=this.from[e];this.to.$unknown=[e,m]}}}function jsonReviver(e,m,h){if(h?.source){const e=h.source;if(typeof m==="number"){if(m>Number.MAX_SAFE_INTEGER||m<Number.MIN_SAFE_INTEGER||e!==String(m)){const m=e.includes(".");if(m){return new fe.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return m}const collectBodyString=(e,m)=>V.collectBody(e,m).then((e=>(m?.utf8Encoder??ye.toUtf8)(e)));const parseJsonBody=(e,m)=>collectBodyString(e,m).then((e=>{if(e.length){try{return JSON.parse(e)}catch(m){if(m?.name==="SyntaxError"){Object.defineProperty(m,"$responseBodyText",{value:e})}throw m}}return{}}));const parseJsonErrorBody=async(e,m)=>{const h=await parseJsonBody(e,m);h.message=h.message??h.Message;return h};const loadRestJsonErrorCode=(e,m)=>{const findKey=(e,m)=>Object.keys(e).find((e=>e.toLowerCase()===m.toLowerCase()));const sanitizeErrorCode=e=>{let m=e;if(typeof m==="number"){m=m.toString()}if(m.indexOf(",")>=0){m=m.split(",")[0]}if(m.indexOf(":")>=0){m=m.split(":")[0]}if(m.indexOf("#")>=0){m=m.split("#")[1]}return m};const h=findKey(e.headers,"x-amzn-errortype");if(h!==undefined){return sanitizeErrorCode(e.headers[h])}if(m&&typeof m==="object"){const e=findKey(m,"code");if(e&&m[e]!==undefined){return sanitizeErrorCode(m[e])}if(m["__type"]!==undefined){return sanitizeErrorCode(m["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,m){return this._read(e,typeof m==="string"?JSON.parse(m,jsonReviver):await parseJsonBody(m,this.serdeContext))}readObject(e,m){return this._read(e,m)}_read(e,m){const h=m!==null&&typeof m==="object";const C=q.NormalizedSchema.of(e);if(h){if(C.isStructSchema()){const e=m;const h=C.isUnionSchema();const q={};let V=void 0;const{jsonName:le}=this.settings;if(le){V={}}let fe;if(h){fe=new UnionSerde(e,q)}for(const[m,he]of C.structIterator()){let C=m;if(le){C=he.getMergedTraits().jsonName??C;V[C]=m}if(h){fe.mark(C)}if(e[C]!=null){q[m]=this._read(he,e[C])}}if(h){fe.writeUnknown()}else if(typeof e.__type==="string"){for(const[m,h]of Object.entries(e)){const e=le?V[m]??m:m;if(!(e in q)){q[e]=h}}}return q}if(Array.isArray(m)&&C.isListSchema()){const e=C.getValueSchema();const h=[];for(const C of m){h.push(this._read(e,C))}return h}if(C.isMapSchema()){const e=C.getValueSchema();const h={};for(const[C,q]of Object.entries(m)){h[C]=this._read(e,q)}return h}}if(C.isBlobSchema()&&typeof m==="string"){return he.fromBase64(m)}const V=C.getMergedTraits().mediaType;if(C.isStringSchema()&&typeof m==="string"&&V){const e=V==="application/json"||V.endsWith("+json");if(e){return fe.LazyJsonString.from(m)}return m}if(C.isTimestampSchema()&&m!=null){const e=le.determineTimestampFormat(C,this.settings);switch(e){case 5:return fe.parseRfc3339DateTimeWithOffset(m);case 6:return fe.parseRfc7231DateTime(m);case 7:return fe.parseEpochTimestamp(m);default:console.warn("Missing timestamp format, parsing value with Date constructor:",m);return new Date(m)}}if(C.isBigIntegerSchema()&&(typeof m==="number"||typeof m==="string")){return BigInt(m)}if(C.isBigDecimalSchema()&&m!=undefined){if(m instanceof fe.NumericValue){return m}const e=m;if(e.type==="bigDecimal"&&"string"in e){return new fe.NumericValue(e.string,e.type)}return new fe.NumericValue(String(m),"bigDecimal")}if(C.isNumericSchema()&&typeof m==="string"){switch(m){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return m}if(C.isDocumentSchema()){if(h){const e=Array.isArray(m)?[]:{};for(const[h,q]of Object.entries(m)){if(q instanceof fe.NumericValue){e[h]=q}else{e[h]=this._read(C,q)}}return e}else{return structuredClone(m)}}return m}}const Le=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,m)=>{if(m instanceof fe.NumericValue){const e=`${Le+"nv"+this.counter++}_`+m.string;this.values.set(`"${e}"`,m.string);return e}if(typeof m==="bigint"){const e=m.toString();const h=`${Le+"b"+this.counter++}_`+e;this.values.set(`"${h}"`,e);return h}return m}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[m,h]of this.values){e=e.replace(m,h)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,m){this.rootSchema=q.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,m)}writeDiscriminatedDocument(e,m){this.write(e,m);if(typeof this.buffer==="object"){this.buffer.__type=q.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:m}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!m){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,m,h){const C=m!==null&&typeof m==="object";const V=q.NormalizedSchema.of(e);if(C){if(V.isStructSchema()){const e=m;const h={};const{jsonName:C}=this.settings;let q=void 0;if(C){q={}}for(const[m,le]of V.structIterator()){const fe=this._write(le,e[m],V);if(fe!==undefined){let e=m;if(C){e=le.getMergedTraits().jsonName??m;q[m]=e}h[e]=fe}}if(V.isUnionSchema()&&Object.keys(h).length===0){const{$unknown:m}=e;if(Array.isArray(m)){const[e,C]=m;h[e]=this._write(15,C)}}else if(typeof e.__type==="string"){for(const[m,V]of Object.entries(e)){const e=C?q[m]??m:m;if(!(e in h)){h[e]=this._write(15,V)}}}return h}if(Array.isArray(m)&&V.isListSchema()){const e=V.getValueSchema();const h=[];const C=!!V.getMergedTraits().sparse;for(const q of m){if(C||q!=null){h.push(this._write(e,q))}}return h}if(V.isMapSchema()){const e=V.getValueSchema();const h={};const C=!!V.getMergedTraits().sparse;for(const[q,V]of Object.entries(m)){if(C||V!=null){h[q]=this._write(e,V)}}return h}if(m instanceof Uint8Array&&(V.isBlobSchema()||V.isDocumentSchema())){if(V===this.rootSchema){return m}return(this.serdeContext?.base64Encoder??he.toBase64)(m)}if(m instanceof Date&&(V.isTimestampSchema()||V.isDocumentSchema())){const e=le.determineTimestampFormat(V,this.settings);switch(e){case 5:return m.toISOString().replace(".000Z","Z");case 6:return fe.dateToUtcString(m);case 7:return m.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",m);return m.getTime()/1e3}}if(m instanceof fe.NumericValue){this.useReplacer=true}}if(m===null&&h?.isStructSchema()){return void 0}if(V.isStringSchema()){if(typeof m==="undefined"&&V.isIdempotencyToken()){return fe.generateIdempotencyToken()}const e=V.getMergedTraits().mediaType;if(m!=null&&e){const h=e==="application/json"||e.endsWith("+json");if(h){return fe.LazyJsonString.from(m)}}return m}if(typeof m==="number"&&V.isNumericSchema()){if(Math.abs(m)===Infinity||isNaN(m)){return String(m)}return m}if(typeof m==="string"&&V.isBlobSchema()){if(V===this.rootSchema){return m}return(this.serdeContext?.base64Encoder??he.toBase64)(m)}if(typeof m==="bigint"){this.useReplacer=true}if(V.isDocumentSchema()){if(C){const e=Array.isArray(m)?[]:{};for(const[h,C]of Object.entries(m)){if(C instanceof fe.NumericValue){this.useReplacer=true;e[h]=C}else{e[h]=this._write(V,C)}}return e}else{return structuredClone(m)}}return m}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends le.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C}){super({defaultNamespace:e});this.serviceTarget=m;this.codec=C??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!h;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);if(!C.path.endsWith("/")){C.path+="/"}Object.assign(C.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){C.headers["x-amzn-query-mode"]="true"}if(q.deref(e.input)==="unit"||!C.body){C.body="{}"}return C}getPayloadCodec(){return this.codec}async handleError(e,m,h,C,V){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(C,h)}const le=loadRestJsonErrorCode(h,C)??"Unknown";const{errorSchema:fe,errorMetadata:he}=await this.mixin.getErrorSchemaOrThrowBaseException(le,this.options.defaultNamespace,h,C,V,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const ye=q.NormalizedSchema.of(fe);const ve=C.message??C.Message??"Unknown";const Le=q.TypeRegistry.for(fe[1]).getErrorCtor(fe)??Error;const Ue=new Le(ve);const qe={};for(const[e,m]of ye.structIterator()){if(C[e]!=null){qe[e]=this.codec.createDeserializer().readObject(m,C[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(C,qe)}throw this.mixin.decorateServiceException(Object.assign(Ue,he,{$fault:ye.getMergedTraits().error,message:ve},qe),C)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C}){super({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C}){super({defaultNamespace:e,serviceTarget:m,awsQueryCompatible:h,jsonCodec:C})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends le.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const m={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(m);this.serializer=new le.HttpInterceptingShapeSerializer(this.codec.createSerializer(),m);this.deserializer=new le.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),m)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);const V=q.NormalizedSchema.of(e.input);if(!C.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),V);if(e){C.headers["content-type"]=e}}if(C.body==null&&C.headers["content-type"]===this.getDefaultContentType()){C.body="{}"}return C}async deserializeResponse(e,m,h){const C=await super.deserializeResponse(e,m,h);const V=q.NormalizedSchema.of(e.output);for(const[e,m]of V.structIterator()){if(m.getMemberTraits().httpPayload&&!(e in C)){C[e]=null}}return C}async handleError(e,m,h,C,V){const le=loadRestJsonErrorCode(h,C)??"Unknown";const{errorSchema:fe,errorMetadata:he}=await this.mixin.getErrorSchemaOrThrowBaseException(le,this.options.defaultNamespace,h,C,V);const ye=q.NormalizedSchema.of(fe);const ve=C.message??C.Message??"Unknown";const Le=q.TypeRegistry.for(fe[1]).getErrorCtor(fe)??Error;const Ue=new Le(ve);await this.deserializeHttpMessage(fe,m,h,C);const qe={};for(const[e,m]of ye.structIterator()){const h=m.getMergedTraits().jsonName??e;qe[e]=this.codec.createDeserializer().readObject(m,C[h])}throw this.mixin.decorateServiceException(Object.assign(Ue,he,{$fault:ye.getMergedTraits().error,message:ve},qe),C)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return V.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new le.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,m,h){const C=q.NormalizedSchema.of(e);const V=C.getMemberSchemas();const le=C.isStructSchema()&&C.isMemberSchema()&&!!Object.values(V).find((e=>!!e.getMemberTraits().eventPayload));if(le){const e={};const h=Object.keys(V)[0];const C=V[h];if(C.isBlobSchema()){e[h]=m}else{e[h]=this.read(V[h],m)}return e}const fe=(this.serdeContext?.utf8Encoder??ye.toUtf8)(m);const he=this.parseXml(fe);return this.readSchema(e,h?he[h]:he)}readSchema(e,m){const h=q.NormalizedSchema.of(e);if(h.isUnitSchema()){return}const C=h.getMergedTraits();if(h.isListSchema()&&!Array.isArray(m)){return this.readSchema(h,[m])}if(m==null){return m}if(typeof m==="object"){const e=!!C.xmlFlattened;if(h.isListSchema()){const C=h.getValueSchema();const q=[];const V=C.getMergedTraits().xmlName??"member";const le=e?m:(m[0]??m)[V];if(le==null){return q}const fe=Array.isArray(le)?le:[le];for(const e of fe){q.push(this.readSchema(C,e))}return q}const q={};if(h.isMapSchema()){const C=h.getKeySchema();const V=h.getValueSchema();let le;if(e){le=Array.isArray(m)?m:[m]}else{le=Array.isArray(m.entry)?m.entry:[m.entry]}const fe=C.getMergedTraits().xmlName??"key";const he=V.getMergedTraits().xmlName??"value";for(const e of le){const m=e[fe];const h=e[he];q[m]=this.readSchema(V,h)}return q}if(h.isStructSchema()){const e=h.isUnionSchema();let C;if(e){C=new UnionSerde(m,q)}for(const[V,le]of h.structIterator()){const h=le.getMergedTraits();const fe=!h.httpPayload?le.getMemberTraits().xmlName??V:h.xmlName??le.getName();if(e){C.mark(fe)}if(m[fe]!=null){q[V]=this.readSchema(le,m[fe])}}if(e){C.writeUnknown()}return q}if(h.isDocumentSchema()){return m}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${h.getName(true)}`)}if(h.isListSchema()){return[]}if(h.isMapSchema()||h.isStructSchema()){return{}}return this.stringDeserializer.read(h,m)}parseXml(e){if(e.length){let m;try{m=ve.parseXML(e)}catch(m){if(m&&typeof m==="object"){Object.defineProperty(m,"$responseBodyText",{value:e})}throw m}const h="#text";const C=Object.keys(m)[0];const q=m[C];if(q[h]){q[C]=q[h];delete q[h]}return V.getValueFromTextNode(q)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,m,h=""){if(this.buffer===undefined){this.buffer=""}const C=q.NormalizedSchema.of(e);if(h&&!h.endsWith(".")){h+="."}if(C.isBlobSchema()){if(typeof m==="string"||m instanceof Uint8Array){this.writeKey(h);this.writeValue((this.serdeContext?.base64Encoder??he.toBase64)(m))}}else if(C.isBooleanSchema()||C.isNumericSchema()||C.isStringSchema()){if(m!=null){this.writeKey(h);this.writeValue(String(m))}else if(C.isIdempotencyToken()){this.writeKey(h);this.writeValue(fe.generateIdempotencyToken())}}else if(C.isBigIntegerSchema()){if(m!=null){this.writeKey(h);this.writeValue(String(m))}}else if(C.isBigDecimalSchema()){if(m!=null){this.writeKey(h);this.writeValue(m instanceof fe.NumericValue?m.string:String(m))}}else if(C.isTimestampSchema()){if(m instanceof Date){this.writeKey(h);const e=le.determineTimestampFormat(C,this.settings);switch(e){case 5:this.writeValue(m.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(V.dateToUtcString(m));break;case 7:this.writeValue(String(m.getTime()/1e3));break}}}else if(C.isDocumentSchema()){if(Array.isArray(m)){this.write(64|15,m,h)}else if(m instanceof Date){this.write(4,m,h)}else if(m instanceof Uint8Array){this.write(21,m,h)}else if(m&&typeof m==="object"){this.write(128|15,m,h)}else{this.writeKey(h);this.writeValue(String(m))}}else if(C.isListSchema()){if(Array.isArray(m)){if(m.length===0){if(this.settings.serializeEmptyLists){this.writeKey(h);this.writeValue("")}}else{const e=C.getValueSchema();const q=this.settings.flattenLists||C.getMergedTraits().xmlFlattened;let V=1;for(const C of m){if(C==null){continue}const m=e.getMergedTraits();const le=this.getKey("member",m.xmlName,m.ec2QueryName);const fe=q?`${h}${V}`:`${h}${le}.${V}`;this.write(e,C,fe);++V}}}}else if(C.isMapSchema()){if(m&&typeof m==="object"){const e=C.getKeySchema();const q=C.getValueSchema();const V=C.getMergedTraits().xmlFlattened;let le=1;for(const[C,fe]of Object.entries(m)){if(fe==null){continue}const m=e.getMergedTraits();const he=this.getKey("key",m.xmlName,m.ec2QueryName);const ye=V?`${h}${le}.${he}`:`${h}entry.${le}.${he}`;const ve=q.getMergedTraits();const Le=this.getKey("value",ve.xmlName,ve.ec2QueryName);const Ue=V?`${h}${le}.${Le}`:`${h}entry.${le}.${Le}`;this.write(e,C,ye);this.write(q,fe,Ue);++le}}}else if(C.isStructSchema()){if(m&&typeof m==="object"){let e=false;for(const[q,V]of C.structIterator()){if(m[q]==null&&!V.isIdempotencyToken()){continue}const C=V.getMergedTraits();const le=this.getKey(q,C.xmlName,C.ec2QueryName,"struct");const fe=`${h}${le}`;this.write(V,m[q],fe);e=true}if(!e&&C.isUnionSchema()){const{$unknown:e}=m;if(Array.isArray(e)){const[m,C]=e;const q=`${h}${m}`;this.write(15,C,q)}}}}else if(C.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${C.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,m,h,C){const{ec2:q,capitalizeKeys:V}=this.settings;if(q&&h){return h}const le=m??e;if(V&&C==="struct"){return le[0].toUpperCase()+le.slice(1)}return le}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${le.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=le.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends le.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const m={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(m);this.deserializer=new XmlShapeDeserializer(m)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);if(!C.path.endsWith("/")){C.path+="/"}Object.assign(C.headers,{"content-type":`application/x-www-form-urlencoded`});if(q.deref(e.input)==="unit"||!C.body){C.body=""}const V=e.name.split("#")[1]??e.name;C.body=`Action=${V}&Version=${this.options.version}`+C.body;if(C.body.endsWith("&")){C.body=C.body.slice(-1)}return C}async deserializeResponse(e,m,h){const C=this.deserializer;const V=q.NormalizedSchema.of(e.output);const fe={};if(h.statusCode>=300){const q=await le.collectBody(h.body,m);if(q.byteLength>0){Object.assign(fe,await C.read(15,q))}await this.handleError(e,m,h,fe,this.deserializeMetadata(h))}for(const e in h.headers){const m=h.headers[e];delete h.headers[e];h.headers[e.toLowerCase()]=m}const he=e.name.split("#")[1]??e.name;const ye=V.isStructSchema()&&this.useNestedResult()?he+"Result":undefined;const ve=await le.collectBody(h.body,m);if(ve.byteLength>0){Object.assign(fe,await C.read(V,ve,ye))}const Le={$metadata:this.deserializeMetadata(h),...fe};return Le}useNestedResult(){return true}async handleError(e,m,h,C,V){const le=this.loadQueryErrorCode(h,C)??"Unknown";const fe=this.loadQueryError(C)??{};const he=this.loadQueryErrorMessage(C);fe.message=he;fe.Error={Type:fe.Type,Code:fe.Code,Message:he};const{errorSchema:ye,errorMetadata:ve}=await this.mixin.getErrorSchemaOrThrowBaseException(le,this.options.defaultNamespace,h,fe,V,this.mixin.findQueryCompatibleError);const Le=q.NormalizedSchema.of(ye);const Ue=q.TypeRegistry.for(ye[1]).getErrorCtor(ye)??Error;const qe=new Ue(he);const ze={Type:fe.Error.Type,Code:fe.Error.Code,Error:fe.Error};for(const[e,m]of Le.structIterator()){const h=m.getMergedTraits().xmlName??e;const q=fe[h]??C[h];ze[e]=this.deserializer.readSchema(m,q)}throw this.mixin.decorateServiceException(Object.assign(qe,ve,{$fault:Le.getMergedTraits().error,message:he},ze),C)}loadQueryErrorCode(e,m){const h=(m.Errors?.[0]?.Error??m.Errors?.Error??m.Error)?.Code;if(h!==undefined){return h}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const m=this.loadQueryError(e);return m?.message??m?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const m={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,m)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(e,m)=>collectBodyString(e,m).then((e=>{if(e.length){let m;try{m=ve.parseXML(e)}catch(m){if(m&&typeof m==="object"){Object.defineProperty(m,"$responseBodyText",{value:e})}throw m}const h="#text";const C=Object.keys(m)[0];const q=m[C];if(q[h]){q[C]=q[h];delete q[h]}return V.getValueFromTextNode(q)}return{}}));const parseXmlErrorBody=async(e,m)=>{const h=await parseXmlBody(e,m);if(h.Error){h.Error.message=h.Error.message??h.Error.Message}return h};const loadRestXmlErrorCode=(e,m)=>{if(m?.Error?.Code!==undefined){return m.Error.Code}if(m?.Code!==undefined){return m.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,m){const h=q.NormalizedSchema.of(e);if(h.isStringSchema()&&typeof m==="string"){this.stringBuffer=m}else if(h.isBlobSchema()){this.byteBuffer="byteLength"in m?m:(this.serdeContext?.base64Decoder??he.fromBase64)(m)}else{this.buffer=this.writeStruct(h,m,undefined);const e=h.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(h.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,m,h){const C=e.getMergedTraits();const q=e.isMemberSchema()&&!C.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():C.xmlName??e.getName();if(!q||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const V=ve.XmlNode.of(q);const[le,fe]=this.getXmlnsAttribute(e,h);for(const[h,C]of e.structIterator()){const e=m[h];if(e!=null||C.isIdempotencyToken()){if(C.getMergedTraits().xmlAttribute){V.addAttribute(C.getMergedTraits().xmlName??h,this.writeSimple(C,e));continue}if(C.isListSchema()){this.writeList(C,e,V,fe)}else if(C.isMapSchema()){this.writeMap(C,e,V,fe)}else if(C.isStructSchema()){V.addChildNode(this.writeStruct(C,e,fe))}else{const m=ve.XmlNode.of(C.getMergedTraits().xmlName??C.getMemberName());this.writeSimpleInto(C,e,m,fe);V.addChildNode(m)}}}const{$unknown:he}=m;if(he&&e.isUnionSchema()&&Array.isArray(he)&&Object.keys(m).length===1){const[e,h]=he;const C=ve.XmlNode.of(e);if(typeof h!=="string"){if(m instanceof ve.XmlNode||m instanceof ve.XmlText){V.addChildNode(m)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,h,C,fe);V.addChildNode(C)}if(fe){V.addAttribute(le,fe)}return V}writeList(e,m,h,C){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const q=e.getMergedTraits();const V=e.getValueSchema();const le=V.getMergedTraits();const fe=!!le.sparse;const he=!!q.xmlFlattened;const[ye,Le]=this.getXmlnsAttribute(e,C);const writeItem=(m,h)=>{if(V.isListSchema()){this.writeList(V,Array.isArray(h)?h:[h],m,Le)}else if(V.isMapSchema()){this.writeMap(V,h,m,Le)}else if(V.isStructSchema()){const C=this.writeStruct(V,h,Le);m.addChildNode(C.withName(he?q.xmlName??e.getMemberName():le.xmlName??"member"))}else{const C=ve.XmlNode.of(he?q.xmlName??e.getMemberName():le.xmlName??"member");this.writeSimpleInto(V,h,C,Le);m.addChildNode(C)}};if(he){for(const e of m){if(fe||e!=null){writeItem(h,e)}}}else{const C=ve.XmlNode.of(q.xmlName??e.getMemberName());if(Le){C.addAttribute(ye,Le)}for(const e of m){if(fe||e!=null){writeItem(C,e)}}h.addChildNode(C)}}writeMap(e,m,h,C,q=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const V=e.getMergedTraits();const le=e.getKeySchema();const fe=le.getMergedTraits();const he=fe.xmlName??"key";const ye=e.getValueSchema();const Le=ye.getMergedTraits();const Ue=Le.xmlName??"value";const qe=!!Le.sparse;const ze=!!V.xmlFlattened;const[He,We]=this.getXmlnsAttribute(e,C);const addKeyValue=(e,m,h)=>{const C=ve.XmlNode.of(he,m);const[q,V]=this.getXmlnsAttribute(le,We);if(V){C.addAttribute(q,V)}e.addChildNode(C);let fe=ve.XmlNode.of(Ue);if(ye.isListSchema()){this.writeList(ye,h,fe,We)}else if(ye.isMapSchema()){this.writeMap(ye,h,fe,We,true)}else if(ye.isStructSchema()){fe=this.writeStruct(ye,h,We)}else{this.writeSimpleInto(ye,h,fe,We)}e.addChildNode(fe)};if(ze){for(const[C,q]of Object.entries(m)){if(qe||q!=null){const m=ve.XmlNode.of(V.xmlName??e.getMemberName());addKeyValue(m,C,q);h.addChildNode(m)}}}else{let C;if(!q){C=ve.XmlNode.of(V.xmlName??e.getMemberName());if(We){C.addAttribute(He,We)}h.addChildNode(C)}for(const[e,V]of Object.entries(m)){if(qe||V!=null){const m=ve.XmlNode.of("entry");addKeyValue(m,e,V);(q?h:C).addChildNode(m)}}}}writeSimple(e,m){if(null===m){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const h=q.NormalizedSchema.of(e);let C=null;if(m&&typeof m==="object"){if(h.isBlobSchema()){C=(this.serdeContext?.base64Encoder??he.toBase64)(m)}else if(h.isTimestampSchema()&&m instanceof Date){const e=le.determineTimestampFormat(h,this.settings);switch(e){case 5:C=m.toISOString().replace(".000Z","Z");break;case 6:C=V.dateToUtcString(m);break;case 7:C=String(m.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",m);C=V.dateToUtcString(m);break}}else if(h.isBigDecimalSchema()&&m){if(m instanceof fe.NumericValue){return m.string}return String(m)}else if(h.isMapSchema()||h.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${h.getName(true)}`)}}if(h.isBooleanSchema()||h.isNumericSchema()||h.isBigIntegerSchema()||h.isBigDecimalSchema()){C=String(m)}if(h.isStringSchema()){if(m===undefined&&h.isIdempotencyToken()){C=fe.generateIdempotencyToken()}else{C=String(m)}}if(C===null){throw new Error(`Unhandled schema-value pair ${h.getName(true)}=${m}`)}return C}writeSimpleInto(e,m,h,C){const V=this.writeSimple(e,m);const le=q.NormalizedSchema.of(e);const fe=new ve.XmlText(V);const[he,ye]=this.getXmlnsAttribute(le,C);if(ye){h.addAttribute(he,ye)}h.addChildNode(fe)}getXmlnsAttribute(e,m){const h=e.getMergedTraits();const[C,q]=h.xmlNamespace??[];if(q&&q!==m){return[C?`xmlns:${C}`:"xmlns",q]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends le.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const m={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(m);this.serializer=new le.HttpInterceptingShapeSerializer(this.codec.createSerializer(),m);this.deserializer=new le.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),m)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);const V=q.NormalizedSchema.of(e.input);if(!C.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),V);if(e){C.headers["content-type"]=e}}if(typeof C.body==="string"&&C.headers["content-type"]===this.getDefaultContentType()&&!C.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(V)){C.body='<?xml version="1.0" encoding="UTF-8"?>'+C.body}return C}async deserializeResponse(e,m,h){return super.deserializeResponse(e,m,h)}async handleError(e,m,h,C,V){const le=loadRestXmlErrorCode(h,C)??"Unknown";if(C.Error&&typeof C.Error==="object"){for(const e of Object.keys(C.Error)){C[e]=C.Error[e];if(e.toLowerCase()==="message"){C.message=C.Error[e]}}}if(C.RequestId&&!V.requestId){V.requestId=C.RequestId}const{errorSchema:fe,errorMetadata:he}=await this.mixin.getErrorSchemaOrThrowBaseException(le,this.options.defaultNamespace,h,C,V);const ye=q.NormalizedSchema.of(fe);const ve=C.Error?.message??C.Error?.Message??C.message??C.Message??"Unknown";const Le=q.TypeRegistry.for(fe[1]).getErrorCtor(fe)??Error;const Ue=new Le(ve);await this.deserializeHttpMessage(fe,m,h,C);const qe={};for(const[e,m]of ye.structIterator()){const h=m.getMergedTraits().xmlName??e;const q=C.Error?.[h]??C[h];qe[e]=this.codec.createDeserializer().readSchema(m,q)}throw this.mixin.decorateServiceException(Object.assign(Ue,he,{$fault:ye.getMergedTraits().error,message:ve},qe),C)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,m]of e.structIterator()){if(m.getMergedTraits().httpPayload){return!(m.isStructSchema()||m.isMapSchema()||m.isListSchema())}}return false}}m.AwsEc2QueryProtocol=AwsEc2QueryProtocol;m.AwsJson1_0Protocol=AwsJson1_0Protocol;m.AwsJson1_1Protocol=AwsJson1_1Protocol;m.AwsJsonRpcProtocol=AwsJsonRpcProtocol;m.AwsQueryProtocol=AwsQueryProtocol;m.AwsRestJsonProtocol=AwsRestJsonProtocol;m.AwsRestXmlProtocol=AwsRestXmlProtocol;m.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;m.JsonCodec=JsonCodec;m.JsonShapeDeserializer=JsonShapeDeserializer;m.JsonShapeSerializer=JsonShapeSerializer;m.QueryShapeSerializer=QueryShapeSerializer;m.XmlCodec=XmlCodec;m.XmlShapeDeserializer=XmlShapeDeserializer;m.XmlShapeSerializer=XmlShapeSerializer;m._toBool=_toBool;m._toNum=_toNum;m._toStr=_toStr;m.awsExpectUnion=awsExpectUnion;m.loadRestJsonErrorCode=loadRestJsonErrorCode;m.loadRestXmlErrorCode=loadRestXmlErrorCode;m.parseJsonBody=parseJsonBody;m.parseJsonErrorBody=parseJsonErrorBody;m.parseXmlBody=parseXmlBody;m.parseXmlErrorBody=parseXmlErrorBody},7991:(e,m,h)=>{var C=h(4036);function resolveLogins(e){return Promise.all(Object.keys(e).reduce(((m,h)=>{const C=e[h];if(typeof C==="string"){m.push([h,C])}else{m.push(C().then((e=>[h,e])))}return m}),[])).then((e=>e.reduce(((e,[m,h])=>{e[m]=h;return e}),{})))}function fromCognitoIdentity(e){return async m=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:C,CognitoIdentityClient:q}=await Promise.resolve().then((function(){return h(6724)}));const fromConfigs=h=>e.clientConfig?.[h]??e.parentClientConfig?.[h]??m?.callerClientConfig?.[h];const{Credentials:{AccessKeyId:V=throwOnMissingAccessKeyId(e.logger),Expiration:le,SecretKey:fe=throwOnMissingSecretKey(e.logger),SessionToken:he}=throwOnMissingCredentials(e.logger)}=await(e.client??new q(Object.assign({},e.clientConfig??{},{region:fromConfigs("region"),profile:fromConfigs("profile"),userAgentAppId:fromConfigs("userAgentAppId")}))).send(new C({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await resolveLogins(e.logins):undefined}));return{identityId:e.identityId,accessKeyId:V,secretAccessKey:fe,sessionToken:he,expiration:le}}}function throwOnMissingAccessKeyId(e){throw new C.CredentialsProviderError("Response from Amazon Cognito contained no access key ID",{logger:e})}function throwOnMissingCredentials(e){throw new C.CredentialsProviderError("Response from Amazon Cognito contained no credentials",{logger:e})}function throwOnMissingSecretKey(e){throw new C.CredentialsProviderError("Response from Amazon Cognito contained no secret key",{logger:e})}const q="IdentityIds";class IndexedDbStorage{dbName;constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",(m=>{const h=m.get(e);return new Promise((e=>{h.onerror=()=>e(null);h.onsuccess=()=>e(h.result?h.result.value:null)}))})).catch((()=>null))}removeItem(e){return this.withObjectStore("readwrite",(m=>{const h=m.delete(e);return new Promise(((e,m)=>{h.onerror=()=>m(h.error);h.onsuccess=()=>e()}))}))}setItem(e,m){return this.withObjectStore("readwrite",(h=>{const C=h.put({id:e,value:m});return new Promise(((e,m)=>{C.onerror=()=>m(C.error);C.onsuccess=()=>e()}))}))}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise(((m,h)=>{e.onsuccess=()=>{m(e.result)};e.onerror=()=>{h(e.error)};e.onblocked=()=>{h(new Error("Unable to access DB"))};e.onupgradeneeded=()=>{const m=e.result;m.onerror=()=>{h(new Error("Failed to create object store"))};m.createObjectStore(q,{keyPath:"id"})}}))}withObjectStore(e,m){return this.getDb().then((h=>{const C=h.transaction(q,e);C.oncomplete=()=>h.close();return new Promise(((e,h)=>{C.onerror=()=>h(C.error);e(m(C.objectStore(q)))})).catch((e=>{h.close();throw e}))}))}}class InMemoryStorage{store;constructor(e={}){this.store=e}getItem(e){if(e in this.store){return this.store[e]}return null}removeItem(e){delete this.store[e]}setItem(e,m){this.store[e]=m}}const V=new InMemoryStorage;function localStorage(){if(typeof self==="object"&&self.indexedDB){return new IndexedDbStorage}if(typeof window==="object"&&window.localStorage){return window.localStorage}return V}function fromCognitoIdentityPool({accountId:e,cache:m=localStorage(),client:C,clientConfig:q,customRoleArn:V,identityPoolId:le,logins:fe,userIdentifier:he=(!fe||Object.keys(fe).length===0?"ANONYMOUS":undefined),logger:ye,parentClientConfig:ve}){ye?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const Le=he?`aws:cognito-identity-credentials:${le}:${he}`:undefined;let provider=async he=>{const{GetIdCommand:Ue,CognitoIdentityClient:qe}=await Promise.resolve().then((function(){return h(6724)}));const fromConfigs=e=>q?.[e]??ve?.[e]??he?.callerClientConfig?.[e];const ze=C??new qe(Object.assign({},q??{},{region:fromConfigs("region"),profile:fromConfigs("profile"),userAgentAppId:fromConfigs("userAgentAppId")}));let He=Le&&await m.getItem(Le);if(!He){const{IdentityId:h=throwOnMissingId(ye)}=await ze.send(new Ue({AccountId:e,IdentityPoolId:le,Logins:fe?await resolveLogins(fe):undefined}));He=h;if(Le){Promise.resolve(m.setItem(Le,He)).catch((()=>{}))}}provider=fromCognitoIdentity({client:ze,customRoleArn:V,logins:fe,identityId:He});return provider(he)};return e=>provider(e).catch((async e=>{if(Le){Promise.resolve(m.removeItem(Le)).catch((()=>{}))}throw e}))}function throwOnMissingId(e){throw new C.CredentialsProviderError("Response from Amazon Cognito contained no identity ID",{logger:e})}m.fromCognitoIdentity=fromCognitoIdentity;m.fromCognitoIdentityPool=fromCognitoIdentityPool},6724:(e,m,h)=>{var C=h(9161);m.CognitoIdentityClient=C.CognitoIdentityClient;m.GetCredentialsForIdentityCommand=C.GetCredentialsForIdentityCommand;m.GetIdCommand=C.GetIdCommand},4961:(e,m,h)=>{var C=h(7078);var q=h(4036);const V="AWS_ACCESS_KEY_ID";const le="AWS_SECRET_ACCESS_KEY";const fe="AWS_SESSION_TOKEN";const he="AWS_CREDENTIAL_EXPIRATION";const ye="AWS_CREDENTIAL_SCOPE";const ve="AWS_ACCOUNT_ID";const fromEnv=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const m=process.env[V];const h=process.env[le];const Le=process.env[fe];const Ue=process.env[he];const qe=process.env[ye];const ze=process.env[ve];if(m&&h){const e={accessKeyId:m,secretAccessKey:h,...Le&&{sessionToken:Le},...Ue&&{expiration:new Date(Ue)},...qe&&{credentialScope:qe},...ze&&{accountId:ze}};C.setCredentialFeature(e,"CREDENTIALS_ENV_VARS","g");return e}throw new q.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};m.ENV_ACCOUNT_ID=ve;m.ENV_CREDENTIAL_SCOPE=ye;m.ENV_EXPIRATION=he;m.ENV_KEY=V;m.ENV_SECRET=le;m.ENV_SESSION=fe;m.fromEnv=fromEnv},6155:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.checkUrl=void 0;const C=h(4036);const q="127.0.0.0/8";const V="::1/128";const le="169.254.170.2";const fe="169.254.170.23";const he="[fd00:ec2::23]";const checkUrl=(e,m)=>{if(e.protocol==="https:"){return}if(e.hostname===le||e.hostname===fe||e.hostname===he){return}if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]"){return}}else{if(e.hostname==="localhost"){return}const m=e.hostname.split(".");const inRange=e=>{const m=parseInt(e,10);return 0<=m&&m<=255};if(m[0]==="127"&&inRange(m[1])&&inRange(m[2])&&inRange(m[3])&&m.length===4){return}}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:m})};m.checkUrl=checkUrl},7570:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromHttp=void 0;const C=h(7892);const q=h(7078);const V=h(5422);const le=h(4036);const fe=C.__importDefault(h(1455));const he=h(6155);const ye=h(7496);const ve=h(8776);const Le="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const Ue="http://169.254.170.2";const qe="AWS_CONTAINER_CREDENTIALS_FULL_URI";const ze="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";const He="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromHttp=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let m;const h=e.awsContainerCredentialsRelativeUri??process.env[Le];const C=e.awsContainerCredentialsFullUri??process.env[qe];const We=e.awsContainerAuthorizationToken??process.env[He];const Qe=e.awsContainerAuthorizationTokenFile??process.env[ze];const Je=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(h&&C){Je("@aws-sdk/credential-provider-http: "+"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");Je("awsContainerCredentialsFullUri will take precedence.")}if(We&&Qe){Je("@aws-sdk/credential-provider-http: "+"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");Je("awsContainerAuthorizationToken will take precedence.")}if(C){m=C}else if(h){m=`${Ue}${h}`}else{throw new le.CredentialsProviderError(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger})}const It=new URL(m);(0,he.checkUrl)(It,e.logger);const _t=V.NodeHttpHandler.create({requestTimeout:e.timeout??1e3,connectionTimeout:e.timeout??1e3});return(0,ve.retryWrapper)((async()=>{const m=(0,ye.createGetRequest)(It);if(We){m.headers.Authorization=We}else if(Qe){m.headers.Authorization=(await fe.default.readFile(Qe)).toString()}try{const e=await _t.handle(m);return(0,ye.getCredentials)(e.response).then((e=>(0,q.setCredentialFeature)(e,"CREDENTIALS_HTTP","z")))}catch(m){throw new le.CredentialsProviderError(String(m),{logger:e.logger})}}),e.maxRetries??3,e.timeout??1e3)};m.fromHttp=fromHttp},7496:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.createGetRequest=createGetRequest;m.getCredentials=getCredentials;const C=h(4036);const q=h(9228);const V=h(4271);const le=h(6442);function createGetRequest(e){return new q.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce(((e,[m,h])=>{e[m]=h;return e}),{}),fragment:e.hash})}async function getCredentials(e,m){const h=(0,le.sdkStreamMixin)(e.body);const q=await h.transformToString();if(e.statusCode===200){const e=JSON.parse(q);if(typeof e.AccessKeyId!=="string"||typeof e.SecretAccessKey!=="string"||typeof e.Token!=="string"||typeof e.Expiration!=="string"){throw new C.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: "+"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:m})}return{accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:(0,V.parseRfc3339DateTime)(e.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let h={};try{h=JSON.parse(q)}catch(e){}throw Object.assign(new C.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:m}),{Code:h.Code,Message:h.Message})}throw new C.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:m})}},8776:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.retryWrapper=void 0;const retryWrapper=(e,m,h)=>async()=>{for(let C=0;C<m;++C){try{return await e()}catch(e){await new Promise((e=>setTimeout(e,h)))}}return await e()};m.retryWrapper=retryWrapper},7:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromHttp=void 0;var C=h(7570);Object.defineProperty(m,"fromHttp",{enumerable:true,get:function(){return C.fromHttp}})},77:(e,m,h)=>{var C=h(7016);var q=h(4036);var V=h(7078);var le=h(3836);const resolveCredentialSource=(e,m,C)=>{const V={EcsContainer:async e=>{const{fromHttp:m}=await Promise.resolve().then(h.bind(h,7));const{fromContainerMetadata:V}=await Promise.resolve().then(h.t.bind(h,5518,19));C?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");return async()=>q.chain(m(e??{}),V(e))().then(setNamedProvider)},Ec2InstanceMetadata:async e=>{C?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:m}=await Promise.resolve().then(h.t.bind(h,5518,19));return async()=>m(e)().then(setNamedProvider)},Environment:async e=>{C?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:m}=await Promise.resolve().then(h.t.bind(h,4961,19));return async()=>m(e)().then(setNamedProvider)}};if(e in V){return V[e]}else{throw new q.CredentialsProviderError(`Unsupported credential source in profile ${m}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:C})}};const setNamedProvider=e=>V.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");const isAssumeRoleProfile=(e,{profile:m="default",logger:h}={})=>Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(e,{profile:m,logger:h})||isCredentialSourceProfile(e,{profile:m,logger:h}));const isAssumeRoleWithSourceProfile=(e,{profile:m,logger:h})=>{const C=typeof e.source_profile==="string"&&typeof e.credential_source==="undefined";if(C){h?.debug?.(` ${m} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`)}return C};const isCredentialSourceProfile=(e,{profile:m,logger:h})=>{const C=typeof e.credential_source==="string"&&typeof e.source_profile==="undefined";if(C){h?.debug?.(` ${m} isCredentialSourceProfile credential_source=${e.credential_source}`)}return C};const resolveAssumeRoleCredentials=async(e,m,le,fe,he={},ye)=>{le.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const ve=m[e];const{source_profile:Le,region:Ue}=ve;if(!le.roleAssumer){const{getDefaultRoleAssumer:e}=await Promise.resolve().then(h.t.bind(h,8695,23));le.roleAssumer=e({...le.clientConfig,credentialProviderLogger:le.logger,parentClientConfig:{...fe,...le?.parentClientConfig,region:Ue??le?.parentClientConfig?.region??fe?.region}},le.clientPlugins)}if(Le&&Le in he){throw new q.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${C.getProfileName(le)}. Profiles visited: `+Object.keys(he).join(", "),{logger:le.logger})}le.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${Le?`source_profile=[${Le}]`:`profile=[${e}]`}`);const qe=Le?ye(Le,m,le,fe,{...he,[Le]:true},isCredentialSourceWithoutRoleArn(m[Le]??{})):(await resolveCredentialSource(ve.credential_source,e,le.logger)(le))();if(isCredentialSourceWithoutRoleArn(ve)){return qe.then((e=>V.setCredentialFeature(e,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o")))}else{const m={RoleArn:ve.role_arn,RoleSessionName:ve.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:ve.external_id,DurationSeconds:parseInt(ve.duration_seconds||"3600",10)};const{mfa_serial:h}=ve;if(h){if(!le.mfaCodeProvider){throw new q.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:le.logger,tryNextLink:false})}m.SerialNumber=h;m.TokenCode=await le.mfaCodeProvider(h)}const C=await qe;return le.roleAssumer(C,m).then((e=>V.setCredentialFeature(e,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o")))}};const isCredentialSourceWithoutRoleArn=e=>!e.role_arn&&!!e.credential_source;const isLoginProfile=e=>Boolean(e&&e.login_session);const resolveLoginCredentials=async(e,m,h)=>{const C=await le.fromLoginCredentials({...m,profile:e})({callerClientConfig:h});return V.setCredentialFeature(C,"CREDENTIALS_PROFILE_LOGIN","AC")};const isProcessProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string";const resolveProcessCredentials=async(e,m)=>Promise.resolve().then(h.t.bind(h,5293,19)).then((({fromProcess:h})=>h({...e,profile:m})().then((e=>V.setCredentialFeature(e,"CREDENTIALS_PROFILE_PROCESS","v")))));const resolveSsoCredentials=async(e,m,C={},q)=>{const{fromSSO:le}=await Promise.resolve().then(h.t.bind(h,2571,19));return le({profile:e,logger:C.logger,parentClientConfig:C.parentClientConfig,clientConfig:C.clientConfig})({callerClientConfig:q}).then((e=>{if(m.sso_session){return V.setCredentialFeature(e,"CREDENTIALS_PROFILE_SSO","r")}else{return V.setCredentialFeature(e,"CREDENTIALS_PROFILE_SSO_LEGACY","t")}}))};const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");const isStaticCredsProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1;const resolveStaticCredentials=async(e,m)=>{m?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");const h={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return V.setCredentialFeature(h,"CREDENTIALS_PROFILE","n")};const isWebIdentityProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;const resolveWebIdentityCredentials=async(e,m,C)=>Promise.resolve().then(h.t.bind(h,6147,23)).then((({fromTokenFile:h})=>h({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:m.roleAssumerWithWebIdentity,logger:m.logger,parentClientConfig:m.parentClientConfig})({callerClientConfig:C}).then((e=>V.setCredentialFeature(e,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")))));const resolveProfileData=async(e,m,h,C,V={},le=false)=>{const fe=m[e];if(Object.keys(V).length>0&&isStaticCredsProfile(fe)){return resolveStaticCredentials(fe,h)}if(le||isAssumeRoleProfile(fe,{profile:e,logger:h.logger})){return resolveAssumeRoleCredentials(e,m,h,C,V,resolveProfileData)}if(isStaticCredsProfile(fe)){return resolveStaticCredentials(fe,h)}if(isWebIdentityProfile(fe)){return resolveWebIdentityCredentials(fe,h,C)}if(isProcessProfile(fe)){return resolveProcessCredentials(h,e)}if(isSsoProfile(fe)){return await resolveSsoCredentials(e,fe,h,C)}if(isLoginProfile(fe)){return resolveLoginCredentials(e,h,C)}throw new q.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:h.logger})};const fromIni=(e={})=>async({callerClientConfig:m}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const h=await C.parseKnownFiles(e);return resolveProfileData(C.getProfileName({profile:e.profile??m?.profile}),h,e,m)};m.fromIni=fromIni},3836:(e,m,h)=>{var C=h(7078);var q=h(4036);var V=h(7016);var le=h(9228);var fe=h(7598);var he=h(3024);var ye=h(8161);var ve=h(6760);class LoginCredentialsFetcher{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=5*60*1e3;constructor(e,m,h){this.profileData=e;this.init=m;this.callerClientConfig=h}async loadCredentials(){const e=await this.loadToken();if(!e){throw new q.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:false,logger:this.logger})}const m=e.accessToken;const h=Date.now();const C=new Date(m.expiresAt).getTime();const V=C-h;if(V<=LoginCredentialsFetcher.REFRESH_THRESHOLD){return this.refresh(e)}return{accessKeyId:m.accessKeyId,secretAccessKey:m.secretAccessKey,sessionToken:m.sessionToken,accountId:m.accountId,expiration:new Date(m.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){const{SigninClient:m,CreateOAuth2TokenCommand:C}=await h.e(87).then(h.t.bind(h,87,23));const{logger:V,userAgentAppId:le}=this.callerClientConfig??{};const isH2=e=>e?.metadata?.handlerProtocol==="h2";const fe=isH2(this.callerClientConfig?.requestHandler)?undefined:this.callerClientConfig?.requestHandler;const he=this.profileData.region??await(this.callerClientConfig?.region?.())??process.env.AWS_REGION;const ye=new m({credentials:{accessKeyId:"",secretAccessKey:""},region:he,requestHandler:fe,logger:V,userAgentAppId:le,...this.init?.clientConfig});this.createDPoPInterceptor(ye.middlewareStack);const ve={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{const m=await ye.send(new C(ve));const{accessKeyId:h,secretAccessKey:V,sessionToken:le}=m.tokenOutput?.accessToken??{};const{refreshToken:fe,expiresIn:he}=m.tokenOutput??{};if(!h||!V||!le||!fe){throw new q.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:false})}const Le=(he??900)*1e3;const Ue=new Date(Date.now()+Le);const qe={...e,accessToken:{...e.accessToken,accessKeyId:h,secretAccessKey:V,sessionToken:le,expiresAt:Ue.toISOString()},refreshToken:fe};await this.saveToken(qe);const ze=qe.accessToken;return{accessKeyId:ze.accessKeyId,secretAccessKey:ze.secretAccessKey,sessionToken:ze.sessionToken,accountId:ze.accountId,expiration:Ue}}catch(e){if(e.name==="AccessDeniedException"){const m=e.error;let h;switch(m){case"TOKEN_EXPIRED":h="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":h="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":h="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:h=`Failed to refresh token: ${String(e)}. Please re-authenticate using \`aws login\``}throw new q.CredentialsProviderError(h,{logger:this.logger,tryNextLink:false})}throw new q.CredentialsProviderError(`Failed to refresh token: ${String(e)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){const e=this.getTokenFilePath();try{let m;try{m=await V.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{m=await he.promises.readFile(e,"utf8")}const h=JSON.parse(m);const C=["accessToken","clientId","refreshToken","dpopKey"].filter((e=>!h[e]));if(!h.accessToken?.accountId){C.push("accountId")}if(C.length>0){throw new q.CredentialsProviderError(`Token validation failed, missing fields: ${C.join(", ")}`,{logger:this.logger,tryNextLink:false})}return h}catch(m){throw new q.CredentialsProviderError(`Failed to load token from ${e}: ${String(m)}`,{logger:this.logger,tryNextLink:false})}}async saveToken(e){const m=this.getTokenFilePath();const h=ve.dirname(m);try{await he.promises.mkdir(h,{recursive:true})}catch(e){}await he.promises.writeFile(m,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){const e=process.env.AWS_LOGIN_CACHE_DIRECTORY??ve.join(ye.homedir(),".aws","login","cache");const m=Buffer.from(this.loginSession,"utf8");const h=fe.createHash("sha256").update(m).digest("hex");return ve.join(e,`${h}.json`)}derToRawSignature(e){let m=2;if(e[m]!==2){throw new Error("Invalid DER signature")}m++;const h=e[m++];let C=e.subarray(m,m+h);m+=h;if(e[m]!==2){throw new Error("Invalid DER signature")}m++;const q=e[m++];let V=e.subarray(m,m+q);C=C[0]===0?C.subarray(1):C;V=V[0]===0?V.subarray(1):V;const le=Buffer.concat([Buffer.alloc(32-C.length),C]);const fe=Buffer.concat([Buffer.alloc(32-V.length),V]);return Buffer.concat([le,fe])}createDPoPInterceptor(e){e.add((e=>async m=>{if(le.HttpRequest.isInstance(m.request)){const e=m.request;const h=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}${e.path}`;const C=await this.generateDpop(e.method,h);e.headers={...e.headers,DPoP:C}}return e(m)}),{step:"finalizeRequest",name:"dpopInterceptor",override:true})}async generateDpop(e="POST",m){const h=await this.loadToken();try{const C=fe.createPrivateKey({key:h.dpopKey,format:"pem",type:"sec1"});const q=fe.createPublicKey(C);const V=q.export({format:"der",type:"spki"});let le=-1;for(let e=0;e<V.length;e++){if(V[e]===4){le=e;break}}const he=V.slice(le+1,le+33);const ye=V.slice(le+33,le+65);const ve={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:he.toString("base64url"),y:ye.toString("base64url")}};const Le={jti:crypto.randomUUID(),htm:e,htu:m,iat:Math.floor(Date.now()/1e3)};const Ue=Buffer.from(JSON.stringify(ve)).toString("base64url");const qe=Buffer.from(JSON.stringify(Le)).toString("base64url");const ze=`${Ue}.${qe}`;const He=fe.sign("sha256",Buffer.from(ze),C);const We=this.derToRawSignature(He);const Qe=We.toString("base64url");return`${ze}.${Qe}`}catch(e){throw new q.CredentialsProviderError(`Failed to generate Dpop proof: ${e instanceof Error?e.message:String(e)}`,{logger:this.logger,tryNextLink:false})}}}const fromLoginCredentials=e=>async({callerClientConfig:m}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");const h=await V.parseKnownFiles(e||{});const le=V.getProfileName({profile:e?.profile??m?.profile});const fe=h[le];if(!fe?.login_session){throw new q.CredentialsProviderError(`Profile ${le} does not contain login_session.`,{tryNextLink:true,logger:e?.logger})}const he=new LoginCredentialsFetcher(fe,e,m);const ye=await he.loadCredentials();return C.setCredentialFeature(ye,"CREDENTIALS_LOGIN","AD")};m.fromLoginCredentials=fromLoginCredentials},4102:(e,m,h)=>{var C=h(4961);var q=h(4036);var V=h(7016);const le="AWS_EC2_METADATA_DISABLED";const remoteProvider=async e=>{const{ENV_CMDS_FULL_URI:m,ENV_CMDS_RELATIVE_URI:C,fromContainerMetadata:V,fromInstanceMetadata:fe}=await Promise.resolve().then(h.t.bind(h,5518,19));if(process.env[C]||process.env[m]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:m}=await Promise.resolve().then(h.bind(h,7));return q.chain(m(e),V(e))}if(process.env[le]&&process.env[le]!=="false"){return async()=>{throw new q.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}}e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return fe(e)};function memoizeChain(e,m){const h=internalCreateChain(e);let C;let q;let V;const provider=async e=>{if(e?.forceRefresh){return await h(e)}if(V?.expiration){if(V?.expiration?.getTime()<Date.now()){V=undefined}}if(C){await C}else if(!V||m?.(V)){if(V){if(!q){q=h(e).then((e=>{V=e})).finally((()=>{q=undefined}))}}else{C=h(e).then((e=>{V=e})).finally((()=>{C=undefined}));return provider(e)}}return V};return provider}const internalCreateChain=e=>async m=>{let h;for(const C of e){try{return await C(m)}catch(e){h=e;if(e?.tryNextLink){continue}throw e}}throw h};let fe=false;const defaultProvider=(e={})=>memoizeChain([async()=>{const m=e.profile??process.env[V.ENV_PROFILE];if(m){const m=process.env[C.ENV_KEY]&&process.env[C.ENV_SECRET];if(m){if(!fe){const m=e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn;m(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);fe=true}}throw new q.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:true})}e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return C.fromEnv(e)()},async m=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:C,ssoAccountId:V,ssoRegion:le,ssoRoleName:fe,ssoSession:he}=e;if(!C&&!V&&!le&&!fe&&!he){throw new q.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger})}const{fromSSO:ye}=await Promise.resolve().then(h.t.bind(h,2571,19));return ye(e)(m)},async m=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:C}=await Promise.resolve().then(h.t.bind(h,77,19));return C(e)(m)},async m=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:C}=await Promise.resolve().then(h.t.bind(h,5293,19));return C(e)(m)},async m=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:C}=await Promise.resolve().then(h.t.bind(h,6147,23));return C(e)(m)},async()=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(e))()},async()=>{throw new q.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:e.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=e=>e?.expiration!==undefined;const credentialsTreatedAsExpired=e=>e?.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5;m.credentialsTreatedAsExpired=credentialsTreatedAsExpired;m.credentialsWillNeedRefresh=credentialsWillNeedRefresh;m.defaultProvider=defaultProvider},5293:(e,m,h)=>{var C=h(7016);var q=h(4036);var V=h(1421);var le=h(7975);var fe=h(7078);const getValidatedProcessCredentials=(e,m,h)=>{if(m.Version!==1){throw Error(`Profile ${e} credential_process did not return Version 1.`)}if(m.AccessKeyId===undefined||m.SecretAccessKey===undefined){throw Error(`Profile ${e} credential_process returned invalid credentials.`)}if(m.Expiration){const h=new Date;const C=new Date(m.Expiration);if(C<h){throw Error(`Profile ${e} credential_process returned expired credentials.`)}}let C=m.AccountId;if(!C&&h?.[e]?.aws_account_id){C=h[e].aws_account_id}const q={accessKeyId:m.AccessKeyId,secretAccessKey:m.SecretAccessKey,...m.SessionToken&&{sessionToken:m.SessionToken},...m.Expiration&&{expiration:new Date(m.Expiration)},...m.CredentialScope&&{credentialScope:m.CredentialScope},...C&&{accountId:C}};fe.setCredentialFeature(q,"CREDENTIALS_PROCESS","w");return q};const resolveProcessCredentials=async(e,m,h)=>{const fe=m[e];if(m[e]){const he=fe["credential_process"];if(he!==undefined){const fe=le.promisify(C.externalDataInterceptor?.getTokenRecord?.().exec??V.exec);try{const{stdout:h}=await fe(he);let C;try{C=JSON.parse(h.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return getValidatedProcessCredentials(e,C,m)}catch(e){throw new q.CredentialsProviderError(e.message,{logger:h})}}else{throw new q.CredentialsProviderError(`Profile ${e} did not contain credential_process.`,{logger:h})}}else{throw new q.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`,{logger:h})}};const fromProcess=(e={})=>async({callerClientConfig:m}={})=>{e.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const h=await C.parseKnownFiles(e);return resolveProcessCredentials(C.getProfileName({profile:e.profile??m?.profile}),h,e.logger)};m.fromProcess=fromProcess},2571:(e,m,h)=>{var C=h(4036);var q=h(7016);var V=h(7078);var le=h(222);const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");const fe=false;const resolveSSOCredentials=async({ssoStartUrl:e,ssoSession:m,ssoAccountId:he,ssoRegion:ye,ssoRoleName:ve,ssoClient:Le,clientConfig:Ue,parentClientConfig:qe,callerClientConfig:ze,profile:He,filepath:We,configFilepath:Qe,ignoreCache:Je,logger:It})=>{let _t;const Mt=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(m){try{const e=await le.fromSso({profile:He,filepath:We,configFilepath:Qe,ignoreCache:Je})();_t={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new C.CredentialsProviderError(e.message,{tryNextLink:fe,logger:It})}}else{try{_t=await q.getSSOTokenFromFile(e)}catch(e){throw new C.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${Mt}`,{tryNextLink:fe,logger:It})}}if(new Date(_t.expiresAt).getTime()-Date.now()<=0){throw new C.CredentialsProviderError(`The SSO session associated with this profile has expired. ${Mt}`,{tryNextLink:fe,logger:It})}const{accessToken:Lt}=_t;const{SSOClient:Ut,GetRoleCredentialsCommand:qt}=await Promise.resolve().then((function(){return h(4042)}));const Gt=Le||new Ut(Object.assign({},Ue??{},{logger:Ue?.logger??ze?.logger??qe?.logger,region:Ue?.region??ye,userAgentAppId:Ue?.userAgentAppId??ze?.userAgentAppId??qe?.userAgentAppId}));let zt;try{zt=await Gt.send(new qt({accountId:he,roleName:ve,accessToken:Lt}))}catch(e){throw new C.CredentialsProviderError(e,{tryNextLink:fe,logger:It})}const{roleCredentials:{accessKeyId:Ht,secretAccessKey:Wt,sessionToken:Kt,expiration:Yt,credentialScope:Qt,accountId:Jt}={}}=zt;if(!Ht||!Wt||!Kt||!Yt){throw new C.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:fe,logger:It})}const Xt={accessKeyId:Ht,secretAccessKey:Wt,sessionToken:Kt,expiration:new Date(Yt),...Qt&&{credentialScope:Qt},...Jt&&{accountId:Jt}};if(m){V.setCredentialFeature(Xt,"CREDENTIALS_SSO","s")}else{V.setCredentialFeature(Xt,"CREDENTIALS_SSO_LEGACY","u")}return Xt};const validateSsoProfile=(e,m)=>{const{sso_start_url:h,sso_account_id:q,sso_region:V,sso_role_name:le}=e;if(!h||!q||!V||!le){throw new C.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", `+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:false,logger:m})}return e};const fromSSO=(e={})=>async({callerClientConfig:m}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:h,ssoAccountId:V,ssoRegion:le,ssoRoleName:fe,ssoSession:he}=e;const{ssoClient:ye}=e;const ve=q.getProfileName({profile:e.profile??m?.profile});if(!h&&!V&&!le&&!fe&&!he){const m=await q.parseKnownFiles(e);const V=m[ve];if(!V){throw new C.CredentialsProviderError(`Profile ${ve} was not found.`,{logger:e.logger})}if(!isSsoProfile(V)){throw new C.CredentialsProviderError(`Profile ${ve} is not configured with SSO credentials.`,{logger:e.logger})}if(V?.sso_session){const m=await q.loadSsoSessionData(e);const fe=m[V.sso_session];const he=` configurations in profile ${ve} and sso-session ${V.sso_session}`;if(le&&le!==fe.sso_region){throw new C.CredentialsProviderError(`Conflicting SSO region`+he,{tryNextLink:false,logger:e.logger})}if(h&&h!==fe.sso_start_url){throw new C.CredentialsProviderError(`Conflicting SSO start_url`+he,{tryNextLink:false,logger:e.logger})}V.sso_region=fe.sso_region;V.sso_start_url=fe.sso_start_url}const{sso_start_url:fe,sso_account_id:he,sso_region:Le,sso_role_name:Ue,sso_session:qe}=validateSsoProfile(V,e.logger);return resolveSSOCredentials({ssoStartUrl:fe,ssoSession:qe,ssoAccountId:he,ssoRegion:Le,ssoRoleName:Ue,ssoClient:ye,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:ve,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!h||!V||!le||!fe){throw new C.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:false,logger:e.logger})}else{return resolveSSOCredentials({ssoStartUrl:h,ssoSession:he,ssoAccountId:V,ssoRegion:le,ssoRoleName:fe,ssoClient:ye,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:ve,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}};m.fromSSO=fromSSO;m.isSsoProfile=isSsoProfile;m.validateSsoProfile=validateSsoProfile},4042:(e,m,h)=>{var C=h(3404);m.GetRoleCredentialsCommand=C.GetRoleCredentialsCommand;m.SSOClient=C.SSOClient},4160:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromTokenFile=void 0;const C=h(7078);const q=h(4036);const V=h(7016);const le=h(3024);const fe=h(8528);const he="AWS_WEB_IDENTITY_TOKEN_FILE";const ye="AWS_ROLE_ARN";const ve="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async m=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const h=e?.webIdentityTokenFile??process.env[he];const Le=e?.roleArn??process.env[ye];const Ue=e?.roleSessionName??process.env[ve];if(!h||!Le){throw new q.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger})}const qe=await(0,fe.fromWebToken)({...e,webIdentityToken:V.externalDataInterceptor?.getTokenRecord?.()[h]??(0,le.readFileSync)(h,{encoding:"ascii"}),roleArn:Le,roleSessionName:Ue})(m);if(h===process.env[he]){(0,C.setCredentialFeature)(qe,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h")}return qe};m.fromTokenFile=fromTokenFile},8528:function(e,m,h){var C=this&&this.__createBinding||(Object.create?function(e,m,h,C){if(C===undefined)C=h;var q=Object.getOwnPropertyDescriptor(m,h);if(!q||("get"in q?!m.__esModule:q.writable||q.configurable)){q={enumerable:true,get:function(){return m[h]}}}Object.defineProperty(e,C,q)}:function(e,m,h,C){if(C===undefined)C=h;e[C]=m[h]});var q=this&&this.__setModuleDefault||(Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:true,value:m})}:function(e,m){e["default"]=m});var V=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var m=[];for(var h in e)if(Object.prototype.hasOwnProperty.call(e,h))m[m.length]=h;return m};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var h=ownKeys(e),V=0;V<h.length;V++)if(h[V]!=="default")C(m,e,h[V]);q(m,e);return m}}();Object.defineProperty(m,"__esModule",{value:true});m.fromWebToken=void 0;const fromWebToken=e=>async m=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:C,roleSessionName:q,webIdentityToken:le,providerId:fe,policyArns:he,policy:ye,durationSeconds:ve}=e;let{roleAssumerWithWebIdentity:Le}=e;if(!Le){const{getDefaultRoleAssumerWithWebIdentity:C}=await Promise.resolve().then((()=>V(h(8695))));Le=C({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...m?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return Le({RoleArn:C,RoleSessionName:q??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:le,ProviderId:fe,PolicyArns:he,Policy:ye,DurationSeconds:ve})};m.fromWebToken=fromWebToken},6147:(e,m,h)=>{var C=h(4160);var q=h(8528);Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=C[e]}));Object.prototype.hasOwnProperty.call(q,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:q["__proto__"]});Object.keys(q).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=q[e]}))},428:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.propertyProviderChain=m.createCredentialChain=void 0;const C=h(4036);const createCredentialChain=(...e)=>{let h=-1;const baseFunction=async C=>{const q=await(0,m.propertyProviderChain)(...e)(C);if(!q.expiration&&h!==-1){q.expiration=new Date(Date.now()+h)}return q};const C=Object.assign(baseFunction,{expireAfter(e){if(e<5*6e4){throw new Error("@aws-sdk/credential-providers - createCredentialChain(...).expireAfter(ms) may not be called with a duration lower than five minutes.")}h=e;return C}});return C};m.createCredentialChain=createCredentialChain;const propertyProviderChain=(...e)=>async m=>{if(e.length===0){throw new C.ProviderError("No providers in chain",{tryNextLink:false})}let h;for(const C of e){try{return await C(m)}catch(e){h=e;if(e?.tryNextLink){continue}throw e}}throw h};m.propertyProviderChain=propertyProviderChain},8535:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromCognitoIdentity=void 0;const C=h(7991);const fromCognitoIdentity=e=>(0,C.fromCognitoIdentity)({...e});m.fromCognitoIdentity=fromCognitoIdentity},9558:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromCognitoIdentityPool=void 0;const C=h(7991);const fromCognitoIdentityPool=e=>(0,C.fromCognitoIdentityPool)({...e});m.fromCognitoIdentityPool=fromCognitoIdentityPool},5052:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromContainerMetadata=void 0;const C=h(5518);const fromContainerMetadata=e=>{e?.logger?.debug("@smithy/credential-provider-imds","fromContainerMetadata");return(0,C.fromContainerMetadata)(e)};m.fromContainerMetadata=fromContainerMetadata},4829:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromEnv=void 0;const C=h(4961);const fromEnv=e=>(0,C.fromEnv)(e);m.fromEnv=fromEnv},3772:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromIni=void 0;const C=h(77);const fromIni=(e={})=>(0,C.fromIni)({...e});m.fromIni=fromIni},7666:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromInstanceMetadata=void 0;const C=h(7078);const q=h(5518);const fromInstanceMetadata=e=>{e?.logger?.debug("@smithy/credential-provider-imds","fromInstanceMetadata");return async()=>(0,q.fromInstanceMetadata)(e)().then((e=>(0,C.setCredentialFeature)(e,"CREDENTIALS_IMDS","0")))};m.fromInstanceMetadata=fromInstanceMetadata},3549:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromLoginCredentials=void 0;const C=h(3836);const fromLoginCredentials=e=>(0,C.fromLoginCredentials)({...e});m.fromLoginCredentials=fromLoginCredentials},2760:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromNodeProviderChain=void 0;const C=h(4102);const fromNodeProviderChain=(e={})=>(0,C.defaultProvider)({...e});m.fromNodeProviderChain=fromNodeProviderChain},7411:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromProcess=void 0;const C=h(5293);const fromProcess=e=>(0,C.fromProcess)(e);m.fromProcess=fromProcess},7153:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromSSO=void 0;const C=h(2571);const fromSSO=(e={})=>(0,C.fromSSO)({...e});m.fromSSO=fromSSO},8908:function(e,m,h){var C=this&&this.__createBinding||(Object.create?function(e,m,h,C){if(C===undefined)C=h;var q=Object.getOwnPropertyDescriptor(m,h);if(!q||("get"in q?!m.__esModule:q.writable||q.configurable)){q={enumerable:true,get:function(){return m[h]}}}Object.defineProperty(e,C,q)}:function(e,m,h,C){if(C===undefined)C=h;e[C]=m[h]});var q=this&&this.__setModuleDefault||(Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:true,value:m})}:function(e,m){e["default"]=m});var V=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var m=[];for(var h in e)if(Object.prototype.hasOwnProperty.call(e,h))m[m.length]=h;return m};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var h=ownKeys(e),V=0;V<h.length;V++)if(h[V]!=="default")C(m,e,h[V]);q(m,e);return m}}();Object.defineProperty(m,"__esModule",{value:true});m.fromTemporaryCredentials=void 0;const le=h(4918);const fe=h(4036);const he="us-east-1";const fromTemporaryCredentials=(e,m,C)=>{let q;return async(ye={})=>{const{callerClientConfig:ve}=ye;const Le=e.clientConfig?.profile??ve?.profile;const Ue=e.logger??ve?.logger;Ue?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const qe={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(qe?.SerialNumber){if(!e.mfaCodeProvider){throw new fe.CredentialsProviderError(`Temporary credential requires multi-factor authentication, but no MFA code callback was provided.`,{tryNextLink:false,logger:Ue})}qe.TokenCode=await e.mfaCodeProvider(qe?.SerialNumber)}const{AssumeRoleCommand:ze,STSClient:He}=await Promise.resolve().then((()=>V(h(8086))));if(!q){const h=typeof m==="function"?m():undefined;const V=[e.masterCredentials,e.clientConfig?.credentials,void ve?.credentials,ve?.credentialDefaultProvider?.(),h];let fe="STS client default credentials";if(V[0]){fe="options.masterCredentials"}else if(V[1]){fe="options.clientConfig.credentials"}else if(V[2]){fe="caller client's credentials";throw new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials")}else if(V[3]){fe="caller client's credentialDefaultProvider"}else if(V[4]){fe="AWS SDK default credentials"}const ye=[e.clientConfig?.region,ve?.region,await(C?.({profile:Le})),he];let qe="default partition's default region";if(ye[0]){qe="options.clientConfig.region"}else if(ye[1]){qe="caller client's region"}else if(ye[2]){qe="file or env region"}const ze=[filterRequestHandler(e.clientConfig?.requestHandler),filterRequestHandler(ve?.requestHandler)];let We="STS default requestHandler";if(ze[0]){We="options.clientConfig.requestHandler"}else if(ze[1]){We="caller client's requestHandler"}Ue?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with `+`${qe}=${await(0,le.normalizeProvider)(coalesce(ye))()}, ${fe}, ${We}.`);q=new He({userAgentAppId:ve?.userAgentAppId,...e.clientConfig,credentials:coalesce(V),logger:Ue,profile:Le,region:coalesce(ye),requestHandler:coalesce(ze)})}if(e.clientPlugins){for(const m of e.clientPlugins){q.middlewareStack.use(m)}}const{Credentials:We}=await q.send(new ze(qe));if(!We||!We.AccessKeyId||!We.SecretAccessKey){throw new fe.CredentialsProviderError(`Invalid response from STS.assumeRole call with role ${qe.RoleArn}`,{logger:Ue})}return{accessKeyId:We.AccessKeyId,secretAccessKey:We.SecretAccessKey,sessionToken:We.SessionToken,expiration:We.Expiration,credentialScope:We.CredentialScope}}};m.fromTemporaryCredentials=fromTemporaryCredentials;const filterRequestHandler=e=>e?.metadata?.handlerProtocol==="h2"?undefined:e;const coalesce=e=>{for(const m of e){if(m!==undefined){return m}}}},8207:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromTemporaryCredentials=void 0;const C=h(6477);const q=h(1125);const V=h(2760);const le=h(8908);const fromTemporaryCredentials=e=>(0,le.fromTemporaryCredentials)(e,V.fromNodeProviderChain,(async({profile:e=process.env.AWS_PROFILE})=>(0,q.loadConfig)({environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>undefined},{...C.NODE_REGION_CONFIG_FILE_OPTIONS,profile:e})()));m.fromTemporaryCredentials=fromTemporaryCredentials},9645:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromTokenFile=void 0;const C=h(6147);const fromTokenFile=(e={})=>(0,C.fromTokenFile)({...e});m.fromTokenFile=fromTokenFile},5939:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromWebToken=void 0;const C=h(6147);const fromWebToken=e=>(0,C.fromWebToken)({...e});m.fromWebToken=fromWebToken},162:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromHttp=void 0;const C=h(7892);C.__exportStar(h(428),m);C.__exportStar(h(8535),m);C.__exportStar(h(9558),m);C.__exportStar(h(5052),m);C.__exportStar(h(4829),m);var q=h(7);Object.defineProperty(m,"fromHttp",{enumerable:true,get:function(){return q.fromHttp}});C.__exportStar(h(3772),m);C.__exportStar(h(7666),m);C.__exportStar(h(3549),m);C.__exportStar(h(2760),m);C.__exportStar(h(7411),m);C.__exportStar(h(7153),m);C.__exportStar(h(8207),m);C.__exportStar(h(9645),m);C.__exportStar(h(5939),m)},8086:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.STSClient=m.AssumeRoleCommand=void 0;const C=h(8695);Object.defineProperty(m,"AssumeRoleCommand",{enumerable:true,get:function(){return C.AssumeRoleCommand}});Object.defineProperty(m,"STSClient",{enumerable:true,get:function(){return C.STSClient}})},4736:(e,m,h)=>{var C=h(9228);function resolveHostHeaderConfig(e){return e}const hostHeaderMiddleware=e=>m=>async h=>{if(!C.HttpRequest.isInstance(h.request))return m(h);const{request:q}=h;const{handlerProtocol:V=""}=e.requestHandler.metadata||{};if(V.indexOf("h2")>=0&&!q.headers[":authority"]){delete q.headers["host"];q.headers[":authority"]=q.hostname+(q.port?":"+q.port:"")}else if(!q.headers["host"]){let e=q.hostname;if(q.port!=null)e+=`:${q.port}`;q.headers["host"]=e}return m(h)};const q={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:m=>{m.add(hostHeaderMiddleware(e),q)}});m.getHostHeaderPlugin=getHostHeaderPlugin;m.hostHeaderMiddleware=hostHeaderMiddleware;m.hostHeaderMiddlewareOptions=q;m.resolveHostHeaderConfig=resolveHostHeaderConfig},6626:(e,m)=>{const loggerMiddleware=()=>(e,m)=>async h=>{try{const C=await e(h);const{clientName:q,commandName:V,logger:le,dynamoDbDocumentClientOptions:fe={}}=m;const{overrideInputFilterSensitiveLog:he,overrideOutputFilterSensitiveLog:ye}=fe;const ve=he??m.inputFilterSensitiveLog;const Le=ye??m.outputFilterSensitiveLog;const{$metadata:Ue,...qe}=C.output;le?.info?.({clientName:q,commandName:V,input:ve(h.input),output:Le(qe),metadata:Ue});return C}catch(e){const{clientName:C,commandName:q,logger:V,dynamoDbDocumentClientOptions:le={}}=m;const{overrideInputFilterSensitiveLog:fe}=le;const he=fe??m.inputFilterSensitiveLog;V?.error?.({clientName:C,commandName:q,input:he(h.input),error:e,metadata:e.$metadata});throw e}};const h={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(loggerMiddleware(),h)}});m.getLoggerPlugin=getLoggerPlugin;m.loggerMiddleware=loggerMiddleware;m.loggerMiddlewareOptions=h},1788:(e,m,h)=>{var C=h(8805);const q={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(C.recursionDetectionMiddleware(),q)}});m.getRecursionDetectionPlugin=getRecursionDetectionPlugin;Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=C[e]}))},8805:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.recursionDetectionMiddleware=void 0;const C=h(3320);const q=h(9228);const V="X-Amzn-Trace-Id";const le="AWS_LAMBDA_FUNCTION_NAME";const fe="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=()=>e=>async m=>{const{request:h}=m;if(!q.HttpRequest.isInstance(h)){return e(m)}const he=Object.keys(h.headers??{}).find((e=>e.toLowerCase()===V.toLowerCase()))??V;if(h.headers.hasOwnProperty(he)){return e(m)}const ye=process.env[le];const ve=process.env[fe];const Le=await C.InvokeStore.getInstanceAsync();const Ue=Le?.getXRayTraceId();const qe=Ue??ve;const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(ye)&&nonEmptyString(qe)){h.headers[V]=qe}return e({...m,request:h})};m.recursionDetectionMiddleware=recursionDetectionMiddleware},8374:(e,m,h)=>{var C=h(4918);var q=h(3237);var V=h(9228);var le=h(590);var fe=h(2346);const he=undefined;function isValidUserAgentAppId(e){if(e===undefined){return true}return typeof e==="string"&&e.length<=50}function resolveUserAgentConfig(e){const m=C.normalizeProvider(e.userAgentAppId??he);const{customUserAgent:h}=e;return Object.assign(e,{customUserAgent:typeof h==="string"?[[h]]:h,userAgentAppId:async()=>{const h=await m();if(!isValidUserAgentAppId(h)){const m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof h!=="string"){m?.warn("userAgentAppId must be a string or undefined.")}else if(h.length>50){m?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return h}})}const ye=/\d{12}\.ddb/;async function checkFeatures(e,m,h){const C=h.request;if(C?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){le.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof m.retryStrategy==="function"){const h=await m.retryStrategy();if(typeof h.mode==="string"){switch(h.mode){case fe.RETRY_MODES.ADAPTIVE:le.setFeature(e,"RETRY_MODE_ADAPTIVE","F");break;case fe.RETRY_MODES.STANDARD:le.setFeature(e,"RETRY_MODE_STANDARD","E");break}}}if(typeof m.accountIdEndpointMode==="function"){const h=e.endpointV2;if(String(h?.url?.hostname).match(ye)){le.setFeature(e,"ACCOUNT_ID_ENDPOINT","O")}switch(await(m.accountIdEndpointMode?.())){case"disabled":le.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":le.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":le.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const q=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(q?.$source){const m=q;if(m.accountId){le.setFeature(e,"RESOLVED_ACCOUNT_ID","T")}for(const[h,C]of Object.entries(m.$source??{})){le.setFeature(e,h,C)}}}const ve="user-agent";const Le="x-amz-user-agent";const Ue=" ";const qe="/";const ze=/[^!$%&'*+\-.^_`|~\w]/g;const He=/[^!$%&'*+\-.^_`|~\w#]/g;const We="-";const Qe=1024;function encodeFeatures(e){let m="";for(const h in e){const C=e[h];if(m.length+C.length+1<=Qe){if(m.length){m+=","+C}else{m+=C}continue}break}return m}const userAgentMiddleware=e=>(m,h)=>async C=>{const{request:le}=C;if(!V.HttpRequest.isInstance(le)){return m(C)}const{headers:fe}=le;const he=h?.userAgent?.map(escapeUserAgent)||[];const ye=(await e.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(h,e,C);const qe=h;ye.push(`m/${encodeFeatures(Object.assign({},h.__smithy_context?.features,qe.__aws_sdk_context?.features))}`);const ze=e?.customUserAgent?.map(escapeUserAgent)||[];const He=await e.userAgentAppId();if(He){ye.push(escapeUserAgent([`app`,`${He}`]))}const We=q.getUserAgentPrefix();const Qe=(We?[We]:[]).concat([...ye,...he,...ze]).join(Ue);const Je=[...ye.filter((e=>e.startsWith("aws-sdk-"))),...ze].join(Ue);if(e.runtime!=="browser"){if(Je){fe[Le]=fe[Le]?`${fe[ve]} ${Je}`:Je}fe[ve]=Qe}else{fe[Le]=Qe}return m({...C,request:le})};const escapeUserAgent=e=>{const m=e[0].split(qe).map((e=>e.replace(ze,We))).join(qe);const h=e[1]?.replace(He,We);const C=m.indexOf(qe);const q=m.substring(0,C);let V=m.substring(C+1);if(q==="api"){V=V.toLowerCase()}return[q,V,h].filter((e=>e&&e.length>0)).reduce(((e,m,h)=>{switch(h){case 0:return m;case 1:return`${e}/${m}`;default:return`${e}#${m}`}}),"")};const Je={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:m=>{m.add(userAgentMiddleware(e),Je)}});m.DEFAULT_UA_APP_ID=he;m.getUserAgentMiddlewareOptions=Je;m.getUserAgentPlugin=getUserAgentPlugin;m.resolveUserAgentConfig=resolveUserAgentConfig;m.userAgentMiddleware=userAgentMiddleware},5938:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.resolveHttpAuthSchemeConfig=m.defaultCognitoIdentityHttpAuthSchemeProvider=m.defaultCognitoIdentityHttpAuthSchemeParametersProvider=void 0;const C=h(590);const q=h(5496);const defaultCognitoIdentityHttpAuthSchemeParametersProvider=async(e,m,h)=>({operation:(0,q.getSmithyContext)(m).operation,region:await(0,q.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});m.defaultCognitoIdentityHttpAuthSchemeParametersProvider=defaultCognitoIdentityHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(e,m)=>({signingProperties:{config:e,context:m}})}}function createSmithyApiNoAuthHttpAuthOption(e){return{schemeId:"smithy.api#noAuth"}}const defaultCognitoIdentityHttpAuthSchemeProvider=e=>{const m=[];switch(e.operation){case"GetCredentialsForIdentity":{m.push(createSmithyApiNoAuthHttpAuthOption(e));break}case"GetId":{m.push(createSmithyApiNoAuthHttpAuthOption(e));break}default:{m.push(createAwsAuthSigv4HttpAuthOption(e))}}return m};m.defaultCognitoIdentityHttpAuthSchemeProvider=defaultCognitoIdentityHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const m=(0,C.resolveAwsSdkSigV4Config)(e);return Object.assign(m,{authSchemePreference:(0,q.normalizeProvider)(e.authSchemePreference??[])})};m.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},3564:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.defaultEndpointResolver=void 0;const C=h(3237);const q=h(9356);const V=h(3857);const le=new q.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,m={})=>le.get(e,(()=>(0,q.resolveEndpoint)(V.ruleSet,{endpointParams:e,logger:m.logger})));m.defaultEndpointResolver=defaultEndpointResolver;q.customEndpointFunctions.aws=C.awsEndpointFunctions},3857:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.ruleSet=void 0;const h="required",C="fn",q="argv",V="ref";const le=true,fe="isSet",he="booleanEquals",ye="error",ve="endpoint",Le="tree",Ue="PartitionResult",qe="getAttr",ze="stringEquals",He={[h]:false,type:"string"},We={[h]:true,default:false,type:"boolean"},Qe={[V]:"Endpoint"},Je={[C]:he,[q]:[{[V]:"UseFIPS"},true]},It={[C]:he,[q]:[{[V]:"UseDualStack"},true]},_t={},Mt={[V]:"Region"},Lt={[C]:qe,[q]:[{[V]:Ue},"supportsFIPS"]},Ut={[V]:Ue},qt={[C]:he,[q]:[true,{[C]:qe,[q]:[Ut,"supportsDualStack"]}]},Gt=[Je],zt=[It],Ht=[Mt];const Wt={version:"1.0",parameters:{Region:He,UseDualStack:We,UseFIPS:We,Endpoint:He},rules:[{conditions:[{[C]:fe,[q]:[Qe]}],rules:[{conditions:Gt,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ye},{conditions:zt,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ye},{endpoint:{url:Qe,properties:_t,headers:_t},type:ve}],type:Le},{conditions:[{[C]:fe,[q]:Ht}],rules:[{conditions:[{[C]:"aws.partition",[q]:Ht,assign:Ue}],rules:[{conditions:[Je,It],rules:[{conditions:[{[C]:he,[q]:[le,Lt]},qt],rules:[{conditions:[{[C]:ze,[q]:[Mt,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:_t,headers:_t},type:ve},{conditions:[{[C]:ze,[q]:[Mt,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:_t,headers:_t},type:ve},{conditions:[{[C]:ze,[q]:[Mt,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:_t,headers:_t},type:ve},{conditions:[{[C]:ze,[q]:[Mt,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:_t,headers:_t},type:ve},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_t,headers:_t},type:ve}],type:Le},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ye}],type:Le},{conditions:Gt,rules:[{conditions:[{[C]:he,[q]:[Lt,le]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:_t,headers:_t},type:ve}],type:Le},{error:"FIPS is enabled but this partition does not support FIPS",type:ye}],type:Le},{conditions:zt,rules:[{conditions:[qt],rules:[{conditions:[{[C]:ze,[q]:["aws",{[C]:qe,[q]:[Ut,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:_t,headers:_t},type:ve},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_t,headers:_t},type:ve}],type:Le},{error:"DualStack is enabled but this partition does not support DualStack",type:ye}],type:Le},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:_t,headers:_t},type:ve}],type:Le}],type:Le},{error:"Invalid Configuration: Missing Region",type:ye}]};m.ruleSet=Wt},9161:(e,m,h)=>{var C=h(4736);var q=h(6626);var V=h(1788);var le=h(8374);var fe=h(6477);var he=h(4918);var ye=h(2566);var ve=h(5700);var Le=h(8946);var Ue=h(4433);var qe=h(4271);var ze=h(5938);var He=h(9923);var We=h(9285);var Qe=h(9228);var Je=h(1729);var It=h(7493);var _t=h(6985);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"cognito-identity"});const Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const m=e.httpAuthSchemes;let h=e.httpAuthSchemeProvider;let C=e.credentials;return{setHttpAuthScheme(e){const h=m.findIndex((m=>m.schemeId===e.schemeId));if(h===-1){m.push(e)}else{m.splice(h,1,e)}},httpAuthSchemes(){return m},setHttpAuthSchemeProvider(e){h=e},httpAuthSchemeProvider(){return h},setCredentials(e){C=e},credentials(){return C}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,m)=>{const h=Object.assign(We.getAwsRegionExtensionConfiguration(e),qe.getDefaultExtensionConfiguration(e),Qe.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));m.forEach((e=>e.configure(h)));return Object.assign(e,We.resolveAwsRegionExtensionConfiguration(h),qe.resolveDefaultRuntimeConfig(h),Qe.resolveHttpHandlerRuntimeConfig(h),resolveHttpAuthRuntimeConfig(h))};class CognitoIdentityClient extends qe.Client{config;constructor(...[e]){const m=He.getRuntimeConfig(e||{});super(m);this.initConfig=m;const h=resolveClientEndpointParameters(m);const qe=le.resolveUserAgentConfig(h);const We=Ue.resolveRetryConfig(qe);const Qe=fe.resolveRegionConfig(We);const Je=C.resolveHostHeaderConfig(Qe);const It=Le.resolveEndpointConfig(Je);const _t=ze.resolveHttpAuthSchemeConfig(It);const Mt=resolveRuntimeExtensions(_t,e?.extensions||[]);this.config=Mt;this.middlewareStack.use(ye.getSchemaSerdePlugin(this.config));this.middlewareStack.use(le.getUserAgentPlugin(this.config));this.middlewareStack.use(Ue.getRetryPlugin(this.config));this.middlewareStack.use(ve.getContentLengthPlugin(this.config));this.middlewareStack.use(C.getHostHeaderPlugin(this.config));this.middlewareStack.use(q.getLoggerPlugin(this.config));this.middlewareStack.use(V.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(he.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ze.defaultCognitoIdentityHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new he.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(he.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class GetCredentialsForIdentityCommand extends(qe.Command.classBuilder().ep(Mt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Je.GetCredentialsForIdentity$).build()){}class GetIdCommand extends(qe.Command.classBuilder().ep(Mt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Je.GetId$).build()){}const Lt={GetCredentialsForIdentityCommand:GetCredentialsForIdentityCommand,GetIdCommand:GetIdCommand};class CognitoIdentity extends CognitoIdentityClient{}qe.createAggregatedClient(Lt,CognitoIdentity);m.$Command=qe.Command;m.__Client=qe.Client;m.CognitoIdentityServiceException=_t.CognitoIdentityServiceException;m.CognitoIdentity=CognitoIdentity;m.CognitoIdentityClient=CognitoIdentityClient;m.GetCredentialsForIdentityCommand=GetCredentialsForIdentityCommand;m.GetIdCommand=GetIdCommand;Object.prototype.hasOwnProperty.call(Je,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:Je["__proto__"]});Object.keys(Je).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=Je[e]}));Object.prototype.hasOwnProperty.call(It,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:It["__proto__"]});Object.keys(It).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=It[e]}))},6985:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.CognitoIdentityServiceException=m.__ServiceException=void 0;const C=h(4271);Object.defineProperty(m,"__ServiceException",{enumerable:true,get:function(){return C.ServiceException}});class CognitoIdentityServiceException extends C.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,CognitoIdentityServiceException.prototype)}}m.CognitoIdentityServiceException=CognitoIdentityServiceException},7493:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.LimitExceededException=m.TooManyRequestsException=m.ResourceNotFoundException=m.ResourceConflictException=m.NotAuthorizedException=m.InvalidParameterException=m.InvalidIdentityPoolConfigurationException=m.InternalErrorException=m.ExternalServiceException=void 0;const C=h(6985);class ExternalServiceException extends C.CognitoIdentityServiceException{name="ExternalServiceException";$fault="client";constructor(e){super({name:"ExternalServiceException",$fault:"client",...e});Object.setPrototypeOf(this,ExternalServiceException.prototype)}}m.ExternalServiceException=ExternalServiceException;class InternalErrorException extends C.CognitoIdentityServiceException{name="InternalErrorException";$fault="server";constructor(e){super({name:"InternalErrorException",$fault:"server",...e});Object.setPrototypeOf(this,InternalErrorException.prototype)}}m.InternalErrorException=InternalErrorException;class InvalidIdentityPoolConfigurationException extends C.CognitoIdentityServiceException{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidIdentityPoolConfigurationException.prototype)}}m.InvalidIdentityPoolConfigurationException=InvalidIdentityPoolConfigurationException;class InvalidParameterException extends C.CognitoIdentityServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}m.InvalidParameterException=InvalidParameterException;class NotAuthorizedException extends C.CognitoIdentityServiceException{name="NotAuthorizedException";$fault="client";constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,NotAuthorizedException.prototype)}}m.NotAuthorizedException=NotAuthorizedException;class ResourceConflictException extends C.CognitoIdentityServiceException{name="ResourceConflictException";$fault="client";constructor(e){super({name:"ResourceConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceConflictException.prototype)}}m.ResourceConflictException=ResourceConflictException;class ResourceNotFoundException extends C.CognitoIdentityServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}m.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends C.CognitoIdentityServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}m.TooManyRequestsException=TooManyRequestsException;class LimitExceededException extends C.CognitoIdentityServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}m.LimitExceededException=LimitExceededException},9923:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(7892);const q=C.__importDefault(h(4361));const V=h(590);const le=h(3832);const fe=h(6477);const he=h(8300);const ye=h(4433);const ve=h(1125);const Le=h(5422);const Ue=h(4271);const qe=h(6e3);const ze=h(8322);const He=h(2346);const We=h(9632);const getRuntimeConfig=e=>{(0,Ue.emitWarningIfUnsupportedVersion)(process.version);const m=(0,ze.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>m().then(Ue.loadConfigsForDefaultMode);const h=(0,We.getRuntimeConfig)(e);(0,V.emitWarningIfUnsupportedVersion)(process.version);const C={profile:e?.profile,logger:h.logger};return{...h,...e,runtime:"node",defaultsMode:m,authSchemePreference:e?.authSchemePreference??(0,ve.loadConfig)(V.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,C),bodyLengthChecker:e?.bodyLengthChecker??qe.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,le.createDefaultUserAgentProvider)({serviceId:h.serviceId,clientVersion:q.default.version}),maxAttempts:e?.maxAttempts??(0,ve.loadConfig)(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,ve.loadConfig)(fe.NODE_REGION_CONFIG_OPTIONS,{...fe.NODE_REGION_CONFIG_FILE_OPTIONS,...C}),requestHandler:Le.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,ve.loadConfig)({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||He.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??he.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Le.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,ve.loadConfig)(fe.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,C),useFipsEndpoint:e?.useFipsEndpoint??(0,ve.loadConfig)(fe.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,C),userAgentAppId:e?.userAgentAppId??(0,ve.loadConfig)(le.NODE_APP_ID_CONFIG_OPTIONS,C)}};m.getRuntimeConfig=getRuntimeConfig},9632:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(590);const q=h(5778);const V=h(4918);const le=h(4271);const fe=h(4418);const he=h(3158);const ye=h(8165);const ve=h(5938);const Le=h(3564);const Ue=h(1729);const getRuntimeConfig=e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??he.fromBase64,base64Encoder:e?.base64Encoder??he.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??Le.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ve.defaultCognitoIdentityHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new C.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:e?.logger??new le.NoOpLogger,protocol:e?.protocol??q.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:Ue.errorTypeRegistries,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??fe.parseUrl,utf8Decoder:e?.utf8Decoder??ye.fromUtf8,utf8Encoder:e?.utf8Encoder??ye.toUtf8});m.getRuntimeConfig=getRuntimeConfig},1729:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.GetId$=m.GetCredentialsForIdentity$=m.GetIdResponse$=m.GetIdInput$=m.GetCredentialsForIdentityResponse$=m.GetCredentialsForIdentityInput$=m.Credentials$=m.errorTypeRegistries=m.TooManyRequestsException$=m.ResourceNotFoundException$=m.ResourceConflictException$=m.NotAuthorizedException$=m.LimitExceededException$=m.InvalidParameterException$=m.InvalidIdentityPoolConfigurationException$=m.InternalErrorException$=m.ExternalServiceException$=m.CognitoIdentityServiceException$=void 0;const C="AccountId";const q="AccessKeyId";const V="Credentials";const le="CustomRoleArn";const fe="Expiration";const he="ExternalServiceException";const ye="GetCredentialsForIdentity";const ve="GetCredentialsForIdentityInput";const Le="GetCredentialsForIdentityResponse";const Ue="GetId";const qe="GetIdInput";const ze="GetIdResponse";const He="InternalErrorException";const We="IdentityId";const Qe="InvalidIdentityPoolConfigurationException";const Je="InvalidParameterException";const It="IdentityPoolId";const _t="IdentityProviderToken";const Mt="Logins";const Lt="LimitExceededException";const Ut="LoginsMap";const qt="NotAuthorizedException";const Gt="ResourceConflictException";const zt="ResourceNotFoundException";const Ht="SecretKey";const Wt="SecretKeyString";const Kt="SessionToken";const Yt="TooManyRequestsException";const Qt="client";const Jt="error";const Xt="httpError";const Zt="message";const en="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";const tn="server";const nn="com.amazonaws.cognitoidentity";const rn=h(2566);const on=h(6985);const sn=h(7493);const an=rn.TypeRegistry.for(en);m.CognitoIdentityServiceException$=[-3,en,"CognitoIdentityServiceException",0,[],[]];an.registerError(m.CognitoIdentityServiceException$,on.CognitoIdentityServiceException);const cn=rn.TypeRegistry.for(nn);m.ExternalServiceException$=[-3,nn,he,{[Jt]:Qt,[Xt]:400},[Zt],[0]];cn.registerError(m.ExternalServiceException$,sn.ExternalServiceException);m.InternalErrorException$=[-3,nn,He,{[Jt]:tn},[Zt],[0]];cn.registerError(m.InternalErrorException$,sn.InternalErrorException);m.InvalidIdentityPoolConfigurationException$=[-3,nn,Qe,{[Jt]:Qt,[Xt]:400},[Zt],[0]];cn.registerError(m.InvalidIdentityPoolConfigurationException$,sn.InvalidIdentityPoolConfigurationException);m.InvalidParameterException$=[-3,nn,Je,{[Jt]:Qt,[Xt]:400},[Zt],[0]];cn.registerError(m.InvalidParameterException$,sn.InvalidParameterException);m.LimitExceededException$=[-3,nn,Lt,{[Jt]:Qt,[Xt]:400},[Zt],[0]];cn.registerError(m.LimitExceededException$,sn.LimitExceededException);m.NotAuthorizedException$=[-3,nn,qt,{[Jt]:Qt,[Xt]:403},[Zt],[0]];cn.registerError(m.NotAuthorizedException$,sn.NotAuthorizedException);m.ResourceConflictException$=[-3,nn,Gt,{[Jt]:Qt,[Xt]:409},[Zt],[0]];cn.registerError(m.ResourceConflictException$,sn.ResourceConflictException);m.ResourceNotFoundException$=[-3,nn,zt,{[Jt]:Qt,[Xt]:404},[Zt],[0]];cn.registerError(m.ResourceNotFoundException$,sn.ResourceNotFoundException);m.TooManyRequestsException$=[-3,nn,Yt,{[Jt]:Qt,[Xt]:429},[Zt],[0]];cn.registerError(m.TooManyRequestsException$,sn.TooManyRequestsException);m.errorTypeRegistries=[an,cn];var ln=[0,nn,_t,8,0];var un=[0,nn,Wt,8,0];m.Credentials$=[3,nn,V,0,[q,Ht,Kt,fe],[0,[()=>un,0],0,4]];m.GetCredentialsForIdentityInput$=[3,nn,ve,0,[We,Mt,le],[0,[()=>dn,0],0],1];m.GetCredentialsForIdentityResponse$=[3,nn,Le,0,[We,V],[0,[()=>m.Credentials$,0]]];m.GetIdInput$=[3,nn,qe,0,[It,C,Mt],[0,0,[()=>dn,0]],1];m.GetIdResponse$=[3,nn,ze,0,[We],[0]];var dn=[2,nn,Ut,0,[0,0],[()=>ln,0]];m.GetCredentialsForIdentity$=[9,nn,ye,0,()=>m.GetCredentialsForIdentityInput$,()=>m.GetCredentialsForIdentityResponse$];m.GetId$=[9,nn,Ue,0,()=>m.GetIdInput$,()=>m.GetIdResponse$]},2335:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.resolveHttpAuthSchemeConfig=m.defaultSSOHttpAuthSchemeProvider=m.defaultSSOHttpAuthSchemeParametersProvider=void 0;const C=h(590);const q=h(5496);const defaultSSOHttpAuthSchemeParametersProvider=async(e,m,h)=>({operation:(0,q.getSmithyContext)(m).operation,region:await(0,q.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});m.defaultSSOHttpAuthSchemeParametersProvider=defaultSSOHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(e,m)=>({signingProperties:{config:e,context:m}})}}function createSmithyApiNoAuthHttpAuthOption(e){return{schemeId:"smithy.api#noAuth"}}const defaultSSOHttpAuthSchemeProvider=e=>{const m=[];switch(e.operation){case"GetRoleCredentials":{m.push(createSmithyApiNoAuthHttpAuthOption(e));break}default:{m.push(createAwsAuthSigv4HttpAuthOption(e))}}return m};m.defaultSSOHttpAuthSchemeProvider=defaultSSOHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const m=(0,C.resolveAwsSdkSigV4Config)(e);return Object.assign(m,{authSchemePreference:(0,q.normalizeProvider)(e.authSchemePreference??[])})};m.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},9881:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.defaultEndpointResolver=void 0;const C=h(3237);const q=h(9356);const V=h(946);const le=new q.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,m={})=>le.get(e,(()=>(0,q.resolveEndpoint)(V.ruleSet,{endpointParams:e,logger:m.logger})));m.defaultEndpointResolver=defaultEndpointResolver;q.customEndpointFunctions.aws=C.awsEndpointFunctions},946:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.ruleSet=void 0;const h="required",C="fn",q="argv",V="ref";const le=true,fe="isSet",he="booleanEquals",ye="error",ve="endpoint",Le="tree",Ue="PartitionResult",qe="getAttr",ze={[h]:false,type:"string"},He={[h]:true,default:false,type:"boolean"},We={[V]:"Endpoint"},Qe={[C]:he,[q]:[{[V]:"UseFIPS"},true]},Je={[C]:he,[q]:[{[V]:"UseDualStack"},true]},It={},_t={[C]:qe,[q]:[{[V]:Ue},"supportsFIPS"]},Mt={[V]:Ue},Lt={[C]:he,[q]:[true,{[C]:qe,[q]:[Mt,"supportsDualStack"]}]},Ut=[Qe],qt=[Je],Gt=[{[V]:"Region"}];const zt={version:"1.0",parameters:{Region:ze,UseDualStack:He,UseFIPS:He,Endpoint:ze},rules:[{conditions:[{[C]:fe,[q]:[We]}],rules:[{conditions:Ut,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ye},{conditions:qt,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ye},{endpoint:{url:We,properties:It,headers:It},type:ve}],type:Le},{conditions:[{[C]:fe,[q]:Gt}],rules:[{conditions:[{[C]:"aws.partition",[q]:Gt,assign:Ue}],rules:[{conditions:[Qe,Je],rules:[{conditions:[{[C]:he,[q]:[le,_t]},Lt],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:It,headers:It},type:ve}],type:Le},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ye}],type:Le},{conditions:Ut,rules:[{conditions:[{[C]:he,[q]:[_t,le]}],rules:[{conditions:[{[C]:"stringEquals",[q]:[{[C]:qe,[q]:[Mt,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:It,headers:It},type:ve},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:It,headers:It},type:ve}],type:Le},{error:"FIPS is enabled but this partition does not support FIPS",type:ye}],type:Le},{conditions:qt,rules:[{conditions:[Lt],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:It,headers:It},type:ve}],type:Le},{error:"DualStack is enabled but this partition does not support DualStack",type:ye}],type:Le},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:It,headers:It},type:ve}],type:Le}],type:Le},{error:"Invalid Configuration: Missing Region",type:ye}]};m.ruleSet=zt},3404:(e,m,h)=>{var C=h(4736);var q=h(6626);var V=h(1788);var le=h(8374);var fe=h(6477);var he=h(4918);var ye=h(2566);var ve=h(5700);var Le=h(8946);var Ue=h(4433);var qe=h(4271);var ze=h(2335);var He=h(2670);var We=h(9285);var Qe=h(9228);var Je=h(6968);var It=h(5420);var _t=h(4412);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});const Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const m=e.httpAuthSchemes;let h=e.httpAuthSchemeProvider;let C=e.credentials;return{setHttpAuthScheme(e){const h=m.findIndex((m=>m.schemeId===e.schemeId));if(h===-1){m.push(e)}else{m.splice(h,1,e)}},httpAuthSchemes(){return m},setHttpAuthSchemeProvider(e){h=e},httpAuthSchemeProvider(){return h},setCredentials(e){C=e},credentials(){return C}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,m)=>{const h=Object.assign(We.getAwsRegionExtensionConfiguration(e),qe.getDefaultExtensionConfiguration(e),Qe.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));m.forEach((e=>e.configure(h)));return Object.assign(e,We.resolveAwsRegionExtensionConfiguration(h),qe.resolveDefaultRuntimeConfig(h),Qe.resolveHttpHandlerRuntimeConfig(h),resolveHttpAuthRuntimeConfig(h))};class SSOClient extends qe.Client{config;constructor(...[e]){const m=He.getRuntimeConfig(e||{});super(m);this.initConfig=m;const h=resolveClientEndpointParameters(m);const qe=le.resolveUserAgentConfig(h);const We=Ue.resolveRetryConfig(qe);const Qe=fe.resolveRegionConfig(We);const Je=C.resolveHostHeaderConfig(Qe);const It=Le.resolveEndpointConfig(Je);const _t=ze.resolveHttpAuthSchemeConfig(It);const Mt=resolveRuntimeExtensions(_t,e?.extensions||[]);this.config=Mt;this.middlewareStack.use(ye.getSchemaSerdePlugin(this.config));this.middlewareStack.use(le.getUserAgentPlugin(this.config));this.middlewareStack.use(Ue.getRetryPlugin(this.config));this.middlewareStack.use(ve.getContentLengthPlugin(this.config));this.middlewareStack.use(C.getHostHeaderPlugin(this.config));this.middlewareStack.use(q.getLoggerPlugin(this.config));this.middlewareStack.use(V.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(he.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ze.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new he.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(he.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class GetRoleCredentialsCommand extends(qe.Command.classBuilder().ep(Mt).m((function(e,m,h,C){return[Le.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Je.GetRoleCredentials$).build()){}const Lt={GetRoleCredentialsCommand:GetRoleCredentialsCommand};class SSO extends SSOClient{}qe.createAggregatedClient(Lt,SSO);m.$Command=qe.Command;m.__Client=qe.Client;m.SSOServiceException=_t.SSOServiceException;m.GetRoleCredentialsCommand=GetRoleCredentialsCommand;m.SSO=SSO;m.SSOClient=SSOClient;Object.prototype.hasOwnProperty.call(Je,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:Je["__proto__"]});Object.keys(Je).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=Je[e]}));Object.prototype.hasOwnProperty.call(It,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:It["__proto__"]});Object.keys(It).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=It[e]}))},4412:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.SSOServiceException=m.__ServiceException=void 0;const C=h(4271);Object.defineProperty(m,"__ServiceException",{enumerable:true,get:function(){return C.ServiceException}});class SSOServiceException extends C.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}m.SSOServiceException=SSOServiceException},5420:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.UnauthorizedException=m.TooManyRequestsException=m.ResourceNotFoundException=m.InvalidRequestException=void 0;const C=h(4412);class InvalidRequestException extends C.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidRequestException.prototype)}}m.InvalidRequestException=InvalidRequestException;class ResourceNotFoundException extends C.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}m.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends C.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}m.TooManyRequestsException=TooManyRequestsException;class UnauthorizedException extends C.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,UnauthorizedException.prototype)}}m.UnauthorizedException=UnauthorizedException},2670:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(7892);const q=C.__importDefault(h(4361));const V=h(590);const le=h(3832);const fe=h(6477);const he=h(8300);const ye=h(4433);const ve=h(1125);const Le=h(5422);const Ue=h(4271);const qe=h(6e3);const ze=h(8322);const He=h(2346);const We=h(39);const getRuntimeConfig=e=>{(0,Ue.emitWarningIfUnsupportedVersion)(process.version);const m=(0,ze.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>m().then(Ue.loadConfigsForDefaultMode);const h=(0,We.getRuntimeConfig)(e);(0,V.emitWarningIfUnsupportedVersion)(process.version);const C={profile:e?.profile,logger:h.logger};return{...h,...e,runtime:"node",defaultsMode:m,authSchemePreference:e?.authSchemePreference??(0,ve.loadConfig)(V.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,C),bodyLengthChecker:e?.bodyLengthChecker??qe.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,le.createDefaultUserAgentProvider)({serviceId:h.serviceId,clientVersion:q.default.version}),maxAttempts:e?.maxAttempts??(0,ve.loadConfig)(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,ve.loadConfig)(fe.NODE_REGION_CONFIG_OPTIONS,{...fe.NODE_REGION_CONFIG_FILE_OPTIONS,...C}),requestHandler:Le.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,ve.loadConfig)({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||He.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??he.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Le.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,ve.loadConfig)(fe.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,C),useFipsEndpoint:e?.useFipsEndpoint??(0,ve.loadConfig)(fe.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,C),userAgentAppId:e?.userAgentAppId??(0,ve.loadConfig)(le.NODE_APP_ID_CONFIG_OPTIONS,C)}};m.getRuntimeConfig=getRuntimeConfig},39:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(590);const q=h(5778);const V=h(4918);const le=h(4271);const fe=h(4418);const he=h(3158);const ye=h(8165);const ve=h(2335);const Le=h(9881);const Ue=h(6968);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??he.fromBase64,base64Encoder:e?.base64Encoder??he.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??Le.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ve.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new C.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:e?.logger??new le.NoOpLogger,protocol:e?.protocol??q.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Ue.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??fe.parseUrl,utf8Decoder:e?.utf8Decoder??ye.fromUtf8,utf8Encoder:e?.utf8Encoder??ye.toUtf8});m.getRuntimeConfig=getRuntimeConfig},6968:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.GetRoleCredentials$=m.RoleCredentials$=m.GetRoleCredentialsResponse$=m.GetRoleCredentialsRequest$=m.errorTypeRegistries=m.UnauthorizedException$=m.TooManyRequestsException$=m.ResourceNotFoundException$=m.InvalidRequestException$=m.SSOServiceException$=void 0;const C="AccessTokenType";const q="GetRoleCredentials";const V="GetRoleCredentialsRequest";const le="GetRoleCredentialsResponse";const fe="InvalidRequestException";const he="RoleCredentials";const ye="ResourceNotFoundException";const ve="SecretAccessKeyType";const Le="SessionTokenType";const Ue="TooManyRequestsException";const qe="UnauthorizedException";const ze="accountId";const He="accessKeyId";const We="accessToken";const Qe="account_id";const Je="client";const It="error";const _t="expiration";const Mt="http";const Lt="httpError";const Ut="httpHeader";const qt="httpQuery";const Gt="message";const zt="roleCredentials";const Ht="roleName";const Wt="role_name";const Kt="smithy.ts.sdk.synthetic.com.amazonaws.sso";const Yt="secretAccessKey";const Qt="sessionToken";const Jt="x-amz-sso_bearer_token";const Xt="com.amazonaws.sso";const Zt=h(2566);const en=h(5420);const tn=h(4412);const nn=Zt.TypeRegistry.for(Kt);m.SSOServiceException$=[-3,Kt,"SSOServiceException",0,[],[]];nn.registerError(m.SSOServiceException$,tn.SSOServiceException);const rn=Zt.TypeRegistry.for(Xt);m.InvalidRequestException$=[-3,Xt,fe,{[It]:Je,[Lt]:400},[Gt],[0]];rn.registerError(m.InvalidRequestException$,en.InvalidRequestException);m.ResourceNotFoundException$=[-3,Xt,ye,{[It]:Je,[Lt]:404},[Gt],[0]];rn.registerError(m.ResourceNotFoundException$,en.ResourceNotFoundException);m.TooManyRequestsException$=[-3,Xt,Ue,{[It]:Je,[Lt]:429},[Gt],[0]];rn.registerError(m.TooManyRequestsException$,en.TooManyRequestsException);m.UnauthorizedException$=[-3,Xt,qe,{[It]:Je,[Lt]:401},[Gt],[0]];rn.registerError(m.UnauthorizedException$,en.UnauthorizedException);m.errorTypeRegistries=[nn,rn];var on=[0,Xt,C,8,0];var sn=[0,Xt,ve,8,0];var an=[0,Xt,Le,8,0];m.GetRoleCredentialsRequest$=[3,Xt,V,0,[Ht,ze,We],[[0,{[qt]:Wt}],[0,{[qt]:Qe}],[()=>on,{[Ut]:Jt}]],3];m.GetRoleCredentialsResponse$=[3,Xt,le,0,[zt],[[()=>m.RoleCredentials$,0]]];m.RoleCredentials$=[3,Xt,he,0,[He,Yt,Qt,_t],[0,[()=>sn,0],[()=>an,0],1]];m.GetRoleCredentials$=[9,Xt,q,{[Mt]:["GET","/federation/credentials",200]},()=>m.GetRoleCredentialsRequest$,()=>m.GetRoleCredentialsResponse$]},7524:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.STSClient=m.__Client=void 0;const C=h(4736);const q=h(6626);const V=h(1788);const le=h(8374);const fe=h(6477);const he=h(4918);const ye=h(2566);const ve=h(5700);const Le=h(8946);const Ue=h(4433);const qe=h(4271);Object.defineProperty(m,"__Client",{enumerable:true,get:function(){return qe.Client}});const ze=h(5896);const He=h(3240);const We=h(8121);const Qe=h(5325);class STSClient extends qe.Client{config;constructor(...[e]){const m=(0,We.getRuntimeConfig)(e||{});super(m);this.initConfig=m;const h=(0,He.resolveClientEndpointParameters)(m);const qe=(0,le.resolveUserAgentConfig)(h);const Je=(0,Ue.resolveRetryConfig)(qe);const It=(0,fe.resolveRegionConfig)(Je);const _t=(0,C.resolveHostHeaderConfig)(It);const Mt=(0,Le.resolveEndpointConfig)(_t);const Lt=(0,ze.resolveHttpAuthSchemeConfig)(Mt);const Ut=(0,Qe.resolveRuntimeExtensions)(Lt,e?.extensions||[]);this.config=Ut;this.middlewareStack.use((0,ye.getSchemaSerdePlugin)(this.config));this.middlewareStack.use((0,le.getUserAgentPlugin)(this.config));this.middlewareStack.use((0,Ue.getRetryPlugin)(this.config));this.middlewareStack.use((0,ve.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,C.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,q.getLoggerPlugin)(this.config));this.middlewareStack.use((0,V.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,he.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:ze.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new he.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use((0,he.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}m.STSClient=STSClient},4979:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.resolveHttpAuthRuntimeConfig=m.getHttpAuthExtensionConfiguration=void 0;const getHttpAuthExtensionConfiguration=e=>{const m=e.httpAuthSchemes;let h=e.httpAuthSchemeProvider;let C=e.credentials;return{setHttpAuthScheme(e){const h=m.findIndex((m=>m.schemeId===e.schemeId));if(h===-1){m.push(e)}else{m.splice(h,1,e)}},httpAuthSchemes(){return m},setHttpAuthSchemeProvider(e){h=e},httpAuthSchemeProvider(){return h},setCredentials(e){C=e},credentials(){return C}}};m.getHttpAuthExtensionConfiguration=getHttpAuthExtensionConfiguration;const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});m.resolveHttpAuthRuntimeConfig=resolveHttpAuthRuntimeConfig},5896:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.resolveHttpAuthSchemeConfig=m.resolveStsAuthConfig=m.defaultSTSHttpAuthSchemeProvider=m.defaultSTSHttpAuthSchemeParametersProvider=void 0;const C=h(590);const q=h(5496);const V=h(7524);const defaultSTSHttpAuthSchemeParametersProvider=async(e,m,h)=>({operation:(0,q.getSmithyContext)(m).operation,region:await(0,q.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});m.defaultSTSHttpAuthSchemeParametersProvider=defaultSTSHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(e,m)=>({signingProperties:{config:e,context:m}})}}function createSmithyApiNoAuthHttpAuthOption(e){return{schemeId:"smithy.api#noAuth"}}const defaultSTSHttpAuthSchemeProvider=e=>{const m=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{m.push(createSmithyApiNoAuthHttpAuthOption(e));break}default:{m.push(createAwsAuthSigv4HttpAuthOption(e))}}return m};m.defaultSTSHttpAuthSchemeProvider=defaultSTSHttpAuthSchemeProvider;const resolveStsAuthConfig=e=>Object.assign(e,{stsClientCtor:V.STSClient});m.resolveStsAuthConfig=resolveStsAuthConfig;const resolveHttpAuthSchemeConfig=e=>{const h=(0,m.resolveStsAuthConfig)(e);const V=(0,C.resolveAwsSdkSigV4Config)(h);return Object.assign(V,{authSchemePreference:(0,q.normalizeProvider)(e.authSchemePreference??[])})};m.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},3240:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.commonParams=m.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,useGlobalEndpoint:e.useGlobalEndpoint??false,defaultSigningName:"sts"});m.resolveClientEndpointParameters=resolveClientEndpointParameters;m.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},4286:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.defaultEndpointResolver=void 0;const C=h(3237);const q=h(9356);const V=h(1423);const le=new q.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(e,m={})=>le.get(e,(()=>(0,q.resolveEndpoint)(V.ruleSet,{endpointParams:e,logger:m.logger})));m.defaultEndpointResolver=defaultEndpointResolver;q.customEndpointFunctions.aws=C.awsEndpointFunctions},1423:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.ruleSet=void 0;const h="required",C="type",q="fn",V="argv",le="ref";const fe=false,he=true,ye="booleanEquals",ve="stringEquals",Le="sigv4",Ue="sts",qe="us-east-1",ze="endpoint",He="https://sts.{Region}.{PartitionResult#dnsSuffix}",We="tree",Qe="error",Je="getAttr",It={[h]:false,[C]:"string"},_t={[h]:true,default:false,[C]:"boolean"},Mt={[le]:"Endpoint"},Lt={[q]:"isSet",[V]:[{[le]:"Region"}]},Ut={[le]:"Region"},qt={[q]:"aws.partition",[V]:[Ut],assign:"PartitionResult"},Gt={[le]:"UseFIPS"},zt={[le]:"UseDualStack"},Ht={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Le,signingName:Ue,signingRegion:qe}]},headers:{}},Wt={},Kt={conditions:[{[q]:ve,[V]:[Ut,"aws-global"]}],[ze]:Ht,[C]:ze},Yt={[q]:ye,[V]:[Gt,true]},Qt={[q]:ye,[V]:[zt,true]},Jt={[q]:Je,[V]:[{[le]:"PartitionResult"},"supportsFIPS"]},Xt={[le]:"PartitionResult"},Zt={[q]:ye,[V]:[true,{[q]:Je,[V]:[Xt,"supportsDualStack"]}]},en=[{[q]:"isSet",[V]:[Mt]}],tn=[Yt],nn=[Qt];const rn={version:"1.0",parameters:{Region:It,UseDualStack:_t,UseFIPS:_t,Endpoint:It,UseGlobalEndpoint:_t},rules:[{conditions:[{[q]:ye,[V]:[{[le]:"UseGlobalEndpoint"},he]},{[q]:"not",[V]:en},Lt,qt,{[q]:ye,[V]:[Gt,fe]},{[q]:ye,[V]:[zt,fe]}],rules:[{conditions:[{[q]:ve,[V]:[Ut,"ap-northeast-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"ap-south-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"ap-southeast-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"ap-southeast-2"]}],endpoint:Ht,[C]:ze},Kt,{conditions:[{[q]:ve,[V]:[Ut,"ca-central-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"eu-central-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"eu-north-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"eu-west-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"eu-west-2"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"eu-west-3"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"sa-east-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,qe]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"us-east-2"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"us-west-1"]}],endpoint:Ht,[C]:ze},{conditions:[{[q]:ve,[V]:[Ut,"us-west-2"]}],endpoint:Ht,[C]:ze},{endpoint:{url:He,properties:{authSchemes:[{name:Le,signingName:Ue,signingRegion:"{Region}"}]},headers:Wt},[C]:ze}],[C]:We},{conditions:en,rules:[{conditions:tn,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[C]:Qe},{conditions:nn,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[C]:Qe},{endpoint:{url:Mt,properties:Wt,headers:Wt},[C]:ze}],[C]:We},{conditions:[Lt],rules:[{conditions:[qt],rules:[{conditions:[Yt,Qt],rules:[{conditions:[{[q]:ye,[V]:[he,Jt]},Zt],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Wt,headers:Wt},[C]:ze}],[C]:We},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[C]:Qe}],[C]:We},{conditions:tn,rules:[{conditions:[{[q]:ye,[V]:[Jt,he]}],rules:[{conditions:[{[q]:ve,[V]:[{[q]:Je,[V]:[Xt,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Wt,headers:Wt},[C]:ze},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Wt,headers:Wt},[C]:ze}],[C]:We},{error:"FIPS is enabled but this partition does not support FIPS",[C]:Qe}],[C]:We},{conditions:nn,rules:[{conditions:[Zt],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Wt,headers:Wt},[C]:ze}],[C]:We},{error:"DualStack is enabled but this partition does not support DualStack",[C]:Qe}],[C]:We},Kt,{endpoint:{url:He,properties:Wt,headers:Wt},[C]:ze}],[C]:We}],[C]:We},{error:"Invalid Configuration: Missing Region",[C]:Qe}]};m.ruleSet=rn},8695:(e,m,h)=>{var C=h(7524);var q=h(4271);var V=h(8946);var le=h(3240);var fe=h(3171);var he=h(4319);var ye=h(7078);var ve=h(9285);var Le=h(4454);class AssumeRoleCommand extends(q.Command.classBuilder().ep(le.commonParams).m((function(e,m,h,C){return[V.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(fe.AssumeRole$).build()){}class AssumeRoleWithWebIdentityCommand extends(q.Command.classBuilder().ep(le.commonParams).m((function(e,m,h,C){return[V.getEndpointPlugin(h,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(fe.AssumeRoleWithWebIdentity$).build()){}const Ue={AssumeRoleCommand:AssumeRoleCommand,AssumeRoleWithWebIdentityCommand:AssumeRoleWithWebIdentityCommand};class STS extends C.STSClient{}q.createAggregatedClient(Ue,STS);const getAccountIdFromAssumedRoleUser=e=>{if(typeof e?.Arn==="string"){const m=e.Arn.split(":");if(m.length>4&&m[4]!==""){return m[4]}}return undefined};const resolveRegion=async(e,m,h,C={})=>{const q=typeof e==="function"?await e():e;const V=typeof m==="function"?await m():m;let le="";const fe=q??V??(le=await ve.stsRegionDefaultResolver(C)());h?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${q} (credential provider clientConfig)`,`${V} (contextual client)`,`${le} (STS default: AWS_REGION, profile region, or us-east-1)`);return fe};const getDefaultRoleAssumer$1=(e,m)=>{let h;let C;return async(q,V)=>{C=q;if(!h){const{logger:q=e?.parentClientConfig?.logger,profile:V=e?.parentClientConfig?.profile,region:le,requestHandler:fe=e?.parentClientConfig?.requestHandler,credentialProviderLogger:he,userAgentAppId:ye=e?.parentClientConfig?.userAgentAppId}=e;const ve=await resolveRegion(le,e?.parentClientConfig?.region,he,{logger:q,profile:V});const Le=!isH2(fe);h=new m({...e,userAgentAppId:ye,profile:V,credentialDefaultProvider:()=>async()=>C,region:ve,requestHandler:Le?fe:undefined,logger:q})}const{Credentials:le,AssumedRoleUser:fe}=await h.send(new AssumeRoleCommand(V));if(!le||!le.AccessKeyId||!le.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${V.RoleArn}`)}const he=getAccountIdFromAssumedRoleUser(fe);const ve={accessKeyId:le.AccessKeyId,secretAccessKey:le.SecretAccessKey,sessionToken:le.SessionToken,expiration:le.Expiration,...le.CredentialScope&&{credentialScope:le.CredentialScope},...he&&{accountId:he}};ye.setCredentialFeature(ve,"CREDENTIALS_STS_ASSUME_ROLE","i");return ve}};const getDefaultRoleAssumerWithWebIdentity$1=(e,m)=>{let h;return async C=>{if(!h){const{logger:C=e?.parentClientConfig?.logger,profile:q=e?.parentClientConfig?.profile,region:V,requestHandler:le=e?.parentClientConfig?.requestHandler,credentialProviderLogger:fe,userAgentAppId:he=e?.parentClientConfig?.userAgentAppId}=e;const ye=await resolveRegion(V,e?.parentClientConfig?.region,fe,{logger:C,profile:q});const ve=!isH2(le);h=new m({...e,userAgentAppId:he,profile:q,region:ye,requestHandler:ve?le:undefined,logger:C})}const{Credentials:q,AssumedRoleUser:V}=await h.send(new AssumeRoleWithWebIdentityCommand(C));if(!q||!q.AccessKeyId||!q.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${C.RoleArn}`)}const le=getAccountIdFromAssumedRoleUser(V);const fe={accessKeyId:q.AccessKeyId,secretAccessKey:q.SecretAccessKey,sessionToken:q.SessionToken,expiration:q.Expiration,...q.CredentialScope&&{credentialScope:q.CredentialScope},...le&&{accountId:le}};if(le){ye.setCredentialFeature(fe,"RESOLVED_ACCOUNT_ID","T")}ye.setCredentialFeature(fe,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return fe}};const isH2=e=>e?.metadata?.handlerProtocol==="h2";const getCustomizableStsClientCtor=(e,m)=>{if(!m)return e;else return class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of m){this.middlewareStack.use(e)}}}};const getDefaultRoleAssumer=(e={},m)=>getDefaultRoleAssumer$1(e,getCustomizableStsClientCtor(C.STSClient,m));const getDefaultRoleAssumerWithWebIdentity=(e={},m)=>getDefaultRoleAssumerWithWebIdentity$1(e,getCustomizableStsClientCtor(C.STSClient,m));const decorateDefaultCredentialProvider=e=>m=>e({roleAssumer:getDefaultRoleAssumer(m),roleAssumerWithWebIdentity:getDefaultRoleAssumerWithWebIdentity(m),...m});m.$Command=q.Command;m.STSServiceException=Le.STSServiceException;m.AssumeRoleCommand=AssumeRoleCommand;m.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand;m.STS=STS;m.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider;m.getDefaultRoleAssumer=getDefaultRoleAssumer;m.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=C[e]}));Object.prototype.hasOwnProperty.call(fe,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:fe["__proto__"]});Object.keys(fe).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=fe[e]}));Object.prototype.hasOwnProperty.call(he,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:he["__proto__"]});Object.keys(he).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=he[e]}))},4454:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.STSServiceException=m.__ServiceException=void 0;const C=h(4271);Object.defineProperty(m,"__ServiceException",{enumerable:true,get:function(){return C.ServiceException}});class STSServiceException extends C.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}m.STSServiceException=STSServiceException},4319:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.IDPCommunicationErrorException=m.InvalidIdentityTokenException=m.IDPRejectedClaimException=m.RegionDisabledException=m.PackedPolicyTooLargeException=m.MalformedPolicyDocumentException=m.ExpiredTokenException=void 0;const C=h(4454);class ExpiredTokenException extends C.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}m.ExpiredTokenException=ExpiredTokenException;class MalformedPolicyDocumentException extends C.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}m.MalformedPolicyDocumentException=MalformedPolicyDocumentException;class PackedPolicyTooLargeException extends C.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}m.PackedPolicyTooLargeException=PackedPolicyTooLargeException;class RegionDisabledException extends C.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,RegionDisabledException.prototype)}}m.RegionDisabledException=RegionDisabledException;class IDPRejectedClaimException extends C.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}m.IDPRejectedClaimException=IDPRejectedClaimException;class InvalidIdentityTokenException extends C.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}m.InvalidIdentityTokenException=InvalidIdentityTokenException;class IDPCommunicationErrorException extends C.STSServiceException{name="IDPCommunicationErrorException";$fault="client";constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}m.IDPCommunicationErrorException=IDPCommunicationErrorException},8121:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(7892);const q=C.__importDefault(h(4361));const V=h(590);const le=h(3832);const fe=h(6477);const he=h(4918);const ye=h(8300);const ve=h(4433);const Le=h(1125);const Ue=h(5422);const qe=h(4271);const ze=h(6e3);const He=h(8322);const We=h(2346);const Qe=h(9598);const getRuntimeConfig=e=>{(0,qe.emitWarningIfUnsupportedVersion)(process.version);const m=(0,He.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>m().then(qe.loadConfigsForDefaultMode);const h=(0,Qe.getRuntimeConfig)(e);(0,V.emitWarningIfUnsupportedVersion)(process.version);const C={profile:e?.profile,logger:h.logger};return{...h,...e,runtime:"node",defaultsMode:m,authSchemePreference:e?.authSchemePreference??(0,Le.loadConfig)(V.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,C),bodyLengthChecker:e?.bodyLengthChecker??ze.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,le.createDefaultUserAgentProvider)({serviceId:h.serviceId,clientVersion:q.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:m=>m.getIdentityProvider("aws.auth#sigv4")||(async m=>await e.credentialDefaultProvider(m?.__config||{})()),signer:new V.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new he.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,Le.loadConfig)(ve.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,Le.loadConfig)(fe.NODE_REGION_CONFIG_OPTIONS,{...fe.NODE_REGION_CONFIG_FILE_OPTIONS,...C}),requestHandler:Ue.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,Le.loadConfig)({...ve.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||We.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ye.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ue.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Le.loadConfig)(fe.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,C),useFipsEndpoint:e?.useFipsEndpoint??(0,Le.loadConfig)(fe.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,C),userAgentAppId:e?.userAgentAppId??(0,Le.loadConfig)(le.NODE_APP_ID_CONFIG_OPTIONS,C)}};m.getRuntimeConfig=getRuntimeConfig},9598:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getRuntimeConfig=void 0;const C=h(590);const q=h(5778);const V=h(4918);const le=h(4271);const fe=h(4418);const he=h(3158);const ye=h(8165);const ve=h(5896);const Le=h(4286);const Ue=h(3171);const getRuntimeConfig=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??he.fromBase64,base64Encoder:e?.base64Encoder??he.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??Le.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ve.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new C.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:e?.logger??new le.NoOpLogger,protocol:e?.protocol??q.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Ue.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??fe.parseUrl,utf8Decoder:e?.utf8Decoder??ye.fromUtf8,utf8Encoder:e?.utf8Encoder??ye.toUtf8});m.getRuntimeConfig=getRuntimeConfig},5325:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.resolveRuntimeExtensions=void 0;const C=h(9285);const q=h(9228);const V=h(4271);const le=h(4979);const resolveRuntimeExtensions=(e,m)=>{const h=Object.assign((0,C.getAwsRegionExtensionConfiguration)(e),(0,V.getDefaultExtensionConfiguration)(e),(0,q.getHttpHandlerExtensionConfiguration)(e),(0,le.getHttpAuthExtensionConfiguration)(e));m.forEach((e=>e.configure(h)));return Object.assign(e,(0,C.resolveAwsRegionExtensionConfiguration)(h),(0,V.resolveDefaultRuntimeConfig)(h),(0,q.resolveHttpHandlerRuntimeConfig)(h),(0,le.resolveHttpAuthRuntimeConfig)(h))};m.resolveRuntimeExtensions=resolveRuntimeExtensions},3171:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.AssumeRoleWithWebIdentity$=m.AssumeRole$=m.Tag$=m.ProvidedContext$=m.PolicyDescriptorType$=m.Credentials$=m.AssumeRoleWithWebIdentityResponse$=m.AssumeRoleWithWebIdentityRequest$=m.AssumeRoleResponse$=m.AssumeRoleRequest$=m.AssumedRoleUser$=m.errorTypeRegistries=m.RegionDisabledException$=m.PackedPolicyTooLargeException$=m.MalformedPolicyDocumentException$=m.InvalidIdentityTokenException$=m.IDPRejectedClaimException$=m.IDPCommunicationErrorException$=m.ExpiredTokenException$=m.STSServiceException$=void 0;const C="Arn";const q="AccessKeyId";const V="AssumeRole";const le="AssumedRoleId";const fe="AssumeRoleRequest";const he="AssumeRoleResponse";const ye="AssumedRoleUser";const ve="AssumeRoleWithWebIdentity";const Le="AssumeRoleWithWebIdentityRequest";const Ue="AssumeRoleWithWebIdentityResponse";const qe="Audience";const ze="Credentials";const He="ContextAssertion";const We="DurationSeconds";const Qe="Expiration";const Je="ExternalId";const It="ExpiredTokenException";const _t="IDPCommunicationErrorException";const Mt="IDPRejectedClaimException";const Lt="InvalidIdentityTokenException";const Ut="Key";const qt="MalformedPolicyDocumentException";const Gt="Policy";const zt="PolicyArns";const Ht="ProviderArn";const Wt="ProvidedContexts";const Kt="ProvidedContextsListType";const Yt="ProvidedContext";const Qt="PolicyDescriptorType";const Jt="ProviderId";const Xt="PackedPolicySize";const Zt="PackedPolicyTooLargeException";const en="Provider";const tn="RoleArn";const nn="RegionDisabledException";const rn="RoleSessionName";const on="SecretAccessKey";const sn="SubjectFromWebIdentityToken";const an="SourceIdentity";const cn="SerialNumber";const ln="SessionToken";const un="Tags";const dn="TokenCode";const pn="TransitiveTagKeys";const mn="Tag";const hn="Value";const gn="WebIdentityToken";const yn="arn";const Sn="accessKeySecretType";const En="awsQueryError";const vn="client";const Cn="clientTokenType";const In="error";const bn="httpError";const An="message";const wn="policyDescriptorListType";const Rn="smithy.ts.sdk.synthetic.com.amazonaws.sts";const Tn="tagListType";const Pn="com.amazonaws.sts";const xn=h(2566);const _n=h(4319);const On=h(4454);const Dn=xn.TypeRegistry.for(Rn);m.STSServiceException$=[-3,Rn,"STSServiceException",0,[],[]];Dn.registerError(m.STSServiceException$,On.STSServiceException);const Mn=xn.TypeRegistry.for(Pn);m.ExpiredTokenException$=[-3,Pn,It,{[En]:[`ExpiredTokenException`,400],[In]:vn,[bn]:400},[An],[0]];Mn.registerError(m.ExpiredTokenException$,_n.ExpiredTokenException);m.IDPCommunicationErrorException$=[-3,Pn,_t,{[En]:[`IDPCommunicationError`,400],[In]:vn,[bn]:400},[An],[0]];Mn.registerError(m.IDPCommunicationErrorException$,_n.IDPCommunicationErrorException);m.IDPRejectedClaimException$=[-3,Pn,Mt,{[En]:[`IDPRejectedClaim`,403],[In]:vn,[bn]:403},[An],[0]];Mn.registerError(m.IDPRejectedClaimException$,_n.IDPRejectedClaimException);m.InvalidIdentityTokenException$=[-3,Pn,Lt,{[En]:[`InvalidIdentityToken`,400],[In]:vn,[bn]:400},[An],[0]];Mn.registerError(m.InvalidIdentityTokenException$,_n.InvalidIdentityTokenException);m.MalformedPolicyDocumentException$=[-3,Pn,qt,{[En]:[`MalformedPolicyDocument`,400],[In]:vn,[bn]:400},[An],[0]];Mn.registerError(m.MalformedPolicyDocumentException$,_n.MalformedPolicyDocumentException);m.PackedPolicyTooLargeException$=[-3,Pn,Zt,{[En]:[`PackedPolicyTooLarge`,400],[In]:vn,[bn]:400},[An],[0]];Mn.registerError(m.PackedPolicyTooLargeException$,_n.PackedPolicyTooLargeException);m.RegionDisabledException$=[-3,Pn,nn,{[En]:[`RegionDisabledException`,403],[In]:vn,[bn]:403},[An],[0]];Mn.registerError(m.RegionDisabledException$,_n.RegionDisabledException);m.errorTypeRegistries=[Dn,Mn];var $n=[0,Pn,Sn,8,0];var Nn=[0,Pn,Cn,8,0];m.AssumedRoleUser$=[3,Pn,ye,0,[le,C],[0,0],2];m.AssumeRoleRequest$=[3,Pn,fe,0,[tn,rn,zt,Gt,We,un,pn,Je,cn,dn,an,Wt],[0,0,()=>kn,0,1,()=>Fn,64|0,0,0,0,0,()=>Ln],2];m.AssumeRoleResponse$=[3,Pn,he,0,[ze,ye,Xt,an],[[()=>m.Credentials$,0],()=>m.AssumedRoleUser$,1,0]];m.AssumeRoleWithWebIdentityRequest$=[3,Pn,Le,0,[tn,rn,gn,Jt,zt,Gt,We],[0,0,[()=>Nn,0],0,()=>kn,0,1],3];m.AssumeRoleWithWebIdentityResponse$=[3,Pn,Ue,0,[ze,sn,ye,Xt,en,qe,an],[[()=>m.Credentials$,0],0,()=>m.AssumedRoleUser$,1,0,0,0]];m.Credentials$=[3,Pn,ze,0,[q,on,ln,Qe],[0,[()=>$n,0],0,4],4];m.PolicyDescriptorType$=[3,Pn,Qt,0,[yn],[0]];m.ProvidedContext$=[3,Pn,Yt,0,[Ht,He],[0,0]];m.Tag$=[3,Pn,mn,0,[Ut,hn],[0,0],2];var kn=[1,Pn,wn,0,()=>m.PolicyDescriptorType$];var Ln=[1,Pn,Kt,0,()=>m.ProvidedContext$];var Un=null&&64|0;var Fn=[1,Pn,Tn,0,()=>m.Tag$];m.AssumeRole$=[9,Pn,V,0,()=>m.AssumeRoleRequest$,()=>m.AssumeRoleResponse$];m.AssumeRoleWithWebIdentity$=[9,Pn,ve,0,()=>m.AssumeRoleWithWebIdentityRequest$,()=>m.AssumeRoleWithWebIdentityResponse$]},9285:(e,m,h)=>{var C=h(4205);var q=h(6477);const getAwsRegionExtensionConfiguration=e=>({setRegion(m){e.region=m},region(){return e.region}});const resolveAwsRegionExtensionConfiguration=e=>({region:e.region()});m.NODE_REGION_CONFIG_FILE_OPTIONS=q.NODE_REGION_CONFIG_FILE_OPTIONS;m.NODE_REGION_CONFIG_OPTIONS=q.NODE_REGION_CONFIG_OPTIONS;m.REGION_ENV_NAME=q.REGION_ENV_NAME;m.REGION_INI_NAME=q.REGION_INI_NAME;m.resolveRegionConfig=q.resolveRegionConfig;m.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;m.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=C[e]}))},4205:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.warning=void 0;m.stsRegionDefaultResolver=stsRegionDefaultResolver;const C=h(6477);const q=h(1125);function stsRegionDefaultResolver(e={}){return(0,q.loadConfig)({...C.NODE_REGION_CONFIG_OPTIONS,async default(){if(!m.warning.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}m.warning={silence:false}},222:(e,m,h)=>{var C=h(7078);var q=h(2097);var V=h(4036);var le=h(7016);var fe=h(3024);const fromEnvSigningName=({logger:e,signingName:m}={})=>async()=>{e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");if(!m){throw new V.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e})}const h=q.getBearerTokenEnvKey(m);if(!(h in process.env)){throw new V.TokenProviderError(`Token not present in '${h}' environment variable`,{logger:e})}const le={token:process.env[h]};C.setTokenFeature(le,"BEARER_SERVICE_ENV_VARS","3");return le};const he=5*60*1e3;const ye=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`;const getSsoOidcClient=async(e,m={},C)=>{const{SSOOIDCClient:q}=await h.e(578).then(h.t.bind(h,8578,23));const coalesce=e=>m.clientConfig?.[e]??m.parentClientConfig?.[e]??C?.[e];const V=new q(Object.assign({},m.clientConfig??{},{region:e??m.clientConfig?.region,logger:coalesce("logger"),userAgentAppId:coalesce("userAgentAppId")}));return V};const getNewSsoOidcToken=async(e,m,C={},q)=>{const{CreateTokenCommand:V}=await h.e(578).then(h.t.bind(h,8578,23));const le=await getSsoOidcClient(m,C,q);return le.send(new V({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};const validateTokenExpiry=e=>{if(e.expiration&&e.expiration.getTime()<Date.now()){throw new V.TokenProviderError(`Token is expired. ${ye}`,false)}};const validateTokenKey=(e,m,h=false)=>{if(typeof m==="undefined"){throw new V.TokenProviderError(`Value not present for '${e}' in SSO Token${h?". Cannot refresh":""}. ${ye}`,false)}};const{writeFile:ve}=fe.promises;const writeSSOTokenToFile=(e,m)=>{const h=le.getSSOTokenFilepath(e);const C=JSON.stringify(m,null,2);return ve(h,C)};const Le=new Date(0);const fromSso=(e={})=>async({callerClientConfig:m}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");const h=await le.parseKnownFiles(e);const C=le.getProfileName({profile:e.profile??m?.profile});const q=h[C];if(!q){throw new V.TokenProviderError(`Profile '${C}' could not be found in shared credentials file.`,false)}else if(!q["sso_session"]){throw new V.TokenProviderError(`Profile '${C}' is missing required property 'sso_session'.`)}const fe=q["sso_session"];const ve=await le.loadSsoSessionData(e);const Ue=ve[fe];if(!Ue){throw new V.TokenProviderError(`Sso session '${fe}' could not be found in shared credentials file.`,false)}for(const e of["sso_start_url","sso_region"]){if(!Ue[e]){throw new V.TokenProviderError(`Sso session '${fe}' is missing required property '${e}'.`,false)}}Ue["sso_start_url"];const qe=Ue["sso_region"];let ze;try{ze=await le.getSSOTokenFromFile(fe)}catch(e){throw new V.TokenProviderError(`The SSO session token associated with profile=${C} was not found or is invalid. ${ye}`,false)}validateTokenKey("accessToken",ze.accessToken);validateTokenKey("expiresAt",ze.expiresAt);const{accessToken:He,expiresAt:We}=ze;const Qe={token:He,expiration:new Date(We)};if(Qe.expiration.getTime()-Date.now()>he){return Qe}if(Date.now()-Le.getTime()<30*1e3){validateTokenExpiry(Qe);return Qe}validateTokenKey("clientId",ze.clientId,true);validateTokenKey("clientSecret",ze.clientSecret,true);validateTokenKey("refreshToken",ze.refreshToken,true);try{Le.setTime(Date.now());const h=await getNewSsoOidcToken(ze,qe,e,m);validateTokenKey("accessToken",h.accessToken);validateTokenKey("expiresIn",h.expiresIn);const C=new Date(Date.now()+h.expiresIn*1e3);try{await writeSSOTokenToFile(fe,{...ze,accessToken:h.accessToken,expiresAt:C.toISOString(),refreshToken:h.refreshToken})}catch(e){}return{token:h.accessToken,expiration:C}}catch(e){validateTokenExpiry(Qe);return Qe}};const fromStatic=({token:e,logger:m})=>async()=>{m?.debug("@aws-sdk/token-providers - fromStatic");if(!e||!e.token){throw new V.TokenProviderError(`Please pass a valid token to fromStatic`,false)}return e};const nodeProvider=(e={})=>V.memoize(V.chain(fromSso(e),(async()=>{throw new V.TokenProviderError("Could not load token from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));m.fromEnvSigningName=fromEnvSigningName;m.fromSso=fromSso;m.fromStatic=fromStatic;m.nodeProvider=nodeProvider},3237:(e,m,h)=>{var C=h(9356);var q=h(4418);const isVirtualHostableS3Bucket=(e,m=false)=>{if(m){for(const m of e.split(".")){if(!isVirtualHostableS3Bucket(m)){return false}}return true}if(!C.isValidHostLabel(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if(C.isIpAddress(e)){return false}return true};const V=":";const le="/";const parseArn=e=>{const m=e.split(V);if(m.length<6)return null;const[h,C,q,fe,he,...ye]=m;if(h!=="arn"||C===""||q===""||ye.join(V)==="")return null;const ve=ye.map((e=>e.split(le))).flat();return{partition:C,service:q,region:fe,accountId:he,resourceId:ve}};var fe=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}];var he="1.1";var ye={partitions:fe,version:he};let ve=ye;let Le="";const partition=e=>{const{partitions:m}=ve;for(const h of m){const{regions:m,outputs:C}=h;for(const[h,q]of Object.entries(m)){if(h===e){return{...C,...q}}}}for(const h of m){const{regionRegex:m,outputs:C}=h;if(new RegExp(m).test(e)){return{...C}}}const h=m.find((e=>e.id==="aws"));if(!h){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...h.outputs}};const setPartitionInfo=(e,m="")=>{ve=e;Le=m};const useDefaultPartitionInfo=()=>{setPartitionInfo(ye,"")};const getUserAgentPrefix=()=>Le;const Ue={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};C.customEndpointFunctions.aws=Ue;const resolveDefaultAwsRegionalEndpointsConfig=e=>{if(typeof e.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:m}=e;if(m===undefined){e.endpoint=async()=>toEndpointV1(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:undefined},{logger:e.logger}))}return e};const toEndpointV1=e=>q.parseUrl(e.url);m.EndpointError=C.EndpointError;m.isIpAddress=C.isIpAddress;m.resolveEndpoint=C.resolveEndpoint;m.awsEndpointFunctions=Ue;m.getUserAgentPrefix=getUserAgentPrefix;m.partition=partition;m.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;m.setPartitionInfo=setPartitionInfo;m.toEndpointV1=toEndpointV1;m.useDefaultPartitionInfo=useDefaultPartitionInfo},3832:(e,m,h)=>{var C=h(8161);var q=h(1708);var V=h(7883);var le=h(1455);var fe=h(6760);var he=h(8374);const getRuntimeUserAgentPair=()=>{const e=["deno","bun","llrt"];for(const m of e){if(q.versions[m]){return[`md/${m}`,q.versions[m]]}}return["md/nodejs",q.versions.node]};const getNodeModulesParentDirs=e=>{const m=process.cwd();if(!e){return[m]}const h=fe.normalize(e);const C=h.split(fe.sep);const q=C.indexOf("node_modules");const V=q!==-1?C.slice(0,q).join(fe.sep):h;if(m===V){return[m]}return[V,m]};const ye=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;const getSanitizedTypeScriptVersion=(e="")=>{const m=e.match(ye);if(!m){return undefined}const[h,C,q,V]=[m[1],m[2],m[3],m[4]];return V?`${h}.${C}.${q}-${V}`:`${h}.${C}.${q}`};const ve=["^","~",">=","<=",">","<"];const Le=["latest","beta","dev","rc","insiders","next"];const getSanitizedDevTypeScriptVersion=(e="")=>{if(Le.includes(e)){return e}const m=ve.find((m=>e.startsWith(m)))??"";const h=getSanitizedTypeScriptVersion(e.slice(m.length));if(!h){return undefined}return`${m}${h}`};let Ue;const qe=fe.join("node_modules","typescript","package.json");const getTypeScriptUserAgentPair=async()=>{if(Ue===null){return undefined}else if(typeof Ue==="string"){return["md/tsc",Ue]}let e=false;try{e=V.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",V.SelectorType.ENV)||false}catch{}if(e){Ue=null;return undefined}const m=typeof __dirname!=="undefined"?__dirname:undefined;const h=getNodeModulesParentDirs(m);let C;for(const e of h){try{const m=fe.join(e,"package.json");const h=await le.readFile(m,"utf-8");const{dependencies:q,devDependencies:V}=JSON.parse(h);const he=V?.typescript??q?.typescript;if(typeof he!=="string"){continue}C=he;break}catch{}}if(!C){Ue=null;return undefined}let q;for(const e of h){try{const m=fe.join(e,qe);const h=await le.readFile(m,"utf-8");const{version:C}=JSON.parse(h);const V=getSanitizedTypeScriptVersion(C);if(typeof V!=="string"){continue}q=V;break}catch{}}if(q){Ue=q;return["md/tsc",Ue]}const he=getSanitizedDevTypeScriptVersion(C);if(typeof he!=="string"){Ue=null;return undefined}Ue=`dev_${he}`;return["md/tsc",Ue]};const ze={isCrtAvailable:false};const isCrtAvailable=()=>{if(ze.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:e,clientVersion:m})=>{const h=getRuntimeUserAgentPair();return async V=>{const le=[["aws-sdk-js",m],["ua","2.1"],[`os/${C.platform()}`,C.release()],["lang/js"],h];const fe=await getTypeScriptUserAgentPair();if(fe){le.push(fe)}const he=isCrtAvailable();if(he){le.push(he)}if(e){le.push([`api/${e}`,m])}if(q.env.AWS_EXECUTION_ENV){le.push([`exec-env/${q.env.AWS_EXECUTION_ENV}`])}const ye=await(V?.userAgentAppId?.());const ve=ye?[...le,[`app/${ye}`]]:[...le];return ve}};const He=createDefaultUserAgentProvider;const We="AWS_SDK_UA_APP_ID";const Qe="sdk_ua_app_id";const Je="sdk-ua-app-id";const It={environmentVariableSelector:e=>e[We],configFileSelector:e=>e[Qe]??e[Je],default:he.DEFAULT_UA_APP_ID};m.NODE_APP_ID_CONFIG_OPTIONS=It;m.UA_APP_ID_ENV_NAME=We;m.UA_APP_ID_INI_NAME=Qe;m.createDefaultUserAgentProvider=createDefaultUserAgentProvider;m.crtAvailability=ze;m.defaultUserAgent=He},452:(e,m,h)=>{var C=h(1021);const q=/[&<>"]/g;const V={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(e){return e.replace(q,(e=>V[e]))}const le=/[&"'<>\r\n\u0085\u2028]/g;const fe={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","…":"…","\u2028":"
"};function escapeElement(e){return e.replace(le,(e=>fe[e]))}class XmlText{value;constructor(e){this.value=e}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(e,m,h){const C=new XmlNode(e);if(m!==undefined){C.addChildNode(new XmlText(m))}if(h!==undefined){C.withName(h)}return C}constructor(e,m=[]){this.name=e;this.children=m}withName(e){this.name=e;return this}addAttribute(e,m){this.attributes[e]=m;return this}addChildNode(e){this.children.push(e);return this}removeAttribute(e){delete this.attributes[e];return this}n(e){this.name=e;return this}c(e){this.children.push(e);return this}a(e,m){if(m!=null){this.attributes[e]=m}return this}cc(e,m,h=m){if(e[m]!=null){const C=XmlNode.of(m,e[m]).withName(h);this.c(C)}}l(e,m,h,C){if(e[m]!=null){const e=C();e.map((e=>{e.withName(h);this.c(e)}))}}lc(e,m,h,C){if(e[m]!=null){const e=C();const m=new XmlNode(h);e.map((e=>{m.c(e)}));this.c(m)}}toString(){const e=Boolean(this.children.length);let m=`<${this.name}`;const h=this.attributes;for(const e of Object.keys(h)){const C=h[e];if(C!=null){m+=` ${e}="${escapeAttribute(""+C)}"`}}return m+=!e?"/>":`>${this.children.map((e=>e.toString())).join("")}</${this.name}>`}}m.parseXML=C.parseXML;m.XmlNode=XmlNode;m.XmlText=XmlText},1021:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.parseXML=parseXML;const C=h(4608);const q=new C.XMLParser({attributeNamePrefix:"",processEntities:{enabled:true,maxTotalExpansions:Infinity},htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,m)=>m.trim()===""&&m.includes("\n")?"":undefined,maxNestedTags:Infinity});q.addEntity("#xD","\r");q.addEntity("#10","\n");function parseXML(e){return q.parse(e,true)}},6477:(e,m,h)=>{var C=h(7883);var q=h(5496);var V=h(9356);const le="AWS_USE_DUALSTACK_ENDPOINT";const fe="use_dualstack_endpoint";const he=false;const ye={environmentVariableSelector:e=>C.booleanSelector(e,le,C.SelectorType.ENV),configFileSelector:e=>C.booleanSelector(e,fe,C.SelectorType.CONFIG),default:false};const ve={environmentVariableSelector:e=>C.booleanSelector(e,le,C.SelectorType.ENV),configFileSelector:e=>C.booleanSelector(e,fe,C.SelectorType.CONFIG),default:undefined};const Le="AWS_USE_FIPS_ENDPOINT";const Ue="use_fips_endpoint";const qe=false;const ze={environmentVariableSelector:e=>C.booleanSelector(e,Le,C.SelectorType.ENV),configFileSelector:e=>C.booleanSelector(e,Ue,C.SelectorType.CONFIG),default:false};const He={environmentVariableSelector:e=>C.booleanSelector(e,Le,C.SelectorType.ENV),configFileSelector:e=>C.booleanSelector(e,Ue,C.SelectorType.CONFIG),default:undefined};const resolveCustomEndpointsConfig=e=>{const{tls:m,endpoint:h,urlParser:C,useDualstackEndpoint:V}=e;return Object.assign(e,{tls:m??true,endpoint:q.normalizeProvider(typeof h==="string"?C(h):h),isCustomEndpoint:true,useDualstackEndpoint:q.normalizeProvider(V??false)})};const getEndpointFromRegion=async e=>{const{tls:m=true}=e;const h=await e.region();const C=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!C.test(h)){throw new Error("Invalid region in client config")}const q=await e.useDualstackEndpoint();const V=await e.useFipsEndpoint();const{hostname:le}=await e.regionInfoProvider(h,{useDualstackEndpoint:q,useFipsEndpoint:V})??{};if(!le){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${m?"https:":"http:"}//${le}`)};const resolveEndpointsConfig=e=>{const m=q.normalizeProvider(e.useDualstackEndpoint??false);const{endpoint:h,useFipsEndpoint:C,urlParser:V,tls:le}=e;return Object.assign(e,{tls:le??true,endpoint:h?q.normalizeProvider(typeof h==="string"?V(h):h):()=>getEndpointFromRegion({...e,useDualstackEndpoint:m,useFipsEndpoint:C}),isCustomEndpoint:!!h,useDualstackEndpoint:m})};const We="AWS_REGION";const Qe="region";const Je={environmentVariableSelector:e=>e[We],configFileSelector:e=>e[Qe],default:()=>{throw new Error("Region is missing")}};const It={preferredFile:"credentials"};const _t=new Set;const checkRegion=(e,m=V.isValidHostLabel)=>{if(!_t.has(e)&&!m(e)){if(e==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`)}}else{_t.add(e)}};const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));const getRealRegion=e=>isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const resolveRegionConfig=e=>{const{region:m,useFipsEndpoint:h}=e;if(!m){throw new Error("Region is missing")}return Object.assign(e,{region:async()=>{const e=typeof m==="function"?await m():m;const h=getRealRegion(e);checkRegion(h);return h},useFipsEndpoint:async()=>{const e=typeof m==="string"?m:await m();if(isFipsRegion(e)){return true}return typeof h!=="function"?Promise.resolve(!!h):h()}})};const getHostnameFromVariants=(e=[],{useFipsEndpoint:m,useDualstackEndpoint:h})=>e.find((({tags:e})=>m===e.includes("fips")&&h===e.includes("dualstack")))?.hostname;const getResolvedHostname=(e,{regionHostname:m,partitionHostname:h})=>m?m:h?h.replace("{region}",e):undefined;const getResolvedPartition=(e,{partitionHash:m})=>Object.keys(m||{}).find((h=>m[h].regions.includes(e)))??"aws";const getResolvedSigningRegion=(e,{signingRegion:m,regionRegex:h,useFipsEndpoint:C})=>{if(m){return m}else if(C){const m=h.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const C=e.match(m);if(C){return C[0].slice(1,-1)}}};const getRegionInfo=(e,{useFipsEndpoint:m=false,useDualstackEndpoint:h=false,signingService:C,regionHash:q,partitionHash:V})=>{const le=getResolvedPartition(e,{partitionHash:V});const fe=e in q?e:V[le]?.endpoint??e;const he={useFipsEndpoint:m,useDualstackEndpoint:h};const ye=getHostnameFromVariants(q[fe]?.variants,he);const ve=getHostnameFromVariants(V[le]?.variants,he);const Le=getResolvedHostname(fe,{regionHostname:ye,partitionHostname:ve});if(Le===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:fe,useFipsEndpoint:m,useDualstackEndpoint:h}}`)}const Ue=getResolvedSigningRegion(Le,{signingRegion:q[fe]?.signingRegion,regionRegex:V[le].regionRegex,useFipsEndpoint:m});return{partition:le,signingService:C,hostname:Le,...Ue&&{signingRegion:Ue},...q[fe]?.signingService&&{signingService:q[fe].signingService}}};m.CONFIG_USE_DUALSTACK_ENDPOINT=fe;m.CONFIG_USE_FIPS_ENDPOINT=Ue;m.DEFAULT_USE_DUALSTACK_ENDPOINT=he;m.DEFAULT_USE_FIPS_ENDPOINT=qe;m.ENV_USE_DUALSTACK_ENDPOINT=le;m.ENV_USE_FIPS_ENDPOINT=Le;m.NODE_REGION_CONFIG_FILE_OPTIONS=It;m.NODE_REGION_CONFIG_OPTIONS=Je;m.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=ye;m.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=ze;m.REGION_ENV_NAME=We;m.REGION_INI_NAME=Qe;m.getRegionInfo=getRegionInfo;m.nodeDualstackConfigSelectors=ve;m.nodeFipsConfigSelectors=He;m.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;m.resolveEndpointsConfig=resolveEndpointsConfig;m.resolveRegionConfig=resolveRegionConfig},4918:(e,m,h)=>{var C=h(5674);var q=h(5496);var V=h(9228);var le=h(5770);const getSmithyContext=e=>e[C.SMITHY_CONTEXT_KEY]||(e[C.SMITHY_CONTEXT_KEY]={});const resolveAuthOptions=(e,m)=>{if(!m||m.length===0){return e}const h=[];for(const C of m){for(const m of e){const e=m.schemeId.split("#")[1];if(e===C){h.push(m)}}}for(const m of e){if(!h.find((({schemeId:e})=>e===m.schemeId))){h.push(m)}}return h};function convertHttpAuthSchemesToMap(e){const m=new Map;for(const h of e){m.set(h.schemeId,h)}return m}const httpAuthSchemeMiddleware=(e,m)=>(h,C)=>async V=>{const le=e.httpAuthSchemeProvider(await m.httpAuthSchemeParametersProvider(e,C,V.input));const fe=e.authSchemePreference?await e.authSchemePreference():[];const he=resolveAuthOptions(le,fe);const ye=convertHttpAuthSchemesToMap(e.httpAuthSchemes);const ve=q.getSmithyContext(C);const Le=[];for(const h of he){const q=ye.get(h.schemeId);if(!q){Le.push(`HttpAuthScheme \`${h.schemeId}\` was not enabled for this service.`);continue}const V=q.identityProvider(await m.identityProviderConfigProvider(e));if(!V){Le.push(`HttpAuthScheme \`${h.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:le={},signingProperties:fe={}}=h.propertiesExtractor?.(e,C)||{};h.identityProperties=Object.assign(h.identityProperties||{},le);h.signingProperties=Object.assign(h.signingProperties||{},fe);ve.selectedHttpAuthScheme={httpAuthOption:h,identity:await V(h.identityProperties),signer:q.signer};break}if(!ve.selectedHttpAuthScheme){throw new Error(Le.join("\n"))}return h(V)};const fe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(e,{httpAuthSchemeParametersProvider:m,identityProviderConfigProvider:h})=>({applyToStack:C=>{C.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:m,identityProviderConfigProvider:h}),fe)}});const he={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"serializerMiddleware"};const getHttpAuthSchemePlugin=(e,{httpAuthSchemeParametersProvider:m,identityProviderConfigProvider:h})=>({applyToStack:C=>{C.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:m,identityProviderConfigProvider:h}),he)}});const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,m)=>{};const httpSigningMiddleware=e=>(e,m)=>async h=>{if(!V.HttpRequest.isInstance(h.request)){return e(h)}const C=q.getSmithyContext(m);const le=C.selectedHttpAuthScheme;if(!le){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:fe={}},identity:he,signer:ye}=le;const ve=await e({...h,request:await ye.sign(h.request,he,fe)}).catch((ye.errorHandler||defaultErrorHandler)(fe));(ye.successHandler||defaultSuccessHandler)(ve.response,fe);return ve};const ye={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=e=>({applyToStack:e=>{e.addRelativeTo(httpSigningMiddleware(),ye)}});const normalizeProvider=e=>{if(typeof e==="function")return e;const m=Promise.resolve(e);return()=>m};const makePagedClientRequest=async(e,m,h,C=e=>e,...q)=>{let V=new e(h);V=C(V)??V;return await m.send(V,...q)};function createPaginator(e,m,h,C,q){return async function*paginateOperation(V,le,...fe){const he=le;let ye=V.startingToken??he[h];let ve=true;let Le;while(ve){he[h]=ye;if(q){he[q]=he[q]??V.pageSize}if(V.client instanceof e){Le=await makePagedClientRequest(m,V.client,le,V.withCommand,...fe)}else{throw new Error(`Invalid client, expected instance of ${e.name}`)}yield Le;const Ue=ye;ye=get(Le,C);ve=!!(ye&&(!V.stopOnSameToken||ye!==Ue))}return undefined}}const get=(e,m)=>{let h=e;const C=m.split(".");for(const e of C){if(!h||typeof h!=="object"){return undefined}h=h[e]}return h};function setFeature(e,m,h){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[m]=h}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(e){for(const[m,h]of Object.entries(e)){if(h!==undefined){this.authSchemes.set(m,h)}}}getIdentityProvider(e){return this.authSchemes.get(e)}}class HttpApiKeyAuthSigner{async sign(e,m,h){if(!h){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!h.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!h.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!m.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const q=V.HttpRequest.clone(e);if(h.in===C.HttpApiKeyAuthLocation.QUERY){q.query[h.name]=m.apiKey}else if(h.in===C.HttpApiKeyAuthLocation.HEADER){q.headers[h.name]=h.scheme?`${h.scheme} ${m.apiKey}`:m.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+h.in+"`")}return q}}class HttpBearerAuthSigner{async sign(e,m,h){const C=V.HttpRequest.clone(e);if(!m.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}C.headers["Authorization"]=`Bearer ${m.token}`;return C}}class NoAuthSigner{async sign(e,m,h){return e}}const createIsIdentityExpiredFunction=e=>function isIdentityExpired(m){return doesIdentityRequireRefresh(m)&&m.expiration.getTime()-Date.now()<e};const ve=3e5;const Le=createIsIdentityExpiredFunction(ve);const doesIdentityRequireRefresh=e=>e.expiration!==undefined;const memoizeIdentityProvider=(e,m,h)=>{if(e===undefined){return undefined}const C=typeof e!=="function"?async()=>Promise.resolve(e):e;let q;let V;let le;let fe=false;const coalesceProvider=async e=>{if(!V){V=C(e)}try{q=await V;le=true;fe=false}finally{V=undefined}return q};if(m===undefined){return async e=>{if(!le||e?.forceRefresh){q=await coalesceProvider(e)}return q}}return async e=>{if(!le||e?.forceRefresh){q=await coalesceProvider(e)}if(fe){return q}if(!h(q)){fe=true;return q}if(m(q)){await coalesceProvider(e);return q}return q}};m.requestBuilder=le.requestBuilder;m.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;m.EXPIRATION_MS=ve;m.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;m.HttpBearerAuthSigner=HttpBearerAuthSigner;m.NoAuthSigner=NoAuthSigner;m.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;m.createPaginator=createPaginator;m.doesIdentityRequireRefresh=doesIdentityRequireRefresh;m.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;m.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;m.getHttpSigningPlugin=getHttpSigningPlugin;m.getSmithyContext=getSmithyContext;m.httpAuthSchemeEndpointRuleSetMiddlewareOptions=fe;m.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;m.httpAuthSchemeMiddlewareOptions=he;m.httpSigningMiddleware=httpSigningMiddleware;m.httpSigningMiddlewareOptions=ye;m.isIdentityExpired=Le;m.memoizeIdentityProvider=memoizeIdentityProvider;m.normalizeProvider=normalizeProvider;m.setFeature=setFeature},7657:(e,m,h)=>{var C=h(8682);var q=h(8165);var V=h(5770);var le=h(9228);var fe=h(3063);var he=h(2566);var ye=h(5496);var ve=h(3158);const Le=0;const Ue=1;const qe=2;const ze=3;const He=4;const We=5;const Qe=6;const Je=7;const It=20;const _t=21;const Mt=22;const Lt=23;const Ut=24;const qt=25;const Gt=26;const zt=27;const Ht=31;function alloc(e){return typeof Buffer!=="undefined"?Buffer.alloc(e):new Uint8Array(e)}const Wt=Symbol("@smithy/core/cbor::tagSymbol");function tag(e){e[Wt]=true;return e}const Kt=typeof TextDecoder!=="undefined";const Yt=typeof Buffer!=="undefined";let Qt=alloc(0);let Jt=new DataView(Qt.buffer,Qt.byteOffset,Qt.byteLength);const Xt=Kt?new TextDecoder:null;let Zt=0;function setPayload(e){Qt=e;Jt=new DataView(Qt.buffer,Qt.byteOffset,Qt.byteLength)}function decode(e,m){if(e>=m){throw new Error("unexpected end of (decode) payload.")}const h=(Qt[e]&224)>>5;const q=Qt[e]&31;switch(h){case Le:case Ue:case Qe:let V;let le;if(q<24){V=q;le=1}else{switch(q){case Ut:case qt:case Gt:case zt:const h=en[q];const C=h+1;le=C;if(m-e<C){throw new Error(`countLength ${h} greater than remaining buf len.`)}const fe=e+1;if(h===1){V=Qt[fe]}else if(h===2){V=Jt.getUint16(fe)}else if(h===4){V=Jt.getUint32(fe)}else{V=Jt.getBigUint64(fe)}break;default:throw new Error(`unexpected minor value ${q}.`)}}if(h===Le){Zt=le;return castBigInt(V)}else if(h===Ue){let e;if(typeof V==="bigint"){e=BigInt(-1)-V}else{e=-1-V}Zt=le;return castBigInt(e)}else{if(q===2||q===3){const h=decodeCount(e+le,m);let C=BigInt(0);const V=e+le+Zt;for(let e=V;e<V+h;++e){C=C<<BigInt(8)|BigInt(Qt[e])}Zt=le+Zt+h;return q===3?-C-BigInt(1):C}else if(q===4){const h=decode(e+le,m);const[q,V]=h;const fe=V<0?-1:1;const he="0".repeat(Math.abs(q)+1)+String(BigInt(fe)*BigInt(V));let ye;const ve=V<0?"-":"";ye=q===0?he:he.slice(0,he.length+q)+"."+he.slice(q);ye=ye.replace(/^0+/g,"");if(ye===""){ye="0"}if(ye[0]==="."){ye="0"+ye}ye=ve+ye;Zt=le+Zt;return C.nv(ye)}else{const h=decode(e+le,m);const C=Zt;Zt=le+C;return tag({tag:castBigInt(V),value:h})}}case ze:case We:case He:case qe:if(q===Ht){switch(h){case ze:return decodeUtf8StringIndefinite(e,m);case We:return decodeMapIndefinite(e,m);case He:return decodeListIndefinite(e,m);case qe:return decodeUnstructuredByteStringIndefinite(e,m)}}else{switch(h){case ze:return decodeUtf8String(e,m);case We:return decodeMap(e,m);case He:return decodeList(e,m);case qe:return decodeUnstructuredByteString(e,m)}}default:return decodeSpecial(e,m)}}function bytesToUtf8(e,m,h){if(Yt&&e.constructor?.name==="Buffer"){return e.toString("utf-8",m,h)}if(Xt){return Xt.decode(e.subarray(m,h))}return q.toUtf8(e.subarray(m,h))}function demote(e){const m=Number(e);if(m<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<m){console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${e}) to ${m} with loss of precision.`))}return m}const en={[Ut]:1,[qt]:2,[Gt]:4,[zt]:8};function bytesToFloat16(e,m){const h=e>>7;const C=(e&124)>>2;const q=(e&3)<<8|m;const V=h===0?1:-1;let le;let fe;if(C===0){if(q===0){return 0}else{le=Math.pow(2,1-15);fe=0}}else if(C===31){if(q===0){return V*Infinity}else{return NaN}}else{le=Math.pow(2,C-15);fe=1}fe+=q/1024;return V*(le*fe)}function decodeCount(e,m){const h=Qt[e]&31;if(h<24){Zt=1;return h}if(h===Ut||h===qt||h===Gt||h===zt){const C=en[h];Zt=C+1;if(m-e<Zt){throw new Error(`countLength ${C} greater than remaining buf len.`)}const q=e+1;if(C===1){return Qt[q]}else if(C===2){return Jt.getUint16(q)}else if(C===4){return Jt.getUint32(q)}return demote(Jt.getBigUint64(q))}throw new Error(`unexpected minor value ${h}.`)}function decodeUtf8String(e,m){const h=decodeCount(e,m);const C=Zt;e+=C;if(m-e<h){throw new Error(`string len ${h} greater than remaining buf len.`)}const q=bytesToUtf8(Qt,e,e+h);Zt=C+h;return q}function decodeUtf8StringIndefinite(e,m){e+=1;const h=[];for(const C=e;e<m;){if(Qt[e]===255){const m=alloc(h.length);m.set(h,0);Zt=e-C+2;return bytesToUtf8(m,0,m.length)}const q=(Qt[e]&224)>>5;const V=Qt[e]&31;if(q!==ze){throw new Error(`unexpected major type ${q} in indefinite string.`)}if(V===Ht){throw new Error("nested indefinite string.")}const le=decodeUnstructuredByteString(e,m);const fe=Zt;e+=fe;for(let e=0;e<le.length;++e){h.push(le[e])}}throw new Error("expected break marker.")}function decodeUnstructuredByteString(e,m){const h=decodeCount(e,m);const C=Zt;e+=C;if(m-e<h){throw new Error(`unstructured byte string len ${h} greater than remaining buf len.`)}const q=Qt.subarray(e,e+h);Zt=C+h;return q}function decodeUnstructuredByteStringIndefinite(e,m){e+=1;const h=[];for(const C=e;e<m;){if(Qt[e]===255){const m=alloc(h.length);m.set(h,0);Zt=e-C+2;return m}const q=(Qt[e]&224)>>5;const V=Qt[e]&31;if(q!==qe){throw new Error(`unexpected major type ${q} in indefinite string.`)}if(V===Ht){throw new Error("nested indefinite string.")}const le=decodeUnstructuredByteString(e,m);const fe=Zt;e+=fe;for(let e=0;e<le.length;++e){h.push(le[e])}}throw new Error("expected break marker.")}function decodeList(e,m){const h=decodeCount(e,m);const C=Zt;e+=C;const q=e;const V=Array(h);for(let C=0;C<h;++C){const h=decode(e,m);const q=Zt;V[C]=h;e+=q}Zt=C+(e-q);return V}function decodeListIndefinite(e,m){e+=1;const h=[];for(const C=e;e<m;){if(Qt[e]===255){Zt=e-C+2;return h}const q=decode(e,m);const V=Zt;e+=V;h.push(q)}throw new Error("expected break marker.")}function decodeMap(e,m){const h=decodeCount(e,m);const C=Zt;e+=C;const q=e;const V={};for(let C=0;C<h;++C){if(e>=m){throw new Error("unexpected end of map payload.")}const h=(Qt[e]&224)>>5;if(h!==ze){throw new Error(`unexpected major type ${h} for map key at index ${e}.`)}const C=decode(e,m);e+=Zt;const q=decode(e,m);e+=Zt;V[C]=q}Zt=C+(e-q);return V}function decodeMapIndefinite(e,m){e+=1;const h=e;const C={};for(;e<m;){if(e>=m){throw new Error("unexpected end of map payload.")}if(Qt[e]===255){Zt=e-h+2;return C}const q=(Qt[e]&224)>>5;if(q!==ze){throw new Error(`unexpected major type ${q} for map key.`)}const V=decode(e,m);e+=Zt;const le=decode(e,m);e+=Zt;C[V]=le}throw new Error("expected break marker.")}function decodeSpecial(e,m){const h=Qt[e]&31;switch(h){case _t:case It:Zt=1;return h===_t;case Mt:Zt=1;return null;case Lt:Zt=1;return null;case qt:if(m-e<3){throw new Error("incomplete float16 at end of buf.")}Zt=3;return bytesToFloat16(Qt[e+1],Qt[e+2]);case Gt:if(m-e<5){throw new Error("incomplete float32 at end of buf.")}Zt=5;return Jt.getFloat32(e+1);case zt:if(m-e<9){throw new Error("incomplete float64 at end of buf.")}Zt=9;return Jt.getFloat64(e+1);default:throw new Error(`unexpected minor value ${h}.`)}}function castBigInt(e){if(typeof e==="number"){return e}const m=Number(e);if(Number.MIN_SAFE_INTEGER<=m&&m<=Number.MAX_SAFE_INTEGER){return m}return e}const tn=typeof Buffer!=="undefined";const nn=2048;let rn=alloc(nn);let on=new DataView(rn.buffer,rn.byteOffset,rn.byteLength);let sn=0;function ensureSpace(e){const m=rn.byteLength-sn;if(m<e){if(sn<16e6){resize(Math.max(rn.byteLength*4,rn.byteLength+e))}else{resize(rn.byteLength+e+16e6)}}}function toUint8Array(){const e=alloc(sn);e.set(rn.subarray(0,sn),0);sn=0;return e}function resize(e){const m=rn;rn=alloc(e);if(m){if(m.copy){m.copy(rn,0,0,m.byteLength)}else{rn.set(m,0)}}on=new DataView(rn.buffer,rn.byteOffset,rn.byteLength)}function encodeHeader(e,m){if(m<24){rn[sn++]=e<<5|m}else if(m<1<<8){rn[sn++]=e<<5|24;rn[sn++]=m}else if(m<1<<16){rn[sn++]=e<<5|qt;on.setUint16(sn,m);sn+=2}else if(m<2**32){rn[sn++]=e<<5|Gt;on.setUint32(sn,m);sn+=4}else{rn[sn++]=e<<5|zt;on.setBigUint64(sn,typeof m==="bigint"?m:BigInt(m));sn+=8}}function encode(e){const m=[e];while(m.length){const e=m.pop();ensureSpace(typeof e==="string"?e.length*4:64);if(typeof e==="string"){if(tn){encodeHeader(ze,Buffer.byteLength(e));sn+=rn.write(e,sn)}else{const m=q.fromUtf8(e);encodeHeader(ze,m.byteLength);rn.set(m,sn);sn+=m.byteLength}continue}else if(typeof e==="number"){if(Number.isInteger(e)){const m=e>=0;const h=m?Le:Ue;const C=m?e:-e-1;if(C<24){rn[sn++]=h<<5|C}else if(C<256){rn[sn++]=h<<5|24;rn[sn++]=C}else if(C<65536){rn[sn++]=h<<5|qt;rn[sn++]=C>>8;rn[sn++]=C}else if(C<4294967296){rn[sn++]=h<<5|Gt;on.setUint32(sn,C);sn+=4}else{rn[sn++]=h<<5|zt;on.setBigUint64(sn,BigInt(C));sn+=8}continue}rn[sn++]=Je<<5|zt;on.setFloat64(sn,e);sn+=8;continue}else if(typeof e==="bigint"){const m=e>=0;const h=m?Le:Ue;const C=m?e:-e-BigInt(1);const q=Number(C);if(q<24){rn[sn++]=h<<5|q}else if(q<256){rn[sn++]=h<<5|24;rn[sn++]=q}else if(q<65536){rn[sn++]=h<<5|qt;rn[sn++]=q>>8;rn[sn++]=q&255}else if(q<4294967296){rn[sn++]=h<<5|Gt;on.setUint32(sn,q);sn+=4}else if(C<BigInt("18446744073709551616")){rn[sn++]=h<<5|zt;on.setBigUint64(sn,C);sn+=8}else{const e=C.toString(2);const h=new Uint8Array(Math.ceil(e.length/8));let q=C;let V=0;while(h.byteLength-++V>=0){h[h.byteLength-V]=Number(q&BigInt(255));q>>=BigInt(8)}ensureSpace(h.byteLength*2);rn[sn++]=m?194:195;if(tn){encodeHeader(qe,Buffer.byteLength(h))}else{encodeHeader(qe,h.byteLength)}rn.set(h,sn);sn+=h.byteLength}continue}else if(e===null){rn[sn++]=Je<<5|Mt;continue}else if(typeof e==="boolean"){rn[sn++]=Je<<5|(e?_t:It);continue}else if(typeof e==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(e)){for(let h=e.length-1;h>=0;--h){m.push(e[h])}encodeHeader(He,e.length);continue}else if(typeof e.byteLength==="number"){ensureSpace(e.length*2);encodeHeader(qe,e.length);rn.set(e,sn);sn+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof C.NumericValue){const h=e.string.indexOf(".");const C=h===-1?0:h-e.string.length+1;const q=BigInt(e.string.replace(".",""));rn[sn++]=196;m.push(q);m.push(C);encodeHeader(He,2);continue}if(e[Wt]){if("tag"in e&&"value"in e){m.push(e.value);encodeHeader(Qe,e.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e))}}const h=Object.keys(e);for(let C=h.length-1;C>=0;--C){const q=h[C];m.push(e[q]);m.push(q)}encodeHeader(We,h.length);continue}throw new Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}const an={deserialize(e){setPayload(e);return decode(0,e.length)},serialize(e){try{encode(e);return toUint8Array()}catch(e){toUint8Array();throw e}},resizeEncodingBuffer(e){resize(e)}};const parseCborBody=(e,m)=>V.collectBody(e,m).then((async e=>{if(e.length){try{return an.deserialize(e)}catch(h){Object.defineProperty(h,"$responseBodyText",{value:m.utf8Encoder(e)});throw h}}return{}}));const dateToTag=e=>tag({tag:1,value:e.getTime()/1e3});const parseCborErrorBody=async(e,m)=>{const h=await parseCborBody(e,m);h.message=h.message??h.Message;return h};const loadSmithyRpcV2CborErrorCode=(e,m)=>{const sanitizeErrorCode=e=>{let m=e;if(typeof m==="number"){m=m.toString()}if(m.indexOf(",")>=0){m=m.split(",")[0]}if(m.indexOf(":")>=0){m=m.split(":")[0]}if(m.indexOf("#")>=0){m=m.split("#")[1]}return m};if(m["__type"]!==undefined){return sanitizeErrorCode(m["__type"])}const h=Object.keys(m).find((e=>e.toLowerCase()==="code"));if(h&&m[h]!==undefined){return sanitizeErrorCode(m[h])}};const checkCborResponse=e=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)}};const buildHttpRpcRequest=async(e,m,h,C,q)=>{const V=await e.endpoint();const{hostname:he,protocol:ye="https",port:ve,path:Le}=V;const Ue={protocol:ye,hostname:he,port:ve,method:"POST",path:Le.endsWith("/")?Le.slice(0,-1)+h:Le+h,headers:{...m}};if(C!==undefined){Ue.hostname=C}if(V.headers){for(const[e,m]of Object.entries(V.headers)){Ue.headers[e]=m}}if(q!==undefined){Ue.body=q;try{Ue.headers["content-length"]=String(fe.calculateBodyLength(q))}catch(e){}}return new le.HttpRequest(Ue)};class CborCodec extends V.SerdeContext{createSerializer(){const e=new CborShapeSerializer;e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new CborShapeDeserializer;e.setSerdeContext(this.serdeContext);return e}}class CborShapeSerializer extends V.SerdeContext{value;write(e,m){this.value=this.serialize(e,m)}serialize(e,m){const h=he.NormalizedSchema.of(e);if(m==null){if(h.isIdempotencyToken()){return C.generateIdempotencyToken()}return m}if(h.isBlobSchema()){if(typeof m==="string"){return(this.serdeContext?.base64Decoder??ve.fromBase64)(m)}return m}if(h.isTimestampSchema()){if(typeof m==="number"||typeof m==="bigint"){return dateToTag(new Date(Number(m)/1e3|0))}return dateToTag(m)}if(typeof m==="function"||typeof m==="object"){const e=m;if(h.isListSchema()&&Array.isArray(e)){const m=!!h.getMergedTraits().sparse;const C=[];let q=0;for(const V of e){const e=this.serialize(h.getValueSchema(),V);if(e!=null||m){C[q++]=e}}return C}if(e instanceof Date){return dateToTag(e)}const C={};if(h.isMapSchema()){const m=!!h.getMergedTraits().sparse;for(const q of Object.keys(e)){const V=this.serialize(h.getValueSchema(),e[q]);if(V!=null||m){C[q]=V}}}else if(h.isStructSchema()){for(const[m,q]of h.structIterator()){const h=this.serialize(q,e[m]);if(h!=null){C[m]=h}}const m=h.isUnionSchema();if(m&&Array.isArray(e.$unknown)){const[m,h]=e.$unknown;C[m]=h}else if(typeof e.__type==="string"){for(const[m,h]of Object.entries(e)){if(!(m in C)){C[m]=this.serialize(15,h)}}}}else if(h.isDocumentSchema()){for(const m of Object.keys(e)){C[m]=this.serialize(h.getValueSchema(),e[m])}}else if(h.isBigDecimalSchema()){return e}return C}return m}flush(){const e=an.serialize(this.value);this.value=undefined;return e}}class CborShapeDeserializer extends V.SerdeContext{read(e,m){const h=an.deserialize(m);return this.readValue(e,h)}readValue(e,m){const h=he.NormalizedSchema.of(e);if(h.isTimestampSchema()){if(typeof m==="number"){return C._parseEpochTimestamp(m)}if(typeof m==="object"){if(m.tag===1&&"value"in m){return C._parseEpochTimestamp(m.value)}}}if(h.isBlobSchema()){if(typeof m==="string"){return(this.serdeContext?.base64Decoder??ve.fromBase64)(m)}return m}if(typeof m==="undefined"||typeof m==="boolean"||typeof m==="number"||typeof m==="string"||typeof m==="bigint"||typeof m==="symbol"){return m}else if(typeof m==="object"){if(m===null){return null}if("byteLength"in m){return m}if(m instanceof Date){return m}if(h.isDocumentSchema()){return m}if(h.isListSchema()){const e=[];const C=h.getValueSchema();for(const h of m){const m=this.readValue(C,h);e.push(m)}return e}const e={};if(h.isMapSchema()){const C=h.getValueSchema();for(const h of Object.keys(m)){const q=this.readValue(C,m[h]);e[h]=q}}else if(h.isStructSchema()){const C=h.isUnionSchema();let q;if(C){q=new Set(Object.keys(m).filter((e=>e!=="__type")))}for(const[V,le]of h.structIterator()){if(C){q.delete(V)}if(m[V]!=null){e[V]=this.readValue(le,m[V])}}if(C&&q?.size===1&&Object.keys(e).length===0){const h=q.values().next().value;e.$unknown=[h,m[h]]}else if(typeof m.__type==="string"){for(const[h,C]of Object.entries(m)){if(!(h in e)){e[h]=C}}}}else if(m instanceof C.NumericValue){return m}return e}else{return m}}}class SmithyRpcV2CborProtocol extends V.RpcProtocol{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:m}){super({defaultNamespace:e,errorTypeRegistries:m})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,m,h){const C=await super.serializeRequest(e,m,h);Object.assign(C.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(he.deref(e.input)==="unit"){delete C.body;delete C.headers["content-type"]}else{if(!C.body){this.serializer.write(15,{});C.body=this.serializer.flush()}try{C.headers["content-length"]=String(C.body.byteLength)}catch(e){}}const{service:q,operation:V}=ye.getSmithyContext(h);const le=`/service/${q}/operation/${V}`;if(C.path.endsWith("/")){C.path+=le.slice(1)}else{C.path+=le}return C}async deserializeResponse(e,m,h){return super.deserializeResponse(e,m,h)}async handleError(e,m,h,C,q){const V=loadSmithyRpcV2CborErrorCode(h,C)??"Unknown";const le={$metadata:q,$fault:h.statusCode<=500?"client":"server"};let fe=this.options.defaultNamespace;if(V.includes("#")){[fe]=V.split("#")}const ye=this.compositeErrorRegistry;const ve=he.TypeRegistry.for(fe);ye.copyFrom(ve);let Le;try{Le=ye.getSchema(V)}catch(e){if(C.Message){C.message=C.Message}const m=he.TypeRegistry.for("smithy.ts.sdk.synthetic."+fe);ye.copyFrom(m);const h=ye.getBaseException();if(h){const e=ye.getErrorCtor(h);throw Object.assign(new e({name:V}),le,C)}throw Object.assign(new Error(V),le,C)}const Ue=he.NormalizedSchema.of(Le);const qe=ye.getErrorCtor(Le);const ze=C.message??C.Message??"Unknown";const He=new qe(ze);const We={};for(const[e,m]of Ue.structIterator()){We[e]=this.deserializer.readValue(m,C[e])}throw Object.assign(He,le,{$fault:Ue.getMergedTraits().error,message:ze},We)}getDefaultContentType(){return"application/cbor"}}m.CborCodec=CborCodec;m.CborShapeDeserializer=CborShapeDeserializer;m.CborShapeSerializer=CborShapeSerializer;m.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;m.buildHttpRpcRequest=buildHttpRpcRequest;m.cbor=an;m.checkCborResponse=checkCborResponse;m.dateToTag=dateToTag;m.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;m.parseCborBody=parseCborBody;m.parseCborErrorBody=parseCborErrorBody;m.tag=tag;m.tagSymbol=Wt},4809:(e,m,h)=>{var C=h(4418);const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){const m=C.parseUrl(e.url);if(e.headers){m.headers={};for(const[h,C]of Object.entries(e.headers)){m.headers[h.toLowerCase()]=C.join(", ")}}return m}return e}return C.parseUrl(e)};m.toEndpointV1=toEndpointV1},5770:(e,m,h)=>{var C=h(6442);var q=h(2566);var V=h(8682);var le=h(9228);var fe=h(3158);var he=h(8165);const collectBody=async(e=new Uint8Array,m)=>{if(e instanceof Uint8Array){return C.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return C.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const h=m.streamCollector(e);return C.Uint8ArrayBlobAdapter.mutate(await h)};function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}class SerdeContext{serdeContext;setSerdeContext(e){this.serdeContext=e}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(e){super();this.options=e;this.compositeErrorRegistry=q.TypeRegistry.for(e.defaultNamespace);for(const m of e.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(m)}}getRequestType(){return le.HttpRequest}getResponseType(){return le.HttpResponse}setSerdeContext(e){this.serdeContext=e;this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(e)}}updateServiceEndpoint(e,m){if("url"in m){e.protocol=m.url.protocol;e.hostname=m.url.hostname;e.port=m.url.port?Number(m.url.port):undefined;e.path=m.url.pathname;e.fragment=m.url.hash||void 0;e.username=m.url.username||void 0;e.password=m.url.password||void 0;if(!e.query){e.query={}}for(const[h,C]of m.url.searchParams.entries()){e.query[h]=C}if(m.headers){for(const[h,C]of Object.entries(m.headers)){e.headers[h]=C.join(", ")}}return e}else{e.protocol=m.protocol;e.hostname=m.hostname;e.port=m.port?Number(m.port):undefined;e.path=m.path;e.query={...m.query};if(m.headers){for(const[h,C]of Object.entries(m.headers)){e.headers[h]=C}}return e}}setHostPrefix(e,m,h){if(this.serdeContext?.disableHostPrefix){return}const C=q.NormalizedSchema.of(m.input);const V=q.translateTraits(m.traits??{});if(V.endpoint){let m=V.endpoint?.[0];if(typeof m==="string"){const q=[...C.structIterator()].filter((([,e])=>e.getMergedTraits().hostLabel));for(const[e]of q){const C=h[e];if(typeof C!=="string"){throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`)}m=m.replace(`{${e}}`,C)}e.hostname=m+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:m,initialRequest:h}){const C=await this.loadEventStreamCapability();return C.serializeEventStream({eventStream:e,requestSchema:m,initialRequest:h})}async deserializeEventStream({response:e,responseSchema:m,initialResponseContainer:h}){const C=await this.loadEventStreamCapability();return C.deserializeEventStream({response:e,responseSchema:m,initialResponseContainer:h})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await h.e(831).then(h.t.bind(h,831,19));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,m,h,C,q){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return e.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(e,m,h){const C={...m??{}};const V=this.serializer;const fe={};const he={};const ye=await h.endpoint();const ve=q.NormalizedSchema.of(e?.input);const Le=[];const Ue=[];let qe=false;let ze;const He=new le.HttpRequest({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:fe,headers:he,body:undefined});if(ye){this.updateServiceEndpoint(He,ye);this.setHostPrefix(He,e,C);const m=q.translateTraits(e.traits);if(m.http){He.method=m.http[0];const[e,h]=m.http[1].split("?");if(He.path=="/"){He.path=e}else{He.path+=e}const C=new URLSearchParams(h??"");Object.assign(fe,Object.fromEntries(C))}}for(const[e,m]of ve.structIterator()){const h=m.getMergedTraits()??{};const q=C[e];if(q==null&&!m.isIdempotencyToken()){if(h.httpLabel){if(He.path.includes(`{${e}+}`)||He.path.includes(`{${e}}`)){throw new Error(`No value provided for input HTTP label: ${e}.`)}}continue}if(h.httpPayload){const h=m.isStreaming();if(h){const h=m.isStructSchema();if(h){if(C[e]){ze=await this.serializeEventStream({eventStream:C[e],requestSchema:ve})}}else{ze=q}}else{V.write(m,q);ze=V.flush()}delete C[e]}else if(h.httpLabel){V.write(m,q);const h=V.flush();if(He.path.includes(`{${e}+}`)){He.path=He.path.replace(`{${e}+}`,h.split("/").map(extendedEncodeURIComponent).join("/"))}else if(He.path.includes(`{${e}}`)){He.path=He.path.replace(`{${e}}`,extendedEncodeURIComponent(h))}delete C[e]}else if(h.httpHeader){V.write(m,q);he[h.httpHeader.toLowerCase()]=String(V.flush());delete C[e]}else if(typeof h.httpPrefixHeaders==="string"){for(const[e,C]of Object.entries(q)){const q=h.httpPrefixHeaders+e;V.write([m.getValueSchema(),{httpHeader:q}],C);he[q.toLowerCase()]=V.flush()}delete C[e]}else if(h.httpQuery||h.httpQueryParams){this.serializeQuery(m,q,fe);delete C[e]}else{qe=true;Le.push(e);Ue.push(m)}}if(qe&&C){const[e,m]=(ve.getName(true)??"#Unknown").split("#");const h=ve.getSchema()[6];const q=[3,e,m,ve.getMergedTraits(),Le,Ue,undefined];if(h){q[6]=h}else{q.pop()}V.write(q,C);ze=V.flush()}He.headers=he;He.query=fe;He.body=ze;return He}serializeQuery(e,m,h){const C=this.serializer;const q=e.getMergedTraits();if(q.httpQueryParams){for(const[C,V]of Object.entries(m)){if(!(C in h)){const m=e.getValueSchema();Object.assign(m.getMergedTraits(),{...q,httpQuery:C,httpQueryParams:undefined});this.serializeQuery(m,V,h)}}return}if(e.isListSchema()){const V=!!e.getMergedTraits().sparse;const le=[];for(const h of m){C.write([e.getValueSchema(),q],h);const m=C.flush();if(V||m!==undefined){le.push(m)}}h[q.httpQuery]=le}else{C.write([e,q],m);h[q.httpQuery]=C.flush()}}async deserializeResponse(e,m,h){const C=this.deserializer;const V=q.NormalizedSchema.of(e.output);const le={};if(h.statusCode>=300){const q=await collectBody(h.body,m);if(q.byteLength>0){Object.assign(le,await C.read(15,q))}await this.handleError(e,m,h,le,this.deserializeMetadata(h));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const e in h.headers){const m=h.headers[e];delete h.headers[e];h.headers[e.toLowerCase()]=m}const fe=await this.deserializeHttpMessage(V,m,h,le);if(fe.length){const e=await collectBody(h.body,m);if(e.byteLength>0){const m=await C.read(V,e);for(const e of fe){if(m[e]!=null){le[e]=m[e]}}}}else if(fe.discardResponseBody){await collectBody(h.body,m)}le.$metadata=this.deserializeMetadata(h);return le}async deserializeHttpMessage(e,m,h,le,fe){let he;if(le instanceof Set){he=fe}else{he=le}let ye=true;const ve=this.deserializer;const Le=q.NormalizedSchema.of(e);const Ue=[];for(const[e,q]of Le.structIterator()){const le=q.getMemberTraits();if(le.httpPayload){ye=false;const V=q.isStreaming();if(V){const m=q.isStructSchema();if(m){he[e]=await this.deserializeEventStream({response:h,responseSchema:Le})}else{he[e]=C.sdkStreamMixin(h.body)}}else if(h.body){const C=await collectBody(h.body,m);if(C.byteLength>0){he[e]=await ve.read(q,C)}}}else if(le.httpHeader){const m=String(le.httpHeader).toLowerCase();const C=h.headers[m];if(null!=C){if(q.isListSchema()){const h=q.getValueSchema();h.getMergedTraits().httpHeader=m;let le;if(h.isTimestampSchema()&&h.getSchema()===4){le=V.splitEvery(C,",",2)}else{le=V.splitHeader(C)}const fe=[];for(const e of le){fe.push(await ve.read(h,e.trim()))}he[e]=fe}else{he[e]=await ve.read(q,C)}}}else if(le.httpPrefixHeaders!==undefined){he[e]={};for(const[m,C]of Object.entries(h.headers)){if(m.startsWith(le.httpPrefixHeaders)){const h=q.getValueSchema();h.getMergedTraits().httpHeader=m;he[e][m.slice(le.httpPrefixHeaders.length)]=await ve.read(h,C)}}}else if(le.httpResponseCode){he[e]=h.statusCode}else{Ue.push(e)}}Ue.discardResponseBody=ye;return Ue}}class RpcProtocol extends HttpProtocol{async serializeRequest(e,m,h){const C=this.serializer;const V={};const fe={};const he=await h.endpoint();const ye=q.NormalizedSchema.of(e?.input);const ve=ye.getSchema();let Le;const Ue=new le.HttpRequest({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:V,headers:fe,body:undefined});if(he){this.updateServiceEndpoint(Ue,he);this.setHostPrefix(Ue,e,m)}const qe={...m};if(m){const e=ye.getEventStreamMember();if(e){if(qe[e]){const m={};for(const[h,q]of ye.structIterator()){if(h!==e&&qe[h]){C.write(q,qe[h]);m[h]=C.flush()}}Le=await this.serializeEventStream({eventStream:qe[e],requestSchema:ye,initialRequest:m})}}else{C.write(ve,qe);Le=C.flush()}}Ue.headers=Object.assign(Ue.headers,fe);Ue.query=V;Ue.body=Le;Ue.method="POST";return Ue}async deserializeResponse(e,m,h){const C=this.deserializer;const V=q.NormalizedSchema.of(e.output);const le={};if(h.statusCode>=300){const q=await collectBody(h.body,m);if(q.byteLength>0){Object.assign(le,await C.read(15,q))}await this.handleError(e,m,h,le,this.deserializeMetadata(h));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in h.headers){const m=h.headers[e];delete h.headers[e];h.headers[e.toLowerCase()]=m}const fe=V.getEventStreamMember();if(fe){le[fe]=await this.deserializeEventStream({response:h,responseSchema:V,initialResponseContainer:le})}else{const e=await collectBody(h.body,m);if(e.byteLength>0){Object.assign(le,await C.read(V,e))}}le.$metadata=this.deserializeMetadata(h);return le}}const resolvedPath=(e,m,h,C,q,V)=>{if(m!=null&&m[h]!==undefined){const m=C();if(m==null||m.length<=0){throw new Error("Empty value provided for input HTTP label: "+h+".")}e=e.replace(q,V?m.split("/").map((e=>extendedEncodeURIComponent(e))).join("/"):extendedEncodeURIComponent(m))}else{throw new Error("No value provided for input HTTP label: "+h+".")}return e};function requestBuilder(e,m){return new RequestBuilder(e,m)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,m){this.input=e;this.context=m}async build(){const{hostname:e,protocol:m="https",port:h,path:C}=await this.context.endpoint();this.path=C;for(const e of this.resolvePathStack){e(this.path)}return new le.HttpRequest({protocol:m,hostname:this.hostname||e,port:h,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){this.hostname=e;return this}bp(e){this.resolvePathStack.push((m=>{this.path=`${m?.endsWith("/")?m.slice(0,-1):m||""}`+e}));return this}p(e,m,h,C){this.resolvePathStack.push((q=>{this.path=resolvedPath(q,this.input,e,m,h,C)}));return this}h(e){this.headers=e;return this}q(e){this.query=e;return this}b(e){this.body=e;return this}m(e){this.method=e;return this}}function determineTimestampFormat(e,m){if(m.timestampFormat.useTrait){if(e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7)){return e.getSchema()}}const{httpLabel:h,httpPrefixHeaders:C,httpHeader:q,httpQuery:V}=e.getMergedTraits();const le=m.httpBindings?typeof C==="string"||Boolean(q)?6:Boolean(V)||Boolean(h)?5:undefined:undefined;return le??m.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(e){super();this.settings=e}read(e,m){const h=q.NormalizedSchema.of(e);if(h.isListSchema()){return V.splitHeader(m).map((e=>this.read(h.getValueSchema(),e)))}if(h.isBlobSchema()){return(this.serdeContext?.base64Decoder??fe.fromBase64)(m)}if(h.isTimestampSchema()){const e=determineTimestampFormat(h,this.settings);switch(e){case 5:return V._parseRfc3339DateTimeWithOffset(m);case 6:return V._parseRfc7231DateTime(m);case 7:return V._parseEpochTimestamp(m);default:console.warn("Missing timestamp format, parsing value with Date constructor:",m);return new Date(m)}}if(h.isStringSchema()){const e=h.getMergedTraits().mediaType;let C=m;if(e){if(h.getMergedTraits().httpHeader){C=this.base64ToUtf8(C)}const m=e==="application/json"||e.endsWith("+json");if(m){C=V.LazyJsonString.from(C)}return C}}if(h.isNumericSchema()){return Number(m)}if(h.isBigIntegerSchema()){return BigInt(m)}if(h.isBigDecimalSchema()){return new V.NumericValue(m,"bigDecimal")}if(h.isBooleanSchema()){return String(m).toLowerCase()==="true"}return m}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??he.toUtf8)((this.serdeContext?.base64Decoder??fe.fromBase64)(e))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(e,m){super();this.codecDeserializer=e;this.stringDeserializer=new FromStringShapeDeserializer(m)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e);this.codecDeserializer.setSerdeContext(e);this.serdeContext=e}read(e,m){const h=q.NormalizedSchema.of(e);const C=h.getMergedTraits();const V=this.serdeContext?.utf8Encoder??he.toUtf8;if(C.httpHeader||C.httpResponseCode){return this.stringDeserializer.read(h,V(m))}if(C.httpPayload){if(h.isBlobSchema()){const e=this.serdeContext?.utf8Decoder??he.fromUtf8;if(typeof m==="string"){return e(m)}return m}else if(h.isStringSchema()){if("byteLength"in m){return V(m)}return m}}return this.codecDeserializer.read(h,m)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(e){super();this.settings=e}write(e,m){const h=q.NormalizedSchema.of(e);switch(typeof m){case"object":if(m===null){this.stringBuffer="null";return}if(h.isTimestampSchema()){if(!(m instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${m} when schema expected Date in ${h.getName(true)}`)}const e=determineTimestampFormat(h,this.settings);switch(e){case 5:this.stringBuffer=m.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=V.dateToUtcString(m);break;case 7:this.stringBuffer=String(m.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",m);this.stringBuffer=String(m.getTime()/1e3)}return}if(h.isBlobSchema()&&"byteLength"in m){this.stringBuffer=(this.serdeContext?.base64Encoder??fe.toBase64)(m);return}if(h.isListSchema()&&Array.isArray(m)){let e="";for(const C of m){this.write([h.getValueSchema(),h.getMergedTraits()],C);const m=this.flush();const q=h.getValueSchema().isTimestampSchema()?m:V.quoteHeader(m);if(e!==""){e+=", "}e+=q}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(m,null,2);break;case"string":const e=h.getMergedTraits().mediaType;let C=m;if(e){const m=e==="application/json"||e.endsWith("+json");if(m){C=V.LazyJsonString.from(C)}if(h.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??fe.toBase64)(C.toString());return}}this.stringBuffer=m;break;default:if(h.isIdempotencyToken()){this.stringBuffer=V.generateIdempotencyToken()}else{this.stringBuffer=String(m)}}}flush(){const e=this.stringBuffer;this.stringBuffer="";return e}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(e,m,h=new ToStringShapeSerializer(m)){this.codecSerializer=e;this.stringSerializer=h}setSerdeContext(e){this.codecSerializer.setSerdeContext(e);this.stringSerializer.setSerdeContext(e)}write(e,m){const h=q.NormalizedSchema.of(e);const C=h.getMergedTraits();if(C.httpHeader||C.httpLabel||C.httpQuery){this.stringSerializer.write(h,m);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(h,m)}flush(){if(this.buffer!==undefined){const e=this.buffer;this.buffer=undefined;return e}return this.codecSerializer.flush()}}m.FromStringShapeDeserializer=FromStringShapeDeserializer;m.HttpBindingProtocol=HttpBindingProtocol;m.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;m.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;m.HttpProtocol=HttpProtocol;m.RequestBuilder=RequestBuilder;m.RpcProtocol=RpcProtocol;m.SerdeContext=SerdeContext;m.ToStringShapeSerializer=ToStringShapeSerializer;m.collectBody=collectBody;m.determineTimestampFormat=determineTimestampFormat;m.extendedEncodeURIComponent=extendedEncodeURIComponent;m.requestBuilder=requestBuilder;m.resolvedPath=resolvedPath},2566:(e,m,h)=>{var C=h(9228);var q=h(5496);var V=h(4809);const deref=e=>{if(typeof e==="function"){return e()}return e};const operation=(e,m,h,C,q)=>({name:m,namespace:e,traits:h,input:C,output:q});const schemaDeserializationMiddleware=e=>(m,h)=>async V=>{const{response:le}=await m(V);const{operationSchema:fe}=q.getSmithyContext(h);const[,he,ye,ve,Le,Ue]=fe??[];try{const m=await e.protocol.deserializeResponse(operation(he,ye,ve,Le,Ue),{...e,...h},le);return{response:le,output:m}}catch(e){Object.defineProperty(e,"$response",{value:le,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const m=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+m}catch(e){if(!h.logger||h.logger?.constructor?.name==="NoOpLogger"){console.warn(m)}else{h.logger?.warn?.(m)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(C.HttpResponse.isInstance(le)){const{headers:m={}}=le;const h=Object.entries(m);e.$metadata={httpStatusCode:le.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,h),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,h),cfId:findHeader(/^x-[\w-]+-cf-id$/,h)}}}catch(e){}}throw e}};const findHeader=(e,m)=>(m.find((([m])=>m.match(e)))||[void 0,void 0])[1];const schemaSerializationMiddleware=e=>(m,h)=>async C=>{const{operationSchema:le}=q.getSmithyContext(h);const[,fe,he,ye,ve,Le]=le??[];const Ue=h.endpointV2?async()=>V.toEndpointV1(h.endpointV2):e.endpoint;const qe=await e.protocol.serializeRequest(operation(fe,he,ye,ve,Le),C.input,{...e,...h,endpoint:Ue});return m({...C,request:qe})};const le={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const fe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(e){return{applyToStack:m=>{m.add(schemaSerializationMiddleware(e),fe);m.add(schemaDeserializationMiddleware(e),le);e.protocol.setSerdeContext(e)}}}class Schema{name;namespace;traits;static assign(e,m){const h=Object.assign(e,m);return h}static[Symbol.hasInstance](e){const m=this.prototype.isPrototypeOf(e);if(!m&&typeof e==="object"&&e!==null){const m=e;return m.symbol===this.symbol}return m}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(e,m,h,C)=>Schema.assign(new ListSchema,{name:m,namespace:e,traits:h,valueSchema:C});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(e,m,h,C,q)=>Schema.assign(new MapSchema,{name:m,namespace:e,traits:h,keySchema:C,valueSchema:q});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(e,m,h,C,q)=>Schema.assign(new OperationSchema,{name:m,namespace:e,traits:h,input:C,output:q});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(e,m,h,C,q)=>Schema.assign(new StructureSchema,{name:m,namespace:e,traits:h,memberNames:C,memberList:q});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(e,m,h,C,q,V)=>Schema.assign(new ErrorSchema,{name:m,namespace:e,traits:h,memberNames:C,memberList:q,ctor:null});const he=[];function translateTraits(e){if(typeof e==="object"){return e}e=e|0;if(he[e]){return he[e]}const m={};let h=0;for(const C of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((e>>h++&1)===1){m[C]=1}}return he[e]=m}const ye={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")};const ve=[];const Le={};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,m){this.ref=e;this.memberName=m;const h=[];let C=e;let q=e;this._isMemberSchema=false;while(isMemberSchema(C)){h.push(C[1]);C=C[0];q=deref(C);this._isMemberSchema=true}if(h.length>0){this.memberTraits={};for(let e=h.length-1;e>=0;--e){const m=h[e];Object.assign(this.memberTraits,translateTraits(m))}}else{this.memberTraits=0}if(q instanceof NormalizedSchema){const e=this.memberTraits;Object.assign(this,q);this.memberTraits=Object.assign({},e,q.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=m??q.memberName;return}this.schema=deref(q);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(q);this.traits=0}if(this._isMemberSchema&&!m){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](e){const m=this.prototype.isPrototypeOf(e);if(!m&&typeof e==="object"&&e!==null){const m=e;return m.symbol===this.symbol}return m}static of(e){const m=typeof e==="function"||typeof e==="object"&&e!==null;if(typeof e==="number"){if(ve[e]){return ve[e]}}else if(typeof e==="string"){if(Le[e]){return Le[e]}}else if(m){if(e[ye.ns]){return e[ye.ns]}}const h=deref(e);if(h instanceof NormalizedSchema){return h}if(isMemberSchema(h)){const[m,C]=h;if(m instanceof NormalizedSchema){Object.assign(m.getMergedTraits(),translateTraits(C));return m}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const C=new NormalizedSchema(h);if(m){return e[ye.ns]=C}if(typeof h==="string"){return Le[h]=C}if(typeof h==="number"){return ve[h]=C}return C}getSchema(){const e=this.schema;if(Array.isArray(e)&&e[0]===0){return e[4]}return e}getName(e=false){const{name:m}=this;const h=!e&&m&&m.includes("#");return h?m.split("#")[1]:m||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e==="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e==="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}const m=e[0];return m===3||m===-3||m===4}isUnionSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}return e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e==="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[e,m]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!m){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const h=this.getSchema();const C=e?15:h[4]??0;return member([C,0],"key")}getValueSchema(){const e=this.getSchema();const[m,h,C]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const q=typeof e==="number"?63&e:e&&typeof e==="object"&&(h||C)?e[3+e[0]]:m?15:void 0;if(q!=null){return member([q,0],h?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(e){const m=this.getSchema();if(this.isStructSchema()&&m[4].includes(e)){const h=m[4].indexOf(e);const C=m[5][h];return member(isMemberSchema(C)?C:[C,0],e)}if(this.isDocumentSchema()){return member([15,0],e)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[m,h]of this.structIterator()){e[m]=h}}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,m]of this.structIterator()){if(m.isStreaming()&&m.isStructSchema()){return e}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const e=this.getSchema();const m=e[4].length;let h=e[ye.it];if(h&&m===h.length){yield*h;return}h=Array(m);for(let C=0;C<m;++C){const m=e[4][C];const q=member([e[5][C],0],m);yield h[C]=[m,q]}e[ye.it]=h}}function member(e,m){if(e instanceof NormalizedSchema){return Object.assign(e,{memberName:m,_isMemberSchema:true})}const h=NormalizedSchema;return new h(e,m)}const isMemberSchema=e=>Array.isArray(e)&&e.length===2;const isStaticSchema=e=>Array.isArray(e)&&e.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(e,m,h,C)=>Schema.assign(new SimpleSchema,{name:m,namespace:e,traits:C,schemaRef:h});const simAdapter=(e,m,h,C)=>Schema.assign(new SimpleSchema,{name:m,namespace:e,traits:h,schemaRef:C});const Ue={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(e,m=new Map,h=new Map){this.namespace=e;this.schemas=m;this.exceptions=h}static for(e){if(!TypeRegistry.registries.has(e)){TypeRegistry.registries.set(e,new TypeRegistry(e))}return TypeRegistry.registries.get(e)}copyFrom(e){const{schemas:m,exceptions:h}=this;for(const[h,C]of e.schemas){if(!m.has(h)){m.set(h,C)}}for(const[m,C]of e.exceptions){if(!h.has(m)){h.set(m,C)}}}register(e,m){const h=this.normalizeShapeId(e);for(const e of[this,TypeRegistry.for(h.split("#")[0])]){e.schemas.set(h,m)}}getSchema(e){const m=this.normalizeShapeId(e);if(!this.schemas.has(m)){throw new Error(`@smithy/core/schema - schema not found for ${m}`)}return this.schemas.get(m)}registerError(e,m){const h=e;const C=h[1];for(const e of[this,TypeRegistry.for(C)]){e.schemas.set(C+"#"+h[2],h);e.exceptions.set(h,m)}}getErrorCtor(e){const m=e;if(this.exceptions.has(m)){return this.exceptions.get(m)}const h=TypeRegistry.for(m[1]);return h.exceptions.get(m)}getBaseException(){for(const e of this.exceptions.keys()){if(Array.isArray(e)){const[,m,h]=e;const C=m+"#"+h;if(C.startsWith("smithy.ts.sdk.synthetic.")&&C.endsWith("ServiceException")){return e}}}return undefined}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(e){if(e.includes("#")){return e}return this.namespace+"#"+e}}m.ErrorSchema=ErrorSchema;m.ListSchema=ListSchema;m.MapSchema=MapSchema;m.NormalizedSchema=NormalizedSchema;m.OperationSchema=OperationSchema;m.SCHEMA=Ue;m.Schema=Schema;m.SimpleSchema=SimpleSchema;m.StructureSchema=StructureSchema;m.TypeRegistry=TypeRegistry;m.deref=deref;m.deserializerMiddlewareOption=le;m.error=error;m.getSchemaSerdePlugin=getSchemaSerdePlugin;m.isStaticSchema=isStaticSchema;m.list=list;m.map=map;m.op=op;m.operation=operation;m.serializerMiddlewareOption=fe;m.sim=sim;m.simAdapter=simAdapter;m.simpleSchemaCacheN=ve;m.simpleSchemaCacheS=Le;m.struct=struct;m.traitsCache=he;m.translateTraits=translateTraits},8682:(e,m,h)=>{var C=h(8525);const copyDocumentWithTransform=(e,m,h=e=>e)=>e;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){Le.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const m=e.toLowerCase();if(m==="false"||m==="true"){Le.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(m==="false"){return false}if(m==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const m=parseFloat(e);if(!Number.isNaN(m)){if(String(m)!==String(e)){Le.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return m}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};const q=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const m=expectNumber(e);if(m!==undefined&&!Number.isNaN(m)&&m!==Infinity&&m!==-Infinity){if(Math.abs(m)>q){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return m};const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};const V=expectLong;const expectInt32=e=>expectSizedInt(e,32);const expectShort=e=>expectSizedInt(e,16);const expectByte=e=>expectSizedInt(e,8);const expectSizedInt=(e,m)=>{const h=expectLong(e);if(h!==undefined&&castInt(h,m)!==h){throw new TypeError(`Expected ${m}-bit integer, got ${e}`)}return h};const castInt=(e,m)=>{switch(m){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};const expectNonNull=(e,m)=>{if(e===null||e===undefined){if(m){throw new TypeError(`Expected a non-null value for ${m}`)}throw new TypeError("Expected a non-null value")}return e};const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const m=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${m}: ${e}`)};const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){Le.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};const expectUnion=e=>{if(e===null||e===undefined){return undefined}const m=expectObject(e);const h=Object.entries(m).filter((([,e])=>e!=null)).map((([e])=>e));if(h.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(h.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${h} were not null.`)}return m};const strictParseDouble=e=>{if(typeof e=="string"){return expectNumber(parseNumber(e))}return expectNumber(e)};const le=strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return expectFloat32(parseNumber(e))}return expectFloat32(e)};const fe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const m=e.match(fe);if(m===null||m[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectNumber(e)};const he=limitedParseDouble;const ye=limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectFloat32(e)};const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return expectLong(parseNumber(e))}return expectLong(e)};const ve=strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return expectInt32(parseNumber(e))}return expectInt32(e)};const strictParseShort=e=>{if(typeof e==="string"){return expectShort(parseNumber(e))}return expectShort(e)};const strictParseByte=e=>{if(typeof e==="string"){return expectByte(parseNumber(e))}return expectByte(e)};const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");const Le={warn:console.warn};const Ue=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const m=e.getUTCFullYear();const h=e.getUTCMonth();const C=e.getUTCDay();const q=e.getUTCDate();const V=e.getUTCHours();const le=e.getUTCMinutes();const fe=e.getUTCSeconds();const he=q<10?`0${q}`:`${q}`;const ye=V<10?`0${V}`:`${V}`;const ve=le<10?`0${le}`:`${le}`;const Le=fe<10?`0${fe}`:`${fe}`;return`${Ue[C]}, ${he} ${qe[h]} ${m} ${ye}:${ve}:${Le} GMT`}const ze=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const m=ze.exec(e);if(!m){throw new TypeError("Invalid RFC-3339 date-time value")}const[h,C,q,V,le,fe,he,ye]=m;const ve=strictParseShort(stripLeadingZeroes(C));const Le=parseDateValue(q,"month",1,12);const Ue=parseDateValue(V,"day",1,31);return buildDate(ve,Le,Ue,{hours:le,minutes:fe,seconds:he,fractionalMilliseconds:ye})};const He=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const m=He.exec(e);if(!m){throw new TypeError("Invalid RFC-3339 date-time value")}const[h,C,q,V,le,fe,he,ye,ve]=m;const Le=strictParseShort(stripLeadingZeroes(C));const Ue=parseDateValue(q,"month",1,12);const qe=parseDateValue(V,"day",1,31);const ze=buildDate(Le,Ue,qe,{hours:le,minutes:fe,seconds:he,fractionalMilliseconds:ye});if(ve.toUpperCase()!="Z"){ze.setTime(ze.getTime()-parseOffsetToMilliseconds(ve))}return ze};const We=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const Qe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const Je=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let m=We.exec(e);if(m){const[e,h,C,q,V,le,fe,he]=m;return buildDate(strictParseShort(stripLeadingZeroes(q)),parseMonthByShortName(C),parseDateValue(h,"day",1,31),{hours:V,minutes:le,seconds:fe,fractionalMilliseconds:he})}m=Qe.exec(e);if(m){const[e,h,C,q,V,le,fe,he]=m;return adjustRfc850Year(buildDate(parseTwoDigitYear(q),parseMonthByShortName(C),parseDateValue(h,"day",1,31),{hours:V,minutes:le,seconds:fe,fractionalMilliseconds:he}))}m=Je.exec(e);if(m){const[e,h,C,q,V,le,fe,he]=m;return buildDate(strictParseShort(stripLeadingZeroes(he)),parseMonthByShortName(h),parseDateValue(C.trimLeft(),"day",1,31),{hours:q,minutes:V,seconds:le,fractionalMilliseconds:fe})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let m;if(typeof e==="number"){m=e}else if(typeof e==="string"){m=strictParseDouble(e)}else if(typeof e==="object"&&e.tag===1){m=e.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(m)||m===Infinity||m===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(m*1e3))};const buildDate=(e,m,h,C)=>{const q=m-1;validateDayOfMonth(e,q,h);return new Date(Date.UTC(e,q,h,parseDateValue(C.hours,"hour",0,23),parseDateValue(C.minutes,"minute",0,59),parseDateValue(C.seconds,"seconds",0,60),parseMilliseconds(C.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const m=(new Date).getUTCFullYear();const h=Math.floor(m/100)*100+strictParseShort(stripLeadingZeroes(e));if(h<m){return h+100}return h};const It=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>It){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const m=qe.indexOf(e);if(m<0){throw new TypeError(`Invalid month: ${e}`)}return m+1};const _t=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,m,h)=>{let C=_t[m];if(m===1&&isLeapYear(e)){C=29}if(h>C){throw new TypeError(`Invalid day for ${qe[m]} in ${e}: ${h}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,m,h,C)=>{const q=strictParseByte(stripLeadingZeroes(e));if(q<h||q>C){throw new TypeError(`${m} must be between ${h} and ${C}, inclusive`)}return q};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return strictParseFloat32("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const m=e[0];let h=1;if(m=="+"){h=1}else if(m=="-"){h=-1}else{throw new TypeError(`Offset direction, ${m}, must be "+" or "-"`)}const C=Number(e.substring(1,3));const q=Number(e.substring(4,6));return h*(C*60+q)*60*1e3};const stripLeadingZeroes=e=>{let m=0;while(m<e.length-1&&e.charAt(m)==="0"){m++}if(m===0){return e}return e.slice(m)};const Mt=function LazyJsonString(e){const m=Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}});return m};Mt.from=e=>{if(e&&typeof e==="object"&&(e instanceof Mt||"deserializeJSON"in e)){return e}else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype){return Mt(String(e))}return Mt(JSON.stringify(e))};Mt.fromObject=Mt.from;function quoteHeader(e){if(e.includes(",")||e.includes('"')){e=`"${e.replace(/"/g,'\\"')}"`}return e}const Lt=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const Ut=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const qt=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const Gt=`(\\d?\\d)`;const zt=`(\\d{4})`;const Ht=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const Wt=new RegExp(`^${Lt}, ${Gt} ${Ut} ${zt} ${qt} GMT$`);const Kt=new RegExp(`^${Lt}, ${Gt}-${Ut}-(\\d\\d) ${qt} GMT$`);const Yt=new RegExp(`^${Lt} ${Ut} ( [1-9]|\\d\\d) ${qt} ${zt}$`);const Qt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=e=>{if(e==null){return void 0}let m=NaN;if(typeof e==="number"){m=e}else if(typeof e==="string"){if(!/^-?\d*\.?\d+$/.test(e)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}m=Number.parseFloat(e)}else if(typeof e==="object"&&e.tag===1){m=e.value}if(isNaN(m)||Math.abs(m)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(m*1e3))};const _parseRfc3339DateTimeWithOffset=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const m=Ht.exec(e);if(!m){throw new TypeError(`Invalid RFC3339 timestamp format ${e}`)}const[,h,C,q,V,le,fe,,he,ye]=m;range(C,1,12);range(q,1,31);range(V,0,23);range(le,0,59);range(fe,0,60);const ve=new Date(Date.UTC(Number(h),Number(C)-1,Number(q),Number(V),Number(le),Number(fe),Number(he)?Math.round(parseFloat(`0.${he}`)*1e3):0));ve.setUTCFullYear(Number(h));if(ye.toUpperCase()!="Z"){const[,e,m,h]=/([+-])(\d\d):(\d\d)/.exec(ye)||[void 0,"+",0,0];const C=e==="-"?1:-1;ve.setTime(ve.getTime()+C*(Number(m)*60*60*1e3+Number(h)*60*1e3))}return ve};const _parseRfc7231DateTime=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let m;let h;let C;let q;let V;let le;let fe;let he;if(he=Wt.exec(e)){[,m,h,C,q,V,le,fe]=he}else if(he=Kt.exec(e)){[,m,h,C,q,V,le,fe]=he;C=(Number(C)+1900).toString()}else if(he=Yt.exec(e)){[,h,m,q,V,le,fe,C]=he}if(C&&le){const e=Date.UTC(Number(C),Qt.indexOf(h),Number(m),Number(q),Number(V),Number(le),fe?Math.round(parseFloat(`0.${fe}`)*1e3):0);range(m,1,31);range(q,0,23);range(V,0,59);range(le,0,60);const he=new Date(e);he.setUTCFullYear(Number(C));return he}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function range(e,m,h){const C=Number(e);if(C<m||C>h){throw new Error(`Value ${C} out of range [${m}, ${h}]`)}}function splitEvery(e,m,h){if(h<=0||!Number.isInteger(h)){throw new Error("Invalid number of delimiters ("+h+") for splitEvery.")}const C=e.split(m);if(h===1){return C}const q=[];let V="";for(let e=0;e<C.length;e++){if(V===""){V=C[e]}else{V+=m+C[e]}if((e+1)%h===0){q.push(V);V=""}}if(V!==""){q.push(V)}return q}const splitHeader=e=>{const m=e.length;const h=[];let C=false;let q=undefined;let V=0;for(let le=0;le<m;++le){const m=e[le];switch(m){case`"`:if(q!=="\\"){C=!C}break;case",":if(!C){h.push(e.slice(V,le));V=le+1}break}q=m}h.push(e.slice(V));return h.map((e=>{e=e.trim();const m=e.length;if(m<2){return e}if(e[0]===`"`&&e[m-1]===`"`){e=e.slice(1,m-1)}return e.replace(/\\"/g,'"')}))};const Jt=/^-?\d*(\.\d+)?$/;class NumericValue{string;type;constructor(e,m){this.string=e;this.type=m;if(!Jt.test(e)){throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!=="object"){return false}const m=e;return NumericValue.prototype.isPrototypeOf(e)||m.type==="bigDecimal"&&Jt.test(m.string)}}function nv(e){return new NumericValue(String(e),"bigDecimal")}m.generateIdempotencyToken=C.v4;m.LazyJsonString=Mt;m.NumericValue=NumericValue;m._parseEpochTimestamp=_parseEpochTimestamp;m._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;m._parseRfc7231DateTime=_parseRfc7231DateTime;m.copyDocumentWithTransform=copyDocumentWithTransform;m.dateToUtcString=dateToUtcString;m.expectBoolean=expectBoolean;m.expectByte=expectByte;m.expectFloat32=expectFloat32;m.expectInt=V;m.expectInt32=expectInt32;m.expectLong=expectLong;m.expectNonNull=expectNonNull;m.expectNumber=expectNumber;m.expectObject=expectObject;m.expectShort=expectShort;m.expectString=expectString;m.expectUnion=expectUnion;m.handleFloat=he;m.limitedParseDouble=limitedParseDouble;m.limitedParseFloat=ye;m.limitedParseFloat32=limitedParseFloat32;m.logger=Le;m.nv=nv;m.parseBoolean=parseBoolean;m.parseEpochTimestamp=parseEpochTimestamp;m.parseRfc3339DateTime=parseRfc3339DateTime;m.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;m.parseRfc7231DateTime=parseRfc7231DateTime;m.quoteHeader=quoteHeader;m.splitEvery=splitEvery;m.splitHeader=splitHeader;m.strictParseByte=strictParseByte;m.strictParseDouble=strictParseDouble;m.strictParseFloat=le;m.strictParseFloat32=strictParseFloat32;m.strictParseInt=ve;m.strictParseInt32=strictParseInt32;m.strictParseLong=strictParseLong;m.strictParseShort=strictParseShort},5518:(e,m,h)=>{var C=h(4036);var q=h(4635);var V=h(181);var le=h(8611);var fe=h(1125);var he=h(4418);function httpRequest(e){return new Promise(((m,h)=>{const q=le.request({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});q.on("error",(e=>{h(Object.assign(new C.ProviderError("Unable to connect to instance metadata service"),e));q.destroy()}));q.on("timeout",(()=>{h(new C.ProviderError("TimeoutError from instance metadata service"));q.destroy()}));q.on("response",(e=>{const{statusCode:le=400}=e;if(le<200||300<=le){h(Object.assign(new C.ProviderError("Error response received from instance metadata service"),{statusCode:le}));q.destroy()}const fe=[];e.on("data",(e=>{fe.push(e)}));e.on("end",(()=>{m(V.Buffer.concat(fe));q.destroy()}))}));q.end()}))}const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}});const ye=1e3;const ve=0;const providerConfigFromInit=({maxRetries:e=ve,timeout:m=ye})=>({maxRetries:e,timeout:m});const retry=(e,m)=>{let h=e();for(let C=0;C<m;C++){h=h.catch(e)}return h};const Le="AWS_CONTAINER_CREDENTIALS_FULL_URI";const Ue="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const qe="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:m,maxRetries:h}=providerConfigFromInit(e);return()=>retry((async()=>{const h=await getCmdsUri({logger:e.logger});const q=JSON.parse(await requestFromEcsImds(m,h));if(!isImdsCredentials(q)){throw new C.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:e.logger})}return fromImdsCredentials(q)}),h)};const requestFromEcsImds=async(e,m)=>{if(process.env[qe]){m.headers={...m.headers,Authorization:process.env[qe]}}const h=await httpRequest({...m,timeout:e});return h.toString()};const ze="169.254.170.2";const He={localhost:true,"127.0.0.1":true};const We={"http:":true,"https:":true};const getCmdsUri=async({logger:e})=>{if(process.env[Ue]){return{hostname:ze,path:process.env[Ue]}}if(process.env[Le]){const m=q.parse(process.env[Le]);if(!m.hostname||!(m.hostname in He)){throw new C.CredentialsProviderError(`${m.hostname} is not a valid container metadata service hostname`,{tryNextLink:false,logger:e})}if(!m.protocol||!(m.protocol in We)){throw new C.CredentialsProviderError(`${m.protocol} is not a valid container metadata service protocol`,{tryNextLink:false,logger:e})}return{...m,port:m.port?parseInt(m.port,10):undefined}}throw new C.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${Ue} or ${Le} environment`+" variable is set",{tryNextLink:false,logger:e})};class InstanceMetadataV1FallbackError extends C.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,m=true){super(e,m);this.tryNextLink=m;Object.setPrototypeOf(this,InstanceMetadataV1FallbackError.prototype)}}m.Endpoint=void 0;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(m.Endpoint||(m.Endpoint={}));const Qe="AWS_EC2_METADATA_SERVICE_ENDPOINT";const Je="ec2_metadata_service_endpoint";const It={environmentVariableSelector:e=>e[Qe],configFileSelector:e=>e[Je],default:undefined};var _t;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(_t||(_t={}));const Mt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";const Lt="ec2_metadata_service_endpoint_mode";const Ut={environmentVariableSelector:e=>e[Mt],configFileSelector:e=>e[Lt],default:_t.IPv4};const getInstanceMetadataEndpoint=async()=>he.parseUrl(await getFromEndpointConfig()||await getFromEndpointModeConfig());const getFromEndpointConfig=async()=>fe.loadConfig(It)();const getFromEndpointModeConfig=async()=>{const e=await fe.loadConfig(Ut)();switch(e){case _t.IPv4:return m.Endpoint.IPv4;case _t.IPv6:return m.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(_t)}`)}};const qt=5*60;const Gt=5*60;const zt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,m)=>{const h=qt+Math.floor(Math.random()*Gt);const C=new Date(Date.now()+h*1e3);m.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(C)}.\nFor more information, please visit: `+zt);const q=e.originalExpiration??e.expiration;return{...e,...q?{originalExpiration:q}:{},expiration:C}};const staticStabilityProvider=(e,m={})=>{const h=m?.logger||console;let C;return async()=>{let m;try{m=await e();if(m.expiration&&m.expiration.getTime()<Date.now()){m=getExtendedInstanceMetadataCredentials(m,h)}}catch(e){if(C){h.warn("Credential renew failed: ",e);m=getExtendedInstanceMetadataCredentials(C,h)}else{throw e}}C=m;return m}};const Ht="/latest/meta-data/iam/security-credentials/";const Wt="/latest/api/token";const Kt="AWS_EC2_METADATA_V1_DISABLED";const Yt="ec2_metadata_v1_disabled";const Qt="x-aws-ec2-metadata-token";const fromInstanceMetadata=(e={})=>staticStabilityProvider(getInstanceMetadataProvider(e),{logger:e.logger});const getInstanceMetadataProvider=(e={})=>{let m=false;const{logger:h,profile:q}=e;const{timeout:V,maxRetries:le}=providerConfigFromInit(e);const getCredentials=async(h,V)=>{const le=m||V.headers?.[Qt]==null;if(le){let m=false;let h=false;const V=await fe.loadConfig({environmentVariableSelector:m=>{const q=m[Kt];h=!!q&&q!=="false";if(q===undefined){throw new C.CredentialsProviderError(`${Kt} not set in env, checking config file next.`,{logger:e.logger})}return h},configFileSelector:e=>{const h=e[Yt];m=!!h&&h!=="false";return m},default:false},{profile:q})();if(e.ec2MetadataV1Disabled||V){const C=[];if(e.ec2MetadataV1Disabled)C.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(m)C.push(`config file profile (${Yt})`);if(h)C.push(`process environment variable (${Kt})`);throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${C.join(", ")}].`)}}const he=(await retry((async()=>{let e;try{e=await getProfile(V)}catch(e){if(e.statusCode===401){m=false}throw e}return e}),h)).trim();return retry((async()=>{let h;try{h=await getCredentialsFromProfile(he,V,e)}catch(e){if(e.statusCode===401){m=false}throw e}return h}),h)};return async()=>{const e=await getInstanceMetadataEndpoint();if(m){h?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)");return getCredentials(le,{...e,timeout:V})}else{let C;try{C=(await getMetadataToken({...e,timeout:V})).toString()}catch(C){if(C?.statusCode===400){throw Object.assign(C,{message:"EC2 Metadata token request returned error"})}else if(C.message==="TimeoutError"||[403,404,405].includes(C.statusCode)){m=true}h?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)");return getCredentials(le,{...e,timeout:V})}return getCredentials(le,{...e,headers:{[Qt]:C},timeout:V})}}};const getMetadataToken=async e=>httpRequest({...e,path:Wt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await httpRequest({...e,path:Ht})).toString();const getCredentialsFromProfile=async(e,m,h)=>{const q=JSON.parse((await httpRequest({...m,path:Ht+e})).toString());if(!isImdsCredentials(q)){throw new C.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:h.logger})}return fromImdsCredentials(q)};m.DEFAULT_MAX_RETRIES=ve;m.DEFAULT_TIMEOUT=ye;m.ENV_CMDS_AUTH_TOKEN=qe;m.ENV_CMDS_FULL_URI=Le;m.ENV_CMDS_RELATIVE_URI=Ue;m.fromContainerMetadata=fromContainerMetadata;m.fromInstanceMetadata=fromInstanceMetadata;m.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;m.httpRequest=httpRequest;m.providerConfigFromInit=providerConfigFromInit},3103:(e,m,h)=>{var C=h(9228);var q=h(6464);var V=h(3158);function createRequest(e,m){return new Request(e,m)}function requestTimeout(e=0){return new Promise(((m,h)=>{if(e){setTimeout((()=>{const m=new Error(`Request did not complete within ${e} ms`);m.name="TimeoutError";h(m)}),e)}}))}const le={supported:undefined};class FetchHttpHandler{config;configProvider;static create(e){if(typeof e?.handle==="function"){return e}return new FetchHttpHandler(e)}constructor(e){if(typeof e==="function"){this.configProvider=e().then((e=>e||{}))}else{this.config=e??{};this.configProvider=Promise.resolve(this.config)}if(le.supported===undefined){le.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in createRequest("https://[::1]"))}}destroy(){}async handle(e,{abortSignal:m,requestTimeout:h}={}){if(!this.config){this.config=await this.configProvider}const V=h??this.config.requestTimeout;const fe=this.config.keepAlive===true;const he=this.config.credentials;if(m?.aborted){const e=buildAbortError(m);return Promise.reject(e)}let ye=e.path;const ve=q.buildQueryString(e.query||{});if(ve){ye+=`?${ve}`}if(e.fragment){ye+=`#${e.fragment}`}let Le="";if(e.username!=null||e.password!=null){const m=e.username??"";const h=e.password??"";Le=`${m}:${h}@`}const{port:Ue,method:qe}=e;const ze=`${e.protocol}//${Le}${e.hostname}${Ue?`:${Ue}`:""}${ye}`;const He=qe==="GET"||qe==="HEAD"?undefined:e.body;const We={body:He,headers:new Headers(e.headers),method:qe,credentials:he};if(this.config?.cache){We.cache=this.config.cache}if(He){We.duplex="half"}if(typeof AbortController!=="undefined"){We.signal=m}if(le.supported){We.keepalive=fe}if(typeof this.config.requestInit==="function"){Object.assign(We,this.config.requestInit(e))}let removeSignalEventListener=()=>{};const Qe=createRequest(ze,We);const Je=[fetch(Qe).then((e=>{const m=e.headers;const h={};for(const e of m.entries()){h[e[0]]=e[1]}const q=e.body!=undefined;if(!q){return e.blob().then((m=>({response:new C.HttpResponse({headers:h,reason:e.statusText,statusCode:e.status,body:m})})))}return{response:new C.HttpResponse({headers:h,reason:e.statusText,statusCode:e.status,body:e.body})}})),requestTimeout(V)];if(m){Je.push(new Promise(((e,h)=>{const onAbort=()=>{const e=buildAbortError(m);h(e)};if(typeof m.addEventListener==="function"){const e=m;e.addEventListener("abort",onAbort,{once:true});removeSignalEventListener=()=>e.removeEventListener("abort",onAbort)}else{m.onabort=onAbort}})))}return Promise.race(Je).finally(removeSignalEventListener)}updateHttpClientConfig(e,m){this.config=undefined;this.configProvider=this.configProvider.then((h=>{h[e]=m;return h}))}httpHandlerConfigs(){return this.config??{}}}function buildAbortError(e){const m=e&&typeof e==="object"&&"reason"in e?e.reason:undefined;if(m){if(m instanceof Error){const e=new Error("Request aborted");e.name="AbortError";e.cause=m;return e}const e=new Error(String(m));e.name="AbortError";return e}const h=new Error("Request aborted");h.name="AbortError";return h}const streamCollector=async e=>{if(typeof Blob==="function"&&e instanceof Blob||e.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==undefined){return new Uint8Array(await e.arrayBuffer())}return collectBlob(e)}return collectStream(e)};async function collectBlob(e){const m=await readToBase64(e);const h=V.fromBase64(m);return new Uint8Array(h)}async function collectStream(e){const m=[];const h=e.getReader();let C=false;let q=0;while(!C){const{done:e,value:V}=await h.read();if(V){m.push(V);q+=V.length}C=e}const V=new Uint8Array(q);let le=0;for(const e of m){V.set(e,le);le+=e.length}return V}function readToBase64(e){return new Promise(((m,h)=>{const C=new FileReader;C.onloadend=()=>{if(C.readyState!==2){return h(new Error("Reader aborted too early"))}const e=C.result??"";const q=e.indexOf(",");const V=q>-1?q+1:e.length;m(e.substring(V))};C.onabort=()=>h(new Error("Read aborted"));C.onerror=()=>h(C.error);C.readAsDataURL(e)}))}m.FetchHttpHandler=FetchHttpHandler;m.keepAliveSupport=le;m.streamCollector=streamCollector},8300:(e,m,h)=>{var C=h(1643);var q=h(8165);var V=h(181);var le=h(6982);class Hash{algorithmIdentifier;secret;hash;constructor(e,m){this.algorithmIdentifier=e;this.secret=m;this.reset()}update(e,m){this.hash.update(q.toUint8Array(castSourceData(e,m)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?le.createHmac(this.algorithmIdentifier,castSourceData(this.secret)):le.createHash(this.algorithmIdentifier)}}function castSourceData(e,m){if(V.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return C.fromString(e,m)}if(ArrayBuffer.isView(e)){return C.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return C.fromArrayBuffer(e)}m.Hash=Hash},5031:(e,m)=>{const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";m.isArrayBuffer=isArrayBuffer},5700:(e,m,h)=>{var C=h(9228);const q="content-length";function contentLengthMiddleware(e){return m=>async h=>{const V=h.request;if(C.HttpRequest.isInstance(V)){const{body:m,headers:h}=V;if(m&&Object.keys(h).map((e=>e.toLowerCase())).indexOf(q)===-1){try{const h=e(m);V.headers={...V.headers,[q]:String(h)}}catch(e){}}}return m({...h,request:V})}}const V={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:m=>{m.add(contentLengthMiddleware(e.bodyLengthChecker),V)}});m.contentLengthMiddleware=contentLengthMiddleware;m.contentLengthMiddlewareOptions=V;m.getContentLengthPlugin=getContentLengthPlugin},1318:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getEndpointFromConfig=void 0;const C=h(1125);const q=h(1085);const getEndpointFromConfig=async e=>(0,C.loadConfig)((0,q.getEndpointUrlConfig)(e??""))();m.getEndpointFromConfig=getEndpointFromConfig},1085:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getEndpointUrlConfig=void 0;const C=h(7016);const q="AWS_ENDPOINT_URL";const V="endpoint_url";const getEndpointUrlConfig=e=>({environmentVariableSelector:m=>{const h=e.split(" ").map((e=>e.toUpperCase()));const C=m[[q,...h].join("_")];if(C)return C;const V=m[q];if(V)return V;return undefined},configFileSelector:(m,h)=>{if(h&&m.services){const q=h[["services",m.services].join(C.CONFIG_PREFIX_SEPARATOR)];if(q){const m=e.split(" ").map((e=>e.toLowerCase()));const h=q[[m.join("_"),V].join(C.CONFIG_PREFIX_SEPARATOR)];if(h)return h}}const q=m[V];if(q)return q;return undefined},default:undefined});m.getEndpointUrlConfig=getEndpointUrlConfig},8946:(e,m,h)=>{var C=h(1318);var q=h(4418);var V=h(4918);var le=h(5496);var fe=h(4851);const resolveParamsForS3=async e=>{const m=e?.Bucket||"";if(typeof e.Bucket==="string"){e.Bucket=m.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(m)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(m)||m.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||m.toLowerCase()!==m||m.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};const he=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const ye=/(\d+\.){3}\d+/;const ve=/\.\./;const isDnsCompatibleBucketName=e=>he.test(e)&&!ye.test(e)&&!ve.test(e);const isArnBucketName=e=>{const[m,h,C,,,q]=e.split(":");const V=m==="arn"&&e.split(":").length>=6;const le=Boolean(V&&h&&C&&q);if(V&&!le){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return le};const createConfigValueProvider=(e,m,h,C=false)=>{const configProvider=async()=>{let q;if(C){const C=h.clientContextParams;const V=C?.[e];q=V??h[e]??h[m]}else{q=h[e]??h[m]}if(typeof q==="function"){return q()}return q};if(e==="credentialScope"||m==="CredentialScope"){return async()=>{const e=typeof h.credentials==="function"?await h.credentials():h.credentials;const m=e?.credentialScope??e?.CredentialScope;return m}}if(e==="accountId"||m==="AccountId"){return async()=>{const e=typeof h.credentials==="function"?await h.credentials():h.credentials;const m=e?.accountId??e?.AccountId;return m}}if(e==="endpoint"||m==="endpoint"){return async()=>{if(h.isCustomEndpoint===false){return undefined}const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:m,hostname:h,port:C,path:q}=e;return`${m}//${h}${C?":"+C:""}${q}`}}return e}}return configProvider};const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){const m=q.parseUrl(e.url);if(e.headers){m.headers={};for(const[h,C]of Object.entries(e.headers)){m.headers[h.toLowerCase()]=C.join(", ")}}return m}return e}return q.parseUrl(e)};const getEndpointFromInstructions=async(e,m,h,q)=>{if(!h.isCustomEndpoint){let e;if(h.serviceConfiguredEndpoint){e=await h.serviceConfiguredEndpoint()}else{e=await C.getEndpointFromConfig(h.serviceId)}if(e){h.endpoint=()=>Promise.resolve(toEndpointV1(e));h.isCustomEndpoint=true}}const V=await resolveParams(e,m,h);if(typeof h.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const le=h.endpointProvider(V,q);if(h.isCustomEndpoint&&h.endpoint){const e=await h.endpoint();if(e?.headers){le.headers??={};for(const[m,h]of Object.entries(e.headers)){le.headers[m]=Array.isArray(h)?h:[h]}}}return le};const resolveParams=async(e,m,h)=>{const C={};const q=m?.getEndpointParameterInstructions?.()||{};for(const[m,V]of Object.entries(q)){switch(V.type){case"staticContextParams":C[m]=V.value;break;case"contextParams":C[m]=e[V.name];break;case"clientContextParams":case"builtInParams":C[m]=await createConfigValueProvider(V.name,m,h,V.type!=="builtInParams")();break;case"operationContextParams":C[m]=V.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(V))}}if(Object.keys(q).length===0){Object.assign(C,h)}if(String(h.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(C)}return C};const endpointMiddleware=({config:e,instructions:m})=>(h,C)=>async q=>{if(e.isCustomEndpoint){V.setFeature(C,"ENDPOINT_OVERRIDE","N")}const fe=await getEndpointFromInstructions(q.input,{getEndpointParameterInstructions(){return m}},{...e},C);C.endpointV2=fe;C.authSchemes=fe.properties?.authSchemes;const he=C.authSchemes?.[0];if(he){C["signing_region"]=he.signingRegion;C["signing_service"]=he.signingName;const e=le.getSmithyContext(C);const m=e?.selectedHttpAuthScheme?.httpAuthOption;if(m){m.signingProperties=Object.assign(m.signingProperties||{},{signing_region:he.signingRegion,signingRegion:he.signingRegion,signing_service:he.signingName,signingName:he.signingName,signingRegionSet:he.signingRegionSet},he.properties)}}return h({...q})};const Le={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:fe.serializerMiddlewareOption.name};const getEndpointPlugin=(e,m)=>({applyToStack:h=>{h.addRelativeTo(endpointMiddleware({config:e,instructions:m}),Le)}});const resolveEndpointConfig=e=>{const m=e.tls??true;const{endpoint:h,useDualstackEndpoint:q,useFipsEndpoint:V}=e;const fe=h!=null?async()=>toEndpointV1(await le.normalizeProvider(h)()):undefined;const he=!!h;const ye=Object.assign(e,{endpoint:fe,tls:m,isCustomEndpoint:he,useDualstackEndpoint:le.normalizeProvider(q??false),useFipsEndpoint:le.normalizeProvider(V??false)});let ve=undefined;ye.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!ve){ve=C.getEndpointFromConfig(e.serviceId)}return ve};return ye};const resolveEndpointRequiredConfig=e=>{const{endpoint:m}=e;if(m===undefined){e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return e};m.endpointMiddleware=endpointMiddleware;m.endpointMiddlewareOptions=Le;m.getEndpointFromInstructions=getEndpointFromInstructions;m.getEndpointPlugin=getEndpointPlugin;m.resolveEndpointConfig=resolveEndpointConfig;m.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;m.resolveParams=resolveParams;m.toEndpointV1=toEndpointV1},4433:(e,m,h)=>{var C=h(2346);var q=h(9228);var V=h(518);var le=h(8525);var fe=h(5496);var he=h(4271);var ye=h(1576);const getDefaultRetryQuota=(e,m)=>{const h=e;const q=C.NO_RETRY_INCREMENT;const V=C.RETRY_COST;const le=C.TIMEOUT_RETRY_COST;let fe=e;const getCapacityAmount=e=>e.name==="TimeoutError"?le:V;const hasRetryTokens=e=>getCapacityAmount(e)<=fe;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const m=getCapacityAmount(e);fe-=m;return m};const releaseRetryTokens=e=>{fe+=e??q;fe=Math.min(fe,h)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(e,m)=>Math.floor(Math.min(C.MAXIMUM_RETRY_DELAY,Math.random()*2**m*e));const defaultRetryDecider=e=>{if(!e){return false}return V.isRetryableByTrait(e)||V.isClockSkewError(e)||V.isThrottlingError(e)||V.isTransientError(e)};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=C.RETRY_MODES.STANDARD;constructor(e,m){this.maxAttemptsProvider=e;this.retryDecider=m?.retryDecider??defaultRetryDecider;this.delayDecider=m?.delayDecider??defaultDelayDecider;this.retryQuota=m?.retryQuota??getDefaultRetryQuota(C.INITIAL_RETRY_TOKENS)}shouldRetry(e,m,h){return m<h&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(m){e=C.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,m,h){let fe;let he=0;let ye=0;const ve=await this.getMaxAttempts();const{request:Le}=m;if(q.HttpRequest.isInstance(Le)){Le.headers[C.INVOCATION_ID_HEADER]=le.v4()}while(true){try{if(q.HttpRequest.isInstance(Le)){Le.headers[C.REQUEST_HEADER]=`attempt=${he+1}; max=${ve}`}if(h?.beforeRequest){await h.beforeRequest()}const{response:V,output:le}=await e(m);if(h?.afterRequest){h.afterRequest(V)}this.retryQuota.releaseRetryTokens(fe);le.$metadata.attempts=he+1;le.$metadata.totalRetryDelay=ye;return{response:V,output:le}}catch(e){const m=asSdkError(e);he++;if(this.shouldRetry(m,he,ve)){fe=this.retryQuota.retrieveRetryTokens(m);const e=this.delayDecider(V.isThrottlingError(m)?C.THROTTLING_RETRY_DELAY_BASE:C.DEFAULT_RETRY_DELAY_BASE,he);const h=getDelayFromRetryAfterHeader(m.$response);const q=Math.max(h||0,e);ye+=q;await new Promise((e=>setTimeout(e,q)));continue}if(!m.$metadata){m.$metadata={}}m.$metadata.attempts=he;m.$metadata.totalRetryDelay=ye;throw m}}}}const getDelayFromRetryAfterHeader=e=>{if(!q.HttpResponse.isInstance(e))return;const m=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!m)return;const h=e.headers[m];const C=Number(h);if(!Number.isNaN(C))return C*1e3;const V=new Date(h);return V.getTime()-Date.now()};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(e,m){const{rateLimiter:h,...q}=m??{};super(e,q);this.rateLimiter=h??new C.DefaultRateLimiter;this.mode=C.RETRY_MODES.ADAPTIVE}async retry(e,m){return super.retry(e,m,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}const ve="AWS_MAX_ATTEMPTS";const Le="max_attempts";const Ue={environmentVariableSelector:e=>{const m=e[ve];if(!m)return undefined;const h=parseInt(m);if(Number.isNaN(h)){throw new Error(`Environment variable ${ve} mast be a number, got "${m}"`)}return h},configFileSelector:e=>{const m=e[Le];if(!m)return undefined;const h=parseInt(m);if(Number.isNaN(h)){throw new Error(`Shared config file entry ${Le} mast be a number, got "${m}"`)}return h},default:C.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{const{retryStrategy:m,retryMode:h}=e;const q=fe.normalizeProvider(e.maxAttempts??C.DEFAULT_MAX_ATTEMPTS);let V=m?Promise.resolve(m):undefined;const getDefault=async()=>await fe.normalizeProvider(h)()===C.RETRY_MODES.ADAPTIVE?new C.AdaptiveRetryStrategy(q):new C.StandardRetryStrategy(q);return Object.assign(e,{maxAttempts:q,retryStrategy:()=>V??=getDefault()})};const qe="AWS_RETRY_MODE";const ze="retry_mode";const He={environmentVariableSelector:e=>e[qe],configFileSelector:e=>e[ze],default:C.DEFAULT_RETRY_MODE};const omitRetryHeadersMiddleware=()=>e=>async m=>{const{request:h}=m;if(q.HttpRequest.isInstance(h)){delete h.headers[C.INVOCATION_ID_HEADER];delete h.headers[C.REQUEST_HEADER]}return e(m)};const We={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo(omitRetryHeadersMiddleware(),We)}});const retryMiddleware=e=>(m,h)=>async V=>{let fe=await e.retryStrategy();const ve=await e.maxAttempts();if(isRetryStrategyV2(fe)){fe=fe;let e=await fe.acquireInitialRetryToken(h["partition_id"]);let Le=new Error;let Ue=0;let qe=0;const{request:ze}=V;const He=q.HttpRequest.isInstance(ze);if(He){ze.headers[C.INVOCATION_ID_HEADER]=le.v4()}while(true){try{if(He){ze.headers[C.REQUEST_HEADER]=`attempt=${Ue+1}; max=${ve}`}const{response:h,output:q}=await m(V);fe.recordSuccess(e);q.$metadata.attempts=Ue+1;q.$metadata.totalRetryDelay=qe;return{response:h,output:q}}catch(m){const C=getRetryErrorInfo(m);Le=asSdkError(m);if(He&&ye.isStreamingPayload(ze)){(h.logger instanceof he.NoOpLogger?console:h.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw Le}try{e=await fe.refreshRetryTokenForRetry(e,C)}catch(e){if(!Le.$metadata){Le.$metadata={}}Le.$metadata.attempts=Ue+1;Le.$metadata.totalRetryDelay=qe;throw Le}Ue=e.getRetryCount();const q=e.getRetryDelay();qe+=q;await new Promise((e=>setTimeout(e,q)))}}}else{fe=fe;if(fe?.mode)h.userAgent=[...h.userAgent||[],["cfg/retry-mode",fe.mode]];return fe.retry(m,V)}};const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const m={error:e,errorType:getRetryErrorType(e)};const h=getRetryAfterHint(e.$response);if(h){m.retryAfterHint=h}return m};const getRetryErrorType=e=>{if(V.isThrottlingError(e))return"THROTTLING";if(V.isTransientError(e))return"TRANSIENT";if(V.isServerError(e))return"SERVER_ERROR";return"CLIENT_ERROR"};const Qe={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:m=>{m.add(retryMiddleware(e),Qe)}});const getRetryAfterHint=e=>{if(!q.HttpResponse.isInstance(e))return;const m=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!m)return;const h=e.headers[m];const C=Number(h);if(!Number.isNaN(C))return new Date(C*1e3);const V=new Date(h);return V};m.AdaptiveRetryStrategy=AdaptiveRetryStrategy;m.CONFIG_MAX_ATTEMPTS=Le;m.CONFIG_RETRY_MODE=ze;m.ENV_MAX_ATTEMPTS=ve;m.ENV_RETRY_MODE=qe;m.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ue;m.NODE_RETRY_MODE_CONFIG_OPTIONS=He;m.StandardRetryStrategy=StandardRetryStrategy;m.defaultDelayDecider=defaultDelayDecider;m.defaultRetryDecider=defaultRetryDecider;m.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;m.getRetryAfterHint=getRetryAfterHint;m.getRetryPlugin=getRetryPlugin;m.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;m.omitRetryHeadersMiddlewareOptions=We;m.resolveRetryConfig=resolveRetryConfig;m.retryMiddleware=retryMiddleware;m.retryMiddlewareOptions=Qe},1576:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.isStreamingPayload=void 0;const C=h(2203);const isStreamingPayload=e=>e?.body instanceof C.Readable||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;m.isStreamingPayload=isStreamingPayload},4851:(e,m,h)=>{var C=h(9228);var q=h(4809);const deserializerMiddleware=(e,m)=>(h,q)=>async V=>{const{response:le}=await h(V);try{const h=await m(le,e);return{response:le,output:h}}catch(e){Object.defineProperty(e,"$response",{value:le,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const m=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+m}catch(e){if(!q.logger||q.logger?.constructor?.name==="NoOpLogger"){console.warn(m)}else{q.logger?.warn?.(m)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(C.HttpResponse.isInstance(le)){const{headers:m={}}=le;const h=Object.entries(m);e.$metadata={httpStatusCode:le.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,h),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,h),cfId:findHeader(/^x-[\w-]+-cf-id$/,h)}}}catch(e){}}throw e}};const findHeader=(e,m)=>(m.find((([m])=>m.match(e)))||[void 0,void 0])[1];const serializerMiddleware=(e,m)=>(h,C)=>async V=>{const le=e;const fe=C.endpointV2?async()=>q.toEndpointV1(C.endpointV2):le.endpoint;if(!fe){throw new Error("No valid endpoint provider available.")}const he=await m(V.input,{...e,endpoint:fe});return h({...V,request:he})};const V={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const le={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,m,h){return{applyToStack:C=>{C.add(deserializerMiddleware(e,h),V);C.add(serializerMiddleware(e,m),le)}}}m.deserializerMiddleware=deserializerMiddleware;m.deserializerMiddlewareOption=V;m.getSerdePlugin=getSerdePlugin;m.serializerMiddleware=serializerMiddleware;m.serializerMiddlewareOption=le},1218:(e,m)=>{const getAllAliases=(e,m)=>{const h=[];if(e){h.push(e)}if(m){for(const e of m){h.push(e)}}return h};const getMiddlewareNameWithAliases=(e,m)=>`${e||"anonymous"}${m&&m.length>0?` (a.k.a. ${m.join(",")})`:""}`;const constructStack=()=>{let e=[];let m=[];let q=false;const V=new Set;const sort=e=>e.sort(((e,m)=>h[m.step]-h[e.step]||C[m.priority||"normal"]-C[e.priority||"normal"]));const removeByName=h=>{let C=false;const filterCb=e=>{const m=getAllAliases(e.name,e.aliases);if(m.includes(h)){C=true;for(const e of m){V.delete(e)}return false}return true};e=e.filter(filterCb);m=m.filter(filterCb);return C};const removeByReference=h=>{let C=false;const filterCb=e=>{if(e.middleware===h){C=true;for(const m of getAllAliases(e.name,e.aliases)){V.delete(m)}return false}return true};e=e.filter(filterCb);m=m.filter(filterCb);return C};const cloneTo=h=>{e.forEach((e=>{h.add(e.middleware,{...e})}));m.forEach((e=>{h.addRelativeTo(e.middleware,{...e})}));h.identifyOnResolve?.(le.identifyOnResolve());return h};const expandRelativeMiddlewareList=e=>{const m=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){m.push(e)}else{m.push(...expandRelativeMiddlewareList(e))}}));m.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){m.push(e)}else{m.push(...expandRelativeMiddlewareList(e))}}));return m};const getMiddlewareList=(h=false)=>{const C=[];const q=[];const V={};e.forEach((e=>{const m={...e,before:[],after:[]};for(const e of getAllAliases(m.name,m.aliases)){V[e]=m}C.push(m)}));m.forEach((e=>{const m={...e,before:[],after:[]};for(const e of getAllAliases(m.name,m.aliases)){V[e]=m}q.push(m)}));q.forEach((e=>{if(e.toMiddleware){const m=V[e.toMiddleware];if(m===undefined){if(h){return}throw new Error(`${e.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(e.name,e.aliases)} `+`middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){m.after.push(e)}if(e.relation==="before"){m.before.push(e)}}}));const le=sort(C).map(expandRelativeMiddlewareList).reduce(((e,m)=>{e.push(...m);return e}),[]);return le};const le={add:(m,h={})=>{const{name:C,override:q,aliases:le}=h;const fe={step:"initialize",priority:"normal",middleware:m,...h};const he=getAllAliases(C,le);if(he.length>0){if(he.some((e=>V.has(e)))){if(!q)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(C,le)}'`);for(const m of he){const h=e.findIndex((e=>e.name===m||e.aliases?.some((e=>e===m))));if(h===-1){continue}const q=e[h];if(q.step!==fe.step||fe.priority!==q.priority){throw new Error(`"${getMiddlewareNameWithAliases(q.name,q.aliases)}" middleware with `+`${q.priority} priority in ${q.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(C,le)}" middleware with `+`${fe.priority} priority in ${fe.step} step.`)}e.splice(h,1)}}for(const e of he){V.add(e)}}e.push(fe)},addRelativeTo:(e,h)=>{const{name:C,override:q,aliases:le}=h;const fe={middleware:e,...h};const he=getAllAliases(C,le);if(he.length>0){if(he.some((e=>V.has(e)))){if(!q)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(C,le)}'`);for(const e of he){const h=m.findIndex((m=>m.name===e||m.aliases?.some((m=>m===e))));if(h===-1){continue}const q=m[h];if(q.toMiddleware!==fe.toMiddleware||q.relation!==fe.relation){throw new Error(`"${getMiddlewareNameWithAliases(q.name,q.aliases)}" middleware `+`${q.relation} "${q.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(C,le)}" middleware ${fe.relation} `+`"${fe.toMiddleware}" middleware.`)}m.splice(h,1)}}for(const e of he){V.add(e)}}m.push(fe)},clone:()=>cloneTo(constructStack()),use:e=>{e.applyToStack(le)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:h=>{let C=false;const filterCb=e=>{const{tags:m,name:q,aliases:le}=e;if(m&&m.includes(h)){const e=getAllAliases(q,le);for(const m of e){V.delete(m)}C=true;return false}return true};e=e.filter(filterCb);m=m.filter(filterCb);return C},concat:e=>{const m=cloneTo(constructStack());m.use(e);m.identifyOnResolve(q||m.identifyOnResolve()||(e.identifyOnResolve?.()??false));return m},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>{const m=e.step??e.relation+" "+e.toMiddleware;return getMiddlewareNameWithAliases(e.name,e.aliases)+" - "+m})),identifyOnResolve(e){if(typeof e==="boolean")q=e;return q},resolve:(e,m)=>{for(const h of getMiddlewareList().map((e=>e.middleware)).reverse()){e=h(e,m)}if(q){console.log(le.identify())}return e}};return le};const h={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const C={high:3,normal:2,low:1};m.constructStack=constructStack},1125:(e,m,h)=>{var C=h(4036);var q=h(7016);function getSelectorName(e){try{const m=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));m.delete("CONFIG");m.delete("CONFIG_PREFIX_SEPARATOR");m.delete("ENV");return[...m].join(", ")}catch(m){return e}}const fromEnv=(e,m)=>async()=>{try{const h=e(process.env,m);if(h===undefined){throw new Error}return h}catch(h){throw new C.CredentialsProviderError(h.message||`Not found in ENV: ${getSelectorName(e.toString())}`,{logger:m?.logger})}};const fromSharedConfigFiles=(e,{preferredFile:m="config",...h}={})=>async()=>{const V=q.getProfileName(h);const{configFile:le,credentialsFile:fe}=await q.loadSharedConfigFiles(h);const he=fe[V]||{};const ye=le[V]||{};const ve=m==="config"?{...he,...ye}:{...ye,...he};try{const h=m==="config"?le:fe;const C=e(ve,h);if(C===undefined){throw new Error}return C}catch(m){throw new C.CredentialsProviderError(m.message||`Not found in config files w/ profile [${V}]: ${getSelectorName(e.toString())}`,{logger:h.logger})}};const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():C.fromStatic(e);const loadConfig=({environmentVariableSelector:e,configFileSelector:m,default:h},q={})=>{const{signingName:V,logger:le}=q;const fe={signingName:V,logger:le};return C.memoize(C.chain(fromEnv(e,fe),fromSharedConfigFiles(m,q),fromStatic(h)))};m.loadConfig=loadConfig},5422:(e,m,h)=>{var C=h(9228);var q=h(6464);var V=h(4708);var le=h(7075);var fe=h(2467);function buildAbortError(e){const m=e&&typeof e==="object"&&"reason"in e?e.reason:undefined;if(m){if(m instanceof Error){const e=new Error("Request aborted");e.name="AbortError";e.cause=m;return e}const e=new Error(String(m));e.name="AbortError";return e}const h=new Error("Request aborted");h.name="AbortError";return h}const he=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=e=>{const m={};for(const h of Object.keys(e)){const C=e[h];m[h]=Array.isArray(C)?C.join(","):C}return m};const ye={setTimeout:(e,m)=>setTimeout(e,m),clearTimeout:e=>clearTimeout(e)};const ve=1e3;const setConnectionTimeout=(e,m,h=0)=>{if(!h){return-1}const registerTimeout=C=>{const q=ye.setTimeout((()=>{e.destroy();m(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${h} ms.`),{name:"TimeoutError"}))}),h-C);const doWithSocket=e=>{if(e?.connecting){e.on("connect",(()=>{ye.clearTimeout(q)}))}else{ye.clearTimeout(q)}};if(e.socket){doWithSocket(e.socket)}else{e.on("socket",doWithSocket)}};if(h<2e3){registerTimeout(0);return 0}return ye.setTimeout(registerTimeout.bind(null,ve),ve)};const setRequestTimeout=(e,m,h=0,C,q)=>{if(h){return ye.setTimeout((()=>{let V=`@smithy/node-http-handler - [${C?"ERROR":"WARN"}] a request has exceeded the configured ${h} ms requestTimeout.`;if(C){const h=Object.assign(new Error(V),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(h);m(h)}else{V+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;q?.warn?.(V)}}),h)}return-1};const Le=3e3;const setSocketKeepAlive=(e,{keepAlive:m,keepAliveMsecs:h},C=Le)=>{if(m!==true){return-1}const registerListener=()=>{if(e.socket){e.socket.setKeepAlive(m,h||0)}else{e.on("socket",(e=>{e.setKeepAlive(m,h||0)}))}};if(C===0){registerListener();return 0}return ye.setTimeout(registerListener,C)};const Ue=3e3;const setSocketTimeout=(e,m,h=0)=>{const registerTimeout=C=>{const q=h-C;const onTimeout=()=>{e.destroy();m(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${h} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket){e.socket.setTimeout(q,onTimeout);e.on("close",(()=>e.socket?.removeListener("timeout",onTimeout)))}else{e.setTimeout(q,onTimeout)}};if(0<h&&h<6e3){registerTimeout(0);return 0}return ye.setTimeout(registerTimeout.bind(null,h===0?0:Ue),Ue)};const qe=6e3;async function writeRequestBody(e,m,h=qe,C=false){const q=m.headers??{};const V=q.Expect||q.expect;let le=-1;let fe=true;if(!C&&V==="100-continue"){fe=await Promise.race([new Promise((e=>{le=Number(ye.setTimeout((()=>e(true)),Math.max(qe,h)))})),new Promise((m=>{e.on("continue",(()=>{ye.clearTimeout(le);m(true)}));e.on("response",(()=>{ye.clearTimeout(le);m(false)}));e.on("error",(()=>{ye.clearTimeout(le);m(false)}))}))])}if(fe){writeBody(e,m.body)}}function writeBody(e,m){if(m instanceof le.Readable){m.pipe(e);return}if(m){const h=Buffer.isBuffer(m);const C=typeof m==="string";if(h||C){if(h&&m.byteLength===0){e.end()}else{e.end(m)}return}const q=m;if(typeof q==="object"&&q.buffer&&typeof q.byteOffset==="number"&&typeof q.byteLength==="number"){e.end(Buffer.from(q.buffer,q.byteOffset,q.byteLength));return}e.end(Buffer.from(m));return}e.end()}const ze=0;let He=undefined;let We=undefined;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttpHandler(e)}static checkSocketUsage(e,m,h=console){const{sockets:C,requests:q,maxSockets:V}=e;if(typeof V!=="number"||V===Infinity){return m}const le=15e3;if(Date.now()-le<m){return m}if(C&&q){for(const e in C){const m=C[e]?.length??0;const le=q[e]?.length??0;if(m>=V&&le>=2*V){h?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${m} and ${le} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return m}constructor(e){this.configProvider=new Promise(((m,h)=>{if(typeof e==="function"){e().then((e=>{m(this.resolveDefaultConfig(e))})).catch(h)}else{m(this.resolveDefaultConfig(e))}}))}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:m,requestTimeout:h}={}){if(!this.config){this.config=await this.configProvider}const le=this.config;const fe=e.protocol==="https:";if(!fe&&!this.config.httpAgent){this.config.httpAgent=await this.config.httpAgentProvider()}return new Promise(((ve,Le)=>{let Ue=undefined;const qe=[];const resolve=async e=>{await Ue;qe.forEach(ye.clearTimeout);ve(e)};const reject=async e=>{await Ue;qe.forEach(ye.clearTimeout);Le(e)};if(m?.aborted){const e=buildAbortError(m);reject(e);return}const ze=e.headers??{};const Qe=(ze.Expect??ze.expect)==="100-continue";let Je=fe?le.httpsAgent:le.httpAgent;if(Qe&&!this.externalAgent){Je=new(fe?V.Agent:He)({keepAlive:false,maxSockets:Infinity})}qe.push(ye.setTimeout((()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(Je,this.socketWarningTimestamp,le.logger)}),le.socketAcquisitionWarningTimeout??(le.requestTimeout??2e3)+(le.connectionTimeout??1e3)));const It=q.buildQueryString(e.query||{});let _t=undefined;if(e.username!=null||e.password!=null){const m=e.username??"";const h=e.password??"";_t=`${m}:${h}`}let Mt=e.path;if(It){Mt+=`?${It}`}if(e.fragment){Mt+=`#${e.fragment}`}let Lt=e.hostname??"";if(Lt[0]==="["&&Lt.endsWith("]")){Lt=e.hostname.slice(1,-1)}else{Lt=e.hostname}const Ut={headers:e.headers,host:Lt,method:e.method,path:Mt,port:e.port,agent:Je,auth:_t};const qt=fe?V.request:We;const Gt=qt(Ut,(e=>{const m=new C.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:getTransformedHeaders(e.headers),body:e});resolve({response:m})}));Gt.on("error",(e=>{if(he.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));if(m){const onAbort=()=>{Gt.destroy();const e=buildAbortError(m);reject(e)};if(typeof m.addEventListener==="function"){const e=m;e.addEventListener("abort",onAbort,{once:true});Gt.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{m.onabort=onAbort}}const zt=h??le.requestTimeout;qe.push(setConnectionTimeout(Gt,reject,le.connectionTimeout));qe.push(setRequestTimeout(Gt,reject,zt,le.throwOnRequestTimeout,le.logger??console));qe.push(setSocketTimeout(Gt,reject,le.socketTimeout));const Ht=Ut.agent;if(typeof Ht==="object"&&"keepAlive"in Ht){qe.push(setSocketKeepAlive(Gt,{keepAlive:Ht.keepAlive,keepAliveMsecs:Ht.keepAliveMsecs}))}Ue=writeRequestBody(Gt,e,zt,this.externalAgent).catch((e=>{qe.forEach(ye.clearTimeout);return Le(e)}))}))}updateHttpClientConfig(e,m){this.config=undefined;this.configProvider=this.configProvider.then((h=>({...h,[e]:m})))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){const{requestTimeout:m,connectionTimeout:C,socketTimeout:q,socketAcquisitionWarningTimeout:le,httpAgent:fe,httpsAgent:he,throwOnRequestTimeout:ye,logger:ve}=e||{};const Le=true;const Ue=50;return{connectionTimeout:C,requestTimeout:m,socketTimeout:q,socketAcquisitionWarningTimeout:le,throwOnRequestTimeout:ye,httpAgentProvider:async()=>{const{Agent:e,request:m}=await Promise.resolve().then(h.t.bind(h,7067,23));We=m;He=e;if(fe instanceof He||typeof fe?.destroy==="function"){this.externalAgent=true;return fe}return new He({keepAlive:Le,maxSockets:Ue,...fe})},httpsAgent:(()=>{if(he instanceof V.Agent||typeof he?.destroy==="function"){this.externalAgent=true;return he}return new V.Agent({keepAlive:Le,maxSockets:Ue,...he})})(),logger:ve}}}class NodeHttp2ConnectionPool{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((m=>m!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const m of this.sessions){if(m===e){if(!m.destroyed){m.destroy()}}}}}class NodeHttp2ConnectionManager{constructor(e){this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}config;sessionCache=new Map;lease(e,m){const h=this.getUrlString(e);const C=this.sessionCache.get(h);if(C){const e=C.poll();if(e&&!this.config.disableConcurrency){return e}}const q=fe.connect(h);if(this.config.maxConcurrency){q.settings({maxConcurrentStreams:this.config.maxConcurrency},(m=>{if(m){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}q.unref();const destroySessionCb=()=>{q.destroy();this.deleteSession(h,q)};q.on("goaway",destroySessionCb);q.on("error",destroySessionCb);q.on("frameError",destroySessionCb);q.on("close",(()=>this.deleteSession(h,q)));if(m.requestTimeout){q.setTimeout(m.requestTimeout,destroySessionCb)}const V=this.sessionCache.get(h)||new NodeHttp2ConnectionPool;V.offerLast(q);this.sessionCache.set(h,V);return q}deleteSession(e,m){const h=this.sessionCache.get(e);if(!h){return}if(!h.contains(m)){return}h.remove(m);this.sessionCache.set(e,h)}release(e,m){const h=this.getUrlString(e);this.sessionCache.get(h)?.offerLast(m)}destroy(){for(const[e,m]of this.sessionCache){for(const e of m){if(!e.destroyed){e.destroy()}m.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttp2Handler(e)}constructor(e){this.configProvider=new Promise(((m,h)=>{if(typeof e==="function"){e().then((e=>{m(e||{})})).catch(h)}else{m(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:m,requestTimeout:h}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:V,disableConcurrentStreams:le}=this.config;const he=h??V;return new Promise(((h,V)=>{let ye=false;let ve=undefined;const resolve=async e=>{await ve;h(e)};const reject=async e=>{await ve;V(e)};if(m?.aborted){ye=true;const e=buildAbortError(m);reject(e);return}const{hostname:Le,method:Ue,port:qe,protocol:ze,query:He}=e;let We="";if(e.username!=null||e.password!=null){const m=e.username??"";const h=e.password??"";We=`${m}:${h}@`}const Qe=`${ze}//${We}${Le}${qe?`:${qe}`:""}`;const Je={destination:new URL(Qe)};const It=this.connectionManager.lease(Je,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:le||false});const rejectWithDestroy=e=>{if(le){this.destroySession(It)}ye=true;reject(e)};const _t=q.buildQueryString(He||{});let Mt=e.path;if(_t){Mt+=`?${_t}`}if(e.fragment){Mt+=`#${e.fragment}`}const Lt=It.request({...e.headers,[fe.constants.HTTP2_HEADER_PATH]:Mt,[fe.constants.HTTP2_HEADER_METHOD]:Ue});It.ref();Lt.on("response",(e=>{const m=new C.HttpResponse({statusCode:e[":status"]||-1,headers:getTransformedHeaders(e),body:Lt});ye=true;resolve({response:m});if(le){It.close();this.connectionManager.deleteSession(Qe,It)}}));if(he){Lt.setTimeout(he,(()=>{Lt.close();const e=new Error(`Stream timed out because of no activity for ${he} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(m){const onAbort=()=>{Lt.close();const e=buildAbortError(m);rejectWithDestroy(e)};if(typeof m.addEventListener==="function"){const e=m;e.addEventListener("abort",onAbort,{once:true});Lt.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{m.onabort=onAbort}}Lt.on("frameError",((e,m,h)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${h} has failed with code ${m}.`))}));Lt.on("error",rejectWithDestroy);Lt.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Lt.rstCode}.`))}));Lt.on("close",(()=>{It.unref();if(le){It.destroy()}if(!ye){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));ve=writeRequestBody(Lt,e,he)}))}updateHttpClientConfig(e,m){this.config=undefined;this.configProvider=this.configProvider.then((h=>({...h,[e]:m})))}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed){e.destroy()}}}class Collector extends le.Writable{bufferedBytes=[];_write(e,m,h){this.bufferedBytes.push(e);h()}}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((m,h)=>{const C=new Collector;e.pipe(C);e.on("error",(e=>{C.end();h(e)}));C.on("error",h);C.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));m(e)}))}))};const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const m=[];const h=e.getReader();let C=false;let q=0;while(!C){const{done:e,value:V}=await h.read();if(V){m.push(V);q+=V.length}C=e}const V=new Uint8Array(q);let le=0;for(const e of m){V.set(e,le);le+=e.length}return V}m.DEFAULT_REQUEST_TIMEOUT=ze;m.NodeHttp2Handler=NodeHttp2Handler;m.NodeHttpHandler=NodeHttpHandler;m.streamCollector=streamCollector},4036:(e,m)=>{class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(e,m=true){let h;let C=true;if(typeof m==="boolean"){h=undefined;C=m}else if(m!=null&&typeof m==="object"){h=m.logger;C=m.tryNextLink??true}super(e);this.tryNextLink=C;Object.setPrototypeOf(this,ProviderError.prototype);h?.debug?.(`@smithy/property-provider ${C?"->":"(!)"} ${e}`)}static from(e,m=true){return Object.assign(new this(e.message,m),e)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(e,m=true){super(e,m);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(e,m=true){super(e,m);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...e)=>async()=>{if(e.length===0){throw new ProviderError("No providers in chain")}let m;for(const h of e){try{const e=await h();return e}catch(e){m=e;if(e?.tryNextLink){continue}throw e}}throw m};const fromStatic=e=>()=>Promise.resolve(e);const memoize=(e,m,h)=>{let C;let q;let V;let le=false;const coalesceProvider=async()=>{if(!q){q=e()}try{C=await q;V=true;le=false}finally{q=undefined}return C};if(m===undefined){return async e=>{if(!V||e?.forceRefresh){C=await coalesceProvider()}return C}}return async e=>{if(!V||e?.forceRefresh){C=await coalesceProvider()}if(le){return C}if(h&&!h(C)){le=true;return C}if(m(C)){await coalesceProvider();return C}return C}};m.CredentialsProviderError=CredentialsProviderError;m.ProviderError=ProviderError;m.TokenProviderError=TokenProviderError;m.chain=chain;m.fromStatic=fromStatic;m.memoize=memoize},9228:(e,m,h)=>{var C=h(5674);const getHttpHandlerExtensionConfiguration=e=>({setHttpHandler(m){e.httpHandler=m},httpHandler(){return e.httpHandler},updateHttpClientConfig(m,h){e.httpHandler?.updateHttpClientConfig(m,h)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});class Field{name;kind;values;constructor({name:e,kind:m=C.FieldPosition.HEADER,values:h=[]}){this.name=e;this.kind=m;this.values=h}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((m=>m!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:e=[],encoding:m="utf-8"}){e.forEach(this.setField.bind(this));this.encoding=m}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((m=>m.kind===e))}}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static clone(e){const m=new HttpRequest({...e,headers:{...e.headers}});if(m.query){m.query=cloneQuery(m.query)}return m}static isInstance(e){if(!e){return false}const m=e;return"method"in m&&"protocol"in m&&"hostname"in m&&"path"in m&&typeof m["query"]==="object"&&typeof m["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(e){return Object.keys(e).reduce(((m,h)=>{const C=e[h];return{...m,[h]:Array.isArray(C)?[...C]:C}}),{})}class HttpResponse{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const m=e;return typeof m.statusCode==="number"&&typeof m.headers==="object"}}function isValidHostname(e){const m=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return m.test(e)}m.Field=Field;m.Fields=Fields;m.HttpRequest=HttpRequest;m.HttpResponse=HttpResponse;m.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;m.isValidHostname=isValidHostname;m.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig},6464:(e,m,h)=>{var C=h(7015);function buildQueryString(e){const m=[];for(let h of Object.keys(e).sort()){const q=e[h];h=C.escapeUri(h);if(Array.isArray(q)){for(let e=0,V=q.length;e<V;e++){m.push(`${h}=${C.escapeUri(q[e])}`)}}else{let e=h;if(q||typeof q==="string"){e+=`=${C.escapeUri(q)}`}m.push(e)}}return m.join("&")}m.buildQueryString=buildQueryString},3910:(e,m)=>{function parseQueryString(e){const m={};e=e.replace(/^\?/,"");if(e){for(const h of e.split("&")){let[e,C=null]=h.split("=");e=decodeURIComponent(e);if(C){C=decodeURIComponent(C)}if(!(e in m)){m[e]=C}else if(Array.isArray(m[e])){m[e].push(C)}else{m[e]=[m[e],C]}}}return m}m.parseQueryString=parseQueryString},518:(e,m)=>{const h=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const C=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const q=["TimeoutError","RequestTimeout","RequestTimeoutException"];const V=[500,502,503,504];const le=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const fe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];const isRetryableByTrait=e=>e?.$retryable!==undefined;const isClockSkewError=e=>h.includes(e.name);const isClockSkewCorrectedError=e=>e.$metadata?.clockSkewCorrected;const isBrowserNetworkError=e=>{const m=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const h=e&&e instanceof TypeError;if(!h){return false}return m.has(e.message)};const isThrottlingError=e=>e.$metadata?.httpStatusCode===429||C.includes(e.name)||e.$retryable?.throttling==true;const isTransientError=(e,m=0)=>isRetryableByTrait(e)||isClockSkewCorrectedError(e)||q.includes(e.name)||le.includes(e?.code||"")||fe.includes(e?.code||"")||V.includes(e.$metadata?.httpStatusCode||0)||isBrowserNetworkError(e)||e.cause!==undefined&&m<=10&&isTransientError(e.cause,m+1);const isServerError=e=>{if(e.$metadata?.httpStatusCode!==undefined){const m=e.$metadata.httpStatusCode;if(500<=m&&m<=599&&!isTransientError(e)){return true}return false}return false};m.isBrowserNetworkError=isBrowserNetworkError;m.isClockSkewCorrectedError=isClockSkewCorrectedError;m.isClockSkewError=isClockSkewError;m.isRetryableByTrait=isRetryableByTrait;m.isServerError=isServerError;m.isThrottlingError=isThrottlingError;m.isTransientError=isTransientError},1672:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getHomeDir=void 0;const C=h(857);const q=h(6928);const V={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:m,HOMEPATH:h,HOMEDRIVE:le=`C:${q.sep}`}=process.env;if(e)return e;if(m)return m;if(h)return`${le}${h}`;const fe=getHomeDirCacheKey();if(!V[fe])V[fe]=(0,C.homedir)();return V[fe]};m.getHomeDir=getHomeDir},4729:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getSSOTokenFilepath=void 0;const C=h(6982);const q=h(6928);const V=h(1672);const getSSOTokenFilepath=e=>{const m=(0,C.createHash)("sha1");const h=m.update(e).digest("hex");return(0,q.join)((0,V.getHomeDir)(),".aws","sso","cache",`${h}.json`)};m.getSSOTokenFilepath=getSSOTokenFilepath},9642:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getSSOTokenFromFile=m.tokenIntercept=void 0;const C=h(1943);const q=h(4729);m.tokenIntercept={};const getSSOTokenFromFile=async e=>{if(m.tokenIntercept[e]){return m.tokenIntercept[e]}const h=(0,q.getSSOTokenFilepath)(e);const V=await(0,C.readFile)(h,"utf8");return JSON.parse(V)};m.getSSOTokenFromFile=getSSOTokenFromFile},7016:(e,m,h)=>{var C=h(1672);var q=h(4729);var V=h(9642);var le=h(6928);var fe=h(5674);var he=h(8360);const ye="AWS_PROFILE";const ve="default";const getProfileName=e=>e.profile||process.env[ye]||ve;const Le=".";const getConfigData=e=>Object.entries(e).filter((([e])=>{const m=e.indexOf(Le);if(m===-1){return false}return Object.values(fe.IniSectionType).includes(e.substring(0,m))})).reduce(((e,[m,h])=>{const C=m.indexOf(Le);const q=m.substring(0,C)===fe.IniSectionType.PROFILE?m.substring(C+1):m;e[q]=h;return e}),{...e.default&&{default:e.default}});const Ue="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[Ue]||le.join(C.getHomeDir(),".aws","config");const qe="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[qe]||le.join(C.getHomeDir(),".aws","credentials");const ze=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;const He=["__proto__","profile __proto__"];const parseIni=e=>{const m={};let h;let C;for(const q of e.split(/\r?\n/)){const e=q.split(/(^|\s)[;#]/)[0].trim();const V=e[0]==="["&&e[e.length-1]==="]";if(V){h=undefined;C=undefined;const m=e.substring(1,e.length-1);const q=ze.exec(m);if(q){const[,e,,m]=q;if(Object.values(fe.IniSectionType).includes(e)){h=[e,m].join(Le)}}else{h=m}if(He.includes(m)){throw new Error(`Found invalid profile name "${m}"`)}}else if(h){const V=e.indexOf("=");if(![0,-1].includes(V)){const[le,fe]=[e.substring(0,V).trim(),e.substring(V+1).trim()];if(fe===""){C=le}else{if(C&&q.trimStart()===q){C=undefined}m[h]=m[h]||{};const e=C?[C,le].join(Le):le;m[h][e]=fe}}}}return m};const swallowError$1=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:m=getCredentialsFilepath(),configFilepath:h=getConfigFilepath()}=e;const q=C.getHomeDir();const V="~/";let fe=m;if(m.startsWith(V)){fe=le.join(q,m.slice(2))}let ye=h;if(h.startsWith(V)){ye=le.join(q,h.slice(2))}const ve=await Promise.all([he.readFile(ye,{ignoreCache:e.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),he.readFile(fe,{ignoreCache:e.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:ve[0],credentialsFile:ve[1]}};const getSsoSessionData=e=>Object.entries(e).filter((([e])=>e.startsWith(fe.IniSectionType.SSO_SESSION+Le))).reduce(((e,[m,h])=>({...e,[m.substring(m.indexOf(Le)+1)]:h})),{});const swallowError=()=>({});const loadSsoSessionData=async(e={})=>he.readFile(e.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...e)=>{const m={};for(const h of e){for(const[e,C]of Object.entries(h)){if(m[e]!==undefined){Object.assign(m[e],C)}else{m[e]=C}}}return m};const parseKnownFiles=async e=>{const m=await loadSharedConfigFiles(e);return mergeConfigFiles(m.configFile,m.credentialsFile)};const We={getFileRecord(){return he.fileIntercept},interceptFile(e,m){he.fileIntercept[e]=Promise.resolve(m)},getTokenRecord(){return V.tokenIntercept},interceptToken(e,m){V.tokenIntercept[e]=m}};m.getSSOTokenFromFile=V.getSSOTokenFromFile;m.readFile=he.readFile;m.CONFIG_PREFIX_SEPARATOR=Le;m.DEFAULT_PROFILE=ve;m.ENV_PROFILE=ye;m.externalDataInterceptor=We;m.getProfileName=getProfileName;m.loadSharedConfigFiles=loadSharedConfigFiles;m.loadSsoSessionData=loadSsoSessionData;m.parseKnownFiles=parseKnownFiles;Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=C[e]}));Object.prototype.hasOwnProperty.call(q,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:q["__proto__"]});Object.keys(q).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=q[e]}))},8360:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.readFile=m.fileIntercept=m.filePromises=void 0;const C=h(1455);m.filePromises={};m.fileIntercept={};const readFile=(e,h)=>{if(m.fileIntercept[e]!==undefined){return m.fileIntercept[e]}if(!m.filePromises[e]||h?.ignoreCache){m.filePromises[e]=(0,C.readFile)(e,"utf8")}return m.filePromises[e]};m.readFile=readFile},7202:(e,m,h)=>{var C=h(7661);var q=h(8165);var V=h(5031);var le=h(9228);var fe=h(5496);var he=h(7015);const ye="X-Amz-Algorithm";const ve="X-Amz-Credential";const Le="X-Amz-Date";const Ue="X-Amz-SignedHeaders";const qe="X-Amz-Expires";const ze="X-Amz-Signature";const He="X-Amz-Security-Token";const We="X-Amz-Region-Set";const Qe="authorization";const Je=Le.toLowerCase();const It="date";const _t=[Qe,Je,It];const Mt=ze.toLowerCase();const Lt="x-amz-content-sha256";const Ut=He.toLowerCase();const qt="host";const Gt={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const zt=/^proxy-/;const Ht=/^sec-/;const Wt=[/^proxy-/i,/^sec-/i];const Kt="AWS4-HMAC-SHA256";const Yt="AWS4-ECDSA-P256-SHA256";const Qt="AWS4-HMAC-SHA256-PAYLOAD";const Jt="UNSIGNED-PAYLOAD";const Xt=50;const Zt="aws4_request";const en=60*60*24*7;const tn={};const nn=[];const createScope=(e,m,h)=>`${e}/${m}/${h}/${Zt}`;const getSigningKey=async(e,m,h,q,V)=>{const le=await hmac(e,m.secretAccessKey,m.accessKeyId);const fe=`${h}:${q}:${V}:${C.toHex(le)}:${m.sessionToken}`;if(fe in tn){return tn[fe]}nn.push(fe);while(nn.length>Xt){delete tn[nn.shift()]}let he=`AWS4${m.secretAccessKey}`;for(const m of[h,q,V,Zt]){he=await hmac(e,he,m)}return tn[fe]=he};const clearCredentialCache=()=>{nn.length=0;Object.keys(tn).forEach((e=>{delete tn[e]}))};const hmac=(e,m,h)=>{const C=new e(m);C.update(q.toUint8Array(h));return C.digest()};const getCanonicalHeaders=({headers:e},m,h)=>{const C={};for(const q of Object.keys(e).sort()){if(e[q]==undefined){continue}const V=q.toLowerCase();if(V in Gt||m?.has(V)||zt.test(V)||Ht.test(V)){if(!h||h&&!h.has(V)){continue}}C[V]=e[q].trim().replace(/\s+/g," ")}return C};const getPayloadHash=async({headers:e,body:m},h)=>{for(const m of Object.keys(e)){if(m.toLowerCase()===Lt){return e[m]}}if(m==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof m==="string"||ArrayBuffer.isView(m)||V.isArrayBuffer(m)){const e=new h;e.update(q.toUint8Array(m));return C.toHex(await e.digest())}return Jt};class HeaderFormatter{format(e){const m=[];for(const h of Object.keys(e)){const C=q.fromUtf8(h);m.push(Uint8Array.from([C.byteLength]),C,this.formatHeaderValue(e[h]))}const h=new Uint8Array(m.reduce(((e,m)=>e+m.byteLength),0));let C=0;for(const e of m){h.set(e,C);C+=e.byteLength}return h}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const m=new DataView(new ArrayBuffer(3));m.setUint8(0,3);m.setInt16(1,e.value,false);return new Uint8Array(m.buffer);case"integer":const h=new DataView(new ArrayBuffer(5));h.setUint8(0,4);h.setInt32(1,e.value,false);return new Uint8Array(h.buffer);case"long":const V=new Uint8Array(9);V[0]=5;V.set(e.value.bytes,1);return V;case"binary":const le=new DataView(new ArrayBuffer(3+e.value.byteLength));le.setUint8(0,6);le.setUint16(1,e.value.byteLength,false);const fe=new Uint8Array(le.buffer);fe.set(e.value,3);return fe;case"string":const he=q.fromUtf8(e.value);const ye=new DataView(new ArrayBuffer(3+he.byteLength));ye.setUint8(0,7);ye.setUint16(1,he.byteLength,false);const ve=new Uint8Array(ye.buffer);ve.set(he,3);return ve;case"timestamp":const Le=new Uint8Array(9);Le[0]=8;Le.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return Le;case"uuid":if(!rn.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const Ue=new Uint8Array(17);Ue[0]=9;Ue.set(C.fromHex(e.value.replace(/\-/g,"")),1);return Ue}}}const rn=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const m=new Uint8Array(8);for(let h=7,C=Math.abs(Math.round(e));h>-1&&C>0;h--,C/=256){m[h]=C}if(e<0){negate(m)}return new Int64(m)}valueOf(){const e=this.bytes.slice(0);const m=e[0]&128;if(m){negate(e)}return parseInt(C.toHex(e),16)*(m?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let m=0;m<8;m++){e[m]^=255}for(let m=7;m>-1;m--){e[m]++;if(e[m]!==0)break}}const hasHeader=(e,m)=>{e=e.toLowerCase();for(const h of Object.keys(m)){if(e===h.toLowerCase()){return true}}return false};const moveHeadersToQuery=(e,m={})=>{const{headers:h,query:C={}}=le.HttpRequest.clone(e);for(const e of Object.keys(h)){const q=e.toLowerCase();if(q.slice(0,6)==="x-amz-"&&!m.unhoistableHeaders?.has(q)||m.hoistableHeaders?.has(q)){C[e]=h[e];delete h[e]}}return{...e,headers:h,query:C}};const prepareRequest=e=>{e=le.HttpRequest.clone(e);for(const m of Object.keys(e.headers)){if(_t.indexOf(m.toLowerCase())>-1){delete e.headers[m]}}return e};const getCanonicalQuery=({query:e={}})=>{const m=[];const h={};for(const C of Object.keys(e)){if(C.toLowerCase()===Mt){continue}const q=he.escapeUri(C);m.push(q);const V=e[C];if(typeof V==="string"){h[q]=`${q}=${he.escapeUri(V)}`}else if(Array.isArray(V)){h[q]=V.slice(0).reduce(((e,m)=>e.concat([`${q}=${he.escapeUri(m)}`])),[]).sort().join("&")}}return m.sort().map((e=>h[e])).filter((e=>e)).join("&")};const iso8601=e=>toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:m,region:h,service:C,sha256:q,uriEscapePath:V=true}){this.service=C;this.sha256=q;this.uriEscapePath=V;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=fe.normalizeProvider(h);this.credentialProvider=fe.normalizeProvider(m)}createCanonicalRequest(e,m,h){const C=Object.keys(m).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${getCanonicalQuery(e)}\n${C.map((e=>`${e}:${m[e]}`)).join("\n")}\n\n${C.join(";")}\n${h}`}async createStringToSign(e,m,h,V){const le=new this.sha256;le.update(q.toUint8Array(h));const fe=await le.digest();return`${V}\n${e}\n${m}\n${C.toHex(fe)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const m=[];for(const h of e.split("/")){if(h?.length===0)continue;if(h===".")continue;if(h===".."){m.pop()}else{m.push(h)}}const h=`${e?.startsWith("/")?"/":""}${m.join("/")}${m.length>0&&e?.endsWith("/")?"/":""}`;const C=he.escapeUri(h);return C.replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(e){const m=iso8601(e).replace(/[\-:]/g,"");return{longDate:m,shortDate:m.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:e,credentials:m,region:h,service:C,sha256:q,uriEscapePath:V=true}){super({applyChecksum:e,credentials:m,region:h,service:C,sha256:q,uriEscapePath:V})}async presign(e,m={}){const{signingDate:h=new Date,expiresIn:C=3600,unsignableHeaders:q,unhoistableHeaders:V,signableHeaders:le,hoistableHeaders:fe,signingRegion:he,signingService:We}=m;const Qe=await this.credentialProvider();this.validateResolvedCredentials(Qe);const Je=he??await this.regionProvider();const{longDate:It,shortDate:_t}=this.formatDate(h);if(C>en){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const Mt=createScope(_t,Je,We??this.service);const Lt=moveHeadersToQuery(prepareRequest(e),{unhoistableHeaders:V,hoistableHeaders:fe});if(Qe.sessionToken){Lt.query[He]=Qe.sessionToken}Lt.query[ye]=Kt;Lt.query[ve]=`${Qe.accessKeyId}/${Mt}`;Lt.query[Le]=It;Lt.query[qe]=C.toString(10);const Ut=getCanonicalHeaders(Lt,q,le);Lt.query[Ue]=this.getCanonicalHeaderList(Ut);Lt.query[ze]=await this.getSignature(It,Mt,this.getSigningKey(Qe,Je,_t,We),this.createCanonicalRequest(Lt,Ut,await getPayloadHash(e,this.sha256)));return Lt}async sign(e,m){if(typeof e==="string"){return this.signString(e,m)}else if(e.headers&&e.payload){return this.signEvent(e,m)}else if(e.message){return this.signMessage(e,m)}else{return this.signRequest(e,m)}}async signEvent({headers:e,payload:m},{signingDate:h=new Date,priorSignature:q,signingRegion:V,signingService:le}){const fe=V??await this.regionProvider();const{shortDate:he,longDate:ye}=this.formatDate(h);const ve=createScope(he,fe,le??this.service);const Le=await getPayloadHash({headers:{},body:m},this.sha256);const Ue=new this.sha256;Ue.update(e);const qe=C.toHex(await Ue.digest());const ze=[Qt,ye,ve,q,qe,Le].join("\n");return this.signString(ze,{signingDate:h,signingRegion:fe,signingService:le})}async signMessage(e,{signingDate:m=new Date,signingRegion:h,signingService:C}){const q=this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:m,signingRegion:h,signingService:C,priorSignature:e.priorSignature});return q.then((m=>({message:e.message,signature:m})))}async signString(e,{signingDate:m=new Date,signingRegion:h,signingService:V}={}){const le=await this.credentialProvider();this.validateResolvedCredentials(le);const fe=h??await this.regionProvider();const{shortDate:he}=this.formatDate(m);const ye=new this.sha256(await this.getSigningKey(le,fe,he,V));ye.update(q.toUint8Array(e));return C.toHex(await ye.digest())}async signRequest(e,{signingDate:m=new Date,signableHeaders:h,unsignableHeaders:C,signingRegion:q,signingService:V}={}){const le=await this.credentialProvider();this.validateResolvedCredentials(le);const fe=q??await this.regionProvider();const he=prepareRequest(e);const{longDate:ye,shortDate:ve}=this.formatDate(m);const Le=createScope(ve,fe,V??this.service);he.headers[Je]=ye;if(le.sessionToken){he.headers[Ut]=le.sessionToken}const Ue=await getPayloadHash(he,this.sha256);if(!hasHeader(Lt,he.headers)&&this.applyChecksum){he.headers[Lt]=Ue}const qe=getCanonicalHeaders(he,C,h);const ze=await this.getSignature(ye,Le,this.getSigningKey(le,fe,ve,V),this.createCanonicalRequest(he,qe,Ue));he.headers[Qe]=`${Kt} `+`Credential=${le.accessKeyId}/${Le}, `+`SignedHeaders=${this.getCanonicalHeaderList(qe)}, `+`Signature=${ze}`;return he}async getSignature(e,m,h,V){const le=await this.createStringToSign(e,m,V,Kt);const fe=new this.sha256(await h);fe.update(q.toUint8Array(le));return C.toHex(await fe.digest())}getSigningKey(e,m,h,C){return getSigningKey(this.sha256,e,h,m,C||this.service)}}const on={SignatureV4a:null};m.ALGORITHM_IDENTIFIER=Kt;m.ALGORITHM_IDENTIFIER_V4A=Yt;m.ALGORITHM_QUERY_PARAM=ye;m.ALWAYS_UNSIGNABLE_HEADERS=Gt;m.AMZ_DATE_HEADER=Je;m.AMZ_DATE_QUERY_PARAM=Le;m.AUTH_HEADER=Qe;m.CREDENTIAL_QUERY_PARAM=ve;m.DATE_HEADER=It;m.EVENT_ALGORITHM_IDENTIFIER=Qt;m.EXPIRES_QUERY_PARAM=qe;m.GENERATED_HEADERS=_t;m.HOST_HEADER=qt;m.KEY_TYPE_IDENTIFIER=Zt;m.MAX_CACHE_SIZE=Xt;m.MAX_PRESIGNED_TTL=en;m.PROXY_HEADER_PATTERN=zt;m.REGION_SET_PARAM=We;m.SEC_HEADER_PATTERN=Ht;m.SHA256_HEADER=Lt;m.SIGNATURE_HEADER=Mt;m.SIGNATURE_QUERY_PARAM=ze;m.SIGNED_HEADERS_QUERY_PARAM=Ue;m.SignatureV4=SignatureV4;m.SignatureV4Base=SignatureV4Base;m.TOKEN_HEADER=Ut;m.TOKEN_QUERY_PARAM=He;m.UNSIGNABLE_PATTERNS=Wt;m.UNSIGNED_PAYLOAD=Jt;m.clearCredentialCache=clearCredentialCache;m.createScope=createScope;m.getCanonicalHeaders=getCanonicalHeaders;m.getCanonicalQuery=getCanonicalQuery;m.getPayloadHash=getPayloadHash;m.getSigningKey=getSigningKey;m.hasHeader=hasHeader;m.moveHeadersToQuery=moveHeadersToQuery;m.prepareRequest=prepareRequest;m.signatureV4aContainer=on},4271:(e,m,h)=>{var C=h(1218);var q=h(5770);var V=h(5674);var le=h(2566);var fe=h(8682);class Client{config;middlewareStack=C.constructStack();initConfig;handlers;constructor(e){this.config=e;const{protocol:m,protocolSettings:h}=e;if(h){if(typeof m==="function"){e.protocol=new m(h)}}}send(e,m,h){const C=typeof m!=="function"?m:undefined;const q=typeof m==="function"?m:h;const V=C===undefined&&this.config.cacheMiddleware===true;let le;if(V){if(!this.handlers){this.handlers=new WeakMap}const m=this.handlers;if(m.has(e.constructor)){le=m.get(e.constructor)}else{le=e.resolveMiddleware(this.middlewareStack,this.config,C);m.set(e.constructor,le)}}else{delete this.handlers;le=e.resolveMiddleware(this.middlewareStack,this.config,C)}if(q){le(e).then((e=>q(null,e.output)),(e=>q(e))).catch((()=>{}))}else{return le(e).then((e=>e.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const he="***SensitiveInformation***";function schemaLogFilter(e,m){if(m==null){return m}const h=le.NormalizedSchema.of(e);if(h.getMergedTraits().sensitive){return he}if(h.isListSchema()){const e=!!h.getValueSchema().getMergedTraits().sensitive;if(e){return he}}else if(h.isMapSchema()){const e=!!h.getKeySchema().getMergedTraits().sensitive||!!h.getValueSchema().getMergedTraits().sensitive;if(e){return he}}else if(h.isStructSchema()&&typeof m==="object"){const e=m;const C={};for(const[m,q]of h.structIterator()){if(e[m]!=null){C[m]=schemaLogFilter(q,e[m])}}return C}return m}class Command{middlewareStack=C.constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(e,m,h,{middlewareFn:C,clientName:q,commandName:le,inputFilterSensitiveLog:fe,outputFilterSensitiveLog:he,smithyContext:ye,additionalContext:ve,CommandCtor:Le}){for(const q of C.bind(this)(Le,e,m,h)){this.middlewareStack.use(q)}const Ue=e.concat(this.middlewareStack);const{logger:qe}=m;const ze={logger:qe,clientName:q,commandName:le,inputFilterSensitiveLog:fe,outputFilterSensitiveLog:he,[V.SMITHY_CONTEXT_KEY]:{commandInstance:this,...ye},...ve};const{requestHandler:He}=m;return Ue.resolve((e=>He.handle(e.request,h||{})),ze)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){this._ep=e;return this}m(e){this._middlewareFn=e;return this}s(e,m,h={}){this._smithyContext={service:e,operation:m,...h};return this}c(e={}){this._additionalContext=e;return this}n(e,m){this._clientName=e;this._commandName=m;return this}f(e=e=>e,m=e=>e){this._inputFilterSensitiveLog=e;this._outputFilterSensitiveLog=m;return this}ser(e){this._serializer=e;return this}de(e){this._deserializer=e;return this}sc(e){this._operationSchema=e;this._smithyContext.operationSchema=e;return this}build(){const e=this;let m;return m=class extends Command{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[m]){super();this.input=m??{};e._init(this);this.schema=e._operationSchema}resolveMiddleware(h,C,q){const V=e._operationSchema;const le=V?.[4]??V?.input;const fe=V?.[5]??V?.output;return this.resolveMiddlewareWithContext(h,C,q,{CommandCtor:m,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(V?schemaLogFilter.bind(null,le):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(V?schemaLogFilter.bind(null,fe):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const ye="***SensitiveInformation***";const createAggregatedClient=(e,m,h)=>{for(const[h,C]of Object.entries(e)){const methodImpl=async function(e,m,h){const q=new C(e);if(typeof m==="function"){this.send(q,m)}else if(typeof h==="function"){if(typeof m!=="object")throw new Error(`Expected http options but got ${typeof m}`);this.send(q,m||{},h)}else{return this.send(q,m)}};const e=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");m.prototype[e]=methodImpl}const{paginators:C={},waiters:q={}}=h??{};for(const[e,h]of Object.entries(C)){if(m.prototype[e]===void 0){m.prototype[e]=function(e={},m,...C){return h({...m,client:this},e,...C)}}}for(const[e,h]of Object.entries(q)){if(m.prototype[e]===void 0){m.prototype[e]=async function(e={},m,...C){let q=m;if(typeof m==="number"){q={maxWaitTime:m}}return h({...q,client:this},e,...C)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}static isInstance(e){if(!e)return false;const m=e;return ServiceException.prototype.isPrototypeOf(m)||Boolean(m.$fault)&&Boolean(m.$metadata)&&(m.$fault==="client"||m.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return false;const m=e;if(this===ServiceException){return ServiceException.isInstance(e)}if(ServiceException.isInstance(e)){if(m.name&&this.name){return this.prototype.isPrototypeOf(e)||m.name===this.name}return this.prototype.isPrototypeOf(e)}return false}}const decorateServiceException=(e,m={})=>{Object.entries(m).filter((([,e])=>e!==undefined)).forEach((([m,h])=>{if(e[m]==undefined||e[m]===""){e[m]=h}}));const h=e.message||e.Message||"UnknownError";e.message=h;delete e.Message;return e};const throwDefaultError=({output:e,parsedBody:m,exceptionCtor:h,errorCode:C})=>{const q=deserializeMetadata(e);const V=q.httpStatusCode?q.httpStatusCode+"":undefined;const le=new h({name:m?.code||m?.Code||C||V||"UnknownError",$fault:"client",$metadata:q});throw decorateServiceException(le,m)};const withBaseException=e=>({output:m,parsedBody:h,errorCode:C})=>{throwDefaultError({output:m,parsedBody:h,exceptionCtor:e,errorCode:C})};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let ve=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!ve&&parseInt(e.substring(1,e.indexOf(".")))<16){ve=true}};const Le=Object.values(V.AlgorithmId);const getChecksumConfiguration=e=>{const m=[];for(const h in V.AlgorithmId){const C=V.AlgorithmId[h];if(e[C]===undefined){continue}m.push({algorithmId:()=>C,checksumConstructor:()=>e[C]})}for(const[h,C]of Object.entries(e.checksumAlgorithms??{})){m.push({algorithmId:()=>h,checksumConstructor:()=>C})}return{addChecksumAlgorithm(h){e.checksumAlgorithms=e.checksumAlgorithms??{};const C=h.algorithmId();const q=h.checksumConstructor();if(Le.includes(C)){e.checksumAlgorithms[C.toUpperCase()]=q}else{e.checksumAlgorithms[C]=q}m.push(h)},checksumAlgorithms(){return m}}};const resolveChecksumRuntimeConfig=e=>{const m={};e.checksumAlgorithms().forEach((e=>{const h=e.algorithmId();if(Le.includes(h)){m[h]=e.checksumConstructor()}}));return m};const getRetryConfiguration=e=>({setRetryStrategy(m){e.retryStrategy=m},retryStrategy(){return e.retryStrategy}});const resolveRetryRuntimeConfig=e=>{const m={};m.retryStrategy=e.retryStrategy();return m};const getDefaultExtensionConfiguration=e=>Object.assign(getChecksumConfiguration(e),getRetryConfiguration(e));const Ue=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>Object.assign(resolveChecksumRuntimeConfig(e),resolveRetryRuntimeConfig(e));const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];const getValueFromTextNode=e=>{const m="#text";for(const h in e){if(e.hasOwnProperty(h)&&e[h][m]!==undefined){e[h]=e[h][m]}else if(typeof e[h]==="object"&&e[h]!==null){e[h]=getValueFromTextNode(e[h])}}return e};const isSerializableHeaderValue=e=>e!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(e,m,h){let C;let q;let V;if(typeof m==="undefined"&&typeof h==="undefined"){C={};V=e}else{C=e;if(typeof m==="function"){q=m;V=h;return mapWithFilter(C,q,V)}else{V=m}}for(const e of Object.keys(V)){if(!Array.isArray(V[e])){C[e]=V[e];continue}applyInstruction(C,null,V,e)}return C}const convertMap=e=>{const m={};for(const[h,C]of Object.entries(e||{})){m[h]=[,C]}return m};const take=(e,m)=>{const h={};for(const C in m){applyInstruction(h,e,m,C)}return h};const mapWithFilter=(e,m,h)=>map(e,Object.entries(h).reduce(((e,[h,C])=>{if(Array.isArray(C)){e[h]=C}else{if(typeof C==="function"){e[h]=[m,C()]}else{e[h]=[m,C]}}return e}),{}));const applyInstruction=(e,m,h,C)=>{if(m!==null){let q=h[C];if(typeof q==="function"){q=[,q]}const[V=nonNullish,le=pass,fe=C]=q;if(typeof V==="function"&&V(m[fe])||typeof V!=="function"&&!!V){e[C]=le(m[fe])}return}let[q,V]=h[C];if(typeof V==="function"){let m;const h=q===undefined&&(m=V())!=null;const le=typeof q==="function"&&!!q(void 0)||typeof q!=="function"&&!!q;if(h){e[C]=m}else if(le){e[C]=V()}}else{const m=q===undefined&&V!=null;const h=typeof q==="function"&&!!q(V)||typeof q!=="function"&&!!q;if(m||h){e[C]=V}}};const nonNullish=e=>e!=null;const pass=e=>e;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};const serializeDateTime=e=>e.toISOString().replace(".000Z","Z");const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null)).map(_json)}if(typeof e==="object"){const m={};for(const h of Object.keys(e)){if(e[h]==null){continue}m[h]=_json(e[h])}return m}return e};m.collectBody=q.collectBody;m.extendedEncodeURIComponent=q.extendedEncodeURIComponent;m.resolvedPath=q.resolvedPath;m.Client=Client;m.Command=Command;m.NoOpLogger=NoOpLogger;m.SENSITIVE_STRING=ye;m.ServiceException=ServiceException;m._json=_json;m.convertMap=convertMap;m.createAggregatedClient=createAggregatedClient;m.decorateServiceException=decorateServiceException;m.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;m.getArrayIfSingleItem=getArrayIfSingleItem;m.getDefaultClientConfiguration=Ue;m.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;m.getValueFromTextNode=getValueFromTextNode;m.isSerializableHeaderValue=isSerializableHeaderValue;m.loadConfigsForDefaultMode=loadConfigsForDefaultMode;m.map=map;m.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;m.serializeDateTime=serializeDateTime;m.serializeFloat=serializeFloat;m.take=take;m.throwDefaultError=throwDefaultError;m.withBaseException=withBaseException;Object.prototype.hasOwnProperty.call(fe,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:fe["__proto__"]});Object.keys(fe).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=fe[e]}))},5674:(e,m)=>{m.HttpAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(m.HttpAuthLocation||(m.HttpAuthLocation={}));m.HttpApiKeyAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(m.HttpApiKeyAuthLocation||(m.HttpApiKeyAuthLocation={}));m.EndpointURLScheme=void 0;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(m.EndpointURLScheme||(m.EndpointURLScheme={}));m.AlgorithmId=void 0;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(m.AlgorithmId||(m.AlgorithmId={}));const getChecksumConfiguration=e=>{const h=[];if(e.sha256!==undefined){h.push({algorithmId:()=>m.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){h.push({algorithmId:()=>m.AlgorithmId.MD5,checksumConstructor:()=>e.md5})}return{addChecksumAlgorithm(e){h.push(e)},checksumAlgorithms(){return h}}};const resolveChecksumRuntimeConfig=e=>{const m={};e.checksumAlgorithms().forEach((e=>{m[e.algorithmId()]=e.checksumConstructor()}));return m};const getDefaultClientConfiguration=e=>getChecksumConfiguration(e);const resolveDefaultRuntimeConfig=e=>resolveChecksumRuntimeConfig(e);m.FieldPosition=void 0;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(m.FieldPosition||(m.FieldPosition={}));const h="__smithy_context";m.IniSectionType=void 0;(function(e){e["PROFILE"]="profile";e["SSO_SESSION"]="sso-session";e["SERVICES"]="services"})(m.IniSectionType||(m.IniSectionType={}));m.RequestHandlerProtocol=void 0;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(m.RequestHandlerProtocol||(m.RequestHandlerProtocol={}));m.SMITHY_CONTEXT_KEY=h;m.getDefaultClientConfiguration=getDefaultClientConfiguration;m.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},4418:(e,m,h)=>{var C=h(3910);const parseUrl=e=>{if(typeof e==="string"){return parseUrl(new URL(e))}const{hostname:m,pathname:h,port:q,protocol:V,search:le}=e;let fe;if(le){fe=C.parseQueryString(le)}return{hostname:m,port:q?parseInt(q):undefined,protocol:V,path:h,query:fe}};m.parseUrl=parseUrl},8667:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.fromBase64=void 0;const C=h(1643);const q=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!q.exec(e)){throw new TypeError(`Invalid base64 string.`)}const m=(0,C.fromString)(e,"base64");return new Uint8Array(m.buffer,m.byteOffset,m.byteLength)};m.fromBase64=fromBase64},3158:(e,m,h)=>{var C=h(8667);var q=h(846);Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=C[e]}));Object.prototype.hasOwnProperty.call(q,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:q["__proto__"]});Object.keys(q).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=q[e]}))},846:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.toBase64=void 0;const C=h(1643);const q=h(8165);const toBase64=e=>{let m;if(typeof e==="string"){m=(0,q.fromUtf8)(e)}else{m=e}if(typeof m!=="object"||typeof m.byteOffset!=="number"||typeof m.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return(0,C.fromArrayBuffer)(m.buffer,m.byteOffset,m.byteLength).toString("base64")};m.toBase64=toBase64},3063:(e,m)=>{const h=typeof TextEncoder=="function"?new TextEncoder:null;const calculateBodyLength=e=>{if(typeof e==="string"){if(h){return h.encode(e).byteLength}let m=e.length;for(let h=m-1;h>=0;h--){const C=e.charCodeAt(h);if(C>127&&C<=2047)m++;else if(C>2047&&C<=65535)m+=2;if(C>=56320&&C<=57343)h--}return m}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}throw new Error(`Body Length computation failed for ${e}`)};m.calculateBodyLength=calculateBodyLength},6e3:(e,m,h)=>{var C=h(3024);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.byteLength(e)}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(e instanceof C.ReadStream){if(e.path!=null){return C.lstatSync(e.path).size}else if(typeof e.fd==="number"){return C.fstatSync(e.fd).size}}throw new Error(`Body Length computation failed for ${e}`)};m.calculateBodyLength=calculateBodyLength},1643:(e,m,h)=>{var C=h(5031);var q=h(181);const fromArrayBuffer=(e,m=0,h=e.byteLength-m)=>{if(!C.isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return q.Buffer.from(e,m,h)};const fromString=(e,m)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return m?q.Buffer.from(e,m):q.Buffer.from(e)};m.fromArrayBuffer=fromArrayBuffer;m.fromString=fromString},7883:(e,m)=>{const booleanSelector=(e,m,h)=>{if(!(m in e))return undefined;if(e[m]==="true")return true;if(e[m]==="false")return false;throw new Error(`Cannot load ${h} "${m}". Expected "true" or "false", got ${e[m]}.`)};const numberSelector=(e,m,h)=>{if(!(m in e))return undefined;const C=parseInt(e[m],10);if(Number.isNaN(C)){throw new TypeError(`Cannot load ${h} '${m}'. Expected number, got '${e[m]}'.`)}return C};m.SelectorType=void 0;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(m.SelectorType||(m.SelectorType={}));m.booleanSelector=booleanSelector;m.numberSelector=numberSelector},8322:(e,m,h)=>{var C=h(6477);var q=h(1125);var V=h(4036);const le="AWS_EXECUTION_ENV";const fe="AWS_REGION";const he="AWS_DEFAULT_REGION";const ye="AWS_EC2_METADATA_DISABLED";const ve=["in-region","cross-region","mobile","standard","legacy"];const Le="/latest/meta-data/placement/region";const Ue="AWS_DEFAULTS_MODE";const qe="defaults_mode";const ze={environmentVariableSelector:e=>e[Ue],configFileSelector:e=>e[qe],default:"legacy"};const resolveDefaultsModeConfig=({region:e=q.loadConfig(C.NODE_REGION_CONFIG_OPTIONS),defaultsMode:m=q.loadConfig(ze)}={})=>V.memoize((async()=>{const h=typeof m==="function"?await m():m;switch(h?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(h?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${ve.join(", ")}, got ${h}`)}}));const resolveNodeDefaultsModeAuto=async e=>{if(e){const m=typeof e==="function"?await e():e;const h=await inferPhysicalRegion();if(!h){return"standard"}if(m===h){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[le]&&(process.env[fe]||process.env[he])){return process.env[fe]??process.env[he]}if(!process.env[ye]){try{const{getInstanceMetadataEndpoint:e,httpRequest:m}=await Promise.resolve().then(h.t.bind(h,5518,19));const C=await e();return(await m({...C,path:Le})).toString()}catch(e){}}};m.resolveDefaultsModeConfig=resolveDefaultsModeConfig},9356:(e,m,h)=>{var C=h(5674);class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:e,params:m}){this.capacity=e??50;if(m){this.parameters=m}}get(e,m){const h=this.hash(e);if(h===false){return m()}if(!this.data.has(h)){if(this.data.size>this.capacity+10){const e=this.data.keys();let m=0;while(true){const{value:h,done:C}=e.next();this.data.delete(h);if(C||++m>10){break}}}this.data.set(h,m())}return this.data.get(h)}size(){return this.data.size}hash(e){let m="";const{parameters:h}=this;if(h.length===0){return false}for(const C of h){const h=String(e[C]??"");if(h.includes("|;")){return false}m+=h+"|;"}return m}}const q=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=e=>q.test(e)||e.startsWith("[")&&e.endsWith("]");const V=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,m=false)=>{if(!m){return V.test(e)}const h=e.split(".");for(const e of h){if(!isValidHostLabel(e)){return false}}return true};const le={};const fe="endpoints";function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}const booleanEquals=(e,m)=>e===m;const getAttrPathList=e=>{const m=e.split(".");const h=[];for(const C of m){const m=C.indexOf("[");if(m!==-1){if(C.indexOf("]")!==C.length-1){throw new EndpointError(`Path: '${e}' does not end with ']'`)}const q=C.slice(m+1,-1);if(Number.isNaN(parseInt(q))){throw new EndpointError(`Invalid array index: '${q}' in path: '${e}'`)}if(m!==0){h.push(C.slice(0,m))}h.push(q)}else{h.push(C)}}return h};const getAttr=(e,m)=>getAttrPathList(m).reduce(((h,C)=>{if(typeof h!=="object"){throw new EndpointError(`Index '${C}' in '${m}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(h)){return h[parseInt(C)]}return h[C]}),e);const isSet=e=>e!=null;const not=e=>!e;const he={[C.EndpointURLScheme.HTTP]:80,[C.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const m=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:m,port:h,protocol:C="",path:q="",query:V={}}=e;const le=new URL(`${C}//${m}${h?`:${h}`:""}${q}`);le.search=Object.entries(V).map((([e,m])=>`${e}=${m}`)).join("&");return le}return new URL(e)}catch(e){return null}})();if(!m){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const h=m.href;const{host:q,hostname:V,pathname:le,protocol:fe,search:ye}=m;if(ye){return null}const ve=fe.slice(0,-1);if(!Object.values(C.EndpointURLScheme).includes(ve)){return null}const Le=isIpAddress(V);const Ue=h.includes(`${q}:${he[ve]}`)||typeof e==="string"&&e.includes(`${q}:${he[ve]}`);const qe=`${q}${Ue?`:${he[ve]}`:``}`;return{scheme:ve,authority:qe,path:le,normalizedPath:le.endsWith("/")?le:`${le}/`,isIp:Le}};const stringEquals=(e,m)=>e===m;const substring=(e,m,h,C)=>{if(m>=h||e.length<h||/[^\u0000-\u007f]/.test(e)){return null}if(!C){return e.substring(m,h)}return e.substring(e.length-h,e.length-m)};const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));const ye={booleanEquals:booleanEquals,getAttr:getAttr,isSet:isSet,isValidHostLabel:isValidHostLabel,not:not,parseURL:parseURL,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(e,m)=>{const h=[];const C={...m.endpointParams,...m.referenceRecord};let q=0;while(q<e.length){const m=e.indexOf("{",q);if(m===-1){h.push(e.slice(q));break}h.push(e.slice(q,m));const V=e.indexOf("}",m);if(V===-1){h.push(e.slice(m));break}if(e[m+1]==="{"&&e[V+1]==="}"){h.push(e.slice(m+1,V));q=V+2}const le=e.substring(m+1,V);if(le.includes("#")){const[e,m]=le.split("#");h.push(getAttr(C[e],m))}else{h.push(C[le])}q=V+1}return h.join("")};const getReferenceValue=({ref:e},m)=>{const h={...m.endpointParams,...m.referenceRecord};return h[e]};const evaluateExpression=(e,m,h)=>{if(typeof e==="string"){return evaluateTemplate(e,h)}else if(e["fn"]){return ve.callFunction(e,h)}else if(e["ref"]){return getReferenceValue(e,h)}throw new EndpointError(`'${m}': ${String(e)} is not a string, function or reference.`)};const callFunction=({fn:e,argv:m},h)=>{const C=m.map((e=>["boolean","number"].includes(typeof e)?e:ve.evaluateExpression(e,"arg",h)));const q=e.split(".");if(q[0]in le&&q[1]!=null){return le[q[0]][q[1]](...C)}return ye[e](...C)};const ve={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=({assign:e,...m},h)=>{if(e&&e in h.referenceRecord){throw new EndpointError(`'${e}' is already defined in Reference Record.`)}const C=callFunction(m,h);h.logger?.debug?.(`${fe} evaluateCondition: ${toDebugString(m)} = ${toDebugString(C)}`);return{result:C===""?true:!!C,...e!=null&&{toAssign:{name:e,value:C}}}};const evaluateConditions=(e=[],m)=>{const h={};for(const C of e){const{result:e,toAssign:q}=evaluateCondition(C,{...m,referenceRecord:{...m.referenceRecord,...h}});if(!e){return{result:e}}if(q){h[q.name]=q.value;m.logger?.debug?.(`${fe} assign: ${q.name} := ${toDebugString(q.value)}`)}}return{result:true,referenceRecord:h}};const getEndpointHeaders=(e,m)=>Object.entries(e).reduce(((e,[h,C])=>({...e,[h]:C.map((e=>{const C=evaluateExpression(e,"Header value entry",m);if(typeof C!=="string"){throw new EndpointError(`Header '${h}' value '${C}' is not a string`)}return C}))})),{});const getEndpointProperties=(e,m)=>Object.entries(e).reduce(((e,[h,C])=>({...e,[h]:Le.getEndpointProperty(C,m)})),{});const getEndpointProperty=(e,m)=>{if(Array.isArray(e)){return e.map((e=>getEndpointProperty(e,m)))}switch(typeof e){case"string":return evaluateTemplate(e,m);case"object":if(e===null){throw new EndpointError(`Unexpected endpoint property: ${e}`)}return Le.getEndpointProperties(e,m);case"boolean":return e;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};const Le={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(e,m)=>{const h=evaluateExpression(e,"Endpoint URL",m);if(typeof h==="string"){try{return new URL(h)}catch(e){console.error(`Failed to construct URL with ${h}`,e);throw e}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof h}`)};const evaluateEndpointRule=(e,m)=>{const{conditions:h,endpoint:C}=e;const{result:q,referenceRecord:V}=evaluateConditions(h,m);if(!q){return}const le={...m,referenceRecord:{...m.referenceRecord,...V}};const{url:he,properties:ye,headers:ve}=C;m.logger?.debug?.(`${fe} Resolving endpoint from template: ${toDebugString(C)}`);return{...ve!=undefined&&{headers:getEndpointHeaders(ve,le)},...ye!=undefined&&{properties:getEndpointProperties(ye,le)},url:getEndpointUrl(he,le)}};const evaluateErrorRule=(e,m)=>{const{conditions:h,error:C}=e;const{result:q,referenceRecord:V}=evaluateConditions(h,m);if(!q){return}throw new EndpointError(evaluateExpression(C,"Error",{...m,referenceRecord:{...m.referenceRecord,...V}}))};const evaluateRules=(e,m)=>{for(const h of e){if(h.type==="endpoint"){const e=evaluateEndpointRule(h,m);if(e){return e}}else if(h.type==="error"){evaluateErrorRule(h,m)}else if(h.type==="tree"){const e=Ue.evaluateTreeRule(h,m);if(e){return e}}else{throw new EndpointError(`Unknown endpoint rule: ${h}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(e,m)=>{const{conditions:h,rules:C}=e;const{result:q,referenceRecord:V}=evaluateConditions(h,m);if(!q){return}return Ue.evaluateRules(C,{...m,referenceRecord:{...m.referenceRecord,...V}})};const Ue={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(e,m)=>{const{endpointParams:h,logger:C}=m;const{parameters:q,rules:V}=e;m.logger?.debug?.(`${fe} Initial EndpointParams: ${toDebugString(h)}`);const le=Object.entries(q).filter((([,e])=>e.default!=null)).map((([e,m])=>[e,m.default]));if(le.length>0){for(const[e,m]of le){h[e]=h[e]??m}}const he=Object.entries(q).filter((([,e])=>e.required)).map((([e])=>e));for(const e of he){if(h[e]==null){throw new EndpointError(`Missing required parameter: '${e}'`)}}const ye=evaluateRules(V,{endpointParams:h,logger:C,referenceRecord:{}});m.logger?.debug?.(`${fe} Resolved endpoint: ${toDebugString(ye)}`);return ye};m.EndpointCache=EndpointCache;m.EndpointError=EndpointError;m.customEndpointFunctions=le;m.isIpAddress=isIpAddress;m.isValidHostLabel=isValidHostLabel;m.resolveEndpoint=resolveEndpoint},7661:(e,m)=>{const h={};const C={};for(let e=0;e<256;e++){let m=e.toString(16).toLowerCase();if(m.length===1){m=`0${m}`}h[e]=m;C[m]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const m=new Uint8Array(e.length/2);for(let h=0;h<e.length;h+=2){const q=e.slice(h,h+2).toLowerCase();if(q in C){m[h/2]=C[q]}else{throw new Error(`Cannot decode unrecognized sequence ${q} as hexadecimal`)}}return m}function toHex(e){let m="";for(let C=0;C<e.byteLength;C++){m+=h[e[C]]}return m}m.fromHex=fromHex;m.toHex=toHex},5496:(e,m,h)=>{var C=h(5674);const getSmithyContext=e=>e[C.SMITHY_CONTEXT_KEY]||(e[C.SMITHY_CONTEXT_KEY]={});const normalizeProvider=e=>{if(typeof e==="function")return e;const m=Promise.resolve(e);return()=>m};m.getSmithyContext=getSmithyContext;m.normalizeProvider=normalizeProvider},2346:(e,m,h)=>{var C=h(518);m.RETRY_MODES=void 0;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(m.RETRY_MODES||(m.RETRY_MODES={}));const q=3;const V=m.RETRY_MODES.STANDARD;class DefaultRateLimiter{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=false;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7;this.minCapacity=e?.minCapacity??1;this.minFillRate=e?.minFillRate??.5;this.scaleConstant=e?.scaleConstant??.4;this.smooth=e?.smooth??.8;const m=this.getCurrentTimeInSeconds();this.lastThrottleTime=m;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const m=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>DefaultRateLimiter.setTimeoutFn(e,m)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const m=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+m);this.lastTimestamp=e}updateClientSendingRate(e){let m;this.updateMeasuredRate();if(C.isThrottlingError(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();m=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();m=this.cubicSuccess(this.getCurrentTimeInSeconds())}const h=Math.min(m,2*this.measuredTxRate);this.updateTokenBucketRate(h)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const m=Math.floor(e*2)/2;this.requestCount++;if(m>this.lastTxRateBucket){const e=this.requestCount/(m-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=m}}getPrecise(e){return parseFloat(e.toFixed(8))}}const le=100;const fe=20*1e3;const he=500;const ye=500;const ve=5;const Le=10;const Ue=1;const qe="amz-sdk-invocation-id";const ze="amz-sdk-request";const getDefaultRetryBackoffStrategy=()=>{let e=le;const computeNextBackoffDelay=m=>Math.floor(Math.min(fe,Math.random()*2**m*e));const setDelayBase=m=>{e=m};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};const createDefaultRetryToken=({retryDelay:e,retryCount:m,retryCost:h})=>{const getRetryCount=()=>m;const getRetryDelay=()=>Math.min(fe,e);const getRetryCost=()=>h;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};class StandardRetryStrategy{maxAttempts;mode=m.RETRY_MODES.STANDARD;capacity=ye;retryBackoffStrategy=getDefaultRetryBackoffStrategy();maxAttemptsProvider;constructor(e){this.maxAttempts=e;this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return createDefaultRetryToken({retryDelay:le,retryCount:0})}async refreshRetryTokenForRetry(e,m){const h=await this.getMaxAttempts();if(this.shouldRetry(e,m,h)){const h=m.errorType;this.retryBackoffStrategy.setDelayBase(h==="THROTTLING"?he:le);const C=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const q=m.retryAfterHint?Math.max(m.retryAfterHint.getTime()-Date.now()||0,C):C;const V=this.getCapacityCost(h);this.capacity-=V;return createDefaultRetryToken({retryDelay:q,retryCount:e.getRetryCount()+1,retryCost:V})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(ye,this.capacity+(e.getRetryCost()??Ue))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${q}`);return q}}shouldRetry(e,m,h){const C=e.getRetryCount()+1;return C<h&&this.capacity>=this.getCapacityCost(m.errorType)&&this.isRetryableError(m.errorType)}getCapacityCost(e){return e==="TRANSIENT"?Le:ve}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class AdaptiveRetryStrategy{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=m.RETRY_MODES.ADAPTIVE;constructor(e,m){this.maxAttemptsProvider=e;const{rateLimiter:h}=m??{};this.rateLimiter=h??new DefaultRateLimiter;this.standardRetryStrategy=new StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,m){this.rateLimiter.updateClientSendingRate(m);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,m)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}class ConfiguredRetryStrategy extends StandardRetryStrategy{computeNextBackoffDelay;constructor(e,m=le){super(typeof e==="function"?e:async()=>e);if(typeof m==="number"){this.computeNextBackoffDelay=()=>m}else{this.computeNextBackoffDelay=m}}async refreshRetryTokenForRetry(e,m){const h=await super.refreshRetryTokenForRetry(e,m);h.getRetryDelay=()=>this.computeNextBackoffDelay(h.getRetryCount());return h}}m.AdaptiveRetryStrategy=AdaptiveRetryStrategy;m.ConfiguredRetryStrategy=ConfiguredRetryStrategy;m.DEFAULT_MAX_ATTEMPTS=q;m.DEFAULT_RETRY_DELAY_BASE=le;m.DEFAULT_RETRY_MODE=V;m.DefaultRateLimiter=DefaultRateLimiter;m.INITIAL_RETRY_TOKENS=ye;m.INVOCATION_ID_HEADER=qe;m.MAXIMUM_RETRY_DELAY=fe;m.NO_RETRY_INCREMENT=Ue;m.REQUEST_HEADER=ze;m.RETRY_COST=ve;m.StandardRetryStrategy=StandardRetryStrategy;m.THROTTLING_RETRY_DELAY_BASE=he;m.TIMEOUT_RETRY_COST=Le},1842:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.ByteArrayCollector=void 0;class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e);this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const e=this.byteArrays[0];this.reset();return e}const e=this.allocByteArray(this.byteLength);let m=0;for(let h=0;h<this.byteArrays.length;++h){const C=this.byteArrays[h];e.set(C,m);m+=C.byteLength}this.reset();return e}reset(){this.byteArrays=[];this.byteLength=0}}m.ByteArrayCollector=ByteArrayCollector},2027:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.ChecksumStream=void 0;const h=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends h{}m.ChecksumStream=ChecksumStream},4893:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.ChecksumStream=void 0;const C=h(3158);const q=h(2203);class ChecksumStream extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:m,source:h,checksumSourceLocation:q,base64Encoder:V}){super();if(typeof h.pipe==="function"){this.source=h}else{throw new Error(`@smithy/util-stream: unsupported source type ${h?.constructor?.name??h} in ChecksumStream.`)}this.base64Encoder=V??C.toBase64;this.expectedChecksum=e;this.checksum=m;this.checksumSourceLocation=q;this.source.pipe(this)}_read(e){if(this.pendingCallback){const e=this.pendingCallback;this.pendingCallback=null;e()}}_write(e,m,h){try{this.checksum.update(e);const m=this.push(e);if(!m){this.pendingCallback=h;return}}catch(e){return h(e)}return h()}async _final(e){try{const m=await this.checksum.digest();const h=this.base64Encoder(m);if(this.expectedChecksum!==h){return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${h}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(m){return e(m)}this.push(null);return e()}}m.ChecksumStream=ChecksumStream},7467:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.createChecksumStream=void 0;const C=h(3158);const q=h(2588);const V=h(2027);const createChecksumStream=({expectedChecksum:e,checksum:m,source:h,checksumSourceLocation:le,base64Encoder:fe})=>{if(!(0,q.isReadableStream)(h)){throw new Error(`@smithy/util-stream: unsupported source type ${h?.constructor?.name??h} in ChecksumStream.`)}const he=fe??C.toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const ye=new TransformStream({start(){},async transform(e,h){m.update(e);h.enqueue(e)},async flush(h){const C=await m.digest();const q=he(C);if(e!==q){const m=new Error(`Checksum mismatch: expected "${e}" but received "${q}"`+` in response header "${le}".`);h.error(m)}else{h.terminate()}}});h.pipeThrough(ye);const ve=ye.readable;Object.setPrototypeOf(ve,V.ChecksumStream.prototype);return ve};m.createChecksumStream=createChecksumStream},7453:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.createChecksumStream=createChecksumStream;const C=h(2588);const q=h(4893);const V=h(7467);function createChecksumStream(e){if(typeof ReadableStream==="function"&&(0,C.isReadableStream)(e.source)){return(0,V.createChecksumStream)(e)}return new q.ChecksumStream(e)}},8771:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.createBufferedReadable=createBufferedReadable;const C=h(7075);const q=h(1842);const V=h(9059);const le=h(2588);function createBufferedReadable(e,m,h){if((0,le.isReadableStream)(e)){return(0,V.createBufferedReadableStream)(e,m,h)}const fe=new C.Readable({read(){}});let he=false;let ye=0;const ve=["",new q.ByteArrayCollector((e=>new Uint8Array(e))),new q.ByteArrayCollector((e=>Buffer.from(new Uint8Array(e))))];let Le=-1;e.on("data",(e=>{const C=(0,V.modeOf)(e,true);if(Le!==C){if(Le>=0){fe.push((0,V.flush)(ve,Le))}Le=C}if(Le===-1){fe.push(e);return}const q=(0,V.sizeOf)(e);ye+=q;const le=(0,V.sizeOf)(ve[Le]);if(q>=m&&le===0){fe.push(e)}else{const C=(0,V.merge)(ve,Le,e);if(!he&&ye>m*2){he=true;h?.warn(`@smithy/util-stream - stream chunk size ${q} is below threshold of ${m}, automatically buffering.`)}if(C>=m){fe.push((0,V.flush)(ve,Le))}}}));e.on("end",(()=>{if(Le!==-1){const e=(0,V.flush)(ve,Le);if((0,V.sizeOf)(e)>0){fe.push(e)}}fe.push(null)}));return fe}},9059:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.createBufferedReadable=void 0;m.createBufferedReadableStream=createBufferedReadableStream;m.merge=merge;m.flush=flush;m.sizeOf=sizeOf;m.modeOf=modeOf;const C=h(1842);function createBufferedReadableStream(e,m,h){const q=e.getReader();let V=false;let le=0;const fe=["",new C.ByteArrayCollector((e=>new Uint8Array(e)))];let he=-1;const pull=async e=>{const{value:C,done:ye}=await q.read();const ve=C;if(ye){if(he!==-1){const m=flush(fe,he);if(sizeOf(m)>0){e.enqueue(m)}}e.close()}else{const C=modeOf(ve,false);if(he!==C){if(he>=0){e.enqueue(flush(fe,he))}he=C}if(he===-1){e.enqueue(ve);return}const q=sizeOf(ve);le+=q;const ye=sizeOf(fe[he]);if(q>=m&&ye===0){e.enqueue(ve)}else{const C=merge(fe,he,ve);if(!V&&le>m*2){V=true;h?.warn(`@smithy/util-stream - stream chunk size ${q} is below threshold of ${m}, automatically buffering.`)}if(C>=m){e.enqueue(flush(fe,he))}else{await pull(e)}}}};return new ReadableStream({pull:pull})}m.createBufferedReadable=createBufferedReadableStream;function merge(e,m,h){switch(m){case 0:e[0]+=h;return sizeOf(e[0]);case 1:case 2:e[m].push(h);return sizeOf(e[m])}}function flush(e,m){switch(m){case 0:const h=e[0];e[0]="";return h;case 1:case 2:return e[m].flush()}throw new Error(`@smithy/util-stream - invalid index ${m} given to flush()`)}function sizeOf(e){return e?.byteLength??e?.length??0}function modeOf(e,m=true){if(m&&typeof Buffer!=="undefined"&&e instanceof Buffer){return 2}if(e instanceof Uint8Array){return 1}if(typeof e==="string"){return 0}return-1}},470:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.getAwsChunkedEncodingStream=void 0;const getAwsChunkedEncodingStream=(e,m)=>{const{base64Encoder:h,bodyLengthChecker:C,checksumAlgorithmFn:q,checksumLocationName:V,streamHasher:le}=m;const fe=h!==undefined&&C!==undefined&&q!==undefined&&V!==undefined&&le!==undefined;const he=fe?le(q,e):undefined;const ye=e.getReader();return new ReadableStream({async pull(e){const{value:m,done:q}=await ye.read();if(q){e.enqueue(`0\r\n`);if(fe){const m=h(await he);e.enqueue(`${V}:${m}\r\n`);e.enqueue(`\r\n`)}e.close()}else{e.enqueue(`${(C(m)||0).toString(16)}\r\n${m}\r\n`)}}})};m.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},7872:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;const C=h(7075);const q=h(470);const V=h(2588);function getAwsChunkedEncodingStream(e,m){const h=e;const le=e;if((0,V.isReadableStream)(le)){return(0,q.getAwsChunkedEncodingStream)(le,m)}const{base64Encoder:fe,bodyLengthChecker:he,checksumAlgorithmFn:ye,checksumLocationName:ve,streamHasher:Le}=m;const Ue=fe!==undefined&&ye!==undefined&&ve!==undefined&&Le!==undefined;const qe=Ue?Le(ye,h):undefined;const ze=new C.Readable({read:()=>{}});h.on("data",(e=>{const m=he(e)||0;if(m===0){return}ze.push(`${m.toString(16)}\r\n`);ze.push(e);ze.push("\r\n")}));h.on("end",(async()=>{ze.push(`0\r\n`);if(Ue){const e=fe(await qe);ze.push(`${ve}:${e}\r\n`);ze.push(`\r\n`)}ze.push(null)}));return ze}},1748:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.headStream=headStream;async function headStream(e,m){let h=0;const C=[];const q=e.getReader();let V=false;while(!V){const{done:e,value:le}=await q.read();if(le){C.push(le);h+=le?.byteLength??0}if(h>=m){break}V=e}q.releaseLock();const le=new Uint8Array(Math.min(m,h));let fe=0;for(const e of C){if(e.byteLength>le.byteLength-fe){le.set(e.subarray(0,le.byteLength-fe),fe);break}else{le.set(e,fe)}fe+=e.length}return le}},5450:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.headStream=void 0;const C=h(2203);const q=h(1748);const V=h(2588);const headStream=(e,m)=>{if((0,V.isReadableStream)(e)){return(0,q.headStream)(e,m)}return new Promise(((h,C)=>{const q=new Collector;q.limit=m;e.pipe(q);e.on("error",(e=>{q.end();C(e)}));q.on("error",C);q.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.buffers));h(e)}))}))};m.headStream=headStream;class Collector extends C.Writable{buffers=[];limit=Infinity;bytesBuffered=0;_write(e,m,h){this.buffers.push(e);this.bytesBuffered+=e.byteLength??0;if(this.bytesBuffered>=this.limit){const e=this.bytesBuffered-this.limit;const m=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=m.subarray(0,m.byteLength-e);this.emit("finish")}h()}}},6442:(e,m,h)=>{var C=h(3158);var q=h(8165);var V=h(4893);var le=h(7453);var fe=h(8771);var he=h(7872);var ye=h(5450);var ve=h(7299);var Le=h(2018);var Ue=h(2588);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,m="utf-8"){if(typeof e==="string"){if(m==="base64"){return Uint8ArrayBlobAdapter.mutate(C.fromBase64(e))}return Uint8ArrayBlobAdapter.mutate(q.fromUtf8(e))}throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){if(e==="base64"){return C.toBase64(this)}return q.toUtf8(this)}}m.isBlob=Ue.isBlob;m.isReadableStream=Ue.isReadableStream;m.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;Object.prototype.hasOwnProperty.call(V,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:V["__proto__"]});Object.keys(V).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=V[e]}));Object.prototype.hasOwnProperty.call(le,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:le["__proto__"]});Object.keys(le).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=le[e]}));Object.prototype.hasOwnProperty.call(fe,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:fe["__proto__"]});Object.keys(fe).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=fe[e]}));Object.prototype.hasOwnProperty.call(he,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:he["__proto__"]});Object.keys(he).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=he[e]}));Object.prototype.hasOwnProperty.call(ye,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:ye["__proto__"]});Object.keys(ye).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=ye[e]}));Object.prototype.hasOwnProperty.call(ve,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:ve["__proto__"]});Object.keys(ve).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=ve[e]}));Object.prototype.hasOwnProperty.call(Le,"__proto__")&&!Object.prototype.hasOwnProperty.call(m,"__proto__")&&Object.defineProperty(m,"__proto__",{enumerable:true,value:Le["__proto__"]});Object.keys(Le).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(m,e))m[e]=Le[e]}))},3773:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.sdkStreamMixin=void 0;const C=h(3103);const q=h(3158);const V=h(7661);const le=h(8165);const fe=h(2588);const he="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!isBlobInstance(e)&&!(0,fe.isReadableStream)(e)){const m=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${m}`)}let m=false;const transformToByteArray=async()=>{if(m){throw new Error(he)}m=true;return await(0,C.streamCollector)(e)};const blobToWebStream=e=>{if(typeof e.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return e.stream()};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const m=await transformToByteArray();if(e==="base64"){return(0,q.toBase64)(m)}else if(e==="hex"){return(0,V.toHex)(m)}else if(e===undefined||e==="utf8"||e==="utf-8"){return(0,le.toUtf8)(m)}else if(typeof TextDecoder==="function"){return new TextDecoder(e).decode(m)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(m){throw new Error(he)}m=true;if(isBlobInstance(e)){return blobToWebStream(e)}else if((0,fe.isReadableStream)(e)){return e}else{throw new Error(`Cannot transform payload to web stream, got ${e}`)}}})};m.sdkStreamMixin=sdkStreamMixin;const isBlobInstance=e=>typeof Blob==="function"&&e instanceof Blob},7299:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.sdkStreamMixin=void 0;const C=h(5422);const q=h(1643);const V=h(2203);const le=h(3773);const fe="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!(e instanceof V.Readable)){try{return(0,le.sdkStreamMixin)(e)}catch(m){const h=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${h}`)}}let m=false;const transformToByteArray=async()=>{if(m){throw new Error(fe)}m=true;return await(0,C.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const m=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,q.fromArrayBuffer)(m.buffer,m.byteOffset,m.byteLength).toString(e)}else{const h=new TextDecoder(e);return h.decode(m)}},transformToWebStream:()=>{if(m){throw new Error(fe)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof V.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}m=true;return V.Readable.toWeb(e)}})};m.sdkStreamMixin=sdkStreamMixin},5692:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.splitStream=splitStream;async function splitStream(e){if(typeof e.stream==="function"){e=e.stream()}const m=e;return m.tee()}},2018:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.splitStream=splitStream;const C=h(2203);const q=h(5692);const V=h(2588);async function splitStream(e){if((0,V.isReadableStream)(e)||(0,V.isBlob)(e)){return(0,q.splitStream)(e)}const m=new C.PassThrough;const h=new C.PassThrough;e.pipe(m);e.pipe(h);return[m,h]}},2588:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m.isBlob=m.isReadableStream=void 0;const isReadableStream=e=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);m.isReadableStream=isReadableStream;const isBlob=e=>typeof Blob==="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);m.isBlob=isBlob},7015:(e,m)=>{const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=e=>e.split("/").map(escapeUri).join("/");m.escapeUri=escapeUri;m.escapeUriPath=escapeUriPath},8165:(e,m,h)=>{var C=h(1643);const fromUtf8=e=>{const m=C.fromString(e,"utf8");return new Uint8Array(m.buffer,m.byteOffset,m.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toUint8Array=e=>{if(typeof e==="string"){return fromUtf8(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};const toUtf8=e=>{if(typeof e==="string"){return e}if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return C.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};m.fromUtf8=fromUtf8;m.toUint8Array=toUint8Array;m.toUtf8=toUtf8},419:(e,m)=>{const getCircularReplacer=()=>{const e=new WeakSet;return(m,h)=>{if(typeof h==="object"&&h!==null){if(e.has(h)){return"[Circular]"}e.add(h)}return h}};const sleep=e=>new Promise((m=>setTimeout(m,e*1e3)));const h={minDelay:2,maxDelay:120};m.WaiterState=void 0;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(m.WaiterState||(m.WaiterState={}));const checkExceptions=e=>{if(e.state===m.WaiterState.ABORTED){const m=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},getCircularReplacer())}`);m.name="AbortError";throw m}else if(e.state===m.WaiterState.TIMEOUT){const m=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},getCircularReplacer())}`);m.name="TimeoutError";throw m}else if(e.state!==m.WaiterState.SUCCESS){throw new Error(`${JSON.stringify(e,getCircularReplacer())}`)}return e};const exponentialBackoffWithJitter=(e,m,h,C)=>{if(C>h)return m;const q=e*2**(C-1);return randomInRange(e,q)};const randomInRange=(e,m)=>e+Math.random()*(m-e);const runPolling=async({minDelay:e,maxDelay:h,maxWaitTime:C,abortController:q,client:V,abortSignal:le},fe,he)=>{const ye={};const{state:ve,reason:Le}=await he(V,fe);if(Le){const e=createMessageFromResponse(Le);ye[e]|=0;ye[e]+=1}if(ve!==m.WaiterState.RETRY){return{state:ve,reason:Le,observedResponses:ye}}let Ue=1;const qe=Date.now()+C*1e3;const ze=Math.log(h/e)/Math.log(2)+1;while(true){if(q?.signal?.aborted||le?.aborted){const e="AbortController signal aborted.";ye[e]|=0;ye[e]+=1;return{state:m.WaiterState.ABORTED,observedResponses:ye}}const C=exponentialBackoffWithJitter(e,h,ze,Ue);if(Date.now()+C*1e3>qe){return{state:m.WaiterState.TIMEOUT,observedResponses:ye}}await sleep(C);const{state:ve,reason:Le}=await he(V,fe);if(Le){const e=createMessageFromResponse(Le);ye[e]|=0;ye[e]+=1}if(ve!==m.WaiterState.RETRY){return{state:ve,reason:Le,observedResponses:ye}}Ue+=1}};const createMessageFromResponse=e=>{if(e?.$responseBodyText){return`Deserialization error for body: ${e.$responseBodyText}`}if(e?.$metadata?.httpStatusCode){if(e.$response||e.message){return`${e.$response?.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`}return`${e.$metadata.httpStatusCode}: OK`}return String(e?.message??JSON.stringify(e,getCircularReplacer())??"Unknown")};const validateWaiterOptions=e=>{if(e.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};const abortTimeout=e=>{let h;const C=new Promise((C=>{h=()=>C({state:m.WaiterState.ABORTED});if(typeof e.addEventListener==="function"){e.addEventListener("abort",h)}else{e.onabort=h}}));return{clearListener(){if(typeof e.removeEventListener==="function"){e.removeEventListener("abort",h)}},aborted:C}};const createWaiter=async(e,m,C)=>{const q={...h,...e};validateWaiterOptions(q);const V=[runPolling(q,m,C)];const le=[];if(e.abortSignal){const{aborted:m,clearListener:h}=abortTimeout(e.abortSignal);le.push(h);V.push(m)}if(e.abortController?.signal){const{aborted:m,clearListener:h}=abortTimeout(e.abortController.signal);le.push(h);V.push(m)}return Promise.race(V).then((e=>{for(const e of le){e()}return e}))};m.checkExceptions=checkExceptions;m.createWaiter=createWaiter;m.waiterServiceDefaults=h},8525:(e,m,h)=>{var C=h(7177);const q=Array.from({length:256},((e,m)=>m.toString(16).padStart(2,"0")));const v4=()=>{if(C.randomUUID){return C.randomUUID()}const e=new Uint8Array(16);crypto.getRandomValues(e);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return q[e[0]]+q[e[1]]+q[e[2]]+q[e[3]]+"-"+q[e[4]]+q[e[5]]+"-"+q[e[6]]+q[e[7]]+"-"+q[e[8]]+q[e[9]]+"-"+q[e[10]]+q[e[11]]+q[e[12]]+q[e[13]]+q[e[14]]+q[e[15]]};m.v4=v4},7177:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m.randomUUID=void 0;const C=h(7892);const q=C.__importDefault(h(6982));m.randomUUID=q.default.randomUUID.bind(q.default)},4455:function(e,m,h){var C=this&&this.__createBinding||(Object.create?function(e,m,h,C){if(C===undefined)C=h;var q=Object.getOwnPropertyDescriptor(m,h);if(!q||("get"in q?!m.__esModule:q.writable||q.configurable)){q={enumerable:true,get:function(){return m[h]}}}Object.defineProperty(e,C,q)}:function(e,m,h,C){if(C===undefined)C=h;e[C]=m[h]});var q=this&&this.__setModuleDefault||(Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:true,value:m})}:function(e,m){e["default"]=m});var V=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var h in e)if(h!=="default"&&Object.prototype.hasOwnProperty.call(e,h))C(m,e,h);q(m,e);return m};Object.defineProperty(m,"__esModule",{value:true});m.req=m.json=m.toBuffer=void 0;const le=V(h(8611));const fe=V(h(3311));async function toBuffer(e){let m=0;const h=[];for await(const C of e){m+=C.length;h.push(C)}return Buffer.concat(h,m)}m.toBuffer=toBuffer;async function json(e){const m=await toBuffer(e);const h=m.toString("utf8");try{return JSON.parse(h)}catch(e){const m=e;m.message+=` (input: ${h})`;throw m}}m.json=json;function req(e,m={}){const h=typeof e==="string"?e:e.href;const C=(h.startsWith("https:")?fe:le).request(e,m);const q=new Promise(((e,m)=>{C.once("response",e).once("error",m).end()}));C.then=q.then.bind(q);return C}m.req=req},646:function(e,m,h){var C=this&&this.__createBinding||(Object.create?function(e,m,h,C){if(C===undefined)C=h;var q=Object.getOwnPropertyDescriptor(m,h);if(!q||("get"in q?!m.__esModule:q.writable||q.configurable)){q={enumerable:true,get:function(){return m[h]}}}Object.defineProperty(e,C,q)}:function(e,m,h,C){if(C===undefined)C=h;e[C]=m[h]});var q=this&&this.__setModuleDefault||(Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:true,value:m})}:function(e,m){e["default"]=m});var V=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var h in e)if(h!=="default"&&Object.prototype.hasOwnProperty.call(e,h))C(m,e,h);q(m,e);return m};var le=this&&this.__exportStar||function(e,m){for(var h in e)if(h!=="default"&&!Object.prototype.hasOwnProperty.call(m,h))C(m,e,h)};Object.defineProperty(m,"__esModule",{value:true});m.Agent=void 0;const fe=V(h(9278));const he=V(h(8611));const ye=h(3311);le(h(4455),m);const ve=Symbol("AgentBaseInternalState");class Agent extends he.Agent{constructor(e){super(e);this[ve]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:m}=new Error;if(typeof m!=="string")return false;return m.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const m=new fe.Socket({writable:false});this.sockets[e].push(m);this.totalSocketCount++;return m}decrementSockets(e,m){if(!this.sockets[e]||m===null){return}const h=this.sockets[e];const C=h.indexOf(m);if(C!==-1){h.splice(C,1);this.totalSocketCount--;if(h.length===0){delete this.sockets[e]}}}getName(e){const m=this.isSecureEndpoint(e);if(m){return ye.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,m,h){const C={...m,secureEndpoint:this.isSecureEndpoint(m)};const q=this.getName(C);const V=this.incrementSockets(q);Promise.resolve().then((()=>this.connect(e,C))).then((le=>{this.decrementSockets(q,V);if(le instanceof he.Agent){try{return le.addRequest(e,C)}catch(e){return h(e)}}this[ve].currentSocket=le;super.createSocket(e,m,h)}),(e=>{this.decrementSockets(q,V);h(e)}))}createConnection(){const e=this[ve].currentSocket;this[ve].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[ve].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[ve]){this[ve].defaultPort=e}}get protocol(){return this[ve].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[ve]){this[ve].protocol=e}}}m.Agent=Agent},715:(e,m,h)=>{var C=h(181).Buffer;var q=h(181).SlowBuffer;e.exports=bufferEq;function bufferEq(e,m){if(!C.isBuffer(e)||!C.isBuffer(m)){return false}if(e.length!==m.length){return false}var h=0;for(var q=0;q<e.length;q++){h|=e[q]^m[q]}return h===0}bufferEq.install=function(){C.prototype.equal=q.prototype.equal=function equal(e){return bufferEq(this,e)}};var V=C.prototype.equal;var le=q.prototype.equal;bufferEq.restore=function(){C.prototype.equal=V;q.prototype.equal=le}},7451:(e,m,h)=>{m.formatArgs=formatArgs;m.save=save;m.load=load;m.useColors=useColors;m.storage=localstorage();m.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();m.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(m){m[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+m[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const h="color: "+this.color;m.splice(1,0,h,"color: inherit");let C=0;let q=0;m[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}C++;if(e==="%c"){q=C}}));m.splice(q,0,h)}m.log=console.debug||console.log||(()=>{});function save(e){try{if(e){m.storage.setItem("debug",e)}else{m.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=m.storage.getItem("debug")||m.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=h(3350)(m);const{formatters:C}=e.exports;C.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3350:(e,m,h)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=h(6647);createDebug.destroy=destroy;Object.keys(e).forEach((m=>{createDebug[m]=e[m]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let m=0;for(let h=0;h<e.length;h++){m=(m<<5)-m+e.charCodeAt(h);m|=0}return createDebug.colors[Math.abs(m)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let m;let h=null;let C;let q;function debug(...e){if(!debug.enabled){return}const h=debug;const C=Number(new Date);const q=C-(m||C);h.diff=q;h.prev=m;h.curr=C;m=C;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let V=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((m,C)=>{if(m==="%%"){return"%"}V++;const q=createDebug.formatters[C];if(typeof q==="function"){const C=e[V];m=q.call(h,C);e.splice(V,1);V--}return m}));createDebug.formatArgs.call(h,e);const le=h.log||createDebug.log;le.apply(h,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(h!==null){return h}if(C!==createDebug.namespaces){C=createDebug.namespaces;q=createDebug.enabled(e)}return q},set:e=>{h=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,m){const h=createDebug(this.namespace+(typeof m==="undefined"?":":m)+e);h.log=this.log;return h}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const m=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of m){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,m){let h=0;let C=0;let q=-1;let V=0;while(h<e.length){if(C<m.length&&(m[C]===e[h]||m[C]==="*")){if(m[C]==="*"){q=C;V=h;C++}else{h++;C++}}else if(q!==-1){C=q+1;V++;h=V}else{return false}}while(C<m.length&&m[C]==="*"){C++}return C===m.length}function disable(){const e=[...createDebug.names,...createDebug.skips.map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const m of createDebug.skips){if(matchesTemplate(e,m)){return false}}for(const m of createDebug.names){if(matchesTemplate(e,m)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},8263:(e,m,h)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=h(7451)}else{e.exports=h(6423)}},6423:(e,m,h)=>{const C=h(9637);const q=h(9023);m.init=init;m.log=log;m.formatArgs=formatArgs;m.save=save;m.load=load;m.useColors=useColors;m.destroy=q.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");m.colors=[6,2,3,4,5,1];try{const e=h(6708);if(e&&(e.stderr||e).level>=2){m.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}m.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,m)=>{const h=m.substring(6).toLowerCase().replace(/_([a-z])/g,((e,m)=>m.toUpperCase()));let C=process.env[m];if(/^(yes|on|true|enabled)$/i.test(C)){C=true}else if(/^(no|off|false|disabled)$/i.test(C)){C=false}else if(C==="null"){C=null}else{C=Number(C)}e[h]=C;return e}),{});function useColors(){return"colors"in m.inspectOpts?Boolean(m.inspectOpts.colors):C.isatty(process.stderr.fd)}function formatArgs(m){const{namespace:h,useColors:C}=this;if(C){const C=this.color;const q="[3"+(C<8?C:"8;5;"+C);const V=` ${q};1m${h} `;m[0]=V+m[0].split("\n").join("\n"+V);m.push(q+"m+"+e.exports.humanize(this.diff)+"")}else{m[0]=getDate()+h+" "+m[0]}}function getDate(){if(m.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(q.formatWithOptions(m.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const h=Object.keys(m.inspectOpts);for(let C=0;C<h.length;C++){e.inspectOpts[h[C]]=m.inspectOpts[h[C]]}}e.exports=h(3350)(m);const{formatters:V}=e.exports;V.o=function(e){this.inspectOpts.colors=this.useColors;return q.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};V.O=function(e){this.inspectOpts.colors=this.useColors;return q.inspect(e,this.inspectOpts)}},8358:(e,m,h)=>{const C=h(9896);const q=h(6928);const V=h(857);const le=h(6982);const fe=h(9886);const he=fe.version;const ye=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","🤖 agentic secret storage: https://dotenvx.com/as2","⚡️ secrets for agents: https://dotenvx.com/as2","🛡️ auth for agents: https://vestauth.com","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function _getRandomTip(){return ye[Math.floor(Math.random()*ye.length)]}function parseBoolean(e){if(typeof e==="string"){return!["false","0","no","off",""].includes(e.toLowerCase())}return Boolean(e)}function supportsAnsi(){return process.stdout.isTTY}function dim(e){return supportsAnsi()?`${e}`:e}const ve=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const m={};let h=e.toString();h=h.replace(/\r\n?/gm,"\n");let C;while((C=ve.exec(h))!=null){const e=C[1];let h=C[2]||"";h=h.trim();const q=h[0];h=h.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(q==='"'){h=h.replace(/\\n/g,"\n");h=h.replace(/\\r/g,"\r")}m[e]=h}return m}function _parseVault(e){e=e||{};const m=_vaultPath(e);e.path=m;const h=Le.configDotenv(e);if(!h.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${m} for an unknown reason`);e.code="MISSING_DATA";throw e}const C=_dotenvKey(e).split(",");const q=C.length;let V;for(let e=0;e<q;e++){try{const m=C[e].trim();const q=_instructions(h,m);V=Le.decrypt(q.ciphertext,q.key);break}catch(m){if(e+1>=q){throw m}}}return Le.parse(V)}function _warn(e){console.error(`[dotenv@${he}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${he}][DEBUG] ${e}`)}function _log(e){console.log(`[dotenv@${he}] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,m){let h;try{h=new URL(m)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const C=h.password;if(!C){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const q=h.searchParams.get("environment");if(!q){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const V=`DOTENV_VAULT_${q.toUpperCase()}`;const le=e.parsed[V];if(!le){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${V} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:le,key:C}}function _vaultPath(e){let m=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const h of e.path){if(C.existsSync(h)){m=h.endsWith(".vault")?h:`${h}.vault`}}}else{m=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{m=q.resolve(process.cwd(),".env.vault")}if(C.existsSync(m)){return m}return null}function _resolveHome(e){return e[0]==="~"?q.join(V.homedir(),e.slice(1)):e}function _configVault(e){const m=parseBoolean(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug);const h=parseBoolean(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);if(m||!h){_log("Loading env from encrypted .env.vault")}const C=Le._parseVault(e);let q=process.env;if(e&&e.processEnv!=null){q=e.processEnv}Le.populate(q,C,e);return{parsed:C}}function configDotenv(e){const m=q.resolve(process.cwd(),".env");let h="utf8";let V=process.env;if(e&&e.processEnv!=null){V=e.processEnv}let le=parseBoolean(V.DOTENV_CONFIG_DEBUG||e&&e.debug);let fe=parseBoolean(V.DOTENV_CONFIG_QUIET||e&&e.quiet);if(e&&e.encoding){h=e.encoding}else{if(le){_debug("No encoding is specified. UTF-8 is used by default")}}let he=[m];if(e&&e.path){if(!Array.isArray(e.path)){he=[_resolveHome(e.path)]}else{he=[];for(const m of e.path){he.push(_resolveHome(m))}}}let ye;const ve={};for(const m of he){try{const q=Le.parse(C.readFileSync(m,{encoding:h}));Le.populate(ve,q,e)}catch(e){if(le){_debug(`Failed to load ${m} ${e.message}`)}ye=e}}const Ue=Le.populate(V,ve,e);le=parseBoolean(V.DOTENV_CONFIG_DEBUG||le);fe=parseBoolean(V.DOTENV_CONFIG_QUIET||fe);if(le||!fe){const e=Object.keys(Ue).length;const m=[];for(const e of he){try{const h=q.relative(process.cwd(),e);m.push(h)}catch(m){if(le){_debug(`Failed to load ${e} ${m.message}`)}ye=m}}_log(`injecting env (${e}) from ${m.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`)}if(ye){return{parsed:ve,error:ye}}else{return{parsed:ve}}}function config(e){if(_dotenvKey(e).length===0){return Le.configDotenv(e)}const m=_vaultPath(e);if(!m){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${m}. Did you forget to build it?`);return Le.configDotenv(e)}return Le._configVault(e)}function decrypt(e,m){const h=Buffer.from(m.slice(-64),"hex");let C=Buffer.from(e,"base64");const q=C.subarray(0,12);const V=C.subarray(-16);C=C.subarray(12,-16);try{const e=le.createDecipheriv("aes-256-gcm",h,q);e.setAuthTag(V);return`${e.update(C)}${e.final()}`}catch(e){const m=e instanceof RangeError;const h=e.message==="Invalid key length";const C=e.message==="Unsupported state or unable to authenticate data";if(m||h){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(C){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,m,h={}){const C=Boolean(h&&h.debug);const q=Boolean(h&&h.override);const V={};if(typeof m!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const h of Object.keys(m)){if(Object.prototype.hasOwnProperty.call(e,h)){if(q===true){e[h]=m[h];V[h]=m[h]}if(C){if(q===true){_debug(`"${h}" is already defined and WAS overwritten`)}else{_debug(`"${h}" is already defined and was NOT overwritten`)}}}else{e[h]=m[h];V[h]=m[h]}}return V}const Le={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=Le.configDotenv;e.exports._configVault=Le._configVault;e.exports._parseVault=Le._parseVault;e.exports.config=Le.config;e.exports.decrypt=Le.decrypt;e.exports.parse=Le.parse;e.exports.populate=Le.populate;e.exports=Le},1454:(e,m,h)=>{var C=h(5249).Buffer;var q=h(883);var V=128,le=0,fe=32,he=16,ye=2,ve=he|fe|le<<6,Le=ye|le<<6;function base64Url(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function signatureAsBuffer(e){if(C.isBuffer(e)){return e}else if("string"===typeof e){return C.from(e,"base64")}throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function derToJose(e,m){e=signatureAsBuffer(e);var h=q(m);var le=h+1;var fe=e.length;var he=0;if(e[he++]!==ve){throw new Error('Could not find expected "seq"')}var ye=e[he++];if(ye===(V|1)){ye=e[he++]}if(fe-he<ye){throw new Error('"seq" specified length of "'+ye+'", only "'+(fe-he)+'" remaining')}if(e[he++]!==Le){throw new Error('Could not find expected "int" for "r"')}var Ue=e[he++];if(fe-he-2<Ue){throw new Error('"r" specified length of "'+Ue+'", only "'+(fe-he-2)+'" available')}if(le<Ue){throw new Error('"r" specified length of "'+Ue+'", max of "'+le+'" is acceptable')}var qe=he;he+=Ue;if(e[he++]!==Le){throw new Error('Could not find expected "int" for "s"')}var ze=e[he++];if(fe-he!==ze){throw new Error('"s" specified length of "'+ze+'", expected "'+(fe-he)+'"')}if(le<ze){throw new Error('"s" specified length of "'+ze+'", max of "'+le+'" is acceptable')}var He=he;he+=ze;if(he!==fe){throw new Error('Expected to consume entire buffer, but "'+(fe-he)+'" bytes remain')}var We=h-Ue,Qe=h-ze;var Je=C.allocUnsafe(We+Ue+Qe+ze);for(he=0;he<We;++he){Je[he]=0}e.copy(Je,he,qe+Math.max(-We,0),qe+Ue);he=h;for(var It=he;he<It+Qe;++he){Je[he]=0}e.copy(Je,he,He+Math.max(-Qe,0),He+ze);Je=Je.toString("base64");Je=base64Url(Je);return Je}function countPadding(e,m,h){var C=0;while(m+C<h&&e[m+C]===0){++C}var q=e[m+C]>=V;if(q){--C}return C}function joseToDer(e,m){e=signatureAsBuffer(e);var h=q(m);var le=e.length;if(le!==h*2){throw new TypeError('"'+m+'" signatures must be "'+h*2+'" bytes, saw "'+le+'"')}var fe=countPadding(e,0,h);var he=countPadding(e,h,e.length);var ye=h-fe;var Ue=h-he;var qe=1+1+ye+1+1+Ue;var ze=qe<V;var He=C.allocUnsafe((ze?2:3)+qe);var We=0;He[We++]=ve;if(ze){He[We++]=qe}else{He[We++]=V|1;He[We++]=qe&255}He[We++]=Le;He[We++]=ye;if(fe<0){He[We++]=0;We+=e.copy(He,We,0,h)}else{We+=e.copy(He,We,fe,h)}He[We++]=Le;He[We++]=Ue;if(he<0){He[We++]=0;e.copy(He,We,h)}else{e.copy(He,We,h+he)}return He}e.exports={derToJose:derToJose,joseToDer:joseToDer}},883:e=>{function getParamSize(e){var m=(e/8|0)+(e%8===0?0:1);return m}var m={ES256:getParamSize(256),ES384:getParamSize(384),ES512:getParamSize(521)};function getParamBytesForAlg(e){var h=m[e];if(h){return h}throw new Error('Unknown algorithm "'+e+'"')}e.exports=getParamBytesForAlg},7435:e=>{e.exports=(e,m=process.argv)=>{const h=e.startsWith("-")?"":e.length===1?"-":"--";const C=m.indexOf(h+e);const q=m.indexOf("--");return C!==-1&&(q===-1||C<q)}},4249:function(e,m,h){var C=this&&this.__createBinding||(Object.create?function(e,m,h,C){if(C===undefined)C=h;var q=Object.getOwnPropertyDescriptor(m,h);if(!q||("get"in q?!m.__esModule:q.writable||q.configurable)){q={enumerable:true,get:function(){return m[h]}}}Object.defineProperty(e,C,q)}:function(e,m,h,C){if(C===undefined)C=h;e[C]=m[h]});var q=this&&this.__setModuleDefault||(Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:true,value:m})}:function(e,m){e["default"]=m});var V=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var h in e)if(h!=="default"&&Object.prototype.hasOwnProperty.call(e,h))C(m,e,h);q(m,e);return m};var le=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:true});m.HttpProxyAgent=void 0;const fe=V(h(9278));const he=V(h(4756));const ye=le(h(8263));const ve=h(4434);const Le=h(646);const Ue=h(4635);const qe=(0,ye.default)("http-proxy-agent");class HttpProxyAgent extends Le.Agent{constructor(e,m){super(m);this.proxy=typeof e==="string"?new Ue.URL(e):e;this.proxyHeaders=m?.headers??{};qe("Creating new HttpProxyAgent instance: %o",this.proxy.href);const h=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const C=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...m?omit(m,"headers"):null,host:h,port:C}}addRequest(e,m){e._header=null;this.setRequestProps(e,m);super.addRequest(e,m)}setRequestProps(e,m){const{proxy:h}=this;const C=m.secureEndpoint?"https:":"http:";const q=e.getHeader("host")||"localhost";const V=`${C}//${q}`;const le=new Ue.URL(e.path,V);if(m.port!==80){le.port=String(m.port)}e.path=String(le);const fe=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(h.username||h.password){const e=`${decodeURIComponent(h.username)}:${decodeURIComponent(h.password)}`;fe["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!fe["Proxy-Connection"]){fe["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const m of Object.keys(fe)){const h=fe[m];if(h){e.setHeader(m,h)}}}async connect(e,m){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,m)}let h;let C;qe("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){qe("Patching connection write() output buffer with updated header");h=e.outputData[0].data;C=h.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+h.substring(C);qe("Output buffer: %o",e.outputData[0].data)}let q;if(this.proxy.protocol==="https:"){qe("Creating `tls.Socket`: %o",this.connectOpts);q=he.connect(this.connectOpts)}else{qe("Creating `net.Socket`: %o",this.connectOpts);q=fe.connect(this.connectOpts)}await(0,ve.once)(q,"connect");return q}}HttpProxyAgent.protocols=["http","https"];m.HttpProxyAgent=HttpProxyAgent;function omit(e,...m){const h={};let C;for(C in e){if(!m.includes(C)){h[C]=e[C]}}return h}},1475:function(e,m,h){var C=this&&this.__createBinding||(Object.create?function(e,m,h,C){if(C===undefined)C=h;var q=Object.getOwnPropertyDescriptor(m,h);if(!q||("get"in q?!m.__esModule:q.writable||q.configurable)){q={enumerable:true,get:function(){return m[h]}}}Object.defineProperty(e,C,q)}:function(e,m,h,C){if(C===undefined)C=h;e[C]=m[h]});var q=this&&this.__setModuleDefault||(Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:true,value:m})}:function(e,m){e["default"]=m});var V=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var h in e)if(h!=="default"&&Object.prototype.hasOwnProperty.call(e,h))C(m,e,h);q(m,e);return m};var le=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:true});m.HttpsProxyAgent=void 0;const fe=V(h(9278));const he=V(h(4756));const ye=le(h(2613));const ve=le(h(8263));const Le=h(646);const Ue=h(4635);const qe=h(625);const ze=(0,ve.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!fe.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends Le.Agent{constructor(e,m){super(m);this.options={path:undefined};this.proxy=typeof e==="string"?new Ue.URL(e):e;this.proxyHeaders=m?.headers??{};ze("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const h=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const C=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...m?omit(m,"headers"):null,host:h,port:C}}async connect(e,m){const{proxy:h}=this;if(!m.host){throw new TypeError('No "host" provided')}let C;if(h.protocol==="https:"){ze("Creating `tls.Socket`: %o",this.connectOpts);C=he.connect(setServernameFromNonIpHost(this.connectOpts))}else{ze("Creating `net.Socket`: %o",this.connectOpts);C=fe.connect(this.connectOpts)}const q=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const V=fe.isIPv6(m.host)?`[${m.host}]`:m.host;let le=`CONNECT ${V}:${m.port} HTTP/1.1\r\n`;if(h.username||h.password){const e=`${decodeURIComponent(h.username)}:${decodeURIComponent(h.password)}`;q["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}q.Host=`${V}:${m.port}`;if(!q["Proxy-Connection"]){q["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(q)){le+=`${e}: ${q[e]}\r\n`}const ve=(0,qe.parseProxyResponse)(C);C.write(`${le}\r\n`);const{connect:Le,buffered:Ue}=await ve;e.emit("proxyConnect",Le);this.emit("proxyConnect",Le,e);if(Le.statusCode===200){e.once("socket",resume);if(m.secureEndpoint){ze("Upgrading socket connection to TLS");return he.connect({...omit(setServernameFromNonIpHost(m),"host","path","port"),socket:C})}return C}C.destroy();const He=new fe.Socket({writable:false});He.readable=true;e.once("socket",(e=>{ze("Replaying proxy buffer for failed request");(0,ye.default)(e.listenerCount("data")>0);e.push(Ue);e.push(null)}));return He}}HttpsProxyAgent.protocols=["http","https"];m.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...m){const h={};let C;for(C in e){if(!m.includes(C)){h[C]=e[C]}}return h}},625:function(e,m,h){var C=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:true});m.parseProxyResponse=void 0;const q=C(h(8263));const V=(0,q.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((m,h)=>{let C=0;const q=[];function read(){const m=e.read();if(m)ondata(m);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();V("onend");h(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();V("onerror %o",e);h(e)}function ondata(le){q.push(le);C+=le.length;const fe=Buffer.concat(q,C);const he=fe.indexOf("\r\n\r\n");if(he===-1){V("have not received end of HTTP headers yet...");read();return}const ye=fe.slice(0,he).toString("ascii").split("\r\n");const ve=ye.shift();if(!ve){e.destroy();return h(new Error("No header received from proxy CONNECT response"))}const Le=ve.split(" ");const Ue=+Le[1];const qe=Le.slice(2).join(" ");const ze={};for(const m of ye){if(!m)continue;const C=m.indexOf(":");if(C===-1){e.destroy();return h(new Error(`Invalid header from proxy CONNECT response: "${m}"`))}const q=m.slice(0,C).toLowerCase();const V=m.slice(C+1).trimStart();const le=ze[q];if(typeof le==="string"){ze[q]=[le,V]}else if(Array.isArray(le)){le.push(V)}else{ze[q]=V}}V("got proxy server response: %o %o",ve,ze);cleanup();m({connect:{statusCode:Ue,statusText:qe,headers:ze},buffered:fe})}e.on("error",onerror);e.on("end",onend);read()}))}m.parseProxyResponse=parseProxyResponse},3499:(e,m,h)=>{var C=h(3922);e.exports=function(e,m){m=m||{};var h=C.decode(e,m);if(!h){return null}var q=h.payload;if(typeof q==="string"){try{var V=JSON.parse(q);if(V!==null&&typeof V==="object"){q=V}}catch(e){}}if(m.complete===true){return{header:h.header,payload:q,signature:h.signature}}return q}},8457:(e,m,h)=>{e.exports={decode:h(3499),verify:h(5728),sign:h(8724),JsonWebTokenError:h(1892),NotBeforeError:h(4817),TokenExpiredError:h(8013)}},1892:e=>{var JsonWebTokenError=function(e,m){Error.call(this,e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="JsonWebTokenError";this.message=e;if(m)this.inner=m};JsonWebTokenError.prototype=Object.create(Error.prototype);JsonWebTokenError.prototype.constructor=JsonWebTokenError;e.exports=JsonWebTokenError},4817:(e,m,h)=>{var C=h(1892);var NotBeforeError=function(e,m){C.call(this,e);this.name="NotBeforeError";this.date=m};NotBeforeError.prototype=Object.create(C.prototype);NotBeforeError.prototype.constructor=NotBeforeError;e.exports=NotBeforeError},8013:(e,m,h)=>{var C=h(1892);var TokenExpiredError=function(e,m){C.call(this,e);this.name="TokenExpiredError";this.expiredAt=m};TokenExpiredError.prototype=Object.create(C.prototype);TokenExpiredError.prototype.constructor=TokenExpiredError;e.exports=TokenExpiredError},6988:(e,m,h)=>{const C=h(9419);e.exports=C.satisfies(process.version,">=15.7.0")},1344:(e,m,h)=>{var C=h(9419);e.exports=C.satisfies(process.version,"^6.12.0 || >=8.0.0")},1202:(e,m,h)=>{const C=h(9419);e.exports=C.satisfies(process.version,">=16.9.0")},2692:(e,m,h)=>{var C=h(6647);e.exports=function(e,m){var h=m||Math.floor(Date.now()/1e3);if(typeof e==="string"){var q=C(e);if(typeof q==="undefined"){return}return Math.floor(h+q/1e3)}else if(typeof e==="number"){return h+e}else{return}}},3578:(e,m,h)=>{const C=h(6988);const q=h(1202);const V={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]};const le={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,m){if(!e||!m)return;const h=m.asymmetricKeyType;if(!h)return;const fe=V[h];if(!fe){throw new Error(`Unknown key type "${h}".`)}if(!fe.includes(e)){throw new Error(`"alg" parameter for "${h}" key type must be one of: ${fe.join(", ")}.`)}if(C){switch(h){case"ec":const h=m.asymmetricKeyDetails.namedCurve;const C=le[e];if(h!==C){throw new Error(`"alg" parameter "${e}" requires curve "${C}".`)}break;case"rsa-pss":if(q){const h=parseInt(e.slice(-3),10);const{hashAlgorithm:C,mgf1HashAlgorithm:q,saltLength:V}=m.asymmetricKeyDetails;if(C!==`sha${h}`||q!==C){throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`)}if(V!==undefined&&V>h>>3){throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}break}}}},8724:(e,m,h)=>{const C=h(2692);const q=h(1344);const V=h(3578);const le=h(3922);const fe=h(5252);const he=h(2771);const ye=h(4367);const ve=h(5011);const Le=h(5341);const Ue=h(5250);const qe=h(3839);const{KeyObject:ze,createSecretKey:He,createPrivateKey:We}=h(6982);const Qe=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];if(q){Qe.splice(3,0,"PS256","PS384","PS512")}const Je={expiresIn:{isValid:function(e){return ye(e)||Ue(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return ye(e)||Ue(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return Ue(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:fe.bind(null,Qe),message:'"algorithm" must be a valid string enum value'},header:{isValid:Le,message:'"header" must be an object'},encoding:{isValid:Ue,message:'"encoding" must be a string'},issuer:{isValid:Ue,message:'"issuer" must be a string'},subject:{isValid:Ue,message:'"subject" must be a string'},jwtid:{isValid:Ue,message:'"jwtid" must be a string'},noTimestamp:{isValid:he,message:'"noTimestamp" must be a boolean'},keyid:{isValid:Ue,message:'"keyid" must be a string'},mutatePayload:{isValid:he,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:he,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:he,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}};const It={iat:{isValid:ve,message:'"iat" should be a number of seconds'},exp:{isValid:ve,message:'"exp" should be a number of seconds'},nbf:{isValid:ve,message:'"nbf" should be a number of seconds'}};function validate(e,m,h,C){if(!Le(h)){throw new Error('Expected "'+C+'" to be a plain object.')}Object.keys(h).forEach((function(q){const V=e[q];if(!V){if(!m){throw new Error('"'+q+'" is not allowed in "'+C+'"')}return}if(!V.isValid(h[q])){throw new Error(V.message)}}))}function validateOptions(e){return validate(Je,false,e,"options")}function validatePayload(e){return validate(It,true,e,"payload")}const _t={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"};const Mt=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];e.exports=function(e,m,h,q){if(typeof h==="function"){q=h;h={}}else{h=h||{}}const fe=typeof e==="object"&&!Buffer.isBuffer(e);const he=Object.assign({alg:h.algorithm||"HS256",typ:fe?"JWT":undefined,kid:h.keyid},h.header);function failure(e){if(q){return q(e)}throw e}if(!m&&h.algorithm!=="none"){return failure(new Error("secretOrPrivateKey must have a value"))}if(m!=null&&!(m instanceof ze)){try{m=We(m)}catch(e){try{m=He(typeof m==="string"?Buffer.from(m):m)}catch(e){return failure(new Error("secretOrPrivateKey is not valid key material"))}}}if(he.alg.startsWith("HS")&&m.type!=="secret"){return failure(new Error(`secretOrPrivateKey must be a symmetric key when using ${he.alg}`))}else if(/^(?:RS|PS|ES)/.test(he.alg)){if(m.type!=="private"){return failure(new Error(`secretOrPrivateKey must be an asymmetric key when using ${he.alg}`))}if(!h.allowInsecureKeySizes&&!he.alg.startsWith("ES")&&m.asymmetricKeyDetails!==undefined&&m.asymmetricKeyDetails.modulusLength<2048){return failure(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${he.alg}`))}}if(typeof e==="undefined"){return failure(new Error("payload is required"))}else if(fe){try{validatePayload(e)}catch(e){return failure(e)}if(!h.mutatePayload){e=Object.assign({},e)}}else{const m=Mt.filter((function(e){return typeof h[e]!=="undefined"}));if(m.length>0){return failure(new Error("invalid "+m.join(",")+" option for "+typeof e+" payload"))}}if(typeof e.exp!=="undefined"&&typeof h.expiresIn!=="undefined"){return failure(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'))}if(typeof e.nbf!=="undefined"&&typeof h.notBefore!=="undefined"){return failure(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'))}try{validateOptions(h)}catch(e){return failure(e)}if(!h.allowInvalidAsymmetricKeyTypes){try{V(he.alg,m)}catch(e){return failure(e)}}const ye=e.iat||Math.floor(Date.now()/1e3);if(h.noTimestamp){delete e.iat}else if(fe){e.iat=ye}if(typeof h.notBefore!=="undefined"){try{e.nbf=C(h.notBefore,ye)}catch(e){return failure(e)}if(typeof e.nbf==="undefined"){return failure(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}}if(typeof h.expiresIn!=="undefined"&&typeof e==="object"){try{e.exp=C(h.expiresIn,ye)}catch(e){return failure(e)}if(typeof e.exp==="undefined"){return failure(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}}Object.keys(_t).forEach((function(m){const C=_t[m];if(typeof h[m]!=="undefined"){if(typeof e[C]!=="undefined"){return failure(new Error('Bad "options.'+m+'" option. The payload already has an "'+C+'" property.'))}e[C]=h[m]}}));const ve=h.encoding||"utf8";if(typeof q==="function"){q=q&&qe(q);le.createSign({header:he,privateKey:m,payload:e,encoding:ve}).once("error",q).once("done",(function(e){if(!h.allowInsecureKeySizes&&/^(?:RS|PS)/.test(he.alg)&&e.length<256){return q(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${he.alg}`))}q(null,e)}))}else{let C=le.sign({header:he,payload:e,secret:m,encoding:ve});if(!h.allowInsecureKeySizes&&/^(?:RS|PS)/.test(he.alg)&&C.length<256){throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${he.alg}`)}return C}}},5728:(e,m,h)=>{const C=h(1892);const q=h(4817);const V=h(8013);const le=h(3499);const fe=h(2692);const he=h(3578);const ye=h(1344);const ve=h(3922);const{KeyObject:Le,createSecretKey:Ue,createPublicKey:qe}=h(6982);const ze=["RS256","RS384","RS512"];const He=["ES256","ES384","ES512"];const We=["RS256","RS384","RS512"];const Qe=["HS256","HS384","HS512"];if(ye){ze.splice(ze.length,0,"PS256","PS384","PS512");We.splice(We.length,0,"PS256","PS384","PS512")}e.exports=function(e,m,h,ye){if(typeof h==="function"&&!ye){ye=h;h={}}if(!h){h={}}h=Object.assign({},h);let Je;if(ye){Je=ye}else{Je=function(e,m){if(e)throw e;return m}}if(h.clockTimestamp&&typeof h.clockTimestamp!=="number"){return Je(new C("clockTimestamp must be a number"))}if(h.nonce!==undefined&&(typeof h.nonce!=="string"||h.nonce.trim()==="")){return Je(new C("nonce must be a non-empty string"))}if(h.allowInvalidAsymmetricKeyTypes!==undefined&&typeof h.allowInvalidAsymmetricKeyTypes!=="boolean"){return Je(new C("allowInvalidAsymmetricKeyTypes must be a boolean"))}const It=h.clockTimestamp||Math.floor(Date.now()/1e3);if(!e){return Je(new C("jwt must be provided"))}if(typeof e!=="string"){return Je(new C("jwt must be a string"))}const _t=e.split(".");if(_t.length!==3){return Je(new C("jwt malformed"))}let Mt;try{Mt=le(e,{complete:true})}catch(e){return Je(e)}if(!Mt){return Je(new C("invalid token"))}const Lt=Mt.header;let Ut;if(typeof m==="function"){if(!ye){return Je(new C("verify must be called asynchronous if secret or public key is provided as a callback"))}Ut=m}else{Ut=function(e,h){return h(null,m)}}return Ut(Lt,(function(m,le){if(m){return Je(new C("error in secret or public key callback: "+m.message))}const ye=_t[2].trim()!=="";if(!ye&&le){return Je(new C("jwt signature is required"))}if(ye&&!le){return Je(new C("secret or public key must be provided"))}if(!ye&&!h.algorithms){return Je(new C('please specify "none" in "algorithms" to verify unsigned tokens'))}if(le!=null&&!(le instanceof Le)){try{le=qe(le)}catch(e){try{le=Ue(typeof le==="string"?Buffer.from(le):le)}catch(e){return Je(new C("secretOrPublicKey is not valid key material"))}}}if(!h.algorithms){if(le.type==="secret"){h.algorithms=Qe}else if(["rsa","rsa-pss"].includes(le.asymmetricKeyType)){h.algorithms=We}else if(le.asymmetricKeyType==="ec"){h.algorithms=He}else{h.algorithms=ze}}if(h.algorithms.indexOf(Mt.header.alg)===-1){return Je(new C("invalid algorithm"))}if(Lt.alg.startsWith("HS")&&le.type!=="secret"){return Je(new C(`secretOrPublicKey must be a symmetric key when using ${Lt.alg}`))}else if(/^(?:RS|PS|ES)/.test(Lt.alg)&&le.type!=="public"){return Je(new C(`secretOrPublicKey must be an asymmetric key when using ${Lt.alg}`))}if(!h.allowInvalidAsymmetricKeyTypes){try{he(Lt.alg,le)}catch(e){return Je(e)}}let Ut;try{Ut=ve.verify(e,Mt.header.alg,le)}catch(e){return Je(e)}if(!Ut){return Je(new C("invalid signature"))}const qt=Mt.payload;if(typeof qt.nbf!=="undefined"&&!h.ignoreNotBefore){if(typeof qt.nbf!=="number"){return Je(new C("invalid nbf value"))}if(qt.nbf>It+(h.clockTolerance||0)){return Je(new q("jwt not active",new Date(qt.nbf*1e3)))}}if(typeof qt.exp!=="undefined"&&!h.ignoreExpiration){if(typeof qt.exp!=="number"){return Je(new C("invalid exp value"))}if(It>=qt.exp+(h.clockTolerance||0)){return Je(new V("jwt expired",new Date(qt.exp*1e3)))}}if(h.audience){const e=Array.isArray(h.audience)?h.audience:[h.audience];const m=Array.isArray(qt.aud)?qt.aud:[qt.aud];const q=m.some((function(m){return e.some((function(e){return e instanceof RegExp?e.test(m):e===m}))}));if(!q){return Je(new C("jwt audience invalid. expected: "+e.join(" or ")))}}if(h.issuer){const e=typeof h.issuer==="string"&&qt.iss!==h.issuer||Array.isArray(h.issuer)&&h.issuer.indexOf(qt.iss)===-1;if(e){return Je(new C("jwt issuer invalid. expected: "+h.issuer))}}if(h.subject){if(qt.sub!==h.subject){return Je(new C("jwt subject invalid. expected: "+h.subject))}}if(h.jwtid){if(qt.jti!==h.jwtid){return Je(new C("jwt jwtid invalid. expected: "+h.jwtid))}}if(h.nonce){if(qt.nonce!==h.nonce){return Je(new C("jwt nonce invalid. expected: "+h.nonce))}}if(h.maxAge){if(typeof qt.iat!=="number"){return Je(new C("iat required when maxAge is specified"))}const e=fe(h.maxAge,qt.iat);if(typeof e==="undefined"){return Je(new C('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(It>=e+(h.clockTolerance||0)){return Je(new V("maxAge exceeded",new Date(e*1e3)))}}if(h.complete===true){const e=Mt.signature;return Je(null,{header:Lt,payload:qt,signature:e})}return Je(null,qt)}))}},6308:(e,m,h)=>{var C=h(5249).Buffer;var q=h(6982);var V=h(1454);var le=h(9023);var fe='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';var he="secret must be a string or buffer";var ye="key must be a string or a buffer";var ve="key must be a string, a buffer or an object";var Le=typeof q.createPublicKey==="function";if(Le){ye+=" or a KeyObject";he+="or a KeyObject"}function checkIsPublicKey(e){if(C.isBuffer(e)){return}if(typeof e==="string"){return}if(!Le){throw typeError(ye)}if(typeof e!=="object"){throw typeError(ye)}if(typeof e.type!=="string"){throw typeError(ye)}if(typeof e.asymmetricKeyType!=="string"){throw typeError(ye)}if(typeof e.export!=="function"){throw typeError(ye)}}function checkIsPrivateKey(e){if(C.isBuffer(e)){return}if(typeof e==="string"){return}if(typeof e==="object"){return}throw typeError(ve)}function checkIsSecretKey(e){if(C.isBuffer(e)){return}if(typeof e==="string"){return e}if(!Le){throw typeError(he)}if(typeof e!=="object"){throw typeError(he)}if(e.type!=="secret"){throw typeError(he)}if(typeof e.export!=="function"){throw typeError(he)}}function fromBase64(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function toBase64(e){e=e.toString();var m=4-e.length%4;if(m!==4){for(var h=0;h<m;++h){e+="="}}return e.replace(/\-/g,"+").replace(/_/g,"/")}function typeError(e){var m=[].slice.call(arguments,1);var h=le.format.bind(le,e).apply(null,m);return new TypeError(h)}function bufferOrString(e){return C.isBuffer(e)||typeof e==="string"}function normalizeInput(e){if(!bufferOrString(e))e=JSON.stringify(e);return e}function createHmacSigner(e){return function sign(m,h){checkIsSecretKey(h);m=normalizeInput(m);var C=q.createHmac("sha"+e,h);var V=(C.update(m),C.digest("base64"));return fromBase64(V)}}var Ue;var qe="timingSafeEqual"in q?function timingSafeEqual(e,m){if(e.byteLength!==m.byteLength){return false}return q.timingSafeEqual(e,m)}:function timingSafeEqual(e,m){if(!Ue){Ue=h(715)}return Ue(e,m)};function createHmacVerifier(e){return function verify(m,h,q){var V=createHmacSigner(e)(m,q);return qe(C.from(h),C.from(V))}}function createKeySigner(e){return function sign(m,h){checkIsPrivateKey(h);m=normalizeInput(m);var C=q.createSign("RSA-SHA"+e);var V=(C.update(m),C.sign(h,"base64"));return fromBase64(V)}}function createKeyVerifier(e){return function verify(m,h,C){checkIsPublicKey(C);m=normalizeInput(m);h=toBase64(h);var V=q.createVerify("RSA-SHA"+e);V.update(m);return V.verify(C,h,"base64")}}function createPSSKeySigner(e){return function sign(m,h){checkIsPrivateKey(h);m=normalizeInput(m);var C=q.createSign("RSA-SHA"+e);var V=(C.update(m),C.sign({key:h,padding:q.constants.RSA_PKCS1_PSS_PADDING,saltLength:q.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return fromBase64(V)}}function createPSSKeyVerifier(e){return function verify(m,h,C){checkIsPublicKey(C);m=normalizeInput(m);h=toBase64(h);var V=q.createVerify("RSA-SHA"+e);V.update(m);return V.verify({key:C,padding:q.constants.RSA_PKCS1_PSS_PADDING,saltLength:q.constants.RSA_PSS_SALTLEN_DIGEST},h,"base64")}}function createECDSASigner(e){var m=createKeySigner(e);return function sign(){var h=m.apply(null,arguments);h=V.derToJose(h,"ES"+e);return h}}function createECDSAVerifer(e){var m=createKeyVerifier(e);return function verify(h,C,q){C=V.joseToDer(C,"ES"+e).toString("base64");var le=m(h,C,q);return le}}function createNoneSigner(){return function sign(){return""}}function createNoneVerifier(){return function verify(e,m){return m===""}}e.exports=function jwa(e){var m={hs:createHmacSigner,rs:createKeySigner,ps:createPSSKeySigner,es:createECDSASigner,none:createNoneSigner};var h={hs:createHmacVerifier,rs:createKeyVerifier,ps:createPSSKeyVerifier,es:createECDSAVerifer,none:createNoneVerifier};var C=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!C)throw typeError(fe,e);var q=(C[1]||C[3]).toLowerCase();var V=C[2];return{sign:m[q](V),verify:h[q](V)}}},3922:(e,m,h)=>{var C=h(414);var q=h(9470);var V=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];m.ALGORITHMS=V;m.sign=C.sign;m.verify=q.verify;m.decode=q.decode;m.isValid=q.isValid;m.createSign=function createSign(e){return new C(e)};m.createVerify=function createVerify(e){return new q(e)}},8353:(e,m,h)=>{var C=h(5249).Buffer;var q=h(2203);var V=h(9023);function DataStream(e){this.buffer=null;this.writable=true;this.readable=true;if(!e){this.buffer=C.alloc(0);return this}if(typeof e.pipe==="function"){this.buffer=C.alloc(0);e.pipe(this);return this}if(e.length||typeof e==="object"){this.buffer=e;this.writable=false;process.nextTick(function(){this.emit("end",e);this.readable=false;this.emit("close")}.bind(this));return this}throw new TypeError("Unexpected data type ("+typeof e+")")}V.inherits(DataStream,q);DataStream.prototype.write=function write(e){this.buffer=C.concat([this.buffer,C.from(e)]);this.emit("data",e)};DataStream.prototype.end=function end(e){if(e)this.write(e);this.emit("end",e);this.emit("close");this.writable=false;this.readable=false};e.exports=DataStream},414:(e,m,h)=>{var C=h(5249).Buffer;var q=h(8353);var V=h(6308);var le=h(2203);var fe=h(2176);var he=h(9023);function base64url(e,m){return C.from(e,m).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function jwsSecuredInput(e,m,h){h=h||"utf8";var C=base64url(fe(e),"binary");var q=base64url(fe(m),h);return he.format("%s.%s",C,q)}function jwsSign(e){var m=e.header;var h=e.payload;var C=e.secret||e.privateKey;var q=e.encoding;var le=V(m.alg);var fe=jwsSecuredInput(m,h,q);var ye=le.sign(fe,C);return he.format("%s.%s",fe,ye)}function SignStream(e){var m=e.secret;m=m==null?e.privateKey:m;m=m==null?e.key:m;if(/^hs/i.test(e.header.alg)===true&&m==null){throw new TypeError("secret must be a string or buffer or a KeyObject")}var h=new q(m);this.readable=true;this.header=e.header;this.encoding=e.encoding;this.secret=this.privateKey=this.key=h;this.payload=new q(e.payload);this.secret.once("close",function(){if(!this.payload.writable&&this.readable)this.sign()}.bind(this));this.payload.once("close",function(){if(!this.secret.writable&&this.readable)this.sign()}.bind(this))}he.inherits(SignStream,le);SignStream.prototype.sign=function sign(){try{var e=jwsSign({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});this.emit("done",e);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};SignStream.sign=jwsSign;e.exports=SignStream},2176:(e,m,h)=>{var C=h(181).Buffer;e.exports=function toString(e){if(typeof e==="string")return e;if(typeof e==="number"||C.isBuffer(e))return e.toString();return JSON.stringify(e)}},9470:(e,m,h)=>{var C=h(5249).Buffer;var q=h(8353);var V=h(6308);var le=h(2203);var fe=h(2176);var he=h(9023);var ye=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function safeJsonParse(e){if(isObject(e))return e;try{return JSON.parse(e)}catch(e){return undefined}}function headerFromJWS(e){var m=e.split(".",1)[0];return safeJsonParse(C.from(m,"base64").toString("binary"))}function securedInputFromJWS(e){return e.split(".",2).join(".")}function signatureFromJWS(e){return e.split(".")[2]}function payloadFromJWS(e,m){m=m||"utf8";var h=e.split(".")[1];return C.from(h,"base64").toString(m)}function isValidJws(e){return ye.test(e)&&!!headerFromJWS(e)}function jwsVerify(e,m,h){if(!m){var C=new Error("Missing algorithm parameter for jws.verify");C.code="MISSING_ALGORITHM";throw C}e=fe(e);var q=signatureFromJWS(e);var le=securedInputFromJWS(e);var he=V(m);return he.verify(le,q,h)}function jwsDecode(e,m){m=m||{};e=fe(e);if(!isValidJws(e))return null;var h=headerFromJWS(e);if(!h)return null;var C=payloadFromJWS(e);if(h.typ==="JWT"||m.json)C=JSON.parse(C,m.encoding);return{header:h,payload:C,signature:signatureFromJWS(e)}}function VerifyStream(e){e=e||{};var m=e.secret;m=m==null?e.publicKey:m;m=m==null?e.key:m;if(/^hs/i.test(e.algorithm)===true&&m==null){throw new TypeError("secret must be a string or buffer or a KeyObject")}var h=new q(m);this.readable=true;this.algorithm=e.algorithm;this.encoding=e.encoding;this.secret=this.publicKey=this.key=h;this.signature=new q(e.signature);this.secret.once("close",function(){if(!this.signature.writable&&this.readable)this.verify()}.bind(this));this.signature.once("close",function(){if(!this.secret.writable&&this.readable)this.verify()}.bind(this))}he.inherits(VerifyStream,le);VerifyStream.prototype.verify=function verify(){try{var e=jwsVerify(this.signature.buffer,this.algorithm,this.key.buffer);var m=jwsDecode(this.signature.buffer,this.encoding);this.emit("done",e,m);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};VerifyStream.decode=jwsDecode;VerifyStream.isValid=isValidJws;VerifyStream.verify=jwsVerify;e.exports=VerifyStream},5252:e=>{var m=1/0,h=9007199254740991,C=17976931348623157e292,q=0/0;var V="[object Arguments]",le="[object Function]",fe="[object GeneratorFunction]",he="[object String]",ye="[object Symbol]";var ve=/^\s+|\s+$/g;var Le=/^[-+]0x[0-9a-f]+$/i;var Ue=/^0b[01]+$/i;var qe=/^0o[0-7]+$/i;var ze=/^(?:0|[1-9]\d*)$/;var He=parseInt;function arrayMap(e,m){var h=-1,C=e?e.length:0,q=Array(C);while(++h<C){q[h]=m(e[h],h,e)}return q}function baseFindIndex(e,m,h,C){var q=e.length,V=h+(C?1:-1);while(C?V--:++V<q){if(m(e[V],V,e)){return V}}return-1}function baseIndexOf(e,m,h){if(m!==m){return baseFindIndex(e,baseIsNaN,h)}var C=h-1,q=e.length;while(++C<q){if(e[C]===m){return C}}return-1}function baseIsNaN(e){return e!==e}function baseTimes(e,m){var h=-1,C=Array(e);while(++h<e){C[h]=m(h)}return C}function baseValues(e,m){return arrayMap(m,(function(m){return e[m]}))}function overArg(e,m){return function(h){return e(m(h))}}var We=Object.prototype;var Qe=We.hasOwnProperty;var Je=We.toString;var It=We.propertyIsEnumerable;var _t=overArg(Object.keys,Object),Mt=Math.max;function arrayLikeKeys(e,m){var h=Lt(e)||isArguments(e)?baseTimes(e.length,String):[];var C=h.length,q=!!C;for(var V in e){if((m||Qe.call(e,V))&&!(q&&(V=="length"||isIndex(V,C)))){h.push(V)}}return h}function baseKeys(e){if(!isPrototype(e)){return _t(e)}var m=[];for(var h in Object(e)){if(Qe.call(e,h)&&h!="constructor"){m.push(h)}}return m}function isIndex(e,m){m=m==null?h:m;return!!m&&(typeof e=="number"||ze.test(e))&&(e>-1&&e%1==0&&e<m)}function isPrototype(e){var m=e&&e.constructor,h=typeof m=="function"&&m.prototype||We;return e===h}function includes(e,m,h,C){e=isArrayLike(e)?e:values(e);h=h&&!C?toInteger(h):0;var q=e.length;if(h<0){h=Mt(q+h,0)}return isString(e)?h<=q&&e.indexOf(m,h)>-1:!!q&&baseIndexOf(e,m,h)>-1}function isArguments(e){return isArrayLikeObject(e)&&Qe.call(e,"callee")&&(!It.call(e,"callee")||Je.call(e)==V)}var Lt=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var m=isObject(e)?Je.call(e):"";return m==le||m==fe}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=h}function isObject(e){var m=typeof e;return!!e&&(m=="object"||m=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isString(e){return typeof e=="string"||!Lt(e)&&isObjectLike(e)&&Je.call(e)==he}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&Je.call(e)==ye}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===m||e===-m){var h=e<0?-1:1;return h*C}return e===e?e:0}function toInteger(e){var m=toFinite(e),h=m%1;return m===m?h?m-h:m:0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return q}if(isObject(e)){var m=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(m)?m+"":m}if(typeof e!="string"){return e===0?e:+e}e=e.replace(ve,"");var h=Ue.test(e);return h||qe.test(e)?He(e.slice(2),h?2:8):Le.test(e)?q:+e}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function values(e){return e?baseValues(e,keys(e)):[]}e.exports=includes},2771:e=>{var m="[object Boolean]";var h=Object.prototype;var C=h.toString;function isBoolean(e){return e===true||e===false||isObjectLike(e)&&C.call(e)==m}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=isBoolean},4367:e=>{var m=1/0,h=17976931348623157e292,C=0/0;var q="[object Symbol]";var V=/^\s+|\s+$/g;var le=/^[-+]0x[0-9a-f]+$/i;var fe=/^0b[01]+$/i;var he=/^0o[0-7]+$/i;var ye=parseInt;var ve=Object.prototype;var Le=ve.toString;function isInteger(e){return typeof e=="number"&&e==toInteger(e)}function isObject(e){var m=typeof e;return!!e&&(m=="object"||m=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&Le.call(e)==q}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===m||e===-m){var C=e<0?-1:1;return C*h}return e===e?e:0}function toInteger(e){var m=toFinite(e),h=m%1;return m===m?h?m-h:m:0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return C}if(isObject(e)){var m=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(m)?m+"":m}if(typeof e!="string"){return e===0?e:+e}e=e.replace(V,"");var h=fe.test(e);return h||he.test(e)?ye(e.slice(2),h?2:8):le.test(e)?C:+e}e.exports=isInteger},5011:e=>{var m="[object Number]";var h=Object.prototype;var C=h.toString;function isObjectLike(e){return!!e&&typeof e=="object"}function isNumber(e){return typeof e=="number"||isObjectLike(e)&&C.call(e)==m}e.exports=isNumber},5341:e=>{var m="[object Object]";function isHostObject(e){var m=false;if(e!=null&&typeof e.toString!="function"){try{m=!!(e+"")}catch(e){}}return m}function overArg(e,m){return function(h){return e(m(h))}}var h=Function.prototype,C=Object.prototype;var q=h.toString;var V=C.hasOwnProperty;var le=q.call(Object);var fe=C.toString;var he=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&typeof e=="object"}function isPlainObject(e){if(!isObjectLike(e)||fe.call(e)!=m||isHostObject(e)){return false}var h=he(e);if(h===null){return true}var C=V.call(h,"constructor")&&h.constructor;return typeof C=="function"&&C instanceof C&&q.call(C)==le}e.exports=isPlainObject},5250:e=>{var m="[object String]";var h=Object.prototype;var C=h.toString;var q=Array.isArray;function isObjectLike(e){return!!e&&typeof e=="object"}function isString(e){return typeof e=="string"||!q(e)&&isObjectLike(e)&&C.call(e)==m}e.exports=isString},3839:e=>{var m="Expected a function";var h=1/0,C=17976931348623157e292,q=0/0;var V="[object Symbol]";var le=/^\s+|\s+$/g;var fe=/^[-+]0x[0-9a-f]+$/i;var he=/^0b[01]+$/i;var ye=/^0o[0-7]+$/i;var ve=parseInt;var Le=Object.prototype;var Ue=Le.toString;function before(e,h){var C;if(typeof h!="function"){throw new TypeError(m)}e=toInteger(e);return function(){if(--e>0){C=h.apply(this,arguments)}if(e<=1){h=undefined}return C}}function once(e){return before(2,e)}function isObject(e){var m=typeof e;return!!e&&(m=="object"||m=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&Ue.call(e)==V}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===h||e===-h){var m=e<0?-1:1;return m*C}return e===e?e:0}function toInteger(e){var m=toFinite(e),h=m%1;return m===m?h?m-h:m:0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return q}if(isObject(e)){var m=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(m)?m+"":m}if(typeof e!="string"){return e===0?e:+e}e=e.replace(le,"");var h=he.test(e);return h||ye.test(e)?ve(e.slice(2),h?2:8):fe.test(e)?q:+e}e.exports=once},6647:e=>{var m=1e3;var h=m*60;var C=h*60;var q=C*24;var V=q*7;var le=q*365.25;e.exports=function(e,m){m=m||{};var h=typeof e;if(h==="string"&&e.length>0){return parse(e)}else if(h==="number"&&isFinite(e)){return m.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var fe=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!fe){return}var he=parseFloat(fe[1]);var ye=(fe[2]||"ms").toLowerCase();switch(ye){case"years":case"year":case"yrs":case"yr":case"y":return he*le;case"weeks":case"week":case"w":return he*V;case"days":case"day":case"d":return he*q;case"hours":case"hour":case"hrs":case"hr":case"h":return he*C;case"minutes":case"minute":case"mins":case"min":case"m":return he*h;case"seconds":case"second":case"secs":case"sec":case"s":return he*m;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return he;default:return undefined}}function fmtShort(e){var V=Math.abs(e);if(V>=q){return Math.round(e/q)+"d"}if(V>=C){return Math.round(e/C)+"h"}if(V>=h){return Math.round(e/h)+"m"}if(V>=m){return Math.round(e/m)+"s"}return e+"ms"}function fmtLong(e){var V=Math.abs(e);if(V>=q){return plural(e,V,q,"day")}if(V>=C){return plural(e,V,C,"hour")}if(V>=h){return plural(e,V,h,"minute")}if(V>=m){return plural(e,V,m,"second")}return e+" ms"}function plural(e,m,h,C){var q=m>=h*1.5;return Math.round(e/h)+" "+C+(q?"s":"")}},5249:(e,m,h)=>{ +import{createRequire as e}from"module";var t={2017:(e,t,n)=>{const o={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")};const i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!i){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=o;isProtectedKey(e){return Object.values(o).includes(e)}getRequestId(){return this.get(o.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(o.X_RAY_TRACE_ID)}getTenantId(){return this.get(o.TENANT_ID)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}this.currentContext=this.currentContext||{};this.currentContext[e]=t}run(e,t){this.currentContext=e;return t()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const e=new InvokeStoreMulti;const t=await Promise.resolve().then(n.t.bind(n,6698,23));e.als=new t.AsyncLocalStorage;return e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}const n=this.als.getStore();if(!n){throw new Error("No context available")}n[e]=t}run(e,t){return this.als.run(e,t)}}t.InvokeStore=void 0;(function(e){let t=null;async function getInstanceAsync(e){if(!t){t=(async()=>{const t=e===true||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const n=t?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!i&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!i&&globalThis.awslambda){globalThis.awslambda.InvokeStore=n;return n}else{return n}})()}return t}e.getInstanceAsync=getInstanceAsync;e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{t=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(t.InvokeStore||(t.InvokeStore={}));t.InvokeStoreBase=InvokeStoreBase},2446:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultSSMHttpAuthSchemeProvider=t.defaultSSMHttpAuthSchemeParametersProvider=void 0;const o=n(8803);const i=n(5496);const defaultSSMHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultSSMHttpAuthSchemeParametersProvider=defaultSSMHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ssm",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultSSMHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultSSMHttpAuthSchemeProvider=defaultSSMHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},4504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3237);const i=n(9356);const a=n(741);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(a.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",a="ref";const d=true,f="isSet",m="booleanEquals",h="error",C="endpoint",P="tree",D="PartitionResult",k="getAttr",L={[n]:false,type:"string"},F={[n]:true,default:false,type:"boolean"},q={[a]:"Endpoint"},V={[o]:m,[i]:[{[a]:"UseFIPS"},true]},ee={[o]:m,[i]:[{[a]:"UseDualStack"},true]},te={},ne={[o]:k,[i]:[{[a]:D},"supportsFIPS"]},re={[a]:D},oe={[o]:m,[i]:[true,{[o]:k,[i]:[re,"supportsDualStack"]}]},ie=[V],se=[ee],ae=[{[a]:"Region"}];const ce={version:"1.0",parameters:{Region:L,UseDualStack:F,UseFIPS:F,Endpoint:L},rules:[{conditions:[{[o]:f,[i]:[q]}],rules:[{conditions:ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:h},{conditions:se,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:h},{endpoint:{url:q,properties:te,headers:te},type:C}],type:P},{conditions:[{[o]:f,[i]:ae}],rules:[{conditions:[{[o]:"aws.partition",[i]:ae,assign:D}],rules:[{conditions:[V,ee],rules:[{conditions:[{[o]:m,[i]:[d,ne]},oe],rules:[{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:h}],type:P},{conditions:ie,rules:[{conditions:[{[o]:m,[i]:[ne,d]}],rules:[{conditions:[{[o]:"stringEquals",[i]:[{[o]:k,[i]:[re,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ssm.{Region}.amazonaws.com",properties:te,headers:te},type:C},{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:h}],type:P},{conditions:se,rules:[{conditions:[oe],rules:[{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:h}],type:P},{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dnsSuffix}",properties:te,headers:te},type:C}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:h}]};t.ruleSet=ce},4861:(e,t,n)=>{var o=n(4736);var i=n(6626);var a=n(2575);var d=n(4608);var f=n(6477);var m=n(4918);var h=n(2566);var C=n(5700);var P=n(8946);var D=n(4433);var k=n(4271);var L=n(2446);var F=n(2279);var q=n(2585);var V=n(9228);var ee=n(4381);var te=n(419);var ne=n(9393);var re=n(2293);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ssm"});const oe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(q.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),V.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,q.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),V.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class SSMClient extends k.Client{config;constructor(...[e]){const t=F.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const q=D.resolveRetryConfig(k);const V=f.resolveRegionConfig(q);const ee=o.resolveHostHeaderConfig(V);const te=P.resolveEndpointConfig(ee);const ne=L.resolveHttpAuthSchemeConfig(te);const re=resolveRuntimeExtensions(ne,e?.extensions||[]);this.config=re;this.middlewareStack.use(h.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(C.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(a.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(m.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:L.defaultSSMHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new m.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(m.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class AddTagsToResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","AddTagsToResource",{}).n("SSMClient","AddTagsToResourceCommand").sc(ee.AddTagsToResource$).build()){}class AssociateOpsItemRelatedItemCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","AssociateOpsItemRelatedItem",{}).n("SSMClient","AssociateOpsItemRelatedItemCommand").sc(ee.AssociateOpsItemRelatedItem$).build()){}class CancelCommandCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CancelCommand",{}).n("SSMClient","CancelCommandCommand").sc(ee.CancelCommand$).build()){}class CancelMaintenanceWindowExecutionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CancelMaintenanceWindowExecution",{}).n("SSMClient","CancelMaintenanceWindowExecutionCommand").sc(ee.CancelMaintenanceWindowExecution$).build()){}class CreateActivationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateActivation",{}).n("SSMClient","CreateActivationCommand").sc(ee.CreateActivation$).build()){}class CreateAssociationBatchCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateAssociationBatch",{}).n("SSMClient","CreateAssociationBatchCommand").sc(ee.CreateAssociationBatch$).build()){}class CreateAssociationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateAssociation",{}).n("SSMClient","CreateAssociationCommand").sc(ee.CreateAssociation$).build()){}class CreateDocumentCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateDocument",{}).n("SSMClient","CreateDocumentCommand").sc(ee.CreateDocument$).build()){}class CreateMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateMaintenanceWindow",{}).n("SSMClient","CreateMaintenanceWindowCommand").sc(ee.CreateMaintenanceWindow$).build()){}class CreateOpsItemCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateOpsItem",{}).n("SSMClient","CreateOpsItemCommand").sc(ee.CreateOpsItem$).build()){}class CreateOpsMetadataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateOpsMetadata",{}).n("SSMClient","CreateOpsMetadataCommand").sc(ee.CreateOpsMetadata$).build()){}class CreatePatchBaselineCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreatePatchBaseline",{}).n("SSMClient","CreatePatchBaselineCommand").sc(ee.CreatePatchBaseline$).build()){}class CreateResourceDataSyncCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","CreateResourceDataSync",{}).n("SSMClient","CreateResourceDataSyncCommand").sc(ee.CreateResourceDataSync$).build()){}class DeleteActivationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteActivation",{}).n("SSMClient","DeleteActivationCommand").sc(ee.DeleteActivation$).build()){}class DeleteAssociationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteAssociation",{}).n("SSMClient","DeleteAssociationCommand").sc(ee.DeleteAssociation$).build()){}class DeleteDocumentCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteDocument",{}).n("SSMClient","DeleteDocumentCommand").sc(ee.DeleteDocument$).build()){}class DeleteInventoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteInventory",{}).n("SSMClient","DeleteInventoryCommand").sc(ee.DeleteInventory$).build()){}class DeleteMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteMaintenanceWindow",{}).n("SSMClient","DeleteMaintenanceWindowCommand").sc(ee.DeleteMaintenanceWindow$).build()){}class DeleteOpsItemCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteOpsItem",{}).n("SSMClient","DeleteOpsItemCommand").sc(ee.DeleteOpsItem$).build()){}class DeleteOpsMetadataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteOpsMetadata",{}).n("SSMClient","DeleteOpsMetadataCommand").sc(ee.DeleteOpsMetadata$).build()){}class DeleteParameterCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteParameter",{}).n("SSMClient","DeleteParameterCommand").sc(ee.DeleteParameter$).build()){}class DeleteParametersCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteParameters",{}).n("SSMClient","DeleteParametersCommand").sc(ee.DeleteParameters$).build()){}class DeletePatchBaselineCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeletePatchBaseline",{}).n("SSMClient","DeletePatchBaselineCommand").sc(ee.DeletePatchBaseline$).build()){}class DeleteResourceDataSyncCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteResourceDataSync",{}).n("SSMClient","DeleteResourceDataSyncCommand").sc(ee.DeleteResourceDataSync$).build()){}class DeleteResourcePolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeleteResourcePolicy",{}).n("SSMClient","DeleteResourcePolicyCommand").sc(ee.DeleteResourcePolicy$).build()){}class DeregisterManagedInstanceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterManagedInstance",{}).n("SSMClient","DeregisterManagedInstanceCommand").sc(ee.DeregisterManagedInstance$).build()){}class DeregisterPatchBaselineForPatchGroupCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterPatchBaselineForPatchGroup",{}).n("SSMClient","DeregisterPatchBaselineForPatchGroupCommand").sc(ee.DeregisterPatchBaselineForPatchGroup$).build()){}class DeregisterTargetFromMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterTargetFromMaintenanceWindow",{}).n("SSMClient","DeregisterTargetFromMaintenanceWindowCommand").sc(ee.DeregisterTargetFromMaintenanceWindow$).build()){}class DeregisterTaskFromMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DeregisterTaskFromMaintenanceWindow",{}).n("SSMClient","DeregisterTaskFromMaintenanceWindowCommand").sc(ee.DeregisterTaskFromMaintenanceWindow$).build()){}class DescribeActivationsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeActivations",{}).n("SSMClient","DescribeActivationsCommand").sc(ee.DescribeActivations$).build()){}class DescribeAssociationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAssociation",{}).n("SSMClient","DescribeAssociationCommand").sc(ee.DescribeAssociation$).build()){}class DescribeAssociationExecutionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAssociationExecutions",{}).n("SSMClient","DescribeAssociationExecutionsCommand").sc(ee.DescribeAssociationExecutions$).build()){}class DescribeAssociationExecutionTargetsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAssociationExecutionTargets",{}).n("SSMClient","DescribeAssociationExecutionTargetsCommand").sc(ee.DescribeAssociationExecutionTargets$).build()){}class DescribeAutomationExecutionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAutomationExecutions",{}).n("SSMClient","DescribeAutomationExecutionsCommand").sc(ee.DescribeAutomationExecutions$).build()){}class DescribeAutomationStepExecutionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAutomationStepExecutions",{}).n("SSMClient","DescribeAutomationStepExecutionsCommand").sc(ee.DescribeAutomationStepExecutions$).build()){}class DescribeAvailablePatchesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeAvailablePatches",{}).n("SSMClient","DescribeAvailablePatchesCommand").sc(ee.DescribeAvailablePatches$).build()){}class DescribeDocumentCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeDocument",{}).n("SSMClient","DescribeDocumentCommand").sc(ee.DescribeDocument$).build()){}class DescribeDocumentPermissionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeDocumentPermission",{}).n("SSMClient","DescribeDocumentPermissionCommand").sc(ee.DescribeDocumentPermission$).build()){}class DescribeEffectiveInstanceAssociationsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeEffectiveInstanceAssociations",{}).n("SSMClient","DescribeEffectiveInstanceAssociationsCommand").sc(ee.DescribeEffectiveInstanceAssociations$).build()){}class DescribeEffectivePatchesForPatchBaselineCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeEffectivePatchesForPatchBaseline",{}).n("SSMClient","DescribeEffectivePatchesForPatchBaselineCommand").sc(ee.DescribeEffectivePatchesForPatchBaseline$).build()){}class DescribeInstanceAssociationsStatusCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstanceAssociationsStatus",{}).n("SSMClient","DescribeInstanceAssociationsStatusCommand").sc(ee.DescribeInstanceAssociationsStatus$).build()){}class DescribeInstanceInformationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstanceInformation",{}).n("SSMClient","DescribeInstanceInformationCommand").sc(ee.DescribeInstanceInformation$).build()){}class DescribeInstancePatchesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstancePatches",{}).n("SSMClient","DescribeInstancePatchesCommand").sc(ee.DescribeInstancePatches$).build()){}class DescribeInstancePatchStatesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstancePatchStates",{}).n("SSMClient","DescribeInstancePatchStatesCommand").sc(ee.DescribeInstancePatchStates$).build()){}class DescribeInstancePatchStatesForPatchGroupCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstancePatchStatesForPatchGroup",{}).n("SSMClient","DescribeInstancePatchStatesForPatchGroupCommand").sc(ee.DescribeInstancePatchStatesForPatchGroup$).build()){}class DescribeInstancePropertiesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInstanceProperties",{}).n("SSMClient","DescribeInstancePropertiesCommand").sc(ee.DescribeInstanceProperties$).build()){}class DescribeInventoryDeletionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeInventoryDeletions",{}).n("SSMClient","DescribeInventoryDeletionsCommand").sc(ee.DescribeInventoryDeletions$).build()){}class DescribeMaintenanceWindowExecutionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowExecutions",{}).n("SSMClient","DescribeMaintenanceWindowExecutionsCommand").sc(ee.DescribeMaintenanceWindowExecutions$).build()){}class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowExecutionTaskInvocations",{}).n("SSMClient","DescribeMaintenanceWindowExecutionTaskInvocationsCommand").sc(ee.DescribeMaintenanceWindowExecutionTaskInvocations$).build()){}class DescribeMaintenanceWindowExecutionTasksCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowExecutionTasks",{}).n("SSMClient","DescribeMaintenanceWindowExecutionTasksCommand").sc(ee.DescribeMaintenanceWindowExecutionTasks$).build()){}class DescribeMaintenanceWindowScheduleCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowSchedule",{}).n("SSMClient","DescribeMaintenanceWindowScheduleCommand").sc(ee.DescribeMaintenanceWindowSchedule$).build()){}class DescribeMaintenanceWindowsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindows",{}).n("SSMClient","DescribeMaintenanceWindowsCommand").sc(ee.DescribeMaintenanceWindows$).build()){}class DescribeMaintenanceWindowsForTargetCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowsForTarget",{}).n("SSMClient","DescribeMaintenanceWindowsForTargetCommand").sc(ee.DescribeMaintenanceWindowsForTarget$).build()){}class DescribeMaintenanceWindowTargetsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowTargets",{}).n("SSMClient","DescribeMaintenanceWindowTargetsCommand").sc(ee.DescribeMaintenanceWindowTargets$).build()){}class DescribeMaintenanceWindowTasksCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeMaintenanceWindowTasks",{}).n("SSMClient","DescribeMaintenanceWindowTasksCommand").sc(ee.DescribeMaintenanceWindowTasks$).build()){}class DescribeOpsItemsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeOpsItems",{}).n("SSMClient","DescribeOpsItemsCommand").sc(ee.DescribeOpsItems$).build()){}class DescribeParametersCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeParameters",{}).n("SSMClient","DescribeParametersCommand").sc(ee.DescribeParameters$).build()){}class DescribePatchBaselinesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchBaselines",{}).n("SSMClient","DescribePatchBaselinesCommand").sc(ee.DescribePatchBaselines$).build()){}class DescribePatchGroupsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchGroups",{}).n("SSMClient","DescribePatchGroupsCommand").sc(ee.DescribePatchGroups$).build()){}class DescribePatchGroupStateCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchGroupState",{}).n("SSMClient","DescribePatchGroupStateCommand").sc(ee.DescribePatchGroupState$).build()){}class DescribePatchPropertiesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribePatchProperties",{}).n("SSMClient","DescribePatchPropertiesCommand").sc(ee.DescribePatchProperties$).build()){}class DescribeSessionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DescribeSessions",{}).n("SSMClient","DescribeSessionsCommand").sc(ee.DescribeSessions$).build()){}class DisassociateOpsItemRelatedItemCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","DisassociateOpsItemRelatedItem",{}).n("SSMClient","DisassociateOpsItemRelatedItemCommand").sc(ee.DisassociateOpsItemRelatedItem$).build()){}class GetAccessTokenCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetAccessToken",{}).n("SSMClient","GetAccessTokenCommand").sc(ee.GetAccessToken$).build()){}class GetAutomationExecutionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetAutomationExecution",{}).n("SSMClient","GetAutomationExecutionCommand").sc(ee.GetAutomationExecution$).build()){}class GetCalendarStateCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetCalendarState",{}).n("SSMClient","GetCalendarStateCommand").sc(ee.GetCalendarState$).build()){}class GetCommandInvocationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetCommandInvocation",{}).n("SSMClient","GetCommandInvocationCommand").sc(ee.GetCommandInvocation$).build()){}class GetConnectionStatusCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetConnectionStatus",{}).n("SSMClient","GetConnectionStatusCommand").sc(ee.GetConnectionStatus$).build()){}class GetDefaultPatchBaselineCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetDefaultPatchBaseline",{}).n("SSMClient","GetDefaultPatchBaselineCommand").sc(ee.GetDefaultPatchBaseline$).build()){}class GetDeployablePatchSnapshotForInstanceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetDeployablePatchSnapshotForInstance",{}).n("SSMClient","GetDeployablePatchSnapshotForInstanceCommand").sc(ee.GetDeployablePatchSnapshotForInstance$).build()){}class GetDocumentCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetDocument",{}).n("SSMClient","GetDocumentCommand").sc(ee.GetDocument$).build()){}class GetExecutionPreviewCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetExecutionPreview",{}).n("SSMClient","GetExecutionPreviewCommand").sc(ee.GetExecutionPreview$).build()){}class GetInventoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetInventory",{}).n("SSMClient","GetInventoryCommand").sc(ee.GetInventory$).build()){}class GetInventorySchemaCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetInventorySchema",{}).n("SSMClient","GetInventorySchemaCommand").sc(ee.GetInventorySchema$).build()){}class GetMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindow",{}).n("SSMClient","GetMaintenanceWindowCommand").sc(ee.GetMaintenanceWindow$).build()){}class GetMaintenanceWindowExecutionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowExecution",{}).n("SSMClient","GetMaintenanceWindowExecutionCommand").sc(ee.GetMaintenanceWindowExecution$).build()){}class GetMaintenanceWindowExecutionTaskCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowExecutionTask",{}).n("SSMClient","GetMaintenanceWindowExecutionTaskCommand").sc(ee.GetMaintenanceWindowExecutionTask$).build()){}class GetMaintenanceWindowExecutionTaskInvocationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowExecutionTaskInvocation",{}).n("SSMClient","GetMaintenanceWindowExecutionTaskInvocationCommand").sc(ee.GetMaintenanceWindowExecutionTaskInvocation$).build()){}class GetMaintenanceWindowTaskCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetMaintenanceWindowTask",{}).n("SSMClient","GetMaintenanceWindowTaskCommand").sc(ee.GetMaintenanceWindowTask$).build()){}class GetOpsItemCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetOpsItem",{}).n("SSMClient","GetOpsItemCommand").sc(ee.GetOpsItem$).build()){}class GetOpsMetadataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetOpsMetadata",{}).n("SSMClient","GetOpsMetadataCommand").sc(ee.GetOpsMetadata$).build()){}class GetOpsSummaryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetOpsSummary",{}).n("SSMClient","GetOpsSummaryCommand").sc(ee.GetOpsSummary$).build()){}class GetParameterCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParameter",{}).n("SSMClient","GetParameterCommand").sc(ee.GetParameter$).build()){}class GetParameterHistoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParameterHistory",{}).n("SSMClient","GetParameterHistoryCommand").sc(ee.GetParameterHistory$).build()){}class GetParametersByPathCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParametersByPath",{}).n("SSMClient","GetParametersByPathCommand").sc(ee.GetParametersByPath$).build()){}class GetParametersCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetParameters",{}).n("SSMClient","GetParametersCommand").sc(ee.GetParameters$).build()){}class GetPatchBaselineCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetPatchBaseline",{}).n("SSMClient","GetPatchBaselineCommand").sc(ee.GetPatchBaseline$).build()){}class GetPatchBaselineForPatchGroupCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetPatchBaselineForPatchGroup",{}).n("SSMClient","GetPatchBaselineForPatchGroupCommand").sc(ee.GetPatchBaselineForPatchGroup$).build()){}class GetResourcePoliciesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetResourcePolicies",{}).n("SSMClient","GetResourcePoliciesCommand").sc(ee.GetResourcePolicies$).build()){}class GetServiceSettingCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","GetServiceSetting",{}).n("SSMClient","GetServiceSettingCommand").sc(ee.GetServiceSetting$).build()){}class LabelParameterVersionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","LabelParameterVersion",{}).n("SSMClient","LabelParameterVersionCommand").sc(ee.LabelParameterVersion$).build()){}class ListAssociationsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListAssociations",{}).n("SSMClient","ListAssociationsCommand").sc(ee.ListAssociations$).build()){}class ListAssociationVersionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListAssociationVersions",{}).n("SSMClient","ListAssociationVersionsCommand").sc(ee.ListAssociationVersions$).build()){}class ListCommandInvocationsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListCommandInvocations",{}).n("SSMClient","ListCommandInvocationsCommand").sc(ee.ListCommandInvocations$).build()){}class ListCommandsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListCommands",{}).n("SSMClient","ListCommandsCommand").sc(ee.ListCommands$).build()){}class ListComplianceItemsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListComplianceItems",{}).n("SSMClient","ListComplianceItemsCommand").sc(ee.ListComplianceItems$).build()){}class ListComplianceSummariesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListComplianceSummaries",{}).n("SSMClient","ListComplianceSummariesCommand").sc(ee.ListComplianceSummaries$).build()){}class ListDocumentMetadataHistoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListDocumentMetadataHistory",{}).n("SSMClient","ListDocumentMetadataHistoryCommand").sc(ee.ListDocumentMetadataHistory$).build()){}class ListDocumentsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListDocuments",{}).n("SSMClient","ListDocumentsCommand").sc(ee.ListDocuments$).build()){}class ListDocumentVersionsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListDocumentVersions",{}).n("SSMClient","ListDocumentVersionsCommand").sc(ee.ListDocumentVersions$).build()){}class ListInventoryEntriesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListInventoryEntries",{}).n("SSMClient","ListInventoryEntriesCommand").sc(ee.ListInventoryEntries$).build()){}class ListNodesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListNodes",{}).n("SSMClient","ListNodesCommand").sc(ee.ListNodes$).build()){}class ListNodesSummaryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListNodesSummary",{}).n("SSMClient","ListNodesSummaryCommand").sc(ee.ListNodesSummary$).build()){}class ListOpsItemEventsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListOpsItemEvents",{}).n("SSMClient","ListOpsItemEventsCommand").sc(ee.ListOpsItemEvents$).build()){}class ListOpsItemRelatedItemsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListOpsItemRelatedItems",{}).n("SSMClient","ListOpsItemRelatedItemsCommand").sc(ee.ListOpsItemRelatedItems$).build()){}class ListOpsMetadataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListOpsMetadata",{}).n("SSMClient","ListOpsMetadataCommand").sc(ee.ListOpsMetadata$).build()){}class ListResourceComplianceSummariesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListResourceComplianceSummaries",{}).n("SSMClient","ListResourceComplianceSummariesCommand").sc(ee.ListResourceComplianceSummaries$).build()){}class ListResourceDataSyncCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListResourceDataSync",{}).n("SSMClient","ListResourceDataSyncCommand").sc(ee.ListResourceDataSync$).build()){}class ListTagsForResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ListTagsForResource",{}).n("SSMClient","ListTagsForResourceCommand").sc(ee.ListTagsForResource$).build()){}class ModifyDocumentPermissionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ModifyDocumentPermission",{}).n("SSMClient","ModifyDocumentPermissionCommand").sc(ee.ModifyDocumentPermission$).build()){}class PutComplianceItemsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutComplianceItems",{}).n("SSMClient","PutComplianceItemsCommand").sc(ee.PutComplianceItems$).build()){}class PutInventoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutInventory",{}).n("SSMClient","PutInventoryCommand").sc(ee.PutInventory$).build()){}class PutParameterCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutParameter",{}).n("SSMClient","PutParameterCommand").sc(ee.PutParameter$).build()){}class PutResourcePolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","PutResourcePolicy",{}).n("SSMClient","PutResourcePolicyCommand").sc(ee.PutResourcePolicy$).build()){}class RegisterDefaultPatchBaselineCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterDefaultPatchBaseline",{}).n("SSMClient","RegisterDefaultPatchBaselineCommand").sc(ee.RegisterDefaultPatchBaseline$).build()){}class RegisterPatchBaselineForPatchGroupCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterPatchBaselineForPatchGroup",{}).n("SSMClient","RegisterPatchBaselineForPatchGroupCommand").sc(ee.RegisterPatchBaselineForPatchGroup$).build()){}class RegisterTargetWithMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterTargetWithMaintenanceWindow",{}).n("SSMClient","RegisterTargetWithMaintenanceWindowCommand").sc(ee.RegisterTargetWithMaintenanceWindow$).build()){}class RegisterTaskWithMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RegisterTaskWithMaintenanceWindow",{}).n("SSMClient","RegisterTaskWithMaintenanceWindowCommand").sc(ee.RegisterTaskWithMaintenanceWindow$).build()){}class RemoveTagsFromResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","RemoveTagsFromResource",{}).n("SSMClient","RemoveTagsFromResourceCommand").sc(ee.RemoveTagsFromResource$).build()){}class ResetServiceSettingCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ResetServiceSetting",{}).n("SSMClient","ResetServiceSettingCommand").sc(ee.ResetServiceSetting$).build()){}class ResumeSessionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","ResumeSession",{}).n("SSMClient","ResumeSessionCommand").sc(ee.ResumeSession$).build()){}class SendAutomationSignalCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","SendAutomationSignal",{}).n("SSMClient","SendAutomationSignalCommand").sc(ee.SendAutomationSignal$).build()){}class SendCommandCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","SendCommand",{}).n("SSMClient","SendCommandCommand").sc(ee.SendCommand$).build()){}class StartAccessRequestCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartAccessRequest",{}).n("SSMClient","StartAccessRequestCommand").sc(ee.StartAccessRequest$).build()){}class StartAssociationsOnceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartAssociationsOnce",{}).n("SSMClient","StartAssociationsOnceCommand").sc(ee.StartAssociationsOnce$).build()){}class StartAutomationExecutionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartAutomationExecution",{}).n("SSMClient","StartAutomationExecutionCommand").sc(ee.StartAutomationExecution$).build()){}class StartChangeRequestExecutionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartChangeRequestExecution",{}).n("SSMClient","StartChangeRequestExecutionCommand").sc(ee.StartChangeRequestExecution$).build()){}class StartExecutionPreviewCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartExecutionPreview",{}).n("SSMClient","StartExecutionPreviewCommand").sc(ee.StartExecutionPreview$).build()){}class StartSessionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StartSession",{}).n("SSMClient","StartSessionCommand").sc(ee.StartSession$).build()){}class StopAutomationExecutionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","StopAutomationExecution",{}).n("SSMClient","StopAutomationExecutionCommand").sc(ee.StopAutomationExecution$).build()){}class TerminateSessionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","TerminateSession",{}).n("SSMClient","TerminateSessionCommand").sc(ee.TerminateSession$).build()){}class UnlabelParameterVersionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UnlabelParameterVersion",{}).n("SSMClient","UnlabelParameterVersionCommand").sc(ee.UnlabelParameterVersion$).build()){}class UpdateAssociationCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateAssociation",{}).n("SSMClient","UpdateAssociationCommand").sc(ee.UpdateAssociation$).build()){}class UpdateAssociationStatusCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateAssociationStatus",{}).n("SSMClient","UpdateAssociationStatusCommand").sc(ee.UpdateAssociationStatus$).build()){}class UpdateDocumentCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateDocument",{}).n("SSMClient","UpdateDocumentCommand").sc(ee.UpdateDocument$).build()){}class UpdateDocumentDefaultVersionCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateDocumentDefaultVersion",{}).n("SSMClient","UpdateDocumentDefaultVersionCommand").sc(ee.UpdateDocumentDefaultVersion$).build()){}class UpdateDocumentMetadataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateDocumentMetadata",{}).n("SSMClient","UpdateDocumentMetadataCommand").sc(ee.UpdateDocumentMetadata$).build()){}class UpdateMaintenanceWindowCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateMaintenanceWindow",{}).n("SSMClient","UpdateMaintenanceWindowCommand").sc(ee.UpdateMaintenanceWindow$).build()){}class UpdateMaintenanceWindowTargetCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateMaintenanceWindowTarget",{}).n("SSMClient","UpdateMaintenanceWindowTargetCommand").sc(ee.UpdateMaintenanceWindowTarget$).build()){}class UpdateMaintenanceWindowTaskCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateMaintenanceWindowTask",{}).n("SSMClient","UpdateMaintenanceWindowTaskCommand").sc(ee.UpdateMaintenanceWindowTask$).build()){}class UpdateManagedInstanceRoleCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateManagedInstanceRole",{}).n("SSMClient","UpdateManagedInstanceRoleCommand").sc(ee.UpdateManagedInstanceRole$).build()){}class UpdateOpsItemCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateOpsItem",{}).n("SSMClient","UpdateOpsItemCommand").sc(ee.UpdateOpsItem$).build()){}class UpdateOpsMetadataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateOpsMetadata",{}).n("SSMClient","UpdateOpsMetadataCommand").sc(ee.UpdateOpsMetadata$).build()){}class UpdatePatchBaselineCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdatePatchBaseline",{}).n("SSMClient","UpdatePatchBaselineCommand").sc(ee.UpdatePatchBaseline$).build()){}class UpdateResourceDataSyncCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateResourceDataSync",{}).n("SSMClient","UpdateResourceDataSyncCommand").sc(ee.UpdateResourceDataSync$).build()){}class UpdateServiceSettingCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonSSM","UpdateServiceSetting",{}).n("SSMClient","UpdateServiceSettingCommand").sc(ee.UpdateServiceSetting$).build()){}const ie=m.createPaginator(SSMClient,DescribeActivationsCommand,"NextToken","NextToken","MaxResults");const se=m.createPaginator(SSMClient,DescribeAssociationExecutionsCommand,"NextToken","NextToken","MaxResults");const ae=m.createPaginator(SSMClient,DescribeAssociationExecutionTargetsCommand,"NextToken","NextToken","MaxResults");const ce=m.createPaginator(SSMClient,DescribeAutomationExecutionsCommand,"NextToken","NextToken","MaxResults");const le=m.createPaginator(SSMClient,DescribeAutomationStepExecutionsCommand,"NextToken","NextToken","MaxResults");const ue=m.createPaginator(SSMClient,DescribeAvailablePatchesCommand,"NextToken","NextToken","MaxResults");const de=m.createPaginator(SSMClient,DescribeEffectiveInstanceAssociationsCommand,"NextToken","NextToken","MaxResults");const pe=m.createPaginator(SSMClient,DescribeEffectivePatchesForPatchBaselineCommand,"NextToken","NextToken","MaxResults");const fe=m.createPaginator(SSMClient,DescribeInstanceAssociationsStatusCommand,"NextToken","NextToken","MaxResults");const me=m.createPaginator(SSMClient,DescribeInstanceInformationCommand,"NextToken","NextToken","MaxResults");const he=m.createPaginator(SSMClient,DescribeInstancePatchesCommand,"NextToken","NextToken","MaxResults");const ge=m.createPaginator(SSMClient,DescribeInstancePatchStatesForPatchGroupCommand,"NextToken","NextToken","MaxResults");const ye=m.createPaginator(SSMClient,DescribeInstancePatchStatesCommand,"NextToken","NextToken","MaxResults");const Se=m.createPaginator(SSMClient,DescribeInstancePropertiesCommand,"NextToken","NextToken","MaxResults");const Ee=m.createPaginator(SSMClient,DescribeInventoryDeletionsCommand,"NextToken","NextToken","MaxResults");const ve=m.createPaginator(SSMClient,DescribeMaintenanceWindowExecutionsCommand,"NextToken","NextToken","MaxResults");const Ce=m.createPaginator(SSMClient,DescribeMaintenanceWindowExecutionTaskInvocationsCommand,"NextToken","NextToken","MaxResults");const Ie=m.createPaginator(SSMClient,DescribeMaintenanceWindowExecutionTasksCommand,"NextToken","NextToken","MaxResults");const be=m.createPaginator(SSMClient,DescribeMaintenanceWindowScheduleCommand,"NextToken","NextToken","MaxResults");const we=m.createPaginator(SSMClient,DescribeMaintenanceWindowsForTargetCommand,"NextToken","NextToken","MaxResults");const Ae=m.createPaginator(SSMClient,DescribeMaintenanceWindowsCommand,"NextToken","NextToken","MaxResults");const Re=m.createPaginator(SSMClient,DescribeMaintenanceWindowTargetsCommand,"NextToken","NextToken","MaxResults");const Pe=m.createPaginator(SSMClient,DescribeMaintenanceWindowTasksCommand,"NextToken","NextToken","MaxResults");const Te=m.createPaginator(SSMClient,DescribeOpsItemsCommand,"NextToken","NextToken","MaxResults");const xe=m.createPaginator(SSMClient,DescribeParametersCommand,"NextToken","NextToken","MaxResults");const _e=m.createPaginator(SSMClient,DescribePatchBaselinesCommand,"NextToken","NextToken","MaxResults");const Oe=m.createPaginator(SSMClient,DescribePatchGroupsCommand,"NextToken","NextToken","MaxResults");const Me=m.createPaginator(SSMClient,DescribePatchPropertiesCommand,"NextToken","NextToken","MaxResults");const De=m.createPaginator(SSMClient,DescribeSessionsCommand,"NextToken","NextToken","MaxResults");const $e=m.createPaginator(SSMClient,GetInventoryCommand,"NextToken","NextToken","MaxResults");const Ne=m.createPaginator(SSMClient,GetInventorySchemaCommand,"NextToken","NextToken","MaxResults");const ke=m.createPaginator(SSMClient,GetOpsSummaryCommand,"NextToken","NextToken","MaxResults");const Le=m.createPaginator(SSMClient,GetParameterHistoryCommand,"NextToken","NextToken","MaxResults");const Ue=m.createPaginator(SSMClient,GetParametersByPathCommand,"NextToken","NextToken","MaxResults");const Fe=m.createPaginator(SSMClient,GetResourcePoliciesCommand,"NextToken","NextToken","MaxResults");const Be=m.createPaginator(SSMClient,ListAssociationsCommand,"NextToken","NextToken","MaxResults");const qe=m.createPaginator(SSMClient,ListAssociationVersionsCommand,"NextToken","NextToken","MaxResults");const je=m.createPaginator(SSMClient,ListCommandInvocationsCommand,"NextToken","NextToken","MaxResults");const ze=m.createPaginator(SSMClient,ListCommandsCommand,"NextToken","NextToken","MaxResults");const He=m.createPaginator(SSMClient,ListComplianceItemsCommand,"NextToken","NextToken","MaxResults");const Ve=m.createPaginator(SSMClient,ListComplianceSummariesCommand,"NextToken","NextToken","MaxResults");const Ge=m.createPaginator(SSMClient,ListDocumentsCommand,"NextToken","NextToken","MaxResults");const We=m.createPaginator(SSMClient,ListDocumentVersionsCommand,"NextToken","NextToken","MaxResults");const Ke=m.createPaginator(SSMClient,ListNodesCommand,"NextToken","NextToken","MaxResults");const Qe=m.createPaginator(SSMClient,ListNodesSummaryCommand,"NextToken","NextToken","MaxResults");const Ye=m.createPaginator(SSMClient,ListOpsItemEventsCommand,"NextToken","NextToken","MaxResults");const Je=m.createPaginator(SSMClient,ListOpsItemRelatedItemsCommand,"NextToken","NextToken","MaxResults");const Xe=m.createPaginator(SSMClient,ListOpsMetadataCommand,"NextToken","NextToken","MaxResults");const Ze=m.createPaginator(SSMClient,ListResourceComplianceSummariesCommand,"NextToken","NextToken","MaxResults");const ht=m.createPaginator(SSMClient,ListResourceDataSyncCommand,"NextToken","NextToken","MaxResults");const checkState=async(e,t)=>{let n;try{let o=await e.send(new GetCommandInvocationCommand(t));n=o;try{const returnComparator=()=>o.Status;if(returnComparator()==="Pending"){return{state:te.WaiterState.RETRY,reason:n}}}catch(e){}try{const returnComparator=()=>o.Status;if(returnComparator()==="InProgress"){return{state:te.WaiterState.RETRY,reason:n}}}catch(e){}try{const returnComparator=()=>o.Status;if(returnComparator()==="Delayed"){return{state:te.WaiterState.RETRY,reason:n}}}catch(e){}try{const returnComparator=()=>o.Status;if(returnComparator()==="Success"){return{state:te.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.Status;if(returnComparator()==="Cancelled"){return{state:te.WaiterState.FAILURE,reason:n}}}catch(e){}try{const returnComparator=()=>o.Status;if(returnComparator()==="TimedOut"){return{state:te.WaiterState.FAILURE,reason:n}}}catch(e){}try{const returnComparator=()=>o.Status;if(returnComparator()==="Failed"){return{state:te.WaiterState.FAILURE,reason:n}}}catch(e){}try{const returnComparator=()=>o.Status;if(returnComparator()==="Cancelling"){return{state:te.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e;if(e.name&&e.name=="InvocationDoesNotExist"){return{state:te.WaiterState.RETRY,reason:n}}}return{state:te.WaiterState.RETRY,reason:n}};const waitForCommandExecuted=async(e,t)=>{const n={minDelay:5,maxDelay:120};return te.createWaiter({...n,...e},t,checkState)};const waitUntilCommandExecuted=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await te.createWaiter({...n,...e},t,checkState);return te.checkExceptions(o)};const It={AddTagsToResourceCommand:AddTagsToResourceCommand,AssociateOpsItemRelatedItemCommand:AssociateOpsItemRelatedItemCommand,CancelCommandCommand:CancelCommandCommand,CancelMaintenanceWindowExecutionCommand:CancelMaintenanceWindowExecutionCommand,CreateActivationCommand:CreateActivationCommand,CreateAssociationCommand:CreateAssociationCommand,CreateAssociationBatchCommand:CreateAssociationBatchCommand,CreateDocumentCommand:CreateDocumentCommand,CreateMaintenanceWindowCommand:CreateMaintenanceWindowCommand,CreateOpsItemCommand:CreateOpsItemCommand,CreateOpsMetadataCommand:CreateOpsMetadataCommand,CreatePatchBaselineCommand:CreatePatchBaselineCommand,CreateResourceDataSyncCommand:CreateResourceDataSyncCommand,DeleteActivationCommand:DeleteActivationCommand,DeleteAssociationCommand:DeleteAssociationCommand,DeleteDocumentCommand:DeleteDocumentCommand,DeleteInventoryCommand:DeleteInventoryCommand,DeleteMaintenanceWindowCommand:DeleteMaintenanceWindowCommand,DeleteOpsItemCommand:DeleteOpsItemCommand,DeleteOpsMetadataCommand:DeleteOpsMetadataCommand,DeleteParameterCommand:DeleteParameterCommand,DeleteParametersCommand:DeleteParametersCommand,DeletePatchBaselineCommand:DeletePatchBaselineCommand,DeleteResourceDataSyncCommand:DeleteResourceDataSyncCommand,DeleteResourcePolicyCommand:DeleteResourcePolicyCommand,DeregisterManagedInstanceCommand:DeregisterManagedInstanceCommand,DeregisterPatchBaselineForPatchGroupCommand:DeregisterPatchBaselineForPatchGroupCommand,DeregisterTargetFromMaintenanceWindowCommand:DeregisterTargetFromMaintenanceWindowCommand,DeregisterTaskFromMaintenanceWindowCommand:DeregisterTaskFromMaintenanceWindowCommand,DescribeActivationsCommand:DescribeActivationsCommand,DescribeAssociationCommand:DescribeAssociationCommand,DescribeAssociationExecutionsCommand:DescribeAssociationExecutionsCommand,DescribeAssociationExecutionTargetsCommand:DescribeAssociationExecutionTargetsCommand,DescribeAutomationExecutionsCommand:DescribeAutomationExecutionsCommand,DescribeAutomationStepExecutionsCommand:DescribeAutomationStepExecutionsCommand,DescribeAvailablePatchesCommand:DescribeAvailablePatchesCommand,DescribeDocumentCommand:DescribeDocumentCommand,DescribeDocumentPermissionCommand:DescribeDocumentPermissionCommand,DescribeEffectiveInstanceAssociationsCommand:DescribeEffectiveInstanceAssociationsCommand,DescribeEffectivePatchesForPatchBaselineCommand:DescribeEffectivePatchesForPatchBaselineCommand,DescribeInstanceAssociationsStatusCommand:DescribeInstanceAssociationsStatusCommand,DescribeInstanceInformationCommand:DescribeInstanceInformationCommand,DescribeInstancePatchesCommand:DescribeInstancePatchesCommand,DescribeInstancePatchStatesCommand:DescribeInstancePatchStatesCommand,DescribeInstancePatchStatesForPatchGroupCommand:DescribeInstancePatchStatesForPatchGroupCommand,DescribeInstancePropertiesCommand:DescribeInstancePropertiesCommand,DescribeInventoryDeletionsCommand:DescribeInventoryDeletionsCommand,DescribeMaintenanceWindowExecutionsCommand:DescribeMaintenanceWindowExecutionsCommand,DescribeMaintenanceWindowExecutionTaskInvocationsCommand:DescribeMaintenanceWindowExecutionTaskInvocationsCommand,DescribeMaintenanceWindowExecutionTasksCommand:DescribeMaintenanceWindowExecutionTasksCommand,DescribeMaintenanceWindowsCommand:DescribeMaintenanceWindowsCommand,DescribeMaintenanceWindowScheduleCommand:DescribeMaintenanceWindowScheduleCommand,DescribeMaintenanceWindowsForTargetCommand:DescribeMaintenanceWindowsForTargetCommand,DescribeMaintenanceWindowTargetsCommand:DescribeMaintenanceWindowTargetsCommand,DescribeMaintenanceWindowTasksCommand:DescribeMaintenanceWindowTasksCommand,DescribeOpsItemsCommand:DescribeOpsItemsCommand,DescribeParametersCommand:DescribeParametersCommand,DescribePatchBaselinesCommand:DescribePatchBaselinesCommand,DescribePatchGroupsCommand:DescribePatchGroupsCommand,DescribePatchGroupStateCommand:DescribePatchGroupStateCommand,DescribePatchPropertiesCommand:DescribePatchPropertiesCommand,DescribeSessionsCommand:DescribeSessionsCommand,DisassociateOpsItemRelatedItemCommand:DisassociateOpsItemRelatedItemCommand,GetAccessTokenCommand:GetAccessTokenCommand,GetAutomationExecutionCommand:GetAutomationExecutionCommand,GetCalendarStateCommand:GetCalendarStateCommand,GetCommandInvocationCommand:GetCommandInvocationCommand,GetConnectionStatusCommand:GetConnectionStatusCommand,GetDefaultPatchBaselineCommand:GetDefaultPatchBaselineCommand,GetDeployablePatchSnapshotForInstanceCommand:GetDeployablePatchSnapshotForInstanceCommand,GetDocumentCommand:GetDocumentCommand,GetExecutionPreviewCommand:GetExecutionPreviewCommand,GetInventoryCommand:GetInventoryCommand,GetInventorySchemaCommand:GetInventorySchemaCommand,GetMaintenanceWindowCommand:GetMaintenanceWindowCommand,GetMaintenanceWindowExecutionCommand:GetMaintenanceWindowExecutionCommand,GetMaintenanceWindowExecutionTaskCommand:GetMaintenanceWindowExecutionTaskCommand,GetMaintenanceWindowExecutionTaskInvocationCommand:GetMaintenanceWindowExecutionTaskInvocationCommand,GetMaintenanceWindowTaskCommand:GetMaintenanceWindowTaskCommand,GetOpsItemCommand:GetOpsItemCommand,GetOpsMetadataCommand:GetOpsMetadataCommand,GetOpsSummaryCommand:GetOpsSummaryCommand,GetParameterCommand:GetParameterCommand,GetParameterHistoryCommand:GetParameterHistoryCommand,GetParametersCommand:GetParametersCommand,GetParametersByPathCommand:GetParametersByPathCommand,GetPatchBaselineCommand:GetPatchBaselineCommand,GetPatchBaselineForPatchGroupCommand:GetPatchBaselineForPatchGroupCommand,GetResourcePoliciesCommand:GetResourcePoliciesCommand,GetServiceSettingCommand:GetServiceSettingCommand,LabelParameterVersionCommand:LabelParameterVersionCommand,ListAssociationsCommand:ListAssociationsCommand,ListAssociationVersionsCommand:ListAssociationVersionsCommand,ListCommandInvocationsCommand:ListCommandInvocationsCommand,ListCommandsCommand:ListCommandsCommand,ListComplianceItemsCommand:ListComplianceItemsCommand,ListComplianceSummariesCommand:ListComplianceSummariesCommand,ListDocumentMetadataHistoryCommand:ListDocumentMetadataHistoryCommand,ListDocumentsCommand:ListDocumentsCommand,ListDocumentVersionsCommand:ListDocumentVersionsCommand,ListInventoryEntriesCommand:ListInventoryEntriesCommand,ListNodesCommand:ListNodesCommand,ListNodesSummaryCommand:ListNodesSummaryCommand,ListOpsItemEventsCommand:ListOpsItemEventsCommand,ListOpsItemRelatedItemsCommand:ListOpsItemRelatedItemsCommand,ListOpsMetadataCommand:ListOpsMetadataCommand,ListResourceComplianceSummariesCommand:ListResourceComplianceSummariesCommand,ListResourceDataSyncCommand:ListResourceDataSyncCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,ModifyDocumentPermissionCommand:ModifyDocumentPermissionCommand,PutComplianceItemsCommand:PutComplianceItemsCommand,PutInventoryCommand:PutInventoryCommand,PutParameterCommand:PutParameterCommand,PutResourcePolicyCommand:PutResourcePolicyCommand,RegisterDefaultPatchBaselineCommand:RegisterDefaultPatchBaselineCommand,RegisterPatchBaselineForPatchGroupCommand:RegisterPatchBaselineForPatchGroupCommand,RegisterTargetWithMaintenanceWindowCommand:RegisterTargetWithMaintenanceWindowCommand,RegisterTaskWithMaintenanceWindowCommand:RegisterTaskWithMaintenanceWindowCommand,RemoveTagsFromResourceCommand:RemoveTagsFromResourceCommand,ResetServiceSettingCommand:ResetServiceSettingCommand,ResumeSessionCommand:ResumeSessionCommand,SendAutomationSignalCommand:SendAutomationSignalCommand,SendCommandCommand:SendCommandCommand,StartAccessRequestCommand:StartAccessRequestCommand,StartAssociationsOnceCommand:StartAssociationsOnceCommand,StartAutomationExecutionCommand:StartAutomationExecutionCommand,StartChangeRequestExecutionCommand:StartChangeRequestExecutionCommand,StartExecutionPreviewCommand:StartExecutionPreviewCommand,StartSessionCommand:StartSessionCommand,StopAutomationExecutionCommand:StopAutomationExecutionCommand,TerminateSessionCommand:TerminateSessionCommand,UnlabelParameterVersionCommand:UnlabelParameterVersionCommand,UpdateAssociationCommand:UpdateAssociationCommand,UpdateAssociationStatusCommand:UpdateAssociationStatusCommand,UpdateDocumentCommand:UpdateDocumentCommand,UpdateDocumentDefaultVersionCommand:UpdateDocumentDefaultVersionCommand,UpdateDocumentMetadataCommand:UpdateDocumentMetadataCommand,UpdateMaintenanceWindowCommand:UpdateMaintenanceWindowCommand,UpdateMaintenanceWindowTargetCommand:UpdateMaintenanceWindowTargetCommand,UpdateMaintenanceWindowTaskCommand:UpdateMaintenanceWindowTaskCommand,UpdateManagedInstanceRoleCommand:UpdateManagedInstanceRoleCommand,UpdateOpsItemCommand:UpdateOpsItemCommand,UpdateOpsMetadataCommand:UpdateOpsMetadataCommand,UpdatePatchBaselineCommand:UpdatePatchBaselineCommand,UpdateResourceDataSyncCommand:UpdateResourceDataSyncCommand,UpdateServiceSettingCommand:UpdateServiceSettingCommand};const Rt={paginateDescribeActivations:ie,paginateDescribeAssociationExecutions:se,paginateDescribeAssociationExecutionTargets:ae,paginateDescribeAutomationExecutions:ce,paginateDescribeAutomationStepExecutions:le,paginateDescribeAvailablePatches:ue,paginateDescribeEffectiveInstanceAssociations:de,paginateDescribeEffectivePatchesForPatchBaseline:pe,paginateDescribeInstanceAssociationsStatus:fe,paginateDescribeInstanceInformation:me,paginateDescribeInstancePatches:he,paginateDescribeInstancePatchStates:ye,paginateDescribeInstancePatchStatesForPatchGroup:ge,paginateDescribeInstanceProperties:Se,paginateDescribeInventoryDeletions:Ee,paginateDescribeMaintenanceWindowExecutions:ve,paginateDescribeMaintenanceWindowExecutionTaskInvocations:Ce,paginateDescribeMaintenanceWindowExecutionTasks:Ie,paginateDescribeMaintenanceWindows:Ae,paginateDescribeMaintenanceWindowSchedule:be,paginateDescribeMaintenanceWindowsForTarget:we,paginateDescribeMaintenanceWindowTargets:Re,paginateDescribeMaintenanceWindowTasks:Pe,paginateDescribeOpsItems:Te,paginateDescribeParameters:xe,paginateDescribePatchBaselines:_e,paginateDescribePatchGroups:Oe,paginateDescribePatchProperties:Me,paginateDescribeSessions:De,paginateGetInventory:$e,paginateGetInventorySchema:Ne,paginateGetOpsSummary:ke,paginateGetParameterHistory:Le,paginateGetParametersByPath:Ue,paginateGetResourcePolicies:Fe,paginateListAssociations:Be,paginateListAssociationVersions:qe,paginateListCommandInvocations:je,paginateListCommands:ze,paginateListComplianceItems:He,paginateListComplianceSummaries:Ve,paginateListDocuments:Ge,paginateListDocumentVersions:We,paginateListNodes:Ke,paginateListNodesSummary:Qe,paginateListOpsItemEvents:Ye,paginateListOpsItemRelatedItems:Je,paginateListOpsMetadata:Xe,paginateListResourceComplianceSummaries:Ze,paginateListResourceDataSync:ht};const Pt={waitUntilCommandExecuted:waitUntilCommandExecuted};class SSM extends SSMClient{}k.createAggregatedClient(It,SSM,{paginators:Rt,waiters:Pt});const _t={APPROVED:"Approved",EXPIRED:"Expired",PENDING:"Pending",REJECTED:"Rejected",REVOKED:"Revoked"};const Mt={JUSTINTIME:"JustInTime",STANDARD:"Standard"};const Dt={ASSOCIATION:"Association",AUTOMATION:"Automation",DOCUMENT:"Document",MAINTENANCE_WINDOW:"MaintenanceWindow",MANAGED_INSTANCE:"ManagedInstance",OPSMETADATA:"OpsMetadata",OPS_ITEM:"OpsItem",PARAMETER:"Parameter",PATCH_BASELINE:"PatchBaseline"};const $t={ALARM:"ALARM",UNKNOWN:"UNKNOWN"};const kt={Critical:"CRITICAL",High:"HIGH",Low:"LOW",Medium:"MEDIUM",Unspecified:"UNSPECIFIED"};const Lt={Auto:"AUTO",Manual:"MANUAL"};const Ut={Failed:"Failed",Pending:"Pending",Success:"Success"};const Ft={Client:"Client",Server:"Server",Unknown:"Unknown"};const Bt={AttachmentReference:"AttachmentReference",S3FileUrl:"S3FileUrl",SourceUrl:"SourceUrl"};const qt={JSON:"JSON",TEXT:"TEXT",YAML:"YAML"};const jt={ApplicationConfiguration:"ApplicationConfiguration",ApplicationConfigurationSchema:"ApplicationConfigurationSchema",AutoApprovalPolicy:"AutoApprovalPolicy",Automation:"Automation",ChangeCalendar:"ChangeCalendar",ChangeTemplate:"Automation.ChangeTemplate",CloudFormation:"CloudFormation",Command:"Command",ConformancePackTemplate:"ConformancePackTemplate",DeploymentStrategy:"DeploymentStrategy",ManualApprovalPolicy:"ManualApprovalPolicy",Package:"Package",Policy:"Policy",ProblemAnalysis:"ProblemAnalysis",ProblemAnalysisTemplate:"ProblemAnalysisTemplate",QuickSetup:"QuickSetup",Session:"Session"};const zt={SHA1:"Sha1",SHA256:"Sha256"};const Ht={String:"String",StringList:"StringList"};const Vt={LINUX:"Linux",MACOS:"MacOS",WINDOWS:"Windows"};const Gt={APPROVED:"APPROVED",NOT_REVIEWED:"NOT_REVIEWED",PENDING:"PENDING",REJECTED:"REJECTED"};const Wt={Active:"Active",Creating:"Creating",Deleting:"Deleting",Failed:"Failed",Updating:"Updating"};const Kt={SEARCHABLE_STRING:"SearchableString",STRING:"String"};const Qt={Critical:"CRITICAL",High:"HIGH",Informational:"INFORMATIONAL",Low:"LOW",Medium:"MEDIUM",Unspecified:"UNSPECIFIED"};const Yt={AdvisoryId:"ADVISORY_ID",Arch:"ARCH",BugzillaId:"BUGZILLA_ID",CVEId:"CVE_ID",Classification:"CLASSIFICATION",Epoch:"EPOCH",MsrcSeverity:"MSRC_SEVERITY",Name:"NAME",PatchId:"PATCH_ID",PatchSet:"PATCH_SET",Priority:"PRIORITY",Product:"PRODUCT",ProductFamily:"PRODUCT_FAMILY",Release:"RELEASE",Repository:"REPOSITORY",Section:"SECTION",Security:"SECURITY",Severity:"SEVERITY",Version:"VERSION"};const Jt={Compliant:"COMPLIANT",NonCompliant:"NON_COMPLIANT"};const Xt={AlmaLinux:"ALMA_LINUX",AmazonLinux:"AMAZON_LINUX",AmazonLinux2:"AMAZON_LINUX_2",AmazonLinux2022:"AMAZON_LINUX_2022",AmazonLinux2023:"AMAZON_LINUX_2023",CentOS:"CENTOS",Debian:"DEBIAN",MacOS:"MACOS",OracleLinux:"ORACLE_LINUX",Raspbian:"RASPBIAN",RedhatEnterpriseLinux:"REDHAT_ENTERPRISE_LINUX",Rocky_Linux:"ROCKY_LINUX",Suse:"SUSE",Ubuntu:"UBUNTU",Windows:"WINDOWS"};const Zt={AllowAsDependency:"ALLOW_AS_DEPENDENCY",Block:"BLOCK"};const en={JSON_SERDE:"JsonSerDe"};const tn={DELETE_SCHEMA:"DeleteSchema",DISABLE_SCHEMA:"DisableSchema"};const nn={ACTIVATION_IDS:"ActivationIds",DEFAULT_INSTANCE_NAME:"DefaultInstanceName",IAM_ROLE:"IamRole"};const rn={CreatedTime:"CreatedTime",ExecutionId:"ExecutionId",Status:"Status"};const on={Equal:"EQUAL",GreaterThan:"GREATER_THAN",LessThan:"LESS_THAN"};const sn={ResourceId:"ResourceId",ResourceType:"ResourceType",Status:"Status"};const an={AUTOMATION_SUBTYPE:"AutomationSubtype",AUTOMATION_TYPE:"AutomationType",CURRENT_ACTION:"CurrentAction",DOCUMENT_NAME_PREFIX:"DocumentNamePrefix",EXECUTION_ID:"ExecutionId",EXECUTION_STATUS:"ExecutionStatus",OPS_ITEM_ID:"OpsItemId",PARENT_EXECUTION_ID:"ParentExecutionId",START_TIME_AFTER:"StartTimeAfter",START_TIME_BEFORE:"StartTimeBefore",TAG_KEY:"TagKey",TARGET_RESOURCE_GROUP:"TargetResourceGroup"};const cn={APPROVED:"Approved",CANCELLED:"Cancelled",CANCELLING:"Cancelling",CHANGE_CALENDAR_OVERRIDE_APPROVED:"ChangeCalendarOverrideApproved",CHANGE_CALENDAR_OVERRIDE_REJECTED:"ChangeCalendarOverrideRejected",COMPLETED_WITH_FAILURE:"CompletedWithFailure",COMPLETED_WITH_SUCCESS:"CompletedWithSuccess",EXITED:"Exited",FAILED:"Failed",INPROGRESS:"InProgress",PENDING:"Pending",PENDING_APPROVAL:"PendingApproval",PENDING_CHANGE_CALENDAR_OVERRIDE:"PendingChangeCalendarOverride",REJECTED:"Rejected",RUNBOOK_INPROGRESS:"RunbookInProgress",SCHEDULED:"Scheduled",SUCCESS:"Success",TIMEDOUT:"TimedOut",WAITING:"Waiting"};const ln={AccessRequest:"AccessRequest",ChangeRequest:"ChangeRequest"};const un={CrossAccount:"CrossAccount",Local:"Local"};const dn={Auto:"Auto",Interactive:"Interactive"};const pn={ACTION:"Action",PARENT_STEP_EXECUTION_ID:"ParentStepExecutionId",PARENT_STEP_ITERATION:"ParentStepIteration",PARENT_STEP_ITERATOR_VALUE:"ParentStepIteratorValue",START_TIME_AFTER:"StartTimeAfter",START_TIME_BEFORE:"StartTimeBefore",STEP_EXECUTION_ID:"StepExecutionId",STEP_EXECUTION_STATUS:"StepExecutionStatus",STEP_NAME:"StepName"};const mn={SHARE:"Share"};const hn={Approved:"APPROVED",ExplicitApproved:"EXPLICIT_APPROVED",ExplicitRejected:"EXPLICIT_REJECTED",PendingApproval:"PENDING_APPROVAL"};const gn={ACTIVATION_IDS:"ActivationIds",AGENT_VERSION:"AgentVersion",ASSOCIATION_STATUS:"AssociationStatus",IAM_ROLE:"IamRole",INSTANCE_IDS:"InstanceIds",PING_STATUS:"PingStatus",PLATFORM_TYPES:"PlatformTypes",RESOURCE_TYPE:"ResourceType"};const yn={CONNECTION_LOST:"ConnectionLost",INACTIVE:"Inactive",ONLINE:"Online"};const Sn={EC2_INSTANCE:"EC2Instance",MANAGED_INSTANCE:"ManagedInstance"};const En={AWS_EC2_INSTANCE:"AWS::EC2::Instance",AWS_IOT_THING:"AWS::IoT::Thing",AWS_SSM_MANAGEDINSTANCE:"AWS::SSM::ManagedInstance"};const vn={AvailableSecurityUpdate:"AVAILABLE_SECURITY_UPDATE",Failed:"FAILED",Installed:"INSTALLED",InstalledOther:"INSTALLED_OTHER",InstalledPendingReboot:"INSTALLED_PENDING_REBOOT",InstalledRejected:"INSTALLED_REJECTED",Missing:"MISSING",NotApplicable:"NOT_APPLICABLE"};const Cn={INSTALL:"Install",SCAN:"Scan"};const In={NO_REBOOT:"NoReboot",REBOOT_IF_NEEDED:"RebootIfNeeded"};const bn={EQUAL:"Equal",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const wn={BEGIN_WITH:"BeginWith",EQUAL:"Equal",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const An={ACTIVATION_IDS:"ActivationIds",AGENT_VERSION:"AgentVersion",ASSOCIATION_STATUS:"AssociationStatus",DOCUMENT_NAME:"DocumentName",IAM_ROLE:"IamRole",INSTANCE_IDS:"InstanceIds",PING_STATUS:"PingStatus",PLATFORM_TYPES:"PlatformTypes",RESOURCE_TYPE:"ResourceType"};const Rn={COMPLETE:"Complete",IN_PROGRESS:"InProgress"};const Pn={Cancelled:"CANCELLED",Cancelling:"CANCELLING",Failed:"FAILED",InProgress:"IN_PROGRESS",Pending:"PENDING",SkippedOverlapping:"SKIPPED_OVERLAPPING",Success:"SUCCESS",TimedOut:"TIMED_OUT"};const Tn={Automation:"AUTOMATION",Lambda:"LAMBDA",RunCommand:"RUN_COMMAND",StepFunctions:"STEP_FUNCTIONS"};const xn={Instance:"INSTANCE",ResourceGroup:"RESOURCE_GROUP"};const _n={CancelTask:"CANCEL_TASK",ContinueTask:"CONTINUE_TASK"};const On={ACCESS_REQUEST_APPROVER_ARN:"AccessRequestByApproverArn",ACCESS_REQUEST_APPROVER_ID:"AccessRequestByApproverId",ACCESS_REQUEST_IS_REPLICA:"AccessRequestByIsReplica",ACCESS_REQUEST_REQUESTER_ARN:"AccessRequestByRequesterArn",ACCESS_REQUEST_REQUESTER_ID:"AccessRequestByRequesterId",ACCESS_REQUEST_SOURCE_ACCOUNT_ID:"AccessRequestBySourceAccountId",ACCESS_REQUEST_SOURCE_OPS_ITEM_ID:"AccessRequestBySourceOpsItemId",ACCESS_REQUEST_SOURCE_REGION:"AccessRequestBySourceRegion",ACCESS_REQUEST_TARGET_RESOURCE_ID:"AccessRequestByTargetResourceId",ACCOUNT_ID:"AccountId",ACTUAL_END_TIME:"ActualEndTime",ACTUAL_START_TIME:"ActualStartTime",AUTOMATION_ID:"AutomationId",CATEGORY:"Category",CHANGE_REQUEST_APPROVER_ARN:"ChangeRequestByApproverArn",CHANGE_REQUEST_APPROVER_NAME:"ChangeRequestByApproverName",CHANGE_REQUEST_REQUESTER_ARN:"ChangeRequestByRequesterArn",CHANGE_REQUEST_REQUESTER_NAME:"ChangeRequestByRequesterName",CHANGE_REQUEST_TARGETS_RESOURCE_GROUP:"ChangeRequestByTargetsResourceGroup",CHANGE_REQUEST_TEMPLATE:"ChangeRequestByTemplate",CREATED_BY:"CreatedBy",CREATED_TIME:"CreatedTime",INSIGHT_TYPE:"InsightByType",LAST_MODIFIED_TIME:"LastModifiedTime",OPERATIONAL_DATA:"OperationalData",OPERATIONAL_DATA_KEY:"OperationalDataKey",OPERATIONAL_DATA_VALUE:"OperationalDataValue",OPSITEM_ID:"OpsItemId",OPSITEM_TYPE:"OpsItemType",PLANNED_END_TIME:"PlannedEndTime",PLANNED_START_TIME:"PlannedStartTime",PRIORITY:"Priority",RESOURCE_ID:"ResourceId",SEVERITY:"Severity",SOURCE:"Source",STATUS:"Status",TITLE:"Title"};const Mn={CONTAINS:"Contains",EQUAL:"Equal",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan"};const Dn={APPROVED:"Approved",CANCELLED:"Cancelled",CANCELLING:"Cancelling",CHANGE_CALENDAR_OVERRIDE_APPROVED:"ChangeCalendarOverrideApproved",CHANGE_CALENDAR_OVERRIDE_REJECTED:"ChangeCalendarOverrideRejected",CLOSED:"Closed",COMPLETED_WITH_FAILURE:"CompletedWithFailure",COMPLETED_WITH_SUCCESS:"CompletedWithSuccess",FAILED:"Failed",IN_PROGRESS:"InProgress",OPEN:"Open",PENDING:"Pending",PENDING_APPROVAL:"PendingApproval",PENDING_CHANGE_CALENDAR_OVERRIDE:"PendingChangeCalendarOverride",REJECTED:"Rejected",RESOLVED:"Resolved",REVOKED:"Revoked",RUNBOOK_IN_PROGRESS:"RunbookInProgress",SCHEDULED:"Scheduled",TIMED_OUT:"TimedOut"};const $n={KEY_ID:"KeyId",NAME:"Name",TYPE:"Type"};const Nn={ADVANCED:"Advanced",INTELLIGENT_TIERING:"Intelligent-Tiering",STANDARD:"Standard"};const kn={SECURE_STRING:"SecureString",STRING:"String",STRING_LIST:"StringList"};const Ln={Application:"APPLICATION",Os:"OS"};const Un={PatchClassification:"CLASSIFICATION",PatchMsrcSeverity:"MSRC_SEVERITY",PatchPriority:"PRIORITY",PatchProductFamily:"PRODUCT_FAMILY",PatchSeverity:"SEVERITY",Product:"PRODUCT"};const Fn={ACCESS_TYPE:"AccessType",INVOKED_AFTER:"InvokedAfter",INVOKED_BEFORE:"InvokedBefore",OWNER:"Owner",SESSION_ID:"SessionId",STATUS:"Status",TARGET_ID:"Target"};const Bn={ACTIVE:"Active",HISTORY:"History"};const qn={CONNECTED:"Connected",CONNECTING:"Connecting",DISCONNECTED:"Disconnected",FAILED:"Failed",TERMINATED:"Terminated",TERMINATING:"Terminating"};const jn={CLOSED:"CLOSED",OPEN:"OPEN"};const zn={CANCELLED:"Cancelled",CANCELLING:"Cancelling",DELAYED:"Delayed",FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const Hn={CONNECTED:"connected",NOT_CONNECTED:"notconnected"};const Vn={SHA256:"Sha256"};const Gn={MUTATING:"Mutating",NON_MUTATING:"NonMutating",UNDETERMINED:"Undetermined"};const Wn={FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success"};const Kn={BEGIN_WITH:"BeginWith",EQUAL:"Equal",EXISTS:"Exists",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const Qn={NUMBER:"number",STRING:"string"};const Yn={ALL:"All",CANCELLED:"Cancelled",FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const Jn={Command:"Command",Invocation:"Invocation"};const Xn={BEGIN_WITH:"BeginWith",EQUAL:"Equal",EXISTS:"Exists",GREATER_THAN:"GreaterThan",LESS_THAN:"LessThan",NOT_EQUAL:"NotEqual"};const Zn={AssociationId:"AssociationId",AssociationName:"AssociationName",InstanceId:"InstanceId",LastExecutedAfter:"LastExecutedAfter",LastExecutedBefore:"LastExecutedBefore",Name:"Name",ResourceGroupName:"ResourceGroupName",Status:"AssociationStatusName"};const er={DOCUMENT_NAME:"DocumentName",EXECUTION_STAGE:"ExecutionStage",INVOKED_AFTER:"InvokedAfter",INVOKED_BEFORE:"InvokedBefore",STATUS:"Status"};const tr={CANCELLED:"Cancelled",FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const nr={CANCELLED:"Cancelled",CANCELLING:"Cancelling",FAILED:"Failed",IN_PROGRESS:"InProgress",PENDING:"Pending",SUCCESS:"Success",TIMED_OUT:"TimedOut"};const rr={BeginWith:"BEGIN_WITH",Equal:"EQUAL",GreaterThan:"GREATER_THAN",LessThan:"LESS_THAN",NotEqual:"NOT_EQUAL"};const or={Critical:"CRITICAL",High:"HIGH",Informational:"INFORMATIONAL",Low:"LOW",Medium:"MEDIUM",Unspecified:"UNSPECIFIED"};const ir={Compliant:"COMPLIANT",NonCompliant:"NON_COMPLIANT"};const sr={DocumentReviews:"DocumentReviews"};const ar={Comment:"Comment"};const cr={DocumentType:"DocumentType",Name:"Name",Owner:"Owner",PlatformTypes:"PlatformTypes"};const lr={ACCOUNT_ID:"AccountId",AGENT_TYPE:"AgentType",AGENT_VERSION:"AgentVersion",COMPUTER_NAME:"ComputerName",INSTANCE_ID:"InstanceId",INSTANCE_STATUS:"InstanceStatus",IP_ADDRESS:"IpAddress",MANAGED_STATUS:"ManagedStatus",ORGANIZATIONAL_UNIT_ID:"OrganizationalUnitId",ORGANIZATIONAL_UNIT_PATH:"OrganizationalUnitPath",PLATFORM_NAME:"PlatformName",PLATFORM_TYPE:"PlatformType",PLATFORM_VERSION:"PlatformVersion",REGION:"Region",RESOURCE_TYPE:"ResourceType"};const ur={BEGIN_WITH:"BeginWith",EQUAL:"Equal",NOT_EQUAL:"NotEqual"};const dr={ALL:"All",MANAGED:"Managed",UNMANAGED:"Unmanaged"};const pr={COUNT:"Count"};const fr={AGENT_VERSION:"AgentVersion",PLATFORM_NAME:"PlatformName",PLATFORM_TYPE:"PlatformType",PLATFORM_VERSION:"PlatformVersion",REGION:"Region",RESOURCE_TYPE:"ResourceType"};const mr={INSTANCE:"Instance"};const hr={OPSITEM_ID:"OpsItemId"};const gr={EQUAL:"Equal"};const yr={ASSOCIATION_ID:"AssociationId",RESOURCE_TYPE:"ResourceType",RESOURCE_URI:"ResourceUri"};const Sr={EQUAL:"Equal"};const Er={FAILED:"Failed",INPROGRESS:"InProgress",SUCCESSFUL:"Successful"};const vr={Complete:"COMPLETE",Partial:"PARTIAL"};const Cr={APPROVE:"Approve",REJECT:"Reject",RESUME:"Resume",REVOKE:"Revoke",START_STEP:"StartStep",STOP_STEP:"StopStep"};const Ir={CANCEL:"Cancel",COMPLETE:"Complete"};const br={Approve:"Approve",Reject:"Reject",SendForReview:"SendForReview",UpdateReview:"UpdateReview"};t.$Command=k.Command;t.__Client=k.Client;t.SSMServiceException=re.SSMServiceException;t.AccessRequestStatus=_t;t.AccessType=Mt;t.AddTagsToResourceCommand=AddTagsToResourceCommand;t.AssociateOpsItemRelatedItemCommand=AssociateOpsItemRelatedItemCommand;t.AssociationComplianceSeverity=kt;t.AssociationExecutionFilterKey=rn;t.AssociationExecutionTargetsFilterKey=sn;t.AssociationFilterKey=Zn;t.AssociationFilterOperatorType=on;t.AssociationStatusName=Ut;t.AssociationSyncCompliance=Lt;t.AttachmentHashType=Vn;t.AttachmentsSourceKey=Bt;t.AutomationExecutionFilterKey=an;t.AutomationExecutionStatus=cn;t.AutomationSubtype=ln;t.AutomationType=un;t.CalendarState=jn;t.CancelCommandCommand=CancelCommandCommand;t.CancelMaintenanceWindowExecutionCommand=CancelMaintenanceWindowExecutionCommand;t.CommandFilterKey=er;t.CommandInvocationStatus=zn;t.CommandPluginStatus=tr;t.CommandStatus=nr;t.ComplianceQueryOperatorType=rr;t.ComplianceSeverity=or;t.ComplianceStatus=ir;t.ComplianceUploadType=vr;t.ConnectionStatus=Hn;t.CreateActivationCommand=CreateActivationCommand;t.CreateAssociationBatchCommand=CreateAssociationBatchCommand;t.CreateAssociationCommand=CreateAssociationCommand;t.CreateDocumentCommand=CreateDocumentCommand;t.CreateMaintenanceWindowCommand=CreateMaintenanceWindowCommand;t.CreateOpsItemCommand=CreateOpsItemCommand;t.CreateOpsMetadataCommand=CreateOpsMetadataCommand;t.CreatePatchBaselineCommand=CreatePatchBaselineCommand;t.CreateResourceDataSyncCommand=CreateResourceDataSyncCommand;t.DeleteActivationCommand=DeleteActivationCommand;t.DeleteAssociationCommand=DeleteAssociationCommand;t.DeleteDocumentCommand=DeleteDocumentCommand;t.DeleteInventoryCommand=DeleteInventoryCommand;t.DeleteMaintenanceWindowCommand=DeleteMaintenanceWindowCommand;t.DeleteOpsItemCommand=DeleteOpsItemCommand;t.DeleteOpsMetadataCommand=DeleteOpsMetadataCommand;t.DeleteParameterCommand=DeleteParameterCommand;t.DeleteParametersCommand=DeleteParametersCommand;t.DeletePatchBaselineCommand=DeletePatchBaselineCommand;t.DeleteResourceDataSyncCommand=DeleteResourceDataSyncCommand;t.DeleteResourcePolicyCommand=DeleteResourcePolicyCommand;t.DeregisterManagedInstanceCommand=DeregisterManagedInstanceCommand;t.DeregisterPatchBaselineForPatchGroupCommand=DeregisterPatchBaselineForPatchGroupCommand;t.DeregisterTargetFromMaintenanceWindowCommand=DeregisterTargetFromMaintenanceWindowCommand;t.DeregisterTaskFromMaintenanceWindowCommand=DeregisterTaskFromMaintenanceWindowCommand;t.DescribeActivationsCommand=DescribeActivationsCommand;t.DescribeActivationsFilterKeys=nn;t.DescribeAssociationCommand=DescribeAssociationCommand;t.DescribeAssociationExecutionTargetsCommand=DescribeAssociationExecutionTargetsCommand;t.DescribeAssociationExecutionsCommand=DescribeAssociationExecutionsCommand;t.DescribeAutomationExecutionsCommand=DescribeAutomationExecutionsCommand;t.DescribeAutomationStepExecutionsCommand=DescribeAutomationStepExecutionsCommand;t.DescribeAvailablePatchesCommand=DescribeAvailablePatchesCommand;t.DescribeDocumentCommand=DescribeDocumentCommand;t.DescribeDocumentPermissionCommand=DescribeDocumentPermissionCommand;t.DescribeEffectiveInstanceAssociationsCommand=DescribeEffectiveInstanceAssociationsCommand;t.DescribeEffectivePatchesForPatchBaselineCommand=DescribeEffectivePatchesForPatchBaselineCommand;t.DescribeInstanceAssociationsStatusCommand=DescribeInstanceAssociationsStatusCommand;t.DescribeInstanceInformationCommand=DescribeInstanceInformationCommand;t.DescribeInstancePatchStatesCommand=DescribeInstancePatchStatesCommand;t.DescribeInstancePatchStatesForPatchGroupCommand=DescribeInstancePatchStatesForPatchGroupCommand;t.DescribeInstancePatchesCommand=DescribeInstancePatchesCommand;t.DescribeInstancePropertiesCommand=DescribeInstancePropertiesCommand;t.DescribeInventoryDeletionsCommand=DescribeInventoryDeletionsCommand;t.DescribeMaintenanceWindowExecutionTaskInvocationsCommand=DescribeMaintenanceWindowExecutionTaskInvocationsCommand;t.DescribeMaintenanceWindowExecutionTasksCommand=DescribeMaintenanceWindowExecutionTasksCommand;t.DescribeMaintenanceWindowExecutionsCommand=DescribeMaintenanceWindowExecutionsCommand;t.DescribeMaintenanceWindowScheduleCommand=DescribeMaintenanceWindowScheduleCommand;t.DescribeMaintenanceWindowTargetsCommand=DescribeMaintenanceWindowTargetsCommand;t.DescribeMaintenanceWindowTasksCommand=DescribeMaintenanceWindowTasksCommand;t.DescribeMaintenanceWindowsCommand=DescribeMaintenanceWindowsCommand;t.DescribeMaintenanceWindowsForTargetCommand=DescribeMaintenanceWindowsForTargetCommand;t.DescribeOpsItemsCommand=DescribeOpsItemsCommand;t.DescribeParametersCommand=DescribeParametersCommand;t.DescribePatchBaselinesCommand=DescribePatchBaselinesCommand;t.DescribePatchGroupStateCommand=DescribePatchGroupStateCommand;t.DescribePatchGroupsCommand=DescribePatchGroupsCommand;t.DescribePatchPropertiesCommand=DescribePatchPropertiesCommand;t.DescribeSessionsCommand=DescribeSessionsCommand;t.DisassociateOpsItemRelatedItemCommand=DisassociateOpsItemRelatedItemCommand;t.DocumentFilterKey=cr;t.DocumentFormat=qt;t.DocumentHashType=zt;t.DocumentMetadataEnum=sr;t.DocumentParameterType=Ht;t.DocumentPermissionType=mn;t.DocumentReviewAction=br;t.DocumentReviewCommentType=ar;t.DocumentStatus=Wt;t.DocumentType=jt;t.ExecutionMode=dn;t.ExecutionPreviewStatus=Wn;t.ExternalAlarmState=$t;t.Fault=Ft;t.GetAccessTokenCommand=GetAccessTokenCommand;t.GetAutomationExecutionCommand=GetAutomationExecutionCommand;t.GetCalendarStateCommand=GetCalendarStateCommand;t.GetCommandInvocationCommand=GetCommandInvocationCommand;t.GetConnectionStatusCommand=GetConnectionStatusCommand;t.GetDefaultPatchBaselineCommand=GetDefaultPatchBaselineCommand;t.GetDeployablePatchSnapshotForInstanceCommand=GetDeployablePatchSnapshotForInstanceCommand;t.GetDocumentCommand=GetDocumentCommand;t.GetExecutionPreviewCommand=GetExecutionPreviewCommand;t.GetInventoryCommand=GetInventoryCommand;t.GetInventorySchemaCommand=GetInventorySchemaCommand;t.GetMaintenanceWindowCommand=GetMaintenanceWindowCommand;t.GetMaintenanceWindowExecutionCommand=GetMaintenanceWindowExecutionCommand;t.GetMaintenanceWindowExecutionTaskCommand=GetMaintenanceWindowExecutionTaskCommand;t.GetMaintenanceWindowExecutionTaskInvocationCommand=GetMaintenanceWindowExecutionTaskInvocationCommand;t.GetMaintenanceWindowTaskCommand=GetMaintenanceWindowTaskCommand;t.GetOpsItemCommand=GetOpsItemCommand;t.GetOpsMetadataCommand=GetOpsMetadataCommand;t.GetOpsSummaryCommand=GetOpsSummaryCommand;t.GetParameterCommand=GetParameterCommand;t.GetParameterHistoryCommand=GetParameterHistoryCommand;t.GetParametersByPathCommand=GetParametersByPathCommand;t.GetParametersCommand=GetParametersCommand;t.GetPatchBaselineCommand=GetPatchBaselineCommand;t.GetPatchBaselineForPatchGroupCommand=GetPatchBaselineForPatchGroupCommand;t.GetResourcePoliciesCommand=GetResourcePoliciesCommand;t.GetServiceSettingCommand=GetServiceSettingCommand;t.ImpactType=Gn;t.InstanceInformationFilterKey=gn;t.InstancePatchStateOperatorType=bn;t.InstancePropertyFilterKey=An;t.InstancePropertyFilterOperator=wn;t.InventoryAttributeDataType=Qn;t.InventoryDeletionStatus=Rn;t.InventoryQueryOperatorType=Kn;t.InventorySchemaDeleteOption=tn;t.LabelParameterVersionCommand=LabelParameterVersionCommand;t.LastResourceDataSyncStatus=Er;t.ListAssociationVersionsCommand=ListAssociationVersionsCommand;t.ListAssociationsCommand=ListAssociationsCommand;t.ListCommandInvocationsCommand=ListCommandInvocationsCommand;t.ListCommandsCommand=ListCommandsCommand;t.ListComplianceItemsCommand=ListComplianceItemsCommand;t.ListComplianceSummariesCommand=ListComplianceSummariesCommand;t.ListDocumentMetadataHistoryCommand=ListDocumentMetadataHistoryCommand;t.ListDocumentVersionsCommand=ListDocumentVersionsCommand;t.ListDocumentsCommand=ListDocumentsCommand;t.ListInventoryEntriesCommand=ListInventoryEntriesCommand;t.ListNodesCommand=ListNodesCommand;t.ListNodesSummaryCommand=ListNodesSummaryCommand;t.ListOpsItemEventsCommand=ListOpsItemEventsCommand;t.ListOpsItemRelatedItemsCommand=ListOpsItemRelatedItemsCommand;t.ListOpsMetadataCommand=ListOpsMetadataCommand;t.ListResourceComplianceSummariesCommand=ListResourceComplianceSummariesCommand;t.ListResourceDataSyncCommand=ListResourceDataSyncCommand;t.ListTagsForResourceCommand=ListTagsForResourceCommand;t.MaintenanceWindowExecutionStatus=Pn;t.MaintenanceWindowResourceType=xn;t.MaintenanceWindowTaskCutoffBehavior=_n;t.MaintenanceWindowTaskType=Tn;t.ManagedStatus=dr;t.ModifyDocumentPermissionCommand=ModifyDocumentPermissionCommand;t.NodeAggregatorType=pr;t.NodeAttributeName=fr;t.NodeFilterKey=lr;t.NodeFilterOperatorType=ur;t.NodeTypeName=mr;t.NotificationEvent=Yn;t.NotificationType=Jn;t.OperatingSystem=Xt;t.OpsFilterOperatorType=Xn;t.OpsItemDataType=Kt;t.OpsItemEventFilterKey=hr;t.OpsItemEventFilterOperator=gr;t.OpsItemFilterKey=On;t.OpsItemFilterOperator=Mn;t.OpsItemRelatedItemsFilterKey=yr;t.OpsItemRelatedItemsFilterOperator=Sr;t.OpsItemStatus=Dn;t.ParameterTier=Nn;t.ParameterType=kn;t.ParametersFilterKey=$n;t.PatchAction=Zt;t.PatchComplianceDataState=vn;t.PatchComplianceLevel=Qt;t.PatchComplianceStatus=Jt;t.PatchDeploymentStatus=hn;t.PatchFilterKey=Yt;t.PatchOperationType=Cn;t.PatchProperty=Un;t.PatchSet=Ln;t.PingStatus=yn;t.PlatformType=Vt;t.PutComplianceItemsCommand=PutComplianceItemsCommand;t.PutInventoryCommand=PutInventoryCommand;t.PutParameterCommand=PutParameterCommand;t.PutResourcePolicyCommand=PutResourcePolicyCommand;t.RebootOption=In;t.RegisterDefaultPatchBaselineCommand=RegisterDefaultPatchBaselineCommand;t.RegisterPatchBaselineForPatchGroupCommand=RegisterPatchBaselineForPatchGroupCommand;t.RegisterTargetWithMaintenanceWindowCommand=RegisterTargetWithMaintenanceWindowCommand;t.RegisterTaskWithMaintenanceWindowCommand=RegisterTaskWithMaintenanceWindowCommand;t.RemoveTagsFromResourceCommand=RemoveTagsFromResourceCommand;t.ResetServiceSettingCommand=ResetServiceSettingCommand;t.ResourceDataSyncS3Format=en;t.ResourceType=Sn;t.ResourceTypeForTagging=Dt;t.ResumeSessionCommand=ResumeSessionCommand;t.ReviewStatus=Gt;t.SSM=SSM;t.SSMClient=SSMClient;t.SendAutomationSignalCommand=SendAutomationSignalCommand;t.SendCommandCommand=SendCommandCommand;t.SessionFilterKey=Fn;t.SessionState=Bn;t.SessionStatus=qn;t.SignalType=Cr;t.SourceType=En;t.StartAccessRequestCommand=StartAccessRequestCommand;t.StartAssociationsOnceCommand=StartAssociationsOnceCommand;t.StartAutomationExecutionCommand=StartAutomationExecutionCommand;t.StartChangeRequestExecutionCommand=StartChangeRequestExecutionCommand;t.StartExecutionPreviewCommand=StartExecutionPreviewCommand;t.StartSessionCommand=StartSessionCommand;t.StepExecutionFilterKey=pn;t.StopAutomationExecutionCommand=StopAutomationExecutionCommand;t.StopType=Ir;t.TerminateSessionCommand=TerminateSessionCommand;t.UnlabelParameterVersionCommand=UnlabelParameterVersionCommand;t.UpdateAssociationCommand=UpdateAssociationCommand;t.UpdateAssociationStatusCommand=UpdateAssociationStatusCommand;t.UpdateDocumentCommand=UpdateDocumentCommand;t.UpdateDocumentDefaultVersionCommand=UpdateDocumentDefaultVersionCommand;t.UpdateDocumentMetadataCommand=UpdateDocumentMetadataCommand;t.UpdateMaintenanceWindowCommand=UpdateMaintenanceWindowCommand;t.UpdateMaintenanceWindowTargetCommand=UpdateMaintenanceWindowTargetCommand;t.UpdateMaintenanceWindowTaskCommand=UpdateMaintenanceWindowTaskCommand;t.UpdateManagedInstanceRoleCommand=UpdateManagedInstanceRoleCommand;t.UpdateOpsItemCommand=UpdateOpsItemCommand;t.UpdateOpsMetadataCommand=UpdateOpsMetadataCommand;t.UpdatePatchBaselineCommand=UpdatePatchBaselineCommand;t.UpdateResourceDataSyncCommand=UpdateResourceDataSyncCommand;t.UpdateServiceSettingCommand=UpdateServiceSettingCommand;t.paginateDescribeActivations=ie;t.paginateDescribeAssociationExecutionTargets=ae;t.paginateDescribeAssociationExecutions=se;t.paginateDescribeAutomationExecutions=ce;t.paginateDescribeAutomationStepExecutions=le;t.paginateDescribeAvailablePatches=ue;t.paginateDescribeEffectiveInstanceAssociations=de;t.paginateDescribeEffectivePatchesForPatchBaseline=pe;t.paginateDescribeInstanceAssociationsStatus=fe;t.paginateDescribeInstanceInformation=me;t.paginateDescribeInstancePatchStates=ye;t.paginateDescribeInstancePatchStatesForPatchGroup=ge;t.paginateDescribeInstancePatches=he;t.paginateDescribeInstanceProperties=Se;t.paginateDescribeInventoryDeletions=Ee;t.paginateDescribeMaintenanceWindowExecutionTaskInvocations=Ce;t.paginateDescribeMaintenanceWindowExecutionTasks=Ie;t.paginateDescribeMaintenanceWindowExecutions=ve;t.paginateDescribeMaintenanceWindowSchedule=be;t.paginateDescribeMaintenanceWindowTargets=Re;t.paginateDescribeMaintenanceWindowTasks=Pe;t.paginateDescribeMaintenanceWindows=Ae;t.paginateDescribeMaintenanceWindowsForTarget=we;t.paginateDescribeOpsItems=Te;t.paginateDescribeParameters=xe;t.paginateDescribePatchBaselines=_e;t.paginateDescribePatchGroups=Oe;t.paginateDescribePatchProperties=Me;t.paginateDescribeSessions=De;t.paginateGetInventory=$e;t.paginateGetInventorySchema=Ne;t.paginateGetOpsSummary=ke;t.paginateGetParameterHistory=Le;t.paginateGetParametersByPath=Ue;t.paginateGetResourcePolicies=Fe;t.paginateListAssociationVersions=qe;t.paginateListAssociations=Be;t.paginateListCommandInvocations=je;t.paginateListCommands=ze;t.paginateListComplianceItems=He;t.paginateListComplianceSummaries=Ve;t.paginateListDocumentVersions=We;t.paginateListDocuments=Ge;t.paginateListNodes=Ke;t.paginateListNodesSummary=Qe;t.paginateListOpsItemEvents=Ye;t.paginateListOpsItemRelatedItems=Je;t.paginateListOpsMetadata=Xe;t.paginateListResourceComplianceSummaries=Ze;t.paginateListResourceDataSync=ht;t.waitForCommandExecuted=waitForCommandExecuted;t.waitUntilCommandExecuted=waitUntilCommandExecuted;Object.prototype.hasOwnProperty.call(ee,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ee["__proto__"]});Object.keys(ee).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ee[e]}));Object.prototype.hasOwnProperty.call(ne,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ne["__proto__"]});Object.keys(ne).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ne[e]}))},2293:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SSMServiceException=t.__ServiceException=void 0;const o=n(4271);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class SSMServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSMServiceException.prototype)}}t.SSMServiceException=SSMServiceException},9393:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.InvalidDeleteInventoryParametersException=t.InvalidDocumentOperation=t.AssociatedInstances=t.AssociationDoesNotExist=t.InvalidActivationId=t.InvalidActivation=t.ResourceDataSyncInvalidConfigurationException=t.ResourceDataSyncCountExceededException=t.ResourceDataSyncAlreadyExistsException=t.OpsMetadataTooManyUpdatesException=t.OpsMetadataLimitExceededException=t.OpsMetadataInvalidArgumentException=t.OpsMetadataAlreadyExistsException=t.OpsItemAlreadyExistsException=t.OpsItemAccessDeniedException=t.ResourceLimitExceededException=t.IdempotentParameterMismatch=t.NoLongerSupportedException=t.MaxDocumentSizeExceeded=t.InvalidDocumentSchemaVersion=t.InvalidDocumentContent=t.DocumentLimitExceeded=t.DocumentAlreadyExists=t.UnsupportedPlatformType=t.InvalidTargetMaps=t.InvalidTarget=t.InvalidTag=t.InvalidSchedule=t.InvalidOutputLocation=t.InvalidDocumentVersion=t.InvalidDocument=t.AssociationLimitExceeded=t.AssociationAlreadyExists=t.InvalidParameters=t.DoesNotExistException=t.InvalidInstanceId=t.InvalidCommandId=t.DuplicateInstanceId=t.OpsItemRelatedItemAlreadyExistsException=t.OpsItemNotFoundException=t.OpsItemLimitExceededException=t.OpsItemInvalidParameterException=t.OpsItemConflictException=t.AlreadyExistsException=t.TooManyUpdates=t.TooManyTagsError=t.InvalidResourceType=t.InvalidResourceId=t.InternalServerError=t.AccessDeniedException=void 0;t.ItemContentMismatchException=t.InvalidInventoryItemContextException=t.CustomSchemaCountLimitExceededException=t.TotalSizeLimitExceededException=t.ItemSizeLimitExceededException=t.InvalidItemContentException=t.ComplianceTypeCountLimitExceededException=t.DocumentPermissionLimit=t.UnsupportedOperationException=t.ParameterVersionLabelLimitExceeded=t.ServiceSettingNotFound=t.ParameterVersionNotFound=t.InvalidKeyId=t.InvalidResultAttributeException=t.InvalidInventoryGroupException=t.InvalidAggregatorException=t.UnsupportedFeatureRequiredException=t.InvocationDoesNotExist=t.InvalidPluginName=t.UnsupportedCalendarException=t.InvalidDocumentType=t.ValidationException=t.ThrottlingException=t.OpsItemRelatedItemAssociationNotFoundException=t.InvalidFilterOption=t.InvalidDeletionIdException=t.InvalidInstancePropertyFilterValue=t.InvalidInstanceInformationFilterValue=t.UnsupportedOperatingSystem=t.InvalidPermissionType=t.AutomationExecutionNotFoundException=t.InvalidFilterValue=t.InvalidFilterKey=t.AssociationExecutionDoesNotExist=t.InvalidAssociationVersion=t.InvalidNextToken=t.InvalidFilter=t.TargetInUseException=t.ResourcePolicyNotFoundException=t.ResourcePolicyInvalidParameterException=t.ResourcePolicyConflictException=t.ResourceNotFoundException=t.MalformedResourcePolicyDocumentException=t.ResourceDataSyncNotFoundException=t.ResourceInUseException=t.ParameterNotFound=t.OpsMetadataNotFoundException=t.InvalidTypeNameException=t.InvalidOptionException=t.InvalidInventoryRequestException=void 0;t.ResourceDataSyncConflictException=t.OpsMetadataKeyLimitExceededException=t.DuplicateDocumentVersionName=t.DuplicateDocumentContent=t.DocumentVersionLimitExceeded=t.StatusUnchanged=t.InvalidUpdate=t.AssociationVersionLimitExceeded=t.InvalidAutomationStatusUpdateException=t.TargetNotConnected=t.AutomationDefinitionNotApprovedException=t.InvalidAutomationExecutionParametersException=t.AutomationExecutionLimitExceededException=t.AutomationDefinitionVersionNotFoundException=t.AutomationDefinitionNotFoundException=t.InvalidAssociation=t.ServiceQuotaExceededException=t.InvalidRole=t.InvalidOutputFolder=t.InvalidNotificationConfig=t.InvalidAutomationSignalException=t.AutomationStepNotFoundException=t.FeatureNotAvailableException=t.ResourcePolicyLimitExceededException=t.UnsupportedParameterType=t.PoliciesLimitExceededException=t.ParameterPatternMismatchException=t.ParameterMaxVersionLimitExceeded=t.ParameterLimitExceeded=t.ParameterAlreadyExists=t.InvalidPolicyTypeException=t.InvalidPolicyAttributeException=t.InvalidAllowedPatternException=t.IncompatiblePolicyException=t.HierarchyTypeMismatchException=t.HierarchyLevelLimitExceededException=t.UnsupportedInventorySchemaVersionException=t.UnsupportedInventoryItemContextException=t.SubTypeCountLimitExceededException=void 0;const o=n(2293);class AccessDeniedException extends o.SSMServiceException{name="AccessDeniedException";$fault="client";Message;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.Message=e.Message}}t.AccessDeniedException=AccessDeniedException;class InternalServerError extends o.SSMServiceException{name="InternalServerError";$fault="server";Message;constructor(e){super({name:"InternalServerError",$fault:"server",...e});Object.setPrototypeOf(this,InternalServerError.prototype);this.Message=e.Message}}t.InternalServerError=InternalServerError;class InvalidResourceId extends o.SSMServiceException{name="InvalidResourceId";$fault="client";constructor(e){super({name:"InvalidResourceId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidResourceId.prototype)}}t.InvalidResourceId=InvalidResourceId;class InvalidResourceType extends o.SSMServiceException{name="InvalidResourceType";$fault="client";constructor(e){super({name:"InvalidResourceType",$fault:"client",...e});Object.setPrototypeOf(this,InvalidResourceType.prototype)}}t.InvalidResourceType=InvalidResourceType;class TooManyTagsError extends o.SSMServiceException{name="TooManyTagsError";$fault="client";constructor(e){super({name:"TooManyTagsError",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsError.prototype)}}t.TooManyTagsError=TooManyTagsError;class TooManyUpdates extends o.SSMServiceException{name="TooManyUpdates";$fault="client";Message;constructor(e){super({name:"TooManyUpdates",$fault:"client",...e});Object.setPrototypeOf(this,TooManyUpdates.prototype);this.Message=e.Message}}t.TooManyUpdates=TooManyUpdates;class AlreadyExistsException extends o.SSMServiceException{name="AlreadyExistsException";$fault="client";Message;constructor(e){super({name:"AlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,AlreadyExistsException.prototype);this.Message=e.Message}}t.AlreadyExistsException=AlreadyExistsException;class OpsItemConflictException extends o.SSMServiceException{name="OpsItemConflictException";$fault="client";Message;constructor(e){super({name:"OpsItemConflictException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemConflictException.prototype);this.Message=e.Message}}t.OpsItemConflictException=OpsItemConflictException;class OpsItemInvalidParameterException extends o.SSMServiceException{name="OpsItemInvalidParameterException";$fault="client";ParameterNames;Message;constructor(e){super({name:"OpsItemInvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemInvalidParameterException.prototype);this.ParameterNames=e.ParameterNames;this.Message=e.Message}}t.OpsItemInvalidParameterException=OpsItemInvalidParameterException;class OpsItemLimitExceededException extends o.SSMServiceException{name="OpsItemLimitExceededException";$fault="client";ResourceTypes;Limit;LimitType;Message;constructor(e){super({name:"OpsItemLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemLimitExceededException.prototype);this.ResourceTypes=e.ResourceTypes;this.Limit=e.Limit;this.LimitType=e.LimitType;this.Message=e.Message}}t.OpsItemLimitExceededException=OpsItemLimitExceededException;class OpsItemNotFoundException extends o.SSMServiceException{name="OpsItemNotFoundException";$fault="client";Message;constructor(e){super({name:"OpsItemNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemNotFoundException.prototype);this.Message=e.Message}}t.OpsItemNotFoundException=OpsItemNotFoundException;class OpsItemRelatedItemAlreadyExistsException extends o.SSMServiceException{name="OpsItemRelatedItemAlreadyExistsException";$fault="client";Message;ResourceUri;OpsItemId;constructor(e){super({name:"OpsItemRelatedItemAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemRelatedItemAlreadyExistsException.prototype);this.Message=e.Message;this.ResourceUri=e.ResourceUri;this.OpsItemId=e.OpsItemId}}t.OpsItemRelatedItemAlreadyExistsException=OpsItemRelatedItemAlreadyExistsException;class DuplicateInstanceId extends o.SSMServiceException{name="DuplicateInstanceId";$fault="client";constructor(e){super({name:"DuplicateInstanceId",$fault:"client",...e});Object.setPrototypeOf(this,DuplicateInstanceId.prototype)}}t.DuplicateInstanceId=DuplicateInstanceId;class InvalidCommandId extends o.SSMServiceException{name="InvalidCommandId";$fault="client";constructor(e){super({name:"InvalidCommandId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidCommandId.prototype)}}t.InvalidCommandId=InvalidCommandId;class InvalidInstanceId extends o.SSMServiceException{name="InvalidInstanceId";$fault="client";Message;constructor(e){super({name:"InvalidInstanceId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInstanceId.prototype);this.Message=e.Message}}t.InvalidInstanceId=InvalidInstanceId;class DoesNotExistException extends o.SSMServiceException{name="DoesNotExistException";$fault="client";Message;constructor(e){super({name:"DoesNotExistException",$fault:"client",...e});Object.setPrototypeOf(this,DoesNotExistException.prototype);this.Message=e.Message}}t.DoesNotExistException=DoesNotExistException;class InvalidParameters extends o.SSMServiceException{name="InvalidParameters";$fault="client";Message;constructor(e){super({name:"InvalidParameters",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameters.prototype);this.Message=e.Message}}t.InvalidParameters=InvalidParameters;class AssociationAlreadyExists extends o.SSMServiceException{name="AssociationAlreadyExists";$fault="client";constructor(e){super({name:"AssociationAlreadyExists",$fault:"client",...e});Object.setPrototypeOf(this,AssociationAlreadyExists.prototype)}}t.AssociationAlreadyExists=AssociationAlreadyExists;class AssociationLimitExceeded extends o.SSMServiceException{name="AssociationLimitExceeded";$fault="client";constructor(e){super({name:"AssociationLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,AssociationLimitExceeded.prototype)}}t.AssociationLimitExceeded=AssociationLimitExceeded;class InvalidDocument extends o.SSMServiceException{name="InvalidDocument";$fault="client";Message;constructor(e){super({name:"InvalidDocument",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocument.prototype);this.Message=e.Message}}t.InvalidDocument=InvalidDocument;class InvalidDocumentVersion extends o.SSMServiceException{name="InvalidDocumentVersion";$fault="client";Message;constructor(e){super({name:"InvalidDocumentVersion",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentVersion.prototype);this.Message=e.Message}}t.InvalidDocumentVersion=InvalidDocumentVersion;class InvalidOutputLocation extends o.SSMServiceException{name="InvalidOutputLocation";$fault="client";constructor(e){super({name:"InvalidOutputLocation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidOutputLocation.prototype)}}t.InvalidOutputLocation=InvalidOutputLocation;class InvalidSchedule extends o.SSMServiceException{name="InvalidSchedule";$fault="client";Message;constructor(e){super({name:"InvalidSchedule",$fault:"client",...e});Object.setPrototypeOf(this,InvalidSchedule.prototype);this.Message=e.Message}}t.InvalidSchedule=InvalidSchedule;class InvalidTag extends o.SSMServiceException{name="InvalidTag";$fault="client";Message;constructor(e){super({name:"InvalidTag",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTag.prototype);this.Message=e.Message}}t.InvalidTag=InvalidTag;class InvalidTarget extends o.SSMServiceException{name="InvalidTarget";$fault="client";Message;constructor(e){super({name:"InvalidTarget",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTarget.prototype);this.Message=e.Message}}t.InvalidTarget=InvalidTarget;class InvalidTargetMaps extends o.SSMServiceException{name="InvalidTargetMaps";$fault="client";Message;constructor(e){super({name:"InvalidTargetMaps",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTargetMaps.prototype);this.Message=e.Message}}t.InvalidTargetMaps=InvalidTargetMaps;class UnsupportedPlatformType extends o.SSMServiceException{name="UnsupportedPlatformType";$fault="client";Message;constructor(e){super({name:"UnsupportedPlatformType",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedPlatformType.prototype);this.Message=e.Message}}t.UnsupportedPlatformType=UnsupportedPlatformType;class DocumentAlreadyExists extends o.SSMServiceException{name="DocumentAlreadyExists";$fault="client";Message;constructor(e){super({name:"DocumentAlreadyExists",$fault:"client",...e});Object.setPrototypeOf(this,DocumentAlreadyExists.prototype);this.Message=e.Message}}t.DocumentAlreadyExists=DocumentAlreadyExists;class DocumentLimitExceeded extends o.SSMServiceException{name="DocumentLimitExceeded";$fault="client";Message;constructor(e){super({name:"DocumentLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,DocumentLimitExceeded.prototype);this.Message=e.Message}}t.DocumentLimitExceeded=DocumentLimitExceeded;class InvalidDocumentContent extends o.SSMServiceException{name="InvalidDocumentContent";$fault="client";Message;constructor(e){super({name:"InvalidDocumentContent",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentContent.prototype);this.Message=e.Message}}t.InvalidDocumentContent=InvalidDocumentContent;class InvalidDocumentSchemaVersion extends o.SSMServiceException{name="InvalidDocumentSchemaVersion";$fault="client";Message;constructor(e){super({name:"InvalidDocumentSchemaVersion",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentSchemaVersion.prototype);this.Message=e.Message}}t.InvalidDocumentSchemaVersion=InvalidDocumentSchemaVersion;class MaxDocumentSizeExceeded extends o.SSMServiceException{name="MaxDocumentSizeExceeded";$fault="client";Message;constructor(e){super({name:"MaxDocumentSizeExceeded",$fault:"client",...e});Object.setPrototypeOf(this,MaxDocumentSizeExceeded.prototype);this.Message=e.Message}}t.MaxDocumentSizeExceeded=MaxDocumentSizeExceeded;class NoLongerSupportedException extends o.SSMServiceException{name="NoLongerSupportedException";$fault="client";Message;constructor(e){super({name:"NoLongerSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,NoLongerSupportedException.prototype);this.Message=e.Message}}t.NoLongerSupportedException=NoLongerSupportedException;class IdempotentParameterMismatch extends o.SSMServiceException{name="IdempotentParameterMismatch";$fault="client";Message;constructor(e){super({name:"IdempotentParameterMismatch",$fault:"client",...e});Object.setPrototypeOf(this,IdempotentParameterMismatch.prototype);this.Message=e.Message}}t.IdempotentParameterMismatch=IdempotentParameterMismatch;class ResourceLimitExceededException extends o.SSMServiceException{name="ResourceLimitExceededException";$fault="client";Message;constructor(e){super({name:"ResourceLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceLimitExceededException.prototype);this.Message=e.Message}}t.ResourceLimitExceededException=ResourceLimitExceededException;class OpsItemAccessDeniedException extends o.SSMServiceException{name="OpsItemAccessDeniedException";$fault="client";Message;constructor(e){super({name:"OpsItemAccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemAccessDeniedException.prototype);this.Message=e.Message}}t.OpsItemAccessDeniedException=OpsItemAccessDeniedException;class OpsItemAlreadyExistsException extends o.SSMServiceException{name="OpsItemAlreadyExistsException";$fault="client";Message;OpsItemId;constructor(e){super({name:"OpsItemAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemAlreadyExistsException.prototype);this.Message=e.Message;this.OpsItemId=e.OpsItemId}}t.OpsItemAlreadyExistsException=OpsItemAlreadyExistsException;class OpsMetadataAlreadyExistsException extends o.SSMServiceException{name="OpsMetadataAlreadyExistsException";$fault="client";constructor(e){super({name:"OpsMetadataAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataAlreadyExistsException.prototype)}}t.OpsMetadataAlreadyExistsException=OpsMetadataAlreadyExistsException;class OpsMetadataInvalidArgumentException extends o.SSMServiceException{name="OpsMetadataInvalidArgumentException";$fault="client";constructor(e){super({name:"OpsMetadataInvalidArgumentException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataInvalidArgumentException.prototype)}}t.OpsMetadataInvalidArgumentException=OpsMetadataInvalidArgumentException;class OpsMetadataLimitExceededException extends o.SSMServiceException{name="OpsMetadataLimitExceededException";$fault="client";constructor(e){super({name:"OpsMetadataLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataLimitExceededException.prototype)}}t.OpsMetadataLimitExceededException=OpsMetadataLimitExceededException;class OpsMetadataTooManyUpdatesException extends o.SSMServiceException{name="OpsMetadataTooManyUpdatesException";$fault="client";constructor(e){super({name:"OpsMetadataTooManyUpdatesException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataTooManyUpdatesException.prototype)}}t.OpsMetadataTooManyUpdatesException=OpsMetadataTooManyUpdatesException;class ResourceDataSyncAlreadyExistsException extends o.SSMServiceException{name="ResourceDataSyncAlreadyExistsException";$fault="client";SyncName;constructor(e){super({name:"ResourceDataSyncAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncAlreadyExistsException.prototype);this.SyncName=e.SyncName}}t.ResourceDataSyncAlreadyExistsException=ResourceDataSyncAlreadyExistsException;class ResourceDataSyncCountExceededException extends o.SSMServiceException{name="ResourceDataSyncCountExceededException";$fault="client";Message;constructor(e){super({name:"ResourceDataSyncCountExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncCountExceededException.prototype);this.Message=e.Message}}t.ResourceDataSyncCountExceededException=ResourceDataSyncCountExceededException;class ResourceDataSyncInvalidConfigurationException extends o.SSMServiceException{name="ResourceDataSyncInvalidConfigurationException";$fault="client";Message;constructor(e){super({name:"ResourceDataSyncInvalidConfigurationException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncInvalidConfigurationException.prototype);this.Message=e.Message}}t.ResourceDataSyncInvalidConfigurationException=ResourceDataSyncInvalidConfigurationException;class InvalidActivation extends o.SSMServiceException{name="InvalidActivation";$fault="client";Message;constructor(e){super({name:"InvalidActivation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidActivation.prototype);this.Message=e.Message}}t.InvalidActivation=InvalidActivation;class InvalidActivationId extends o.SSMServiceException{name="InvalidActivationId";$fault="client";Message;constructor(e){super({name:"InvalidActivationId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidActivationId.prototype);this.Message=e.Message}}t.InvalidActivationId=InvalidActivationId;class AssociationDoesNotExist extends o.SSMServiceException{name="AssociationDoesNotExist";$fault="client";Message;constructor(e){super({name:"AssociationDoesNotExist",$fault:"client",...e});Object.setPrototypeOf(this,AssociationDoesNotExist.prototype);this.Message=e.Message}}t.AssociationDoesNotExist=AssociationDoesNotExist;class AssociatedInstances extends o.SSMServiceException{name="AssociatedInstances";$fault="client";constructor(e){super({name:"AssociatedInstances",$fault:"client",...e});Object.setPrototypeOf(this,AssociatedInstances.prototype)}}t.AssociatedInstances=AssociatedInstances;class InvalidDocumentOperation extends o.SSMServiceException{name="InvalidDocumentOperation";$fault="client";Message;constructor(e){super({name:"InvalidDocumentOperation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentOperation.prototype);this.Message=e.Message}}t.InvalidDocumentOperation=InvalidDocumentOperation;class InvalidDeleteInventoryParametersException extends o.SSMServiceException{name="InvalidDeleteInventoryParametersException";$fault="client";Message;constructor(e){super({name:"InvalidDeleteInventoryParametersException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDeleteInventoryParametersException.prototype);this.Message=e.Message}}t.InvalidDeleteInventoryParametersException=InvalidDeleteInventoryParametersException;class InvalidInventoryRequestException extends o.SSMServiceException{name="InvalidInventoryRequestException";$fault="client";Message;constructor(e){super({name:"InvalidInventoryRequestException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInventoryRequestException.prototype);this.Message=e.Message}}t.InvalidInventoryRequestException=InvalidInventoryRequestException;class InvalidOptionException extends o.SSMServiceException{name="InvalidOptionException";$fault="client";Message;constructor(e){super({name:"InvalidOptionException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidOptionException.prototype);this.Message=e.Message}}t.InvalidOptionException=InvalidOptionException;class InvalidTypeNameException extends o.SSMServiceException{name="InvalidTypeNameException";$fault="client";Message;constructor(e){super({name:"InvalidTypeNameException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTypeNameException.prototype);this.Message=e.Message}}t.InvalidTypeNameException=InvalidTypeNameException;class OpsMetadataNotFoundException extends o.SSMServiceException{name="OpsMetadataNotFoundException";$fault="client";constructor(e){super({name:"OpsMetadataNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataNotFoundException.prototype)}}t.OpsMetadataNotFoundException=OpsMetadataNotFoundException;class ParameterNotFound extends o.SSMServiceException{name="ParameterNotFound";$fault="client";constructor(e){super({name:"ParameterNotFound",$fault:"client",...e});Object.setPrototypeOf(this,ParameterNotFound.prototype)}}t.ParameterNotFound=ParameterNotFound;class ResourceInUseException extends o.SSMServiceException{name="ResourceInUseException";$fault="client";Message;constructor(e){super({name:"ResourceInUseException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceInUseException.prototype);this.Message=e.Message}}t.ResourceInUseException=ResourceInUseException;class ResourceDataSyncNotFoundException extends o.SSMServiceException{name="ResourceDataSyncNotFoundException";$fault="client";SyncName;SyncType;Message;constructor(e){super({name:"ResourceDataSyncNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncNotFoundException.prototype);this.SyncName=e.SyncName;this.SyncType=e.SyncType;this.Message=e.Message}}t.ResourceDataSyncNotFoundException=ResourceDataSyncNotFoundException;class MalformedResourcePolicyDocumentException extends o.SSMServiceException{name="MalformedResourcePolicyDocumentException";$fault="client";Message;constructor(e){super({name:"MalformedResourcePolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,MalformedResourcePolicyDocumentException.prototype);this.Message=e.Message}}t.MalformedResourcePolicyDocumentException=MalformedResourcePolicyDocumentException;class ResourceNotFoundException extends o.SSMServiceException{name="ResourceNotFoundException";$fault="client";Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceNotFoundException.prototype);this.Message=e.Message}}t.ResourceNotFoundException=ResourceNotFoundException;class ResourcePolicyConflictException extends o.SSMServiceException{name="ResourcePolicyConflictException";$fault="client";Message;constructor(e){super({name:"ResourcePolicyConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyConflictException.prototype);this.Message=e.Message}}t.ResourcePolicyConflictException=ResourcePolicyConflictException;class ResourcePolicyInvalidParameterException extends o.SSMServiceException{name="ResourcePolicyInvalidParameterException";$fault="client";ParameterNames;Message;constructor(e){super({name:"ResourcePolicyInvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyInvalidParameterException.prototype);this.ParameterNames=e.ParameterNames;this.Message=e.Message}}t.ResourcePolicyInvalidParameterException=ResourcePolicyInvalidParameterException;class ResourcePolicyNotFoundException extends o.SSMServiceException{name="ResourcePolicyNotFoundException";$fault="client";Message;constructor(e){super({name:"ResourcePolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyNotFoundException.prototype);this.Message=e.Message}}t.ResourcePolicyNotFoundException=ResourcePolicyNotFoundException;class TargetInUseException extends o.SSMServiceException{name="TargetInUseException";$fault="client";Message;constructor(e){super({name:"TargetInUseException",$fault:"client",...e});Object.setPrototypeOf(this,TargetInUseException.prototype);this.Message=e.Message}}t.TargetInUseException=TargetInUseException;class InvalidFilter extends o.SSMServiceException{name="InvalidFilter";$fault="client";Message;constructor(e){super({name:"InvalidFilter",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilter.prototype);this.Message=e.Message}}t.InvalidFilter=InvalidFilter;class InvalidNextToken extends o.SSMServiceException{name="InvalidNextToken";$fault="client";Message;constructor(e){super({name:"InvalidNextToken",$fault:"client",...e});Object.setPrototypeOf(this,InvalidNextToken.prototype);this.Message=e.Message}}t.InvalidNextToken=InvalidNextToken;class InvalidAssociationVersion extends o.SSMServiceException{name="InvalidAssociationVersion";$fault="client";Message;constructor(e){super({name:"InvalidAssociationVersion",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAssociationVersion.prototype);this.Message=e.Message}}t.InvalidAssociationVersion=InvalidAssociationVersion;class AssociationExecutionDoesNotExist extends o.SSMServiceException{name="AssociationExecutionDoesNotExist";$fault="client";Message;constructor(e){super({name:"AssociationExecutionDoesNotExist",$fault:"client",...e});Object.setPrototypeOf(this,AssociationExecutionDoesNotExist.prototype);this.Message=e.Message}}t.AssociationExecutionDoesNotExist=AssociationExecutionDoesNotExist;class InvalidFilterKey extends o.SSMServiceException{name="InvalidFilterKey";$fault="client";constructor(e){super({name:"InvalidFilterKey",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilterKey.prototype)}}t.InvalidFilterKey=InvalidFilterKey;class InvalidFilterValue extends o.SSMServiceException{name="InvalidFilterValue";$fault="client";Message;constructor(e){super({name:"InvalidFilterValue",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilterValue.prototype);this.Message=e.Message}}t.InvalidFilterValue=InvalidFilterValue;class AutomationExecutionNotFoundException extends o.SSMServiceException{name="AutomationExecutionNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationExecutionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationExecutionNotFoundException.prototype);this.Message=e.Message}}t.AutomationExecutionNotFoundException=AutomationExecutionNotFoundException;class InvalidPermissionType extends o.SSMServiceException{name="InvalidPermissionType";$fault="client";Message;constructor(e){super({name:"InvalidPermissionType",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPermissionType.prototype);this.Message=e.Message}}t.InvalidPermissionType=InvalidPermissionType;class UnsupportedOperatingSystem extends o.SSMServiceException{name="UnsupportedOperatingSystem";$fault="client";Message;constructor(e){super({name:"UnsupportedOperatingSystem",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedOperatingSystem.prototype);this.Message=e.Message}}t.UnsupportedOperatingSystem=UnsupportedOperatingSystem;class InvalidInstanceInformationFilterValue extends o.SSMServiceException{name="InvalidInstanceInformationFilterValue";$fault="client";constructor(e){super({name:"InvalidInstanceInformationFilterValue",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInstanceInformationFilterValue.prototype)}}t.InvalidInstanceInformationFilterValue=InvalidInstanceInformationFilterValue;class InvalidInstancePropertyFilterValue extends o.SSMServiceException{name="InvalidInstancePropertyFilterValue";$fault="client";constructor(e){super({name:"InvalidInstancePropertyFilterValue",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInstancePropertyFilterValue.prototype)}}t.InvalidInstancePropertyFilterValue=InvalidInstancePropertyFilterValue;class InvalidDeletionIdException extends o.SSMServiceException{name="InvalidDeletionIdException";$fault="client";Message;constructor(e){super({name:"InvalidDeletionIdException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDeletionIdException.prototype);this.Message=e.Message}}t.InvalidDeletionIdException=InvalidDeletionIdException;class InvalidFilterOption extends o.SSMServiceException{name="InvalidFilterOption";$fault="client";constructor(e){super({name:"InvalidFilterOption",$fault:"client",...e});Object.setPrototypeOf(this,InvalidFilterOption.prototype)}}t.InvalidFilterOption=InvalidFilterOption;class OpsItemRelatedItemAssociationNotFoundException extends o.SSMServiceException{name="OpsItemRelatedItemAssociationNotFoundException";$fault="client";Message;constructor(e){super({name:"OpsItemRelatedItemAssociationNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,OpsItemRelatedItemAssociationNotFoundException.prototype);this.Message=e.Message}}t.OpsItemRelatedItemAssociationNotFoundException=OpsItemRelatedItemAssociationNotFoundException;class ThrottlingException extends o.SSMServiceException{name="ThrottlingException";$fault="client";Message;QuotaCode;ServiceCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e});Object.setPrototypeOf(this,ThrottlingException.prototype);this.Message=e.Message;this.QuotaCode=e.QuotaCode;this.ServiceCode=e.ServiceCode}}t.ThrottlingException=ThrottlingException;class ValidationException extends o.SSMServiceException{name="ValidationException";$fault="client";Message;ReasonCode;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,ValidationException.prototype);this.Message=e.Message;this.ReasonCode=e.ReasonCode}}t.ValidationException=ValidationException;class InvalidDocumentType extends o.SSMServiceException{name="InvalidDocumentType";$fault="client";Message;constructor(e){super({name:"InvalidDocumentType",$fault:"client",...e});Object.setPrototypeOf(this,InvalidDocumentType.prototype);this.Message=e.Message}}t.InvalidDocumentType=InvalidDocumentType;class UnsupportedCalendarException extends o.SSMServiceException{name="UnsupportedCalendarException";$fault="client";Message;constructor(e){super({name:"UnsupportedCalendarException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedCalendarException.prototype);this.Message=e.Message}}t.UnsupportedCalendarException=UnsupportedCalendarException;class InvalidPluginName extends o.SSMServiceException{name="InvalidPluginName";$fault="client";constructor(e){super({name:"InvalidPluginName",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPluginName.prototype)}}t.InvalidPluginName=InvalidPluginName;class InvocationDoesNotExist extends o.SSMServiceException{name="InvocationDoesNotExist";$fault="client";constructor(e){super({name:"InvocationDoesNotExist",$fault:"client",...e});Object.setPrototypeOf(this,InvocationDoesNotExist.prototype)}}t.InvocationDoesNotExist=InvocationDoesNotExist;class UnsupportedFeatureRequiredException extends o.SSMServiceException{name="UnsupportedFeatureRequiredException";$fault="client";Message;constructor(e){super({name:"UnsupportedFeatureRequiredException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedFeatureRequiredException.prototype);this.Message=e.Message}}t.UnsupportedFeatureRequiredException=UnsupportedFeatureRequiredException;class InvalidAggregatorException extends o.SSMServiceException{name="InvalidAggregatorException";$fault="client";Message;constructor(e){super({name:"InvalidAggregatorException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAggregatorException.prototype);this.Message=e.Message}}t.InvalidAggregatorException=InvalidAggregatorException;class InvalidInventoryGroupException extends o.SSMServiceException{name="InvalidInventoryGroupException";$fault="client";Message;constructor(e){super({name:"InvalidInventoryGroupException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInventoryGroupException.prototype);this.Message=e.Message}}t.InvalidInventoryGroupException=InvalidInventoryGroupException;class InvalidResultAttributeException extends o.SSMServiceException{name="InvalidResultAttributeException";$fault="client";Message;constructor(e){super({name:"InvalidResultAttributeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidResultAttributeException.prototype);this.Message=e.Message}}t.InvalidResultAttributeException=InvalidResultAttributeException;class InvalidKeyId extends o.SSMServiceException{name="InvalidKeyId";$fault="client";constructor(e){super({name:"InvalidKeyId",$fault:"client",...e});Object.setPrototypeOf(this,InvalidKeyId.prototype)}}t.InvalidKeyId=InvalidKeyId;class ParameterVersionNotFound extends o.SSMServiceException{name="ParameterVersionNotFound";$fault="client";constructor(e){super({name:"ParameterVersionNotFound",$fault:"client",...e});Object.setPrototypeOf(this,ParameterVersionNotFound.prototype)}}t.ParameterVersionNotFound=ParameterVersionNotFound;class ServiceSettingNotFound extends o.SSMServiceException{name="ServiceSettingNotFound";$fault="client";Message;constructor(e){super({name:"ServiceSettingNotFound",$fault:"client",...e});Object.setPrototypeOf(this,ServiceSettingNotFound.prototype);this.Message=e.Message}}t.ServiceSettingNotFound=ServiceSettingNotFound;class ParameterVersionLabelLimitExceeded extends o.SSMServiceException{name="ParameterVersionLabelLimitExceeded";$fault="client";constructor(e){super({name:"ParameterVersionLabelLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,ParameterVersionLabelLimitExceeded.prototype)}}t.ParameterVersionLabelLimitExceeded=ParameterVersionLabelLimitExceeded;class UnsupportedOperationException extends o.SSMServiceException{name="UnsupportedOperationException";$fault="client";Message;constructor(e){super({name:"UnsupportedOperationException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedOperationException.prototype);this.Message=e.Message}}t.UnsupportedOperationException=UnsupportedOperationException;class DocumentPermissionLimit extends o.SSMServiceException{name="DocumentPermissionLimit";$fault="client";Message;constructor(e){super({name:"DocumentPermissionLimit",$fault:"client",...e});Object.setPrototypeOf(this,DocumentPermissionLimit.prototype);this.Message=e.Message}}t.DocumentPermissionLimit=DocumentPermissionLimit;class ComplianceTypeCountLimitExceededException extends o.SSMServiceException{name="ComplianceTypeCountLimitExceededException";$fault="client";Message;constructor(e){super({name:"ComplianceTypeCountLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ComplianceTypeCountLimitExceededException.prototype);this.Message=e.Message}}t.ComplianceTypeCountLimitExceededException=ComplianceTypeCountLimitExceededException;class InvalidItemContentException extends o.SSMServiceException{name="InvalidItemContentException";$fault="client";TypeName;Message;constructor(e){super({name:"InvalidItemContentException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidItemContentException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}t.InvalidItemContentException=InvalidItemContentException;class ItemSizeLimitExceededException extends o.SSMServiceException{name="ItemSizeLimitExceededException";$fault="client";TypeName;Message;constructor(e){super({name:"ItemSizeLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ItemSizeLimitExceededException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}t.ItemSizeLimitExceededException=ItemSizeLimitExceededException;class TotalSizeLimitExceededException extends o.SSMServiceException{name="TotalSizeLimitExceededException";$fault="client";Message;constructor(e){super({name:"TotalSizeLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,TotalSizeLimitExceededException.prototype);this.Message=e.Message}}t.TotalSizeLimitExceededException=TotalSizeLimitExceededException;class CustomSchemaCountLimitExceededException extends o.SSMServiceException{name="CustomSchemaCountLimitExceededException";$fault="client";Message;constructor(e){super({name:"CustomSchemaCountLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,CustomSchemaCountLimitExceededException.prototype);this.Message=e.Message}}t.CustomSchemaCountLimitExceededException=CustomSchemaCountLimitExceededException;class InvalidInventoryItemContextException extends o.SSMServiceException{name="InvalidInventoryItemContextException";$fault="client";Message;constructor(e){super({name:"InvalidInventoryItemContextException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidInventoryItemContextException.prototype);this.Message=e.Message}}t.InvalidInventoryItemContextException=InvalidInventoryItemContextException;class ItemContentMismatchException extends o.SSMServiceException{name="ItemContentMismatchException";$fault="client";TypeName;Message;constructor(e){super({name:"ItemContentMismatchException",$fault:"client",...e});Object.setPrototypeOf(this,ItemContentMismatchException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}t.ItemContentMismatchException=ItemContentMismatchException;class SubTypeCountLimitExceededException extends o.SSMServiceException{name="SubTypeCountLimitExceededException";$fault="client";Message;constructor(e){super({name:"SubTypeCountLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,SubTypeCountLimitExceededException.prototype);this.Message=e.Message}}t.SubTypeCountLimitExceededException=SubTypeCountLimitExceededException;class UnsupportedInventoryItemContextException extends o.SSMServiceException{name="UnsupportedInventoryItemContextException";$fault="client";TypeName;Message;constructor(e){super({name:"UnsupportedInventoryItemContextException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedInventoryItemContextException.prototype);this.TypeName=e.TypeName;this.Message=e.Message}}t.UnsupportedInventoryItemContextException=UnsupportedInventoryItemContextException;class UnsupportedInventorySchemaVersionException extends o.SSMServiceException{name="UnsupportedInventorySchemaVersionException";$fault="client";Message;constructor(e){super({name:"UnsupportedInventorySchemaVersionException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedInventorySchemaVersionException.prototype);this.Message=e.Message}}t.UnsupportedInventorySchemaVersionException=UnsupportedInventorySchemaVersionException;class HierarchyLevelLimitExceededException extends o.SSMServiceException{name="HierarchyLevelLimitExceededException";$fault="client";constructor(e){super({name:"HierarchyLevelLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,HierarchyLevelLimitExceededException.prototype)}}t.HierarchyLevelLimitExceededException=HierarchyLevelLimitExceededException;class HierarchyTypeMismatchException extends o.SSMServiceException{name="HierarchyTypeMismatchException";$fault="client";constructor(e){super({name:"HierarchyTypeMismatchException",$fault:"client",...e});Object.setPrototypeOf(this,HierarchyTypeMismatchException.prototype)}}t.HierarchyTypeMismatchException=HierarchyTypeMismatchException;class IncompatiblePolicyException extends o.SSMServiceException{name="IncompatiblePolicyException";$fault="client";constructor(e){super({name:"IncompatiblePolicyException",$fault:"client",...e});Object.setPrototypeOf(this,IncompatiblePolicyException.prototype)}}t.IncompatiblePolicyException=IncompatiblePolicyException;class InvalidAllowedPatternException extends o.SSMServiceException{name="InvalidAllowedPatternException";$fault="client";constructor(e){super({name:"InvalidAllowedPatternException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAllowedPatternException.prototype)}}t.InvalidAllowedPatternException=InvalidAllowedPatternException;class InvalidPolicyAttributeException extends o.SSMServiceException{name="InvalidPolicyAttributeException";$fault="client";constructor(e){super({name:"InvalidPolicyAttributeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPolicyAttributeException.prototype)}}t.InvalidPolicyAttributeException=InvalidPolicyAttributeException;class InvalidPolicyTypeException extends o.SSMServiceException{name="InvalidPolicyTypeException";$fault="client";constructor(e){super({name:"InvalidPolicyTypeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidPolicyTypeException.prototype)}}t.InvalidPolicyTypeException=InvalidPolicyTypeException;class ParameterAlreadyExists extends o.SSMServiceException{name="ParameterAlreadyExists";$fault="client";constructor(e){super({name:"ParameterAlreadyExists",$fault:"client",...e});Object.setPrototypeOf(this,ParameterAlreadyExists.prototype)}}t.ParameterAlreadyExists=ParameterAlreadyExists;class ParameterLimitExceeded extends o.SSMServiceException{name="ParameterLimitExceeded";$fault="client";constructor(e){super({name:"ParameterLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,ParameterLimitExceeded.prototype)}}t.ParameterLimitExceeded=ParameterLimitExceeded;class ParameterMaxVersionLimitExceeded extends o.SSMServiceException{name="ParameterMaxVersionLimitExceeded";$fault="client";constructor(e){super({name:"ParameterMaxVersionLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,ParameterMaxVersionLimitExceeded.prototype)}}t.ParameterMaxVersionLimitExceeded=ParameterMaxVersionLimitExceeded;class ParameterPatternMismatchException extends o.SSMServiceException{name="ParameterPatternMismatchException";$fault="client";constructor(e){super({name:"ParameterPatternMismatchException",$fault:"client",...e});Object.setPrototypeOf(this,ParameterPatternMismatchException.prototype)}}t.ParameterPatternMismatchException=ParameterPatternMismatchException;class PoliciesLimitExceededException extends o.SSMServiceException{name="PoliciesLimitExceededException";$fault="client";constructor(e){super({name:"PoliciesLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,PoliciesLimitExceededException.prototype)}}t.PoliciesLimitExceededException=PoliciesLimitExceededException;class UnsupportedParameterType extends o.SSMServiceException{name="UnsupportedParameterType";$fault="client";constructor(e){super({name:"UnsupportedParameterType",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedParameterType.prototype)}}t.UnsupportedParameterType=UnsupportedParameterType;class ResourcePolicyLimitExceededException extends o.SSMServiceException{name="ResourcePolicyLimitExceededException";$fault="client";Limit;LimitType;Message;constructor(e){super({name:"ResourcePolicyLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ResourcePolicyLimitExceededException.prototype);this.Limit=e.Limit;this.LimitType=e.LimitType;this.Message=e.Message}}t.ResourcePolicyLimitExceededException=ResourcePolicyLimitExceededException;class FeatureNotAvailableException extends o.SSMServiceException{name="FeatureNotAvailableException";$fault="client";Message;constructor(e){super({name:"FeatureNotAvailableException",$fault:"client",...e});Object.setPrototypeOf(this,FeatureNotAvailableException.prototype);this.Message=e.Message}}t.FeatureNotAvailableException=FeatureNotAvailableException;class AutomationStepNotFoundException extends o.SSMServiceException{name="AutomationStepNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationStepNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationStepNotFoundException.prototype);this.Message=e.Message}}t.AutomationStepNotFoundException=AutomationStepNotFoundException;class InvalidAutomationSignalException extends o.SSMServiceException{name="InvalidAutomationSignalException";$fault="client";Message;constructor(e){super({name:"InvalidAutomationSignalException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAutomationSignalException.prototype);this.Message=e.Message}}t.InvalidAutomationSignalException=InvalidAutomationSignalException;class InvalidNotificationConfig extends o.SSMServiceException{name="InvalidNotificationConfig";$fault="client";Message;constructor(e){super({name:"InvalidNotificationConfig",$fault:"client",...e});Object.setPrototypeOf(this,InvalidNotificationConfig.prototype);this.Message=e.Message}}t.InvalidNotificationConfig=InvalidNotificationConfig;class InvalidOutputFolder extends o.SSMServiceException{name="InvalidOutputFolder";$fault="client";constructor(e){super({name:"InvalidOutputFolder",$fault:"client",...e});Object.setPrototypeOf(this,InvalidOutputFolder.prototype)}}t.InvalidOutputFolder=InvalidOutputFolder;class InvalidRole extends o.SSMServiceException{name="InvalidRole";$fault="client";Message;constructor(e){super({name:"InvalidRole",$fault:"client",...e});Object.setPrototypeOf(this,InvalidRole.prototype);this.Message=e.Message}}t.InvalidRole=InvalidRole;class ServiceQuotaExceededException extends o.SSMServiceException{name="ServiceQuotaExceededException";$fault="client";Message;ResourceId;ResourceType;QuotaCode;ServiceCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ServiceQuotaExceededException.prototype);this.Message=e.Message;this.ResourceId=e.ResourceId;this.ResourceType=e.ResourceType;this.QuotaCode=e.QuotaCode;this.ServiceCode=e.ServiceCode}}t.ServiceQuotaExceededException=ServiceQuotaExceededException;class InvalidAssociation extends o.SSMServiceException{name="InvalidAssociation";$fault="client";Message;constructor(e){super({name:"InvalidAssociation",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAssociation.prototype);this.Message=e.Message}}t.InvalidAssociation=InvalidAssociation;class AutomationDefinitionNotFoundException extends o.SSMServiceException{name="AutomationDefinitionNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationDefinitionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationDefinitionNotFoundException.prototype);this.Message=e.Message}}t.AutomationDefinitionNotFoundException=AutomationDefinitionNotFoundException;class AutomationDefinitionVersionNotFoundException extends o.SSMServiceException{name="AutomationDefinitionVersionNotFoundException";$fault="client";Message;constructor(e){super({name:"AutomationDefinitionVersionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationDefinitionVersionNotFoundException.prototype);this.Message=e.Message}}t.AutomationDefinitionVersionNotFoundException=AutomationDefinitionVersionNotFoundException;class AutomationExecutionLimitExceededException extends o.SSMServiceException{name="AutomationExecutionLimitExceededException";$fault="client";Message;constructor(e){super({name:"AutomationExecutionLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationExecutionLimitExceededException.prototype);this.Message=e.Message}}t.AutomationExecutionLimitExceededException=AutomationExecutionLimitExceededException;class InvalidAutomationExecutionParametersException extends o.SSMServiceException{name="InvalidAutomationExecutionParametersException";$fault="client";Message;constructor(e){super({name:"InvalidAutomationExecutionParametersException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAutomationExecutionParametersException.prototype);this.Message=e.Message}}t.InvalidAutomationExecutionParametersException=InvalidAutomationExecutionParametersException;class AutomationDefinitionNotApprovedException extends o.SSMServiceException{name="AutomationDefinitionNotApprovedException";$fault="client";Message;constructor(e){super({name:"AutomationDefinitionNotApprovedException",$fault:"client",...e});Object.setPrototypeOf(this,AutomationDefinitionNotApprovedException.prototype);this.Message=e.Message}}t.AutomationDefinitionNotApprovedException=AutomationDefinitionNotApprovedException;class TargetNotConnected extends o.SSMServiceException{name="TargetNotConnected";$fault="client";Message;constructor(e){super({name:"TargetNotConnected",$fault:"client",...e});Object.setPrototypeOf(this,TargetNotConnected.prototype);this.Message=e.Message}}t.TargetNotConnected=TargetNotConnected;class InvalidAutomationStatusUpdateException extends o.SSMServiceException{name="InvalidAutomationStatusUpdateException";$fault="client";Message;constructor(e){super({name:"InvalidAutomationStatusUpdateException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidAutomationStatusUpdateException.prototype);this.Message=e.Message}}t.InvalidAutomationStatusUpdateException=InvalidAutomationStatusUpdateException;class AssociationVersionLimitExceeded extends o.SSMServiceException{name="AssociationVersionLimitExceeded";$fault="client";Message;constructor(e){super({name:"AssociationVersionLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,AssociationVersionLimitExceeded.prototype);this.Message=e.Message}}t.AssociationVersionLimitExceeded=AssociationVersionLimitExceeded;class InvalidUpdate extends o.SSMServiceException{name="InvalidUpdate";$fault="client";Message;constructor(e){super({name:"InvalidUpdate",$fault:"client",...e});Object.setPrototypeOf(this,InvalidUpdate.prototype);this.Message=e.Message}}t.InvalidUpdate=InvalidUpdate;class StatusUnchanged extends o.SSMServiceException{name="StatusUnchanged";$fault="client";constructor(e){super({name:"StatusUnchanged",$fault:"client",...e});Object.setPrototypeOf(this,StatusUnchanged.prototype)}}t.StatusUnchanged=StatusUnchanged;class DocumentVersionLimitExceeded extends o.SSMServiceException{name="DocumentVersionLimitExceeded";$fault="client";Message;constructor(e){super({name:"DocumentVersionLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,DocumentVersionLimitExceeded.prototype);this.Message=e.Message}}t.DocumentVersionLimitExceeded=DocumentVersionLimitExceeded;class DuplicateDocumentContent extends o.SSMServiceException{name="DuplicateDocumentContent";$fault="client";Message;constructor(e){super({name:"DuplicateDocumentContent",$fault:"client",...e});Object.setPrototypeOf(this,DuplicateDocumentContent.prototype);this.Message=e.Message}}t.DuplicateDocumentContent=DuplicateDocumentContent;class DuplicateDocumentVersionName extends o.SSMServiceException{name="DuplicateDocumentVersionName";$fault="client";Message;constructor(e){super({name:"DuplicateDocumentVersionName",$fault:"client",...e});Object.setPrototypeOf(this,DuplicateDocumentVersionName.prototype);this.Message=e.Message}}t.DuplicateDocumentVersionName=DuplicateDocumentVersionName;class OpsMetadataKeyLimitExceededException extends o.SSMServiceException{name="OpsMetadataKeyLimitExceededException";$fault="client";constructor(e){super({name:"OpsMetadataKeyLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,OpsMetadataKeyLimitExceededException.prototype)}}t.OpsMetadataKeyLimitExceededException=OpsMetadataKeyLimitExceededException;class ResourceDataSyncConflictException extends o.SSMServiceException{name="ResourceDataSyncConflictException";$fault="client";Message;constructor(e){super({name:"ResourceDataSyncConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceDataSyncConflictException.prototype);this.Message=e.Message}}t.ResourceDataSyncConflictException=ResourceDataSyncConflictException},2279:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(7892);const i=o.__importDefault(n(3320));const a=n(9728);const d=n(8803);const f=n(1375);const m=n(1694);const h=n(6477);const C=n(8300);const P=n(4433);const D=n(1125);const k=n(5422);const L=n(4271);const F=n(6e3);const q=n(8322);const V=n(2346);const ee=n(484);const getRuntimeConfig=e=>{(0,L.emitWarningIfUnsupportedVersion)(process.version);const t=(0,q.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(L.loadConfigsForDefaultMode);const n=(0,ee.getRuntimeConfig)(e);(0,a.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,D.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??F.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??f.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,m.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,D.loadConfig)(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,D.loadConfig)(h.NODE_REGION_CONFIG_OPTIONS,{...h.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:k.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,D.loadConfig)({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||V.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??k.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,D.loadConfig)(h.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,D.loadConfig)(h.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,D.loadConfig)(m.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},484:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8803);const i=n(4552);const a=n(4271);const d=n(4418);const f=n(3158);const m=n(8165);const h=n(2446);const C=n(4504);const P=n(4381);const getRuntimeConfig=e=>({apiVersion:"2014-11-06",base64Decoder:e?.base64Decoder??f.fromBase64,base64Encoder:e?.base64Encoder??f.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??C.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??h.defaultSSMHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new a.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssm",errorTypeRegistries:P.errorTypeRegistries,xmlNamespace:"http://ssm.amazonaws.com/doc/2014-11-06/",version:"2014-11-06",serviceTarget:"AmazonSSM"},serviceId:e?.serviceId??"SSM",urlParser:e?.urlParser??d.parseUrl,utf8Decoder:e?.utf8Decoder??m.fromUtf8,utf8Encoder:e?.utf8Encoder??m.toUtf8});t.getRuntimeConfig=getRuntimeConfig},4381:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.InvalidFilter$=t.InvalidDocumentVersion$=t.InvalidDocumentType$=t.InvalidDocumentSchemaVersion$=t.InvalidDocumentOperation$=t.InvalidDocumentContent$=t.InvalidDocument$=t.InvalidDeletionIdException$=t.InvalidDeleteInventoryParametersException$=t.InvalidCommandId$=t.InvalidAutomationStatusUpdateException$=t.InvalidAutomationSignalException$=t.InvalidAutomationExecutionParametersException$=t.InvalidAssociationVersion$=t.InvalidAssociation$=t.InvalidAllowedPatternException$=t.InvalidAggregatorException$=t.InvalidActivationId$=t.InvalidActivation$=t.InternalServerError$=t.IncompatiblePolicyException$=t.IdempotentParameterMismatch$=t.HierarchyTypeMismatchException$=t.HierarchyLevelLimitExceededException$=t.FeatureNotAvailableException$=t.DuplicateInstanceId$=t.DuplicateDocumentVersionName$=t.DuplicateDocumentContent$=t.DoesNotExistException$=t.DocumentVersionLimitExceeded$=t.DocumentPermissionLimit$=t.DocumentLimitExceeded$=t.DocumentAlreadyExists$=t.CustomSchemaCountLimitExceededException$=t.ComplianceTypeCountLimitExceededException$=t.AutomationStepNotFoundException$=t.AutomationExecutionNotFoundException$=t.AutomationExecutionLimitExceededException$=t.AutomationDefinitionVersionNotFoundException$=t.AutomationDefinitionNotFoundException$=t.AutomationDefinitionNotApprovedException$=t.AssociationVersionLimitExceeded$=t.AssociationLimitExceeded$=t.AssociationExecutionDoesNotExist$=t.AssociationDoesNotExist$=t.AssociationAlreadyExists$=t.AssociatedInstances$=t.AlreadyExistsException$=t.AccessDeniedException$=t.SSMServiceException$=void 0;t.OpsMetadataNotFoundException$=t.OpsMetadataLimitExceededException$=t.OpsMetadataKeyLimitExceededException$=t.OpsMetadataInvalidArgumentException$=t.OpsMetadataAlreadyExistsException$=t.OpsItemRelatedItemAssociationNotFoundException$=t.OpsItemRelatedItemAlreadyExistsException$=t.OpsItemNotFoundException$=t.OpsItemLimitExceededException$=t.OpsItemInvalidParameterException$=t.OpsItemConflictException$=t.OpsItemAlreadyExistsException$=t.OpsItemAccessDeniedException$=t.NoLongerSupportedException$=t.MaxDocumentSizeExceeded$=t.MalformedResourcePolicyDocumentException$=t.ItemSizeLimitExceededException$=t.ItemContentMismatchException$=t.InvocationDoesNotExist$=t.InvalidUpdate$=t.InvalidTypeNameException$=t.InvalidTargetMaps$=t.InvalidTarget$=t.InvalidTag$=t.InvalidSchedule$=t.InvalidRole$=t.InvalidResultAttributeException$=t.InvalidResourceType$=t.InvalidResourceId$=t.InvalidPolicyTypeException$=t.InvalidPolicyAttributeException$=t.InvalidPluginName$=t.InvalidPermissionType$=t.InvalidParameters$=t.InvalidOutputLocation$=t.InvalidOutputFolder$=t.InvalidOptionException$=t.InvalidNotificationConfig$=t.InvalidNextToken$=t.InvalidKeyId$=t.InvalidItemContentException$=t.InvalidInventoryRequestException$=t.InvalidInventoryItemContextException$=t.InvalidInventoryGroupException$=t.InvalidInstancePropertyFilterValue$=t.InvalidInstanceInformationFilterValue$=t.InvalidInstanceId$=t.InvalidFilterValue$=t.InvalidFilterOption$=t.InvalidFilterKey$=void 0;t.AssociateOpsItemRelatedItemResponse$=t.AssociateOpsItemRelatedItemRequest$=t.AlarmStateInformation$=t.AlarmConfiguration$=t.Alarm$=t.AddTagsToResourceResult$=t.AddTagsToResourceRequest$=t.Activation$=t.AccountSharingInfo$=t.errorTypeRegistries=t.ValidationException$=t.UnsupportedPlatformType$=t.UnsupportedParameterType$=t.UnsupportedOperationException$=t.UnsupportedOperatingSystem$=t.UnsupportedInventorySchemaVersionException$=t.UnsupportedInventoryItemContextException$=t.UnsupportedFeatureRequiredException$=t.UnsupportedCalendarException$=t.TotalSizeLimitExceededException$=t.TooManyUpdates$=t.TooManyTagsError$=t.ThrottlingException$=t.TargetNotConnected$=t.TargetInUseException$=t.SubTypeCountLimitExceededException$=t.StatusUnchanged$=t.ServiceSettingNotFound$=t.ServiceQuotaExceededException$=t.ResourcePolicyNotFoundException$=t.ResourcePolicyLimitExceededException$=t.ResourcePolicyInvalidParameterException$=t.ResourcePolicyConflictException$=t.ResourceNotFoundException$=t.ResourceLimitExceededException$=t.ResourceInUseException$=t.ResourceDataSyncNotFoundException$=t.ResourceDataSyncInvalidConfigurationException$=t.ResourceDataSyncCountExceededException$=t.ResourceDataSyncConflictException$=t.ResourceDataSyncAlreadyExistsException$=t.PoliciesLimitExceededException$=t.ParameterVersionNotFound$=t.ParameterVersionLabelLimitExceeded$=t.ParameterPatternMismatchException$=t.ParameterNotFound$=t.ParameterMaxVersionLimitExceeded$=t.ParameterLimitExceeded$=t.ParameterAlreadyExists$=t.OpsMetadataTooManyUpdatesException$=void 0;t.CreatePatchBaselineRequest$=t.CreateOpsMetadataResult$=t.CreateOpsMetadataRequest$=t.CreateOpsItemResponse$=t.CreateOpsItemRequest$=t.CreateMaintenanceWindowResult$=t.CreateMaintenanceWindowRequest$=t.CreateDocumentResult$=t.CreateDocumentRequest$=t.CreateAssociationResult$=t.CreateAssociationRequest$=t.CreateAssociationBatchResult$=t.CreateAssociationBatchRequestEntry$=t.CreateAssociationBatchRequest$=t.CreateActivationResult$=t.CreateActivationRequest$=t.CompliantSummary$=t.ComplianceSummaryItem$=t.ComplianceStringFilter$=t.ComplianceItemEntry$=t.ComplianceItem$=t.ComplianceExecutionSummary$=t.CommandPlugin$=t.CommandInvocation$=t.CommandFilter$=t.Command$=t.CloudWatchOutputConfig$=t.CancelMaintenanceWindowExecutionResult$=t.CancelMaintenanceWindowExecutionRequest$=t.CancelCommandResult$=t.CancelCommandRequest$=t.BaselineOverride$=t.AutomationExecutionPreview$=t.AutomationExecutionMetadata$=t.AutomationExecutionInputs$=t.AutomationExecutionFilter$=t.AutomationExecution$=t.AttachmentsSource$=t.AttachmentInformation$=t.AttachmentContent$=t.AssociationVersionInfo$=t.AssociationStatus$=t.AssociationOverview$=t.AssociationFilter$=t.AssociationExecutionTargetsFilter$=t.AssociationExecutionTarget$=t.AssociationExecutionFilter$=t.AssociationExecution$=t.AssociationDescription$=t.Association$=void 0;t.DescribeAvailablePatchesRequest$=t.DescribeAutomationStepExecutionsResult$=t.DescribeAutomationStepExecutionsRequest$=t.DescribeAutomationExecutionsResult$=t.DescribeAutomationExecutionsRequest$=t.DescribeAssociationResult$=t.DescribeAssociationRequest$=t.DescribeAssociationExecutionTargetsResult$=t.DescribeAssociationExecutionTargetsRequest$=t.DescribeAssociationExecutionsResult$=t.DescribeAssociationExecutionsRequest$=t.DescribeActivationsResult$=t.DescribeActivationsRequest$=t.DescribeActivationsFilter$=t.DeregisterTaskFromMaintenanceWindowResult$=t.DeregisterTaskFromMaintenanceWindowRequest$=t.DeregisterTargetFromMaintenanceWindowResult$=t.DeregisterTargetFromMaintenanceWindowRequest$=t.DeregisterPatchBaselineForPatchGroupResult$=t.DeregisterPatchBaselineForPatchGroupRequest$=t.DeregisterManagedInstanceResult$=t.DeregisterManagedInstanceRequest$=t.DeleteResourcePolicyResponse$=t.DeleteResourcePolicyRequest$=t.DeleteResourceDataSyncResult$=t.DeleteResourceDataSyncRequest$=t.DeletePatchBaselineResult$=t.DeletePatchBaselineRequest$=t.DeleteParametersResult$=t.DeleteParametersRequest$=t.DeleteParameterResult$=t.DeleteParameterRequest$=t.DeleteOpsMetadataResult$=t.DeleteOpsMetadataRequest$=t.DeleteOpsItemResponse$=t.DeleteOpsItemRequest$=t.DeleteMaintenanceWindowResult$=t.DeleteMaintenanceWindowRequest$=t.DeleteInventoryResult$=t.DeleteInventoryRequest$=t.DeleteDocumentResult$=t.DeleteDocumentRequest$=t.DeleteAssociationResult$=t.DeleteAssociationRequest$=t.DeleteActivationResult$=t.DeleteActivationRequest$=t.Credentials$=t.CreateResourceDataSyncResult$=t.CreateResourceDataSyncRequest$=t.CreatePatchBaselineResult$=void 0;t.DescribePatchPropertiesRequest$=t.DescribePatchGroupStateResult$=t.DescribePatchGroupStateRequest$=t.DescribePatchGroupsResult$=t.DescribePatchGroupsRequest$=t.DescribePatchBaselinesResult$=t.DescribePatchBaselinesRequest$=t.DescribeParametersResult$=t.DescribeParametersRequest$=t.DescribeOpsItemsResponse$=t.DescribeOpsItemsRequest$=t.DescribeMaintenanceWindowTasksResult$=t.DescribeMaintenanceWindowTasksRequest$=t.DescribeMaintenanceWindowTargetsResult$=t.DescribeMaintenanceWindowTargetsRequest$=t.DescribeMaintenanceWindowsResult$=t.DescribeMaintenanceWindowsRequest$=t.DescribeMaintenanceWindowsForTargetResult$=t.DescribeMaintenanceWindowsForTargetRequest$=t.DescribeMaintenanceWindowScheduleResult$=t.DescribeMaintenanceWindowScheduleRequest$=t.DescribeMaintenanceWindowExecutionTasksResult$=t.DescribeMaintenanceWindowExecutionTasksRequest$=t.DescribeMaintenanceWindowExecutionTaskInvocationsResult$=t.DescribeMaintenanceWindowExecutionTaskInvocationsRequest$=t.DescribeMaintenanceWindowExecutionsResult$=t.DescribeMaintenanceWindowExecutionsRequest$=t.DescribeInventoryDeletionsResult$=t.DescribeInventoryDeletionsRequest$=t.DescribeInstancePropertiesResult$=t.DescribeInstancePropertiesRequest$=t.DescribeInstancePatchStatesResult$=t.DescribeInstancePatchStatesRequest$=t.DescribeInstancePatchStatesForPatchGroupResult$=t.DescribeInstancePatchStatesForPatchGroupRequest$=t.DescribeInstancePatchesResult$=t.DescribeInstancePatchesRequest$=t.DescribeInstanceInformationResult$=t.DescribeInstanceInformationRequest$=t.DescribeInstanceAssociationsStatusResult$=t.DescribeInstanceAssociationsStatusRequest$=t.DescribeEffectivePatchesForPatchBaselineResult$=t.DescribeEffectivePatchesForPatchBaselineRequest$=t.DescribeEffectiveInstanceAssociationsResult$=t.DescribeEffectiveInstanceAssociationsRequest$=t.DescribeDocumentResult$=t.DescribeDocumentRequest$=t.DescribeDocumentPermissionResponse$=t.DescribeDocumentPermissionRequest$=t.DescribeAvailablePatchesResult$=void 0;t.GetMaintenanceWindowResult$=t.GetMaintenanceWindowRequest$=t.GetMaintenanceWindowExecutionTaskResult$=t.GetMaintenanceWindowExecutionTaskRequest$=t.GetMaintenanceWindowExecutionTaskInvocationResult$=t.GetMaintenanceWindowExecutionTaskInvocationRequest$=t.GetMaintenanceWindowExecutionResult$=t.GetMaintenanceWindowExecutionRequest$=t.GetInventorySchemaResult$=t.GetInventorySchemaRequest$=t.GetInventoryResult$=t.GetInventoryRequest$=t.GetExecutionPreviewResponse$=t.GetExecutionPreviewRequest$=t.GetDocumentResult$=t.GetDocumentRequest$=t.GetDeployablePatchSnapshotForInstanceResult$=t.GetDeployablePatchSnapshotForInstanceRequest$=t.GetDefaultPatchBaselineResult$=t.GetDefaultPatchBaselineRequest$=t.GetConnectionStatusResponse$=t.GetConnectionStatusRequest$=t.GetCommandInvocationResult$=t.GetCommandInvocationRequest$=t.GetCalendarStateResponse$=t.GetCalendarStateRequest$=t.GetAutomationExecutionResult$=t.GetAutomationExecutionRequest$=t.GetAccessTokenResponse$=t.GetAccessTokenRequest$=t.FailureDetails$=t.FailedCreateAssociation$=t.EffectivePatch$=t.DocumentVersionInfo$=t.DocumentReviews$=t.DocumentReviewerResponseSource$=t.DocumentReviewCommentSource$=t.DocumentRequires$=t.DocumentParameter$=t.DocumentMetadataResponseInfo$=t.DocumentKeyValuesFilter$=t.DocumentIdentifier$=t.DocumentFilter$=t.DocumentDescription$=t.DocumentDefaultVersionDescription$=t.DisassociateOpsItemRelatedItemResponse$=t.DisassociateOpsItemRelatedItemRequest$=t.DescribeSessionsResponse$=t.DescribeSessionsRequest$=t.DescribePatchPropertiesResult$=void 0;t.InventoryResultItem$=t.InventoryResultEntity$=t.InventoryItemSchema$=t.InventoryItemAttribute$=t.InventoryItem$=t.InventoryGroup$=t.InventoryFilter$=t.InventoryDeletionSummaryItem$=t.InventoryDeletionSummary$=t.InventoryDeletionStatusItem$=t.InventoryAggregator$=t.InstancePropertyStringFilter$=t.InstancePropertyFilter$=t.InstanceProperty$=t.InstancePatchStateFilter$=t.InstancePatchState$=t.InstanceInformationStringFilter$=t.InstanceInformationFilter$=t.InstanceInformation$=t.InstanceInfo$=t.InstanceAssociationStatusInfo$=t.InstanceAssociationOutputUrl$=t.InstanceAssociationOutputLocation$=t.InstanceAssociation$=t.InstanceAggregatedAssociationOverview$=t.GetServiceSettingResult$=t.GetServiceSettingRequest$=t.GetResourcePoliciesResponseEntry$=t.GetResourcePoliciesResponse$=t.GetResourcePoliciesRequest$=t.GetPatchBaselineResult$=t.GetPatchBaselineRequest$=t.GetPatchBaselineForPatchGroupResult$=t.GetPatchBaselineForPatchGroupRequest$=t.GetParametersResult$=t.GetParametersRequest$=t.GetParametersByPathResult$=t.GetParametersByPathRequest$=t.GetParameterResult$=t.GetParameterRequest$=t.GetParameterHistoryResult$=t.GetParameterHistoryRequest$=t.GetOpsSummaryResult$=t.GetOpsSummaryRequest$=t.GetOpsMetadataResult$=t.GetOpsMetadataRequest$=t.GetOpsItemResponse$=t.GetOpsItemRequest$=t.GetMaintenanceWindowTaskResult$=t.GetMaintenanceWindowTaskRequest$=void 0;t.MaintenanceWindowTarget$=t.MaintenanceWindowStepFunctionsParameters$=t.MaintenanceWindowRunCommandParameters$=t.MaintenanceWindowLambdaParameters$=t.MaintenanceWindowIdentityForTarget$=t.MaintenanceWindowIdentity$=t.MaintenanceWindowFilter$=t.MaintenanceWindowExecutionTaskInvocationIdentity$=t.MaintenanceWindowExecutionTaskIdentity$=t.MaintenanceWindowExecution$=t.MaintenanceWindowAutomationParameters$=t.LoggingInfo$=t.ListTagsForResourceResult$=t.ListTagsForResourceRequest$=t.ListResourceDataSyncResult$=t.ListResourceDataSyncRequest$=t.ListResourceComplianceSummariesResult$=t.ListResourceComplianceSummariesRequest$=t.ListOpsMetadataResult$=t.ListOpsMetadataRequest$=t.ListOpsItemRelatedItemsResponse$=t.ListOpsItemRelatedItemsRequest$=t.ListOpsItemEventsResponse$=t.ListOpsItemEventsRequest$=t.ListNodesSummaryResult$=t.ListNodesSummaryRequest$=t.ListNodesResult$=t.ListNodesRequest$=t.ListInventoryEntriesResult$=t.ListInventoryEntriesRequest$=t.ListDocumentVersionsResult$=t.ListDocumentVersionsRequest$=t.ListDocumentsResult$=t.ListDocumentsRequest$=t.ListDocumentMetadataHistoryResponse$=t.ListDocumentMetadataHistoryRequest$=t.ListComplianceSummariesResult$=t.ListComplianceSummariesRequest$=t.ListComplianceItemsResult$=t.ListComplianceItemsRequest$=t.ListCommandsResult$=t.ListCommandsRequest$=t.ListCommandInvocationsResult$=t.ListCommandInvocationsRequest$=t.ListAssociationVersionsResult$=t.ListAssociationVersionsRequest$=t.ListAssociationsResult$=t.ListAssociationsRequest$=t.LabelParameterVersionResult$=t.LabelParameterVersionRequest$=void 0;t.PutComplianceItemsRequest$=t.ProgressCounters$=t.PatchStatus$=t.PatchSource$=t.PatchRuleGroup$=t.PatchRule$=t.PatchOrchestratorFilter$=t.PatchGroupPatchBaselineMapping$=t.PatchFilterGroup$=t.PatchFilter$=t.PatchComplianceData$=t.PatchBaselineIdentity$=t.Patch$=t.ParentStepDetails$=t.ParameterStringFilter$=t.ParametersFilter$=t.ParameterMetadata$=t.ParameterInlinePolicy$=t.ParameterHistory$=t.Parameter$=t.OutputSource$=t.OpsResultAttribute$=t.OpsMetadataFilter$=t.OpsMetadata$=t.OpsItemSummary$=t.OpsItemRelatedItemSummary$=t.OpsItemRelatedItemsFilter$=t.OpsItemNotification$=t.OpsItemIdentity$=t.OpsItemFilter$=t.OpsItemEventSummary$=t.OpsItemEventFilter$=t.OpsItemDataValue$=t.OpsItem$=t.OpsFilter$=t.OpsEntityItem$=t.OpsEntity$=t.OpsAggregator$=t.NotificationConfig$=t.NonCompliantSummary$=t.NodeOwnerInfo$=t.NodeFilter$=t.NodeAggregator$=t.Node$=t.ModifyDocumentPermissionResponse$=t.ModifyDocumentPermissionRequest$=t.MetadataValue$=t.MaintenanceWindowTaskParameterValueExpression$=t.MaintenanceWindowTaskInvocationParameters$=t.MaintenanceWindowTask$=void 0;t.StartAssociationsOnceRequest$=t.StartAccessRequestResponse$=t.StartAccessRequestRequest$=t.SeveritySummary$=t.SessionManagerOutputUrl$=t.SessionFilter$=t.Session$=t.ServiceSetting$=t.SendCommandResult$=t.SendCommandRequest$=t.SendAutomationSignalResult$=t.SendAutomationSignalRequest$=t.ScheduledWindowExecution$=t.S3OutputUrl$=t.S3OutputLocation$=t.Runbook$=t.ReviewInformation$=t.ResumeSessionResponse$=t.ResumeSessionRequest$=t.ResultAttribute$=t.ResourceDataSyncSourceWithState$=t.ResourceDataSyncSource$=t.ResourceDataSyncS3Destination$=t.ResourceDataSyncOrganizationalUnit$=t.ResourceDataSyncItem$=t.ResourceDataSyncDestinationDataSharing$=t.ResourceDataSyncAwsOrganizationsSource$=t.ResourceComplianceSummaryItem$=t.ResolvedTargets$=t.ResetServiceSettingResult$=t.ResetServiceSettingRequest$=t.RemoveTagsFromResourceResult$=t.RemoveTagsFromResourceRequest$=t.RelatedOpsItem$=t.RegistrationMetadataItem$=t.RegisterTaskWithMaintenanceWindowResult$=t.RegisterTaskWithMaintenanceWindowRequest$=t.RegisterTargetWithMaintenanceWindowResult$=t.RegisterTargetWithMaintenanceWindowRequest$=t.RegisterPatchBaselineForPatchGroupResult$=t.RegisterPatchBaselineForPatchGroupRequest$=t.RegisterDefaultPatchBaselineResult$=t.RegisterDefaultPatchBaselineRequest$=t.PutResourcePolicyResponse$=t.PutResourcePolicyRequest$=t.PutParameterResult$=t.PutParameterRequest$=t.PutInventoryResult$=t.PutInventoryRequest$=t.PutComplianceItemsResult$=void 0;t.ExecutionInputs$=t.UpdateServiceSettingResult$=t.UpdateServiceSettingRequest$=t.UpdateResourceDataSyncResult$=t.UpdateResourceDataSyncRequest$=t.UpdatePatchBaselineResult$=t.UpdatePatchBaselineRequest$=t.UpdateOpsMetadataResult$=t.UpdateOpsMetadataRequest$=t.UpdateOpsItemResponse$=t.UpdateOpsItemRequest$=t.UpdateManagedInstanceRoleResult$=t.UpdateManagedInstanceRoleRequest$=t.UpdateMaintenanceWindowTaskResult$=t.UpdateMaintenanceWindowTaskRequest$=t.UpdateMaintenanceWindowTargetResult$=t.UpdateMaintenanceWindowTargetRequest$=t.UpdateMaintenanceWindowResult$=t.UpdateMaintenanceWindowRequest$=t.UpdateDocumentResult$=t.UpdateDocumentRequest$=t.UpdateDocumentMetadataResponse$=t.UpdateDocumentMetadataRequest$=t.UpdateDocumentDefaultVersionResult$=t.UpdateDocumentDefaultVersionRequest$=t.UpdateAssociationStatusResult$=t.UpdateAssociationStatusRequest$=t.UpdateAssociationResult$=t.UpdateAssociationRequest$=t.UnlabelParameterVersionResult$=t.UnlabelParameterVersionRequest$=t.TerminateSessionResponse$=t.TerminateSessionRequest$=t.TargetPreview$=t.TargetLocation$=t.Target$=t.Tag$=t.StopAutomationExecutionResult$=t.StopAutomationExecutionRequest$=t.StepExecutionFilter$=t.StepExecution$=t.StartSessionResponse$=t.StartSessionRequest$=t.StartExecutionPreviewResponse$=t.StartExecutionPreviewRequest$=t.StartChangeRequestExecutionResult$=t.StartChangeRequestExecutionRequest$=t.StartAutomationExecutionResult$=t.StartAutomationExecutionRequest$=t.StartAssociationsOnceResult$=void 0;t.DescribeMaintenanceWindowExecutions$=t.DescribeInventoryDeletions$=t.DescribeInstanceProperties$=t.DescribeInstancePatchStatesForPatchGroup$=t.DescribeInstancePatchStates$=t.DescribeInstancePatches$=t.DescribeInstanceInformation$=t.DescribeInstanceAssociationsStatus$=t.DescribeEffectivePatchesForPatchBaseline$=t.DescribeEffectiveInstanceAssociations$=t.DescribeDocumentPermission$=t.DescribeDocument$=t.DescribeAvailablePatches$=t.DescribeAutomationStepExecutions$=t.DescribeAutomationExecutions$=t.DescribeAssociationExecutionTargets$=t.DescribeAssociationExecutions$=t.DescribeAssociation$=t.DescribeActivations$=t.DeregisterTaskFromMaintenanceWindow$=t.DeregisterTargetFromMaintenanceWindow$=t.DeregisterPatchBaselineForPatchGroup$=t.DeregisterManagedInstance$=t.DeleteResourcePolicy$=t.DeleteResourceDataSync$=t.DeletePatchBaseline$=t.DeleteParameters$=t.DeleteParameter$=t.DeleteOpsMetadata$=t.DeleteOpsItem$=t.DeleteMaintenanceWindow$=t.DeleteInventory$=t.DeleteDocument$=t.DeleteAssociation$=t.DeleteActivation$=t.CreateResourceDataSync$=t.CreatePatchBaseline$=t.CreateOpsMetadata$=t.CreateOpsItem$=t.CreateMaintenanceWindow$=t.CreateDocument$=t.CreateAssociationBatch$=t.CreateAssociation$=t.CreateActivation$=t.CancelMaintenanceWindowExecution$=t.CancelCommand$=t.AssociateOpsItemRelatedItem$=t.AddTagsToResource$=t.NodeType$=t.ExecutionPreview$=void 0;t.ListDocumentMetadataHistory$=t.ListComplianceSummaries$=t.ListComplianceItems$=t.ListCommands$=t.ListCommandInvocations$=t.ListAssociationVersions$=t.ListAssociations$=t.LabelParameterVersion$=t.GetServiceSetting$=t.GetResourcePolicies$=t.GetPatchBaselineForPatchGroup$=t.GetPatchBaseline$=t.GetParametersByPath$=t.GetParameters$=t.GetParameterHistory$=t.GetParameter$=t.GetOpsSummary$=t.GetOpsMetadata$=t.GetOpsItem$=t.GetMaintenanceWindowTask$=t.GetMaintenanceWindowExecutionTaskInvocation$=t.GetMaintenanceWindowExecutionTask$=t.GetMaintenanceWindowExecution$=t.GetMaintenanceWindow$=t.GetInventorySchema$=t.GetInventory$=t.GetExecutionPreview$=t.GetDocument$=t.GetDeployablePatchSnapshotForInstance$=t.GetDefaultPatchBaseline$=t.GetConnectionStatus$=t.GetCommandInvocation$=t.GetCalendarState$=t.GetAutomationExecution$=t.GetAccessToken$=t.DisassociateOpsItemRelatedItem$=t.DescribeSessions$=t.DescribePatchProperties$=t.DescribePatchGroupState$=t.DescribePatchGroups$=t.DescribePatchBaselines$=t.DescribeParameters$=t.DescribeOpsItems$=t.DescribeMaintenanceWindowTasks$=t.DescribeMaintenanceWindowTargets$=t.DescribeMaintenanceWindowsForTarget$=t.DescribeMaintenanceWindowSchedule$=t.DescribeMaintenanceWindows$=t.DescribeMaintenanceWindowExecutionTasks$=t.DescribeMaintenanceWindowExecutionTaskInvocations$=void 0;t.UpdateServiceSetting$=t.UpdateResourceDataSync$=t.UpdatePatchBaseline$=t.UpdateOpsMetadata$=t.UpdateOpsItem$=t.UpdateManagedInstanceRole$=t.UpdateMaintenanceWindowTask$=t.UpdateMaintenanceWindowTarget$=t.UpdateMaintenanceWindow$=t.UpdateDocumentMetadata$=t.UpdateDocumentDefaultVersion$=t.UpdateDocument$=t.UpdateAssociationStatus$=t.UpdateAssociation$=t.UnlabelParameterVersion$=t.TerminateSession$=t.StopAutomationExecution$=t.StartSession$=t.StartExecutionPreview$=t.StartChangeRequestExecution$=t.StartAutomationExecution$=t.StartAssociationsOnce$=t.StartAccessRequest$=t.SendCommand$=t.SendAutomationSignal$=t.ResumeSession$=t.ResetServiceSetting$=t.RemoveTagsFromResource$=t.RegisterTaskWithMaintenanceWindow$=t.RegisterTargetWithMaintenanceWindow$=t.RegisterPatchBaselineForPatchGroup$=t.RegisterDefaultPatchBaseline$=t.PutResourcePolicy$=t.PutParameter$=t.PutInventory$=t.PutComplianceItems$=t.ModifyDocumentPermission$=t.ListTagsForResource$=t.ListResourceDataSync$=t.ListResourceComplianceSummaries$=t.ListOpsMetadata$=t.ListOpsItemRelatedItems$=t.ListOpsItemEvents$=t.ListNodesSummary$=t.ListNodes$=t.ListInventoryEntries$=t.ListDocumentVersions$=t.ListDocuments$=void 0;const o="Activation";const i="AutoApprove";const a="ApproveAfterDays";const d="AssociationAlreadyExists";const f="AlarmConfiguration";const m="AttachmentContentList";const h="ActivationCode";const C="AttachmentContent";const P="AttachmentsContent";const D="AssociationDescription";const k="AssociationDispatchAssumeRole";const L="AccessDeniedException";const F="AssociationDescriptionList";const q="AutomationDefinitionNotApprovedException";const V="AssociationDoesNotExist";const ee="AutomationDefinitionNotFoundException";const te="AutomationDefinitionVersionNotFoundException";const ne="ApprovalDate";const re="AssociationExecution";const oe="AssociationExecutionDoesNotExist";const ie="AlreadyExistsException";const se="AssociationExecutionFilter";const ae="AssociationExecutionFilterList";const ce="AutomationExecutionFilterList";const le="AutomationExecutionFilter";const ue="AutomationExecutionId";const de="AutomationExecutionInputs";const pe="AssociationExecutionsList";const fe="AutomationExecutionLimitExceededException";const me="AutomationExecutionMetadata";const he="AutomationExecutionMetadataList";const ge="AutomationExecutionNotFoundException";const ye="AutomationExecutionPreview";const Se="AutomationExecutionStatus";const Ee="AssociationExecutionTarget";const ve="AssociationExecutionTargetsFilter";const Ce="AssociationExecutionTargetsFilterList";const Ie="AssociationExecutionTargetsList";const be="ActualEndTime";const we="AssociationExecutionTargets";const Ae="AssociationExecutions";const Re="AutomationExecution";const Pe="AssociationFilter";const Te="AssociationFilterList";const xe="AssociatedInstances";const _e="AccountIdList";const Oe="AttachmentInformationList";const Me="AccountIdsToAdd";const De="AccountIdsToRemove";const $e="AccountId";const Ne="AccountIds";const ke="ActivationId";const Le="AdditionalInfo";const Ue="AdvisoryIds";const Fe="AssociationId";const Be="AssociationIds";const qe="AttachmentInformation";const je="AttachmentsInformation";const ze="AccessKeyId";const He="AccessKeySecretType";const Ve="ActivationList";const Ge="AssociationLimitExceeded";const We="AlarmList";const Ke="AssociationList";const Qe="AssociationName";const Ye="AttributeName";const Je="AssociationOverview";const Xe="ApplyOnlyAtCronInterval";const Ze="AssociateOpsItemRelatedItem";const ht="AssociateOpsItemRelatedItemRequest";const It="AssociateOpsItemRelatedItemResponse";const Rt="AwsOrganizationsSource";const Pt="ApprovedPatches";const _t="ApprovedPatchesComplianceLevel";const Mt="ApprovedPatchesEnableNonSecurity";const Dt="AutomationParameterMap";const $t="AllowedPattern";const kt="ApprovalRules";const Lt="AccessRequestId";const Ut="ARN";const Ft="AccessRequestStatus";const Bt="AssociationStatus";const qt="AssociationStatusAggregatedCount";const jt="AccountSharingInfo";const zt="AccountSharingInfoList";const Ht="AlarmStateInformationList";const Vt="AlarmStateInformation";const Gt="AttachmentsSourceList";const Wt="AutomationStepNotFoundException";const Kt="ActualStartTime";const Qt="AvailableSecurityUpdateCount";const Yt="AvailableSecurityUpdatesComplianceStatus";const Jt="AttachmentsSource";const Xt="AutomationSubtype";const Zt="AssociationType";const en="AutomationTargetParameterName";const tn="AddTagsToResource";const nn="AddTagsToResourceRequest";const rn="AddTagsToResourceResult";const on="AccessType";const sn="AgentType";const an="AggregatorType";const cn="AtTime";const ln="AutomationType";const un="ApproveUntilDate";const dn="AllowUnassociatedTargets";const pn="AssociationVersion";const mn="AssociationVersionInfo";const hn="AssociationVersionList";const gn="AssociationVersionLimitExceeded";const yn="AgentVersion";const Sn="ApprovedVersion";const En="AssociationVersions";const vn="AWSKMSKeyARN";const Cn="Action";const In="Accounts";const bn="Aggregators";const wn="Aggregator";const An="Alarm";const Rn="Alarms";const Pn="Architecture";const Tn="Arch";const xn="Arn";const _n="Association";const On="Associations";const Mn="Attachments";const Dn="Attributes";const $n="Attribute";const Nn="Author";const kn="Automation";const Ln="BaselineDescription";const Un="BaselineId";const Fn="BaselineIdentities";const Bn="BaselineIdentity";const qn="BugzillaIds";const jn="BaselineName";const zn="BucketName";const Hn="BaselineOverride";const Vn="Command";const Gn="CurrentAction";const Wn="CreateAssociationBatch";const Kn="CreateAssociationBatchRequest";const Qn="CreateAssociationBatchRequestEntry";const Yn="CreateAssociationBatchRequestEntries";const Jn="CreateAssociationBatchResult";const Xn="CreateActivationRequest";const Zn="CreateActivationResult";const er="CreateAssociationRequest";const tr="CreateAssociationResult";const nr="CreateActivation";const rr="CreateAssociation";const or="CutoffBehavior";const ir="CreatedBy";const sr="CompletedCount";const ar="CancelCommandRequest";const cr="CancelCommandResult";const lr="CancelCommand";const ur="ClientContext";const dr="CompliantCount";const pr="CriticalCount";const fr="CreatedDate";const mr="CreateDocumentRequest";const hr="CreateDocumentResult";const gr="ChangeDetails";const yr="CreationDate";const Sr="CreateDocument";const Er="CategoryEnum";const vr="ComplianceExecutionSummary";const Cr="CommandFilter";const Ir="CommandFilterList";const br="ComplianceFilter";const wr="ContentHash";const Ar="CommandId";const Rr="ComplianceItemEntry";const Pr="ComplianceItemEntryList";const Tr="CommandInvocationList";const xr="ComplianceItemList";const _r="CommandInvocation";const Or="ComplianceItem";const Mr="CommandInvocations";const Dr="ComplianceItems";const $r="ComplianceLevel";const Nr="CommandList";const kr="CreateMaintenanceWindow";const Lr="CancelMaintenanceWindowExecution";const Ur="CancelMaintenanceWindowExecutionRequest";const Fr="CancelMaintenanceWindowExecutionResult";const Br="CreateMaintenanceWindowRequest";const qr="CreateMaintenanceWindowResult";const jr="CalendarNames";const zr="CriticalNonCompliantCount";const Hr="ComputerName";const Vr="CreateOpsItem";const Gr="CreateOpsItemRequest";const Wr="CreateOpsItemResponse";const Kr="CreateOpsMetadata";const Qr="CreateOpsMetadataRequest";const Yr="CreateOpsMetadataResult";const Jr="CommandPlugins";const Xr="CreatePatchBaseline";const Zr="CreatePatchBaselineRequest";const eo="CreatePatchBaselineResult";const to="CommandPluginList";const no="CommandPlugin";const ro="CreateResourceDataSync";const oo="CreateResourceDataSyncRequest";const io="CreateResourceDataSyncResult";const so="ChangeRequestName";const ao="ComplianceSeverity";const co="CustomSchemaCountLimitExceededException";const lo="ComplianceStringFilter";const uo="ComplianceStringFilterList";const po="ComplianceStringFilterValueList";const fo="ComplianceSummaryItem";const mo="ComplianceSummaryItemList";const ho="ComplianceSummaryItems";const go="CurrentStepName";const yo="CancelledSteps";const So="CompliantSummary";const Eo="CreatedTime";const vo="ComplianceTypeCountLimitExceededException";const Co="CaptureTime";const Io="ClientToken";const bo="ComplianceType";const wo="CreateTime";const Ao="ContentUrl";const Ro="CVEIds";const Po="CloudWatchLogGroupName";const To="CloudWatchOutputConfig";const xo="CloudWatchOutputEnabled";const _o="CloudWatchOutputUrl";const Oo="Category";const Mo="Classification";const Do="Comment";const $o="Commands";const No="Content";const ko="Configuration";const Lo="Context";const Uo="Count";const Fo="Credentials";const Bo="Cutoff";const qo="Description";const jo="DeleteActivation";const zo="DocumentAlreadyExists";const Ho="DescribeAssociationExecutionsRequest";const Vo="DescribeAssociationExecutionsResult";const Go="DescribeAutomationExecutionsRequest";const Wo="DescribeAutomationExecutionsResult";const Ko="DescribeAssociationExecutionTargets";const Qo="DescribeAssociationExecutionTargetsRequest";const Yo="DescribeAssociationExecutionTargetsResult";const Jo="DescribeAssociationExecutions";const Xo="DescribeAutomationExecutions";const Zo="DescribeActivationsFilter";const ei="DescribeActivationsFilterList";const ti="DescribeAvailablePatches";const ni="DescribeAvailablePatchesRequest";const ri="DescribeAvailablePatchesResult";const oi="DeleteActivationRequest";const ii="DeleteActivationResult";const si="DeleteAssociationRequest";const ai="DeleteAssociationResult";const ci="DescribeActivationsRequest";const li="DescribeActivationsResult";const ui="DescribeAssociationRequest";const di="DescribeAssociationResult";const pi="DescribeAutomationStepExecutions";const fi="DescribeAutomationStepExecutionsRequest";const mi="DescribeAutomationStepExecutionsResult";const hi="DeleteAssociation";const gi="DescribeActivations";const yi="DescribeAssociation";const Si="DefaultBaseline";const Ei="DocumentDescription";const vi="DuplicateDocumentContent";const Ci="DescribeDocumentPermission";const Ii="DescribeDocumentPermissionRequest";const bi="DescribeDocumentPermissionResponse";const wi="DeleteDocumentRequest";const Ai="DeleteDocumentResult";const Ri="DescribeDocumentRequest";const Pi="DescribeDocumentResult";const Ti="DestinationDataSharing";const xi="DestinationDataSharingType";const _i="DocumentDefaultVersionDescription";const Oi="DuplicateDocumentVersionName";const Mi="DeleteDocument";const Di="DescribeDocument";const $i="DescribeEffectiveInstanceAssociations";const Ni="DescribeEffectiveInstanceAssociationsRequest";const ki="DescribeEffectiveInstanceAssociationsResult";const Li="DescribeEffectivePatchesForPatchBaseline";const Ui="DescribeEffectivePatchesForPatchBaselineRequest";const Fi="DescribeEffectivePatchesForPatchBaselineResult";const Bi="DocumentFormat";const qi="DocumentFilterList";const ji="DocumentFilter";const zi="DocumentHash";const Hi="DocumentHashType";const Vi="DeletionId";const Gi="DescribeInstanceAssociationsStatus";const Wi="DescribeInstanceAssociationsStatusRequest";const Ki="DescribeInstanceAssociationsStatusResult";const Qi="DescribeInventoryDeletions";const Yi="DescribeInventoryDeletionsRequest";const Ji="DescribeInventoryDeletionsResult";const Xi="DuplicateInstanceId";const Zi="DescribeInstanceInformationRequest";const es="DescribeInstanceInformationResult";const ts="DescribeInstanceInformation";const ns="DocumentIdentifierList";const rs="DefaultInstanceName";const os="DescribeInstancePatches";const is="DescribeInstancePatchesRequest";const ss="DescribeInstancePatchesResult";const as="DescribeInstancePropertiesRequest";const cs="DescribeInstancePropertiesResult";const ls="DescribeInstancePatchStates";const us="DescribeInstancePatchStatesForPatchGroup";const ds="DescribeInstancePatchStatesForPatchGroupRequest";const ps="DescribeInstancePatchStatesForPatchGroupResult";const fs="DescribeInstancePatchStatesRequest";const ms="DescribeInstancePatchStatesResult";const hs="DescribeInstanceProperties";const gs="DeleteInventoryRequest";const ys="DeleteInventoryResult";const Ss="DeleteInventory";const Es="DocumentIdentifier";const vs="DocumentIdentifiers";const Cs="DocumentKeyValuesFilter";const Is="DocumentKeyValuesFilterList";const bs="DocumentLimitExceeded";const ws="DeregisterManagedInstance";const As="DeregisterManagedInstanceRequest";const Rs="DeregisterManagedInstanceResult";const Ps="DocumentMetadataResponseInfo";const Ts="DeleteMaintenanceWindow";const xs="DescribeMaintenanceWindowExecutions";const _s="DescribeMaintenanceWindowExecutionsRequest";const Os="DescribeMaintenanceWindowExecutionsResult";const Ms="DescribeMaintenanceWindowExecutionTasks";const Ds="DescribeMaintenanceWindowExecutionTaskInvocations";const $s="DescribeMaintenanceWindowExecutionTaskInvocationsRequest";const Ns="DescribeMaintenanceWindowExecutionTaskInvocationsResult";const ks="DescribeMaintenanceWindowExecutionTasksRequest";const Ls="DescribeMaintenanceWindowExecutionTasksResult";const Us="DescribeMaintenanceWindowsForTarget";const Fs="DescribeMaintenanceWindowsForTargetRequest";const Bs="DescribeMaintenanceWindowsForTargetResult";const qs="DeleteMaintenanceWindowRequest";const js="DeleteMaintenanceWindowResult";const zs="DescribeMaintenanceWindowsRequest";const Hs="DescribeMaintenanceWindowsResult";const Vs="DescribeMaintenanceWindowSchedule";const Gs="DescribeMaintenanceWindowScheduleRequest";const Ws="DescribeMaintenanceWindowScheduleResult";const Ks="DescribeMaintenanceWindowTargets";const Qs="DescribeMaintenanceWindowTargetsRequest";const Ys="DescribeMaintenanceWindowTargetsResult";const Js="DescribeMaintenanceWindowTasksRequest";const Xs="DescribeMaintenanceWindowTasksResult";const Zs="DescribeMaintenanceWindowTasks";const ea="DescribeMaintenanceWindows";const ta="DocumentName";const na="DoesNotExistException";const ra="DisplayName";const oa="DeleteOpsItem";const ia="DeleteOpsItemRequest";const sa="DisassociateOpsItemRelatedItem";const aa="DisassociateOpsItemRelatedItemRequest";const ca="DisassociateOpsItemRelatedItemResponse";const la="DeleteOpsItemResponse";const ua="DescribeOpsItemsRequest";const da="DescribeOpsItemsResponse";const pa="DescribeOpsItems";const fa="DeleteOpsMetadata";const ma="DeleteOpsMetadataRequest";const ha="DeleteOpsMetadataResult";const ga="DeletedParameters";const ya="DeletePatchBaseline";const Sa="DeregisterPatchBaselineForPatchGroup";const Ea="DeregisterPatchBaselineForPatchGroupRequest";const va="DeregisterPatchBaselineForPatchGroupResult";const Ca="DeletePatchBaselineRequest";const Ia="DeletePatchBaselineResult";const ba="DescribePatchBaselinesRequest";const wa="DescribePatchBaselinesResult";const Aa="DescribePatchBaselines";const Ra="DescribePatchGroups";const Pa="DescribePatchGroupsRequest";const Ta="DescribePatchGroupsResult";const xa="DescribePatchGroupState";const _a="DescribePatchGroupStateRequest";const Oa="DescribePatchGroupStateResult";const Ma="DocumentPermissionLimit";const Da="DocumentParameterList";const $a="DescribePatchProperties";const Na="DescribePatchPropertiesRequest";const ka="DescribePatchPropertiesResult";const La="DeleteParameterRequest";const Ua="DeleteParameterResult";const Fa="DeleteParametersRequest";const Ba="DeleteParametersResult";const qa="DescribeParametersRequest";const ja="DescribeParametersResult";const za="DeleteParameter";const Ha="DeleteParameters";const Va="DescribeParameters";const Ga="DocumentParameter";const Wa="DryRun";const Ka="DocumentReviewCommentList";const Qa="DocumentReviewCommentSource";const Ya="DeleteResourceDataSync";const Ja="DeleteResourceDataSyncRequest";const Xa="DeleteResourceDataSyncResult";const Za="DocumentRequiresList";const ec="DeleteResourcePolicy";const tc="DeleteResourcePolicyRequest";const nc="DeleteResourcePolicyResponse";const rc="DocumentReviewerResponseList";const oc="DocumentReviewerResponseSource";const ic="DocumentRequires";const sc="DocumentReviews";const ac="DetailedStatus";const cc="DescribeSessionsRequest";const lc="DescribeSessionsResponse";const uc="DeletionStartTime";const dc="DeletionSummary";const pc="DeploymentStatus";const fc="DescribeSessions";const mc="DocumentType";const hc="DeregisterTargetFromMaintenanceWindow";const gc="DeregisterTargetFromMaintenanceWindowRequest";const yc="DeregisterTargetFromMaintenanceWindowResult";const Sc="DeregisterTaskFromMaintenanceWindowRequest";const Ec="DeregisterTaskFromMaintenanceWindowResult";const vc="DeregisterTaskFromMaintenanceWindow";const Cc="DeliveryTimedOutCount";const Ic="DataType";const bc="DetailType";const wc="DocumentVersion";const Ac="DocumentVersionInfo";const Rc="DocumentVersionList";const Pc="DocumentVersionLimitExceeded";const Tc="DefaultVersionName";const xc="DefaultVersion";const _c="DefaultValue";const Oc="DocumentVersions";const Mc="Date";const Dc="Data";const $c="Details";const Nc="Detail";const kc="Document";const Lc="Duration";const Uc="Expired";const Fc="ExpiresAfter";const Bc="EnableAllOpsDataSources";const qc="EndedAt";const jc="ExcludeAccounts";const zc="ExecutedBy";const Hc="ErrorCount";const Vc="ErrorCode";const Gc="ExpirationDate";const Wc="EndDate";const Kc="ExecutionDate";const Qc="ExecutionEndDateTime";const Yc="ExecutionEndTime";const Jc="ExecutionElapsedTime";const Xc="ExecutionId";const Zc="EventId";const el="ExecutionInputs";const tl="EnableNonSecurity";const nl="EffectivePatches";const rl="ExecutionPreviewId";const ol="EffectivePatchList";const il="EffectivePatch";const sl="ExecutionPreview";const al="ExecutionRoleName";const cl="ExecutionSummary";const ll="ExecutionStartDateTime";const ul="ExecutionStartTime";const dl="ExecutionTime";const pl="EndTime";const fl="ExecutionType";const ml="ExpirationTime";const hl="Entries";const gl="Enabled";const yl="Entry";const Sl="Entities";const El="Entity";const vl="Epoch";const Cl="Expression";const Il="Failed";const bl="FailedCount";const wl="FailedCreateAssociation";const Al="FailedCreateAssociationEntry";const Rl="FailedCreateAssociationList";const Pl="FailureDetails";const Tl="FilterKey";const xl="FailureMessage";const _l="FeatureNotAvailableException";const Ol="FailureStage";const Ml="FailedSteps";const Dl="FailureType";const $l="FilterValues";const Nl="FilterValue";const kl="FiltersWithOperator";const Ll="Fault";const Ul="Filters";const Fl="Force";const Bl="Groups";const ql="GetAutomationExecution";const jl="GetAutomationExecutionRequest";const zl="GetAutomationExecutionResult";const Hl="GetAccessToken";const Vl="GetAccessTokenRequest";const Gl="GetAccessTokenResponse";const Wl="GetCommandInvocation";const Kl="GetCommandInvocationRequest";const Ql="GetCommandInvocationResult";const Yl="GetCalendarState";const Jl="GetCalendarStateRequest";const Xl="GetCalendarStateResponse";const Zl="GetConnectionStatusRequest";const eu="GetConnectionStatusResponse";const tu="GetConnectionStatus";const nu="GetDocument";const ru="GetDefaultPatchBaseline";const ou="GetDefaultPatchBaselineRequest";const iu="GetDefaultPatchBaselineResult";const su="GetDeployablePatchSnapshotForInstance";const au="GetDeployablePatchSnapshotForInstanceRequest";const cu="GetDeployablePatchSnapshotForInstanceResult";const lu="GetDocumentRequest";const uu="GetDocumentResult";const du="GetExecutionPreview";const pu="GetExecutionPreviewRequest";const fu="GetExecutionPreviewResponse";const mu="GlobalFilters";const hu="GetInventory";const gu="GetInventoryRequest";const yu="GetInventoryResult";const Su="GetInventorySchema";const Eu="GetInventorySchemaRequest";const vu="GetInventorySchemaResult";const Cu="GetMaintenanceWindow";const Iu="GetMaintenanceWindowExecution";const bu="GetMaintenanceWindowExecutionRequest";const wu="GetMaintenanceWindowExecutionResult";const Au="GetMaintenanceWindowExecutionTask";const Ru="GetMaintenanceWindowExecutionTaskInvocation";const Pu="GetMaintenanceWindowExecutionTaskInvocationRequest";const Tu="GetMaintenanceWindowExecutionTaskInvocationResult";const xu="GetMaintenanceWindowExecutionTaskRequest";const _u="GetMaintenanceWindowExecutionTaskResult";const Ou="GetMaintenanceWindowRequest";const Mu="GetMaintenanceWindowResult";const Du="GetMaintenanceWindowTask";const $u="GetMaintenanceWindowTaskRequest";const Nu="GetMaintenanceWindowTaskResult";const ku="GetOpsItem";const Lu="GetOpsItemRequest";const Uu="GetOpsItemResponse";const Fu="GetOpsMetadata";const Bu="GetOpsMetadataRequest";const qu="GetOpsMetadataResult";const ju="GetOpsSummary";const zu="GetOpsSummaryRequest";const Hu="GetOpsSummaryResult";const Vu="GetParameter";const Gu="GetPatchBaseline";const Wu="GetPatchBaselineForPatchGroup";const Ku="GetPatchBaselineForPatchGroupRequest";const Qu="GetPatchBaselineForPatchGroupResult";const Yu="GetParametersByPath";const Ju="GetParametersByPathRequest";const Xu="GetParametersByPathResult";const Zu="GetPatchBaselineRequest";const ed="GetPatchBaselineResult";const td="GetParameterHistory";const nd="GetParameterHistoryRequest";const rd="GetParameterHistoryResult";const od="GetParameterRequest";const id="GetParameterResult";const sd="GetParametersRequest";const ad="GetParametersResult";const cd="GetParameters";const ld="GetResourcePolicies";const ud="GetResourcePoliciesRequest";const dd="GetResourcePoliciesResponseEntry";const pd="GetResourcePoliciesResponseEntries";const fd="GetResourcePoliciesResponse";const md="GetServiceSetting";const hd="GetServiceSettingRequest";const gd="GetServiceSettingResult";const yd="Hash";const Sd="HighCount";const Ed="HierarchyLevelLimitExceededException";const vd="HashType";const Cd="HierarchyTypeMismatchException";const Id="Id";const bd="InvalidActivation";const wd="InstanceAggregatedAssociationOverview";const Ad="InvalidAggregatorException";const Rd="InvalidAutomationExecutionParametersException";const Pd="InvalidActivationId";const Td="InstanceAssociationList";const xd="InventoryAggregatorList";const _d="InstanceAssociationOutputLocation";const Od="InstanceAssociationOutputUrl";const Md="InvalidAllowedPatternException";const Dd="InstanceAssociationStatusAggregatedCount";const $d="InvalidAutomationSignalException";const Nd="InstanceAssociationStatusInfos";const kd="InstanceAssociationStatusInfo";const Ld="InvalidAutomationStatusUpdateException";const Ud="InvalidAssociationVersion";const Fd="InvalidAssociation";const Bd="InstanceAssociation";const qd="InventoryAggregator";const jd="IpAddress";const zd="InstalledCount";const Hd="ItemContentHash";const Vd="InvalidCommandId";const Gd="ItemContentMismatchException";const Wd="IncludeChildOrganizationUnits";const Kd="InformationalCount";const Qd="IsCritical";const Yd="InvalidDocument";const Jd="InvalidDocumentContent";const Xd="InvalidDeletionIdException";const Zd="InvalidDeleteInventoryParametersException";const ep="InventoryDeletionsList";const tp="InvocationDoesNotExist";const np="InvalidDocumentOperation";const rp="InventoryDeletionSummary";const ip="InventoryDeletionStatusItem";const sp="InventoryDeletionSummaryItem";const ap="InventoryDeletionSummaryItems";const cp="InvalidDocumentSchemaVersion";const lp="InvalidDocumentType";const up="InvalidDocumentVersion";const dp="IsDefaultVersion";const pp="InventoryDeletions";const fp="IsEnd";const mp="InvalidFilter";const hp="InvalidFilterKey";const gp="InventoryFilterList";const yp="InvalidFilterOption";const Sp="IncludeFutureRegions";const Ep="InvalidFilterValue";const vp="InventoryFilterValueList";const Cp="InventoryFilter";const Ip="InventoryGroup";const bp="InventoryGroupList";const wp="InstanceId";const Ap="InventoryItemAttribute";const Rp="InventoryItemAttributeList";const Pp="InvalidItemContentException";const Tp="InventoryItemEntryList";const xp="InstanceInformationFilter";const _p="InstanceInformationFilterList";const Op="InstanceInformationFilterValue";const Mp="InstanceInformationFilterValueSet";const Dp="InvalidInventoryGroupException";const $p="InvalidInstanceId";const Np="InvalidInventoryItemContextException";const kp="InvalidInstanceInformationFilterValue";const Lp="InstanceInformationList";const Up="InventoryItemList";const Fp="InvalidInstancePropertyFilterValue";const Bp="InvalidInventoryRequestException";const qp="InventoryItemSchema";const jp="InstanceInformationStringFilter";const zp="InstanceInformationStringFilterList";const Hp="InventoryItemSchemaResultList";const Vp="InstanceIds";const Gp="InstanceInfo";const Wp="InstanceInformation";const Kp="InvocationId";const Qp="InventoryItem";const Yp="InvalidKeyId";const Jp="InvalidLabels";const Xp="IsLatestVersion";const Zp="InstanceName";const ef="InvalidNotificationConfig";const tf="InvalidNextToken";const nf="InstalledOtherCount";const rf="InvalidOptionException";const of="InvalidOutputFolder";const sf="InvalidOutputLocation";const af="InstallOverrideList";const cf="InvalidParameters";const lf="IPAddress";const uf="InvalidPolicyAttributeException";const df="IgnorePollAlarmFailure";const pf="IncompatiblePolicyException";const ff="InstancePropertyFilter";const mf="InstancePropertyFilterList";const hf="InstancePropertyFilterValue";const gf="InstancePropertyFilterValueSet";const yf="IdempotentParameterMismatch";const Sf="InvalidPluginName";const Ef="InstalledPendingRebootCount";const vf="InstancePatchStates";const Cf="InstancePatchStateFilter";const If="InstancePatchStateFilterList";const bf="InstancePropertyStringFilterList";const wf="InstancePropertyStringFilter";const Af="InstancePatchStateList";const Rf="InstancePatchStatesList";const Pf="InstancePatchState";const Tf="InvalidPermissionType";const xf="InvalidPolicyTypeException";const _f="InstanceProperties";const Of="InstanceProperty";const Mf="InvalidRole";const Df="InvalidResultAttributeException";const $f="InstalledRejectedCount";const Nf="InventoryResultEntity";const kf="InventoryResultEntityList";const Lf="InvalidResourceId";const Uf="InventoryResultItemMap";const Ff="InventoryResultItem";const Bf="InvalidResourceType";const qf="IamRole";const jf="InstanceRole";const zf="InvalidSchedule";const Hf="InternalServerError";const Vf="ItemSizeLimitExceededException";const Gf="InstanceStatus";const Wf="InstanceState";const Kf="InvalidTag";const Qf="InvalidTargetMaps";const Yf="InvalidTypeNameException";const Jf="InvalidTarget";const Xf="InstanceType";const Zf="InstalledTime";const em="InvalidUpdate";const tm="IteratorValue";const nm="InstancesWithAvailableSecurityUpdates";const rm="InstancesWithCriticalNonCompliantPatches";const om="InstancesWithFailedPatches";const im="InstancesWithInstalledOtherPatches";const sm="InstancesWithInstalledPatches";const am="InstancesWithInstalledPendingRebootPatches";const cm="InstancesWithInstalledRejectedPatches";const lm="InstancesWithMissingPatches";const um="InstancesWithNotApplicablePatches";const dm="InstancesWithOtherNonCompliantPatches";const pm="InstancesWithSecurityNonCompliantPatches";const fm="InstancesWithUnreportedNotApplicablePatches";const mm="Instances";const hm="Input";const gm="Inputs";const ym="Instance";const Sm="Iteration";const Em="Items";const vm="Item";const Cm="Key";const Im="KBId";const bm="KeyId";const wm="KeyName";const Am="KbNumber";const Rm="KeysToDelete";const Pm="Limit";const Tm="ListAssociations";const xm="LastAssociationExecutionDate";const _m="ListAssociationsRequest";const Om="ListAssociationsResult";const Mm="ListAssociationVersions";const Dm="ListAssociationVersionsRequest";const $m="ListAssociationVersionsResult";const Nm="LowCount";const km="ListCommandInvocations";const Lm="ListCommandInvocationsRequest";const Um="ListCommandInvocationsResult";const Fm="ListComplianceItemsRequest";const Bm="ListComplianceItemsResult";const qm="ListComplianceItems";const jm="ListCommandsRequest";const zm="ListCommandsResult";const Hm="ListComplianceSummaries";const Vm="ListComplianceSummariesRequest";const Gm="ListComplianceSummariesResult";const Wm="ListCommands";const Km="ListDocuments";const Qm="ListDocumentMetadataHistory";const Ym="ListDocumentMetadataHistoryRequest";const Jm="ListDocumentMetadataHistoryResponse";const Xm="ListDocumentsRequest";const Zm="ListDocumentsResult";const eh="ListDocumentVersions";const th="ListDocumentVersionsRequest";const nh="ListDocumentVersionsResult";const rh="LastExecutionDate";const oh="LogFile";const ih="LoggingInfo";const sh="ListInventoryEntries";const ah="ListInventoryEntriesRequest";const ch="ListInventoryEntriesResult";const lh="LastModifiedBy";const uh="LastModifiedDate";const dh="LastModifiedTime";const ph="LastModifiedUser";const fh="ListNodes";const mh="ListNodesRequest";const hh="LastNoRebootInstallOperationTime";const gh="ListNodesResult";const yh="ListNodesSummary";const Sh="ListNodesSummaryRequest";const Eh="ListNodesSummaryResult";const vh="ListOpsItemEvents";const Ch="ListOpsItemEventsRequest";const Ih="ListOpsItemEventsResponse";const bh="ListOpsItemRelatedItems";const wh="ListOpsItemRelatedItemsRequest";const Ah="ListOpsItemRelatedItemsResponse";const Rh="ListOpsMetadata";const Ph="ListOpsMetadataRequest";const Th="ListOpsMetadataResult";const xh="LastPingDateTime";const _h="LabelParameterVersion";const Oh="LabelParameterVersionRequest";const Mh="LabelParameterVersionResult";const Dh="ListResourceComplianceSummaries";const $h="ListResourceComplianceSummariesRequest";const Nh="ListResourceComplianceSummariesResult";const kh="ListResourceDataSync";const Lh="ListResourceDataSyncRequest";const Uh="ListResourceDataSyncResult";const Fh="LastStatus";const Bh="LastSuccessfulAssociationExecutionDate";const qh="LastSuccessfulExecutionDate";const jh="LastStatusMessage";const zh="LastSyncStatusMessage";const Hh="LastSuccessfulSyncTime";const Vh="LastSyncTime";const Gh="LastStatusUpdateTime";const Wh="LimitType";const Kh="ListTagsForResource";const Qh="ListTagsForResourceRequest";const Yh="ListTagsForResourceResult";const Jh="LaunchTime";const Xh="LastUpdateAssociationDate";const Zh="LatestVersion";const eg="Labels";const tg="Lambda";const ng="Language";const rg="Message";const og="MaxAttempts";const ig="MaxConcurrency";const sg="MediumCount";const ag="MissingCount";const cg="ModifiedDate";const lg="ModifyDocumentPermission";const ug="ModifyDocumentPermissionRequest";const dg="ModifyDocumentPermissionResponse";const pg="MaxDocumentSizeExceeded";const fg="MaxErrors";const mg="MetadataMap";const hg="MsrcNumber";const gg="MaxResults";const yg="MalformedResourcePolicyDocumentException";const Sg="ManagedStatus";const Eg="MaxSessionDuration";const vg="MsrcSeverity";const Cg="MetadataToUpdate";const Ig="MetadataValue";const bg="MaintenanceWindowAutomationParameters";const wg="MaintenanceWindowDescription";const Ag="MaintenanceWindowExecution";const Rg="MaintenanceWindowExecutionList";const Pg="MaintenanceWindowExecutionTaskIdentity";const Tg="MaintenanceWindowExecutionTaskInvocationIdentity";const xg="MaintenanceWindowExecutionTaskInvocationIdentityList";const _g="MaintenanceWindowExecutionTaskIdentityList";const Og="MaintenanceWindowExecutionTaskInvocationParameters";const Mg="MaintenanceWindowFilter";const Dg="MaintenanceWindowFilterList";const $g="MaintenanceWindowsForTargetList";const Ng="MaintenanceWindowIdentity";const kg="MaintenanceWindowIdentityForTarget";const Lg="MaintenanceWindowIdentityList";const Ug="MaintenanceWindowLambdaPayload";const Fg="MaintenanceWindowLambdaParameters";const Bg="MaintenanceWindowRunCommandParameters";const qg="MaintenanceWindowStepFunctionsInput";const jg="MaintenanceWindowStepFunctionsParameters";const zg="MaintenanceWindowTarget";const Hg="MaintenanceWindowTaskInvocationParameters";const Vg="MaintenanceWindowTargetList";const Gg="MaintenanceWindowTaskList";const Wg="MaintenanceWindowTaskParameters";const Kg="MaintenanceWindowTaskParametersList";const Qg="MaintenanceWindowTaskParameterValue";const Yg="MaintenanceWindowTaskParameterValueExpression";const Jg="MaintenanceWindowTaskParameterValueList";const Xg="MaintenanceWindowTask";const Zg="Mappings";const ey="Metadata";const ty="Mode";const ny="Name";const ry="NodeAggregator";const oy="NotApplicableCount";const iy="NodeAggregatorList";const sy="NotificationArn";const ay="NotificationConfig";const cy="NonCompliantCount";const ly="NonCompliantSummary";const uy="NotificationEvents";const dy="NextExecutionTime";const py="NodeFilter";const fy="NodeFilterList";const my="NodeFilterValueList";const hy="NodeList";const gy="NoLongerSupportedException";const yy="NodeOwnerInfo";const Sy="NextStep";const Ey="NodeSummaryList";const vy="NextToken";const Cy="NextTransitionTime";const Iy="NodeType";const by="NotificationType";const wy="Names";const Ay="Notifications";const Ry="Nodes";const Py="Node";const Ty="Overview";const xy="OpsAggregator";const _y="OpsAggregatorList";const Oy="OperationalData";const My="OperationalDataToDelete";const Dy="OpsEntity";const $y="OpsEntityItem";const Ny="OpsEntityItemEntryList";const ky="OpsEntityItemMap";const Ly="OpsEntityList";const Uy="OperationEndTime";const Fy="OpsFilter";const By="OpsFilterList";const qy="OpsFilterValueList";const jy="OnFailure";const zy="OwnerInformation";const Hy="OpsItemArn";const Vy="OpsItemAccessDeniedException";const Gy="OpsItemAlreadyExistsException";const Wy="OpsItemConflictException";const Ky="OpsItemDataValue";const Qy="OpsItemEventFilter";const Yy="OpsItemEventFilters";const Jy="OpsItemEventSummary";const Xy="OpsItemEventSummaries";const Zy="OpsItemFilters";const eS="OpsItemFilter";const tS="OpsItemId";const nS="OpsItemInvalidParameterException";const rS="OpsItemIdentity";const oS="OpsItemLimitExceededException";const iS="OpsItemNotification";const sS="OpsItemNotFoundException";const aS="OpsItemNotifications";const cS="OpsItemOperationalData";const lS="OpsItemRelatedItemAlreadyExistsException";const uS="OpsItemRelatedItemAssociationNotFoundException";const dS="OpsItemRelatedItemsFilter";const pS="OpsItemRelatedItemsFilters";const fS="OpsItemRelatedItemSummary";const mS="OpsItemRelatedItemSummaries";const hS="OpsItemSummaries";const gS="OpsItemSummary";const yS="OpsItemType";const SS="OpsItem";const ES="OutputLocation";const vS="OpsMetadata";const CS="OpsMetadataArn";const IS="OpsMetadataAlreadyExistsException";const bS="OpsMetadataFilter";const wS="OpsMetadataFilterList";const AS="OpsMetadataInvalidArgumentException";const RS="OpsMetadataKeyLimitExceededException";const PS="OpsMetadataList";const TS="OpsMetadataLimitExceededException";const xS="OpsMetadataNotFoundException";const _S="OpsMetadataTooManyUpdatesException";const OS="OtherNonCompliantCount";const MS="OverriddenParameters";const DS="OpsResultAttribute";const $S="OpsResultAttributeList";const NS="OutputSource";const kS="OutputS3BucketName";const LS="OutputSourceId";const US="OutputS3KeyPrefix";const FS="OutputS3Region";const BS="OperationStartTime";const qS="OrganizationSourceType";const jS="OutputSourceType";const zS="OperatingSystem";const HS="OverallSeverity";const VS="OutputUrl";const GS="OrganizationalUnitId";const WS="OrganizationalUnitPath";const KS="OrganizationalUnits";const QS="Operation";const YS="Operator";const JS="Option";const XS="Outputs";const ZS="Output";const eE="Overwrite";const tE="Owner";const nE="Parameters";const rE="ParameterAlreadyExists";const oE="ParentAutomationExecutionId";const iE="PatchBaselineIdentity";const sE="PatchBaselineIdentityList";const aE="ProgressCounters";const cE="PatchComplianceData";const lE="PatchComplianceDataList";const uE="PutComplianceItems";const dE="PutComplianceItemsRequest";const pE="PutComplianceItemsResult";const fE="PlannedEndTime";const mE="ParameterFilters";const hE="PatchFilterGroup";const gE="ParametersFilterList";const yE="PatchFilterList";const SE="ParametersFilter";const EE="PatchFilter";const vE="PatchFilters";const CE="ProductFamily";const IE="PatchGroup";const bE="PatchGroupPatchBaselineMapping";const wE="PatchGroupPatchBaselineMappingList";const AE="PatchGroups";const RE="PolicyHash";const PE="ParameterHistoryList";const TE="ParameterHistory";const xE="PolicyId";const _E="ParameterInlinePolicy";const OE="PutInventoryRequest";const ME="PutInventoryResult";const DE="PutInventory";const $E="ParameterList";const NE="ParameterLimitExceeded";const kE="PoliciesLimitExceededException";const LE="PatchList";const UE="ParameterMetadata";const FE="ParameterMetadataList";const BE="ParameterMaxVersionLimitExceeded";const qE="ParameterNames";const jE="ParameterNotFound";const zE="PluginName";const HE="PlatformName";const VE="PatchOrchestratorFilter";const GE="PatchOrchestratorFilterList";const WE="PutParameter";const KE="PatchPropertiesList";const QE="ParameterPolicyList";const YE="ParameterPatternMismatchException";const JE="PutParameterRequest";const XE="PutParameterResult";const ZE="PatchRule";const ev="PatchRuleGroup";const tv="PatchRuleList";const rv="PutResourcePolicy";const ov="PutResourcePolicyRequest";const iv="PutResourcePolicyResponse";const sv="PendingReviewVersion";const av="PatchRules";const cv="PatchSet";const lv="PatchSourceConfiguration";const uv="ParentStepDetails";const dv="ParameterStringFilter";const pv="ParameterStringFilterList";const fv="PatchSourceList";const mv="PSParameterValue";const hv="PlannedStartTime";const gv="PatchStatus";const yv="PatchSource";const Sv="PingStatus";const Ev="PolicyStatus";const vv="PermissionType";const Cv="PlatformTypeList";const Iv="PlatformTypes";const bv="PlatformType";const wv="PolicyText";const Av="PolicyType";const Rv="PlatformVersion";const Pv="ParameterVersionLabelLimitExceeded";const Tv="ParameterVersionNotFound";const xv="ParameterVersion";const _v="ParameterValues";const Ov="Patches";const Mv="Parameter";const Dv="Patch";const $v="Path";const Nv="Payload";const kv="Policies";const Lv="Policy";const Uv="Priority";const Fv="Prefix";const Bv="Property";const qv="Product";const jv="Products";const zv="Properties";const Hv="Qualifier";const Vv="QuotaCode";const Gv="Runbooks";const Wv="ResourceArn";const Kv="ResultAttributeList";const Qv="ResultAttributes";const Yv="ResultAttribute";const Jv="ReasonCode";const Xv="ResourceCountByStatus";const Zv="ResourceComplianceSummaryItems";const eC="ResourceComplianceSummaryItemList";const tC="ResourceComplianceSummaryItem";const nC="RegistrationsCount";const rC="RemainingCount";const oC="ResponseCode";const iC="RunCommand";const sC="RegistrationDate";const aC="RegisterDefaultPatchBaseline";const cC="RegisterDefaultPatchBaselineRequest";const lC="RegisterDefaultPatchBaselineResult";const uC="ResourceDataSyncAlreadyExistsException";const dC="ResourceDataSyncAwsOrganizationsSource";const pC="ResourceDataSyncConflictException";const fC="ResourceDataSyncCountExceededException";const mC="ResourceDataSyncDestinationDataSharing";const hC="ResourceDataSyncItems";const gC="ResourceDataSyncInvalidConfigurationException";const yC="ResourceDataSyncItemList";const SC="ResourceDataSyncItem";const EC="ResourceDataSyncNotFoundException";const vC="ResourceDataSyncOrganizationalUnit";const CC="ResourceDataSyncOrganizationalUnitList";const IC="ResourceDataSyncSource";const bC="ResourceDataSyncS3Destination";const wC="ResourceDataSyncSourceWithState";const AC="RequestedDateTime";const RC="ReleaseDate";const PC="ResponseFinishDateTime";const TC="ResourceId";const xC="ReviewInformationList";const _C="ResourceInUseException";const OC="ReviewInformation";const MC="ResourceIds";const DC="RegistrationLimit";const $C="ResourceLimitExceededException";const NC="RemovedLabels";const kC="RegistrationMetadata";const LC="RegistrationMetadataItem";const UC="RegistrationMetadataList";const FC="ResourceNotFoundException";const BC="ReverseOrder";const qC="RelatedOpsItems";const jC="RelatedOpsItem";const zC="RebootOption";const HC="RejectedPatches";const VC="RejectedPatchesAction";const GC="RegisterPatchBaselineForPatchGroup";const WC="RegisterPatchBaselineForPatchGroupRequest";const KC="RegisterPatchBaselineForPatchGroupResult";const QC="ResourcePolicyConflictException";const YC="ResourcePolicyInvalidParameterException";const JC="ResourcePolicyLimitExceededException";const XC="ResourcePolicyNotFoundException";const ZC="ReviewerResponse";const eI="ReviewStatus";const tI="ResponseStartDateTime";const nI="ResumeSessionRequest";const rI="ResumeSessionResponse";const oI="ResetServiceSetting";const iI="ResetServiceSettingRequest";const sI="ResetServiceSettingResult";const aI="ResumeSession";const cI="ResourceTypes";const lI="RemoveTagsFromResource";const uI="RemoveTagsFromResourceRequest";const dI="RemoveTagsFromResourceResult";const pI="RegisterTargetWithMaintenanceWindow";const fI="RegisterTargetWithMaintenanceWindowRequest";const mI="RegisterTargetWithMaintenanceWindowResult";const hI="RegisterTaskWithMaintenanceWindowRequest";const gI="RegisterTaskWithMaintenanceWindowResult";const yI="RegisterTaskWithMaintenanceWindow";const SI="ResourceType";const EI="RequireType";const vI="ResolvedTargets";const CI="ReviewedTime";const II="ResourceUri";const bI="Regions";const wI="Reason";const AI="Recursive";const RI="Region";const PI="Release";const TI="Repository";const xI="Replace";const _I="Requires";const OI="Response";const MI="Reviewer";const DI="Runbook";const $I="State";const NI="StartAutomationExecution";const kI="StartAutomationExecutionRequest";const LI="StartAutomationExecutionResult";const UI="StopAutomationExecutionRequest";const FI="StopAutomationExecutionResult";const BI="StopAutomationExecution";const qI="SecretAccessKey";const jI="StartAssociationsOnce";const zI="StartAssociationsOnceRequest";const HI="StartAssociationsOnceResult";const VI="StartAccessRequest";const GI="StartAccessRequestRequest";const WI="StartAccessRequestResponse";const KI="SendAutomationSignal";const QI="SendAutomationSignalRequest";const YI="SendAutomationSignalResult";const JI="S3BucketName";const XI="ServiceCode";const ZI="SendCommandRequest";const eb="StartChangeRequestExecution";const tb="StartChangeRequestExecutionRequest";const nb="StartChangeRequestExecutionResult";const rb="SendCommandResult";const ob="SyncCreatedTime";const ib="SendCommand";const sb="SyncCompliance";const ab="StatusDetails";const cb="SchemaDeleteOption";const lb="SnapshotDownloadUrl";const ub="SharedDocumentVersion";const db="S3Destination";const pb="StartDate";const fb="ScheduleExpression";const mb="StandardErrorContent";const hb="StepExecutionFilter";const gb="StepExecutionFilterList";const yb="StepExecutionId";const Sb="StepExecutionList";const Eb="StartExecutionPreview";const vb="StartExecutionPreviewRequest";const Cb="StartExecutionPreviewResponse";const Ib="StepExecutionsTruncated";const bb="ScheduledEndTime";const wb="StandardErrorUrl";const Ab="StepExecutions";const Rb="StepExecution";const Pb="StepFunctions";const Tb="SessionFilterList";const xb="SessionFilter";const _b="SyncFormat";const Ob="StatusInformation";const Mb="SettingId";const Db="SessionId";const $b="SnapshotId";const Nb="SourceId";const kb="SummaryItems";const Lb="S3KeyPrefix";const Ub="S3Location";const Fb="SyncLastModifiedTime";const Bb="SessionList";const qb="StatusMessage";const jb="SessionManagerOutputUrl";const zb="SessionManagerParameters";const Hb="SyncName";const Vb="SecurityNonCompliantCount";const Gb="StepName";const Wb="ScheduleOffset";const Kb="StandardOutputContent";const Qb="S3OutputLocation";const Yb="StandardOutputUrl";const Jb="S3OutputUrl";const Xb="StepPreviews";const Zb="ServiceQuotaExceededException";const ew="ServiceRole";const tw="ServiceRoleArn";const nw="S3Region";const rw="SourceResult";const ow="SourceRegions";const iw="SeveritySummary";const sw="ServiceSettingNotFound";const aw="StartSessionRequest";const cw="StartSessionResponse";const lw="ServiceSetting";const uw="StepStatus";const dw="StartSession";const pw="SuccessSteps";const fw="SyncSource";const mw="SyncType";const hw="SubTypeCountLimitExceededException";const gw="SessionTokenType";const yw="ScheduledTime";const Sw="ScheduleTimezone";const Ew="SessionToken";const vw="SignalType";const Cw="SourceType";const Iw="StartTime";const bw="SubType";const ww="StatusUnchanged";const Aw="StreamUrl";const Rw="SchemaVersion";const Pw="SettingValue";const Tw="ScheduledWindowExecutions";const xw="ScheduledWindowExecutionList";const _w="ScheduledWindowExecution";const Ow="Safe";const Mw="Schedule";const Dw="Schemas";const $w="Severity";const Nw="Selector";const kw="Sessions";const Lw="Session";const Uw="Shared";const Fw="Sha1";const Bw="Size";const qw="Sources";const jw="Source";const zw="Status";const Hw="Successful";const Vw="Summary";const Gw="Summaries";const Ww="Tags";const Kw="TriggeredAlarms";const Qw="TaskArn";const Yw="TotalAccounts";const Jw="TargetCount";const Xw="TotalCount";const Zw="ThrottlingException";const eA="TaskExecutionId";const tA="TaskId";const nA="TaskInvocationParameters";const rA="TargetInUseException";const oA="TaskIds";const iA="TagKeys";const sA="TargetLocations";const aA="TargetLocationAlarmConfiguration";const cA="TargetLocationMaxConcurrency";const lA="TargetLocationMaxErrors";const uA="TargetLocationsURL";const dA="TagList";const pA="TargetLocation";const fA="TargetMaps";const mA="TargetsMaxConcurrency";const hA="TargetsMaxErrors";const gA="TooManyTagsError";const yA="TooManyUpdates";const SA="TargetMap";const EA="TypeName";const vA="TargetNotConnected";const CA="TraceOutput";const IA="TimedOutSteps";const bA="TargetPreviews";const wA="TargetPreviewList";const AA="TargetParameterName";const RA="TaskParameters";const PA="TargetPreview";const TA="TimeoutSeconds";const xA="TotalSizeLimitExceededException";const _A="TerminateSessionRequest";const OA="TerminateSessionResponse";const MA="TerminateSession";const DA="TotalSteps";const $A="TargetType";const NA="TaskType";const kA="TokenValue";const LA="Targets";const UA="Tag";const FA="Target";const BA="Tasks";const qA="Title";const jA="Tier";const zA="Truncated";const HA="Type";const VA="Url";const GA="UpdateAssociation";const WA="UpdateAssociationRequest";const KA="UpdateAssociationResult";const QA="UpdateAssociationStatus";const YA="UpdateAssociationStatusRequest";const JA="UpdateAssociationStatusResult";const XA="UnspecifiedCount";const ZA="UnsupportedCalendarException";const eR="UpdateDocument";const tR="UpdateDocumentDefaultVersion";const nR="UpdateDocumentDefaultVersionRequest";const rR="UpdateDocumentDefaultVersionResult";const oR="UpdateDocumentMetadata";const iR="UpdateDocumentMetadataRequest";const sR="UpdateDocumentMetadataResponse";const aR="UpdateDocumentRequest";const cR="UpdateDocumentResult";const lR="UnsupportedFeatureRequiredException";const uR="UnsupportedInventoryItemContextException";const dR="UnsupportedInventorySchemaVersionException";const pR="UpdateManagedInstanceRole";const fR="UpdateManagedInstanceRoleRequest";const mR="UpdateManagedInstanceRoleResult";const hR="UpdateMaintenanceWindow";const gR="UpdateMaintenanceWindowRequest";const yR="UpdateMaintenanceWindowResult";const SR="UpdateMaintenanceWindowTarget";const ER="UpdateMaintenanceWindowTargetRequest";const vR="UpdateMaintenanceWindowTargetResult";const CR="UpdateMaintenanceWindowTaskRequest";const IR="UpdateMaintenanceWindowTaskResult";const bR="UpdateMaintenanceWindowTask";const wR="UnreportedNotApplicableCount";const AR="UnsupportedOperationException";const RR="UpdateOpsItem";const PR="UpdateOpsItemRequest";const TR="UpdateOpsItemResponse";const xR="UpdateOpsMetadata";const _R="UpdateOpsMetadataRequest";const OR="UpdateOpsMetadataResult";const MR="UnsupportedOperatingSystem";const DR="UpdatePatchBaseline";const $R="UpdatePatchBaselineRequest";const NR="UpdatePatchBaselineResult";const kR="UnsupportedParameterType";const LR="UnsupportedPlatformType";const UR="UnlabelParameterVersion";const FR="UnlabelParameterVersionRequest";const BR="UnlabelParameterVersionResult";const qR="UpdateResourceDataSync";const jR="UpdateResourceDataSyncRequest";const zR="UpdateResourceDataSyncResult";const HR="UseS3DualStackEndpoint";const VR="UpdateServiceSetting";const GR="UpdateServiceSettingRequest";const WR="UpdateServiceSettingResult";const KR="UpdatedTime";const QR="UploadType";const YR="Value";const JR="ValidationException";const XR="VersionName";const ZR="ValidNextSteps";const eP="Values";const tP="Variables";const nP="Version";const rP="Vendor";const oP="WithDecryption";const iP="WindowExecutions";const sP="WindowExecutionId";const aP="WindowExecutionTaskIdentities";const cP="WindowExecutionTaskInvocationIdentities";const lP="WindowId";const uP="WindowIdentities";const dP="WindowTargetId";const pP="WindowTaskId";const fP="awsQueryError";const mP="client";const hP="error";const gP="entries";const yP="key";const SP="message";const EP="smithy.ts.sdk.synthetic.com.amazonaws.ssm";const vP="server";const CP="value";const IP="valueSet";const bP="xmlName";const wP="com.amazonaws.ssm";const AP=n(2566);const RP=n(9393);const PP=n(2293);const TP=AP.TypeRegistry.for(EP);t.SSMServiceException$=[-3,EP,"SSMServiceException",0,[],[]];TP.registerError(t.SSMServiceException$,PP.SSMServiceException);const xP=AP.TypeRegistry.for(wP);t.AccessDeniedException$=[-3,wP,L,{[hP]:mP},[rg],[0],1];xP.registerError(t.AccessDeniedException$,RP.AccessDeniedException);t.AlreadyExistsException$=[-3,wP,ie,{[fP]:[`AlreadyExistsException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.AlreadyExistsException$,RP.AlreadyExistsException);t.AssociatedInstances$=[-3,wP,xe,{[fP]:[`AssociatedInstances`,400],[hP]:mP},[],[]];xP.registerError(t.AssociatedInstances$,RP.AssociatedInstances);t.AssociationAlreadyExists$=[-3,wP,d,{[fP]:[`AssociationAlreadyExists`,400],[hP]:mP},[],[]];xP.registerError(t.AssociationAlreadyExists$,RP.AssociationAlreadyExists);t.AssociationDoesNotExist$=[-3,wP,V,{[fP]:[`AssociationDoesNotExist`,404],[hP]:mP},[rg],[0]];xP.registerError(t.AssociationDoesNotExist$,RP.AssociationDoesNotExist);t.AssociationExecutionDoesNotExist$=[-3,wP,oe,{[fP]:[`AssociationExecutionDoesNotExist`,404],[hP]:mP},[rg],[0]];xP.registerError(t.AssociationExecutionDoesNotExist$,RP.AssociationExecutionDoesNotExist);t.AssociationLimitExceeded$=[-3,wP,Ge,{[fP]:[`AssociationLimitExceeded`,400],[hP]:mP},[],[]];xP.registerError(t.AssociationLimitExceeded$,RP.AssociationLimitExceeded);t.AssociationVersionLimitExceeded$=[-3,wP,gn,{[fP]:[`AssociationVersionLimitExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.AssociationVersionLimitExceeded$,RP.AssociationVersionLimitExceeded);t.AutomationDefinitionNotApprovedException$=[-3,wP,q,{[fP]:[`AutomationDefinitionNotApproved`,400],[hP]:mP},[rg],[0]];xP.registerError(t.AutomationDefinitionNotApprovedException$,RP.AutomationDefinitionNotApprovedException);t.AutomationDefinitionNotFoundException$=[-3,wP,ee,{[fP]:[`AutomationDefinitionNotFound`,404],[hP]:mP},[rg],[0]];xP.registerError(t.AutomationDefinitionNotFoundException$,RP.AutomationDefinitionNotFoundException);t.AutomationDefinitionVersionNotFoundException$=[-3,wP,te,{[fP]:[`AutomationDefinitionVersionNotFound`,404],[hP]:mP},[rg],[0]];xP.registerError(t.AutomationDefinitionVersionNotFoundException$,RP.AutomationDefinitionVersionNotFoundException);t.AutomationExecutionLimitExceededException$=[-3,wP,fe,{[fP]:[`AutomationExecutionLimitExceeded`,429],[hP]:mP},[rg],[0]];xP.registerError(t.AutomationExecutionLimitExceededException$,RP.AutomationExecutionLimitExceededException);t.AutomationExecutionNotFoundException$=[-3,wP,ge,{[fP]:[`AutomationExecutionNotFound`,404],[hP]:mP},[rg],[0]];xP.registerError(t.AutomationExecutionNotFoundException$,RP.AutomationExecutionNotFoundException);t.AutomationStepNotFoundException$=[-3,wP,Wt,{[fP]:[`AutomationStepNotFoundException`,404],[hP]:mP},[rg],[0]];xP.registerError(t.AutomationStepNotFoundException$,RP.AutomationStepNotFoundException);t.ComplianceTypeCountLimitExceededException$=[-3,wP,vo,{[fP]:[`ComplianceTypeCountLimitExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.ComplianceTypeCountLimitExceededException$,RP.ComplianceTypeCountLimitExceededException);t.CustomSchemaCountLimitExceededException$=[-3,wP,co,{[fP]:[`CustomSchemaCountLimitExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.CustomSchemaCountLimitExceededException$,RP.CustomSchemaCountLimitExceededException);t.DocumentAlreadyExists$=[-3,wP,zo,{[fP]:[`DocumentAlreadyExists`,400],[hP]:mP},[rg],[0]];xP.registerError(t.DocumentAlreadyExists$,RP.DocumentAlreadyExists);t.DocumentLimitExceeded$=[-3,wP,bs,{[fP]:[`DocumentLimitExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.DocumentLimitExceeded$,RP.DocumentLimitExceeded);t.DocumentPermissionLimit$=[-3,wP,Ma,{[fP]:[`DocumentPermissionLimit`,400],[hP]:mP},[rg],[0]];xP.registerError(t.DocumentPermissionLimit$,RP.DocumentPermissionLimit);t.DocumentVersionLimitExceeded$=[-3,wP,Pc,{[fP]:[`DocumentVersionLimitExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.DocumentVersionLimitExceeded$,RP.DocumentVersionLimitExceeded);t.DoesNotExistException$=[-3,wP,na,{[fP]:[`DoesNotExistException`,404],[hP]:mP},[rg],[0]];xP.registerError(t.DoesNotExistException$,RP.DoesNotExistException);t.DuplicateDocumentContent$=[-3,wP,vi,{[fP]:[`DuplicateDocumentContent`,400],[hP]:mP},[rg],[0]];xP.registerError(t.DuplicateDocumentContent$,RP.DuplicateDocumentContent);t.DuplicateDocumentVersionName$=[-3,wP,Oi,{[fP]:[`DuplicateDocumentVersionName`,400],[hP]:mP},[rg],[0]];xP.registerError(t.DuplicateDocumentVersionName$,RP.DuplicateDocumentVersionName);t.DuplicateInstanceId$=[-3,wP,Xi,{[fP]:[`DuplicateInstanceId`,404],[hP]:mP},[],[]];xP.registerError(t.DuplicateInstanceId$,RP.DuplicateInstanceId);t.FeatureNotAvailableException$=[-3,wP,_l,{[fP]:[`FeatureNotAvailableException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.FeatureNotAvailableException$,RP.FeatureNotAvailableException);t.HierarchyLevelLimitExceededException$=[-3,wP,Ed,{[fP]:[`HierarchyLevelLimitExceededException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.HierarchyLevelLimitExceededException$,RP.HierarchyLevelLimitExceededException);t.HierarchyTypeMismatchException$=[-3,wP,Cd,{[fP]:[`HierarchyTypeMismatchException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.HierarchyTypeMismatchException$,RP.HierarchyTypeMismatchException);t.IdempotentParameterMismatch$=[-3,wP,yf,{[fP]:[`IdempotentParameterMismatch`,400],[hP]:mP},[rg],[0]];xP.registerError(t.IdempotentParameterMismatch$,RP.IdempotentParameterMismatch);t.IncompatiblePolicyException$=[-3,wP,pf,{[fP]:[`IncompatiblePolicyException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.IncompatiblePolicyException$,RP.IncompatiblePolicyException);t.InternalServerError$=[-3,wP,Hf,{[fP]:[`InternalServerError`,500],[hP]:vP},[rg],[0]];xP.registerError(t.InternalServerError$,RP.InternalServerError);t.InvalidActivation$=[-3,wP,bd,{[fP]:[`InvalidActivation`,404],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidActivation$,RP.InvalidActivation);t.InvalidActivationId$=[-3,wP,Pd,{[fP]:[`InvalidActivationId`,404],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidActivationId$,RP.InvalidActivationId);t.InvalidAggregatorException$=[-3,wP,Ad,{[fP]:[`InvalidAggregator`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidAggregatorException$,RP.InvalidAggregatorException);t.InvalidAllowedPatternException$=[-3,wP,Md,{[fP]:[`InvalidAllowedPatternException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.InvalidAllowedPatternException$,RP.InvalidAllowedPatternException);t.InvalidAssociation$=[-3,wP,Fd,{[fP]:[`InvalidAssociation`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidAssociation$,RP.InvalidAssociation);t.InvalidAssociationVersion$=[-3,wP,Ud,{[fP]:[`InvalidAssociationVersion`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidAssociationVersion$,RP.InvalidAssociationVersion);t.InvalidAutomationExecutionParametersException$=[-3,wP,Rd,{[fP]:[`InvalidAutomationExecutionParameters`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidAutomationExecutionParametersException$,RP.InvalidAutomationExecutionParametersException);t.InvalidAutomationSignalException$=[-3,wP,$d,{[fP]:[`InvalidAutomationSignalException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidAutomationSignalException$,RP.InvalidAutomationSignalException);t.InvalidAutomationStatusUpdateException$=[-3,wP,Ld,{[fP]:[`InvalidAutomationStatusUpdateException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidAutomationStatusUpdateException$,RP.InvalidAutomationStatusUpdateException);t.InvalidCommandId$=[-3,wP,Vd,{[fP]:[`InvalidCommandId`,404],[hP]:mP},[],[]];xP.registerError(t.InvalidCommandId$,RP.InvalidCommandId);t.InvalidDeleteInventoryParametersException$=[-3,wP,Zd,{[fP]:[`InvalidDeleteInventoryParameters`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDeleteInventoryParametersException$,RP.InvalidDeleteInventoryParametersException);t.InvalidDeletionIdException$=[-3,wP,Xd,{[fP]:[`InvalidDeletionId`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDeletionIdException$,RP.InvalidDeletionIdException);t.InvalidDocument$=[-3,wP,Yd,{[fP]:[`InvalidDocument`,404],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDocument$,RP.InvalidDocument);t.InvalidDocumentContent$=[-3,wP,Jd,{[fP]:[`InvalidDocumentContent`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDocumentContent$,RP.InvalidDocumentContent);t.InvalidDocumentOperation$=[-3,wP,np,{[fP]:[`InvalidDocumentOperation`,403],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDocumentOperation$,RP.InvalidDocumentOperation);t.InvalidDocumentSchemaVersion$=[-3,wP,cp,{[fP]:[`InvalidDocumentSchemaVersion`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDocumentSchemaVersion$,RP.InvalidDocumentSchemaVersion);t.InvalidDocumentType$=[-3,wP,lp,{[fP]:[`InvalidDocumentType`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDocumentType$,RP.InvalidDocumentType);t.InvalidDocumentVersion$=[-3,wP,up,{[fP]:[`InvalidDocumentVersion`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidDocumentVersion$,RP.InvalidDocumentVersion);t.InvalidFilter$=[-3,wP,mp,{[fP]:[`InvalidFilter`,441],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidFilter$,RP.InvalidFilter);t.InvalidFilterKey$=[-3,wP,hp,{[fP]:[`InvalidFilterKey`,400],[hP]:mP},[],[]];xP.registerError(t.InvalidFilterKey$,RP.InvalidFilterKey);t.InvalidFilterOption$=[-3,wP,yp,{[fP]:[`InvalidFilterOption`,400],[hP]:mP},[SP],[0]];xP.registerError(t.InvalidFilterOption$,RP.InvalidFilterOption);t.InvalidFilterValue$=[-3,wP,Ep,{[fP]:[`InvalidFilterValue`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidFilterValue$,RP.InvalidFilterValue);t.InvalidInstanceId$=[-3,wP,$p,{[fP]:[`InvalidInstanceId`,404],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidInstanceId$,RP.InvalidInstanceId);t.InvalidInstanceInformationFilterValue$=[-3,wP,kp,{[fP]:[`InvalidInstanceInformationFilterValue`,400],[hP]:mP},[SP],[0]];xP.registerError(t.InvalidInstanceInformationFilterValue$,RP.InvalidInstanceInformationFilterValue);t.InvalidInstancePropertyFilterValue$=[-3,wP,Fp,{[fP]:[`InvalidInstancePropertyFilterValue`,400],[hP]:mP},[SP],[0]];xP.registerError(t.InvalidInstancePropertyFilterValue$,RP.InvalidInstancePropertyFilterValue);t.InvalidInventoryGroupException$=[-3,wP,Dp,{[fP]:[`InvalidInventoryGroup`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidInventoryGroupException$,RP.InvalidInventoryGroupException);t.InvalidInventoryItemContextException$=[-3,wP,Np,{[fP]:[`InvalidInventoryItemContext`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidInventoryItemContextException$,RP.InvalidInventoryItemContextException);t.InvalidInventoryRequestException$=[-3,wP,Bp,{[fP]:[`InvalidInventoryRequest`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidInventoryRequestException$,RP.InvalidInventoryRequestException);t.InvalidItemContentException$=[-3,wP,Pp,{[fP]:[`InvalidItemContent`,400],[hP]:mP},[EA,rg],[0,0]];xP.registerError(t.InvalidItemContentException$,RP.InvalidItemContentException);t.InvalidKeyId$=[-3,wP,Yp,{[fP]:[`InvalidKeyId`,400],[hP]:mP},[SP],[0]];xP.registerError(t.InvalidKeyId$,RP.InvalidKeyId);t.InvalidNextToken$=[-3,wP,tf,{[fP]:[`InvalidNextToken`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidNextToken$,RP.InvalidNextToken);t.InvalidNotificationConfig$=[-3,wP,ef,{[fP]:[`InvalidNotificationConfig`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidNotificationConfig$,RP.InvalidNotificationConfig);t.InvalidOptionException$=[-3,wP,rf,{[fP]:[`InvalidOption`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidOptionException$,RP.InvalidOptionException);t.InvalidOutputFolder$=[-3,wP,of,{[fP]:[`InvalidOutputFolder`,400],[hP]:mP},[],[]];xP.registerError(t.InvalidOutputFolder$,RP.InvalidOutputFolder);t.InvalidOutputLocation$=[-3,wP,sf,{[fP]:[`InvalidOutputLocation`,400],[hP]:mP},[],[]];xP.registerError(t.InvalidOutputLocation$,RP.InvalidOutputLocation);t.InvalidParameters$=[-3,wP,cf,{[fP]:[`InvalidParameters`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidParameters$,RP.InvalidParameters);t.InvalidPermissionType$=[-3,wP,Tf,{[fP]:[`InvalidPermissionType`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidPermissionType$,RP.InvalidPermissionType);t.InvalidPluginName$=[-3,wP,Sf,{[fP]:[`InvalidPluginName`,404],[hP]:mP},[],[]];xP.registerError(t.InvalidPluginName$,RP.InvalidPluginName);t.InvalidPolicyAttributeException$=[-3,wP,uf,{[fP]:[`InvalidPolicyAttributeException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.InvalidPolicyAttributeException$,RP.InvalidPolicyAttributeException);t.InvalidPolicyTypeException$=[-3,wP,xf,{[fP]:[`InvalidPolicyTypeException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.InvalidPolicyTypeException$,RP.InvalidPolicyTypeException);t.InvalidResourceId$=[-3,wP,Lf,{[fP]:[`InvalidResourceId`,400],[hP]:mP},[],[]];xP.registerError(t.InvalidResourceId$,RP.InvalidResourceId);t.InvalidResourceType$=[-3,wP,Bf,{[fP]:[`InvalidResourceType`,400],[hP]:mP},[],[]];xP.registerError(t.InvalidResourceType$,RP.InvalidResourceType);t.InvalidResultAttributeException$=[-3,wP,Df,{[fP]:[`InvalidResultAttribute`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidResultAttributeException$,RP.InvalidResultAttributeException);t.InvalidRole$=[-3,wP,Mf,{[fP]:[`InvalidRole`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidRole$,RP.InvalidRole);t.InvalidSchedule$=[-3,wP,zf,{[fP]:[`InvalidSchedule`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidSchedule$,RP.InvalidSchedule);t.InvalidTag$=[-3,wP,Kf,{[fP]:[`InvalidTag`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidTag$,RP.InvalidTag);t.InvalidTarget$=[-3,wP,Jf,{[fP]:[`InvalidTarget`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidTarget$,RP.InvalidTarget);t.InvalidTargetMaps$=[-3,wP,Qf,{[fP]:[`InvalidTargetMaps`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidTargetMaps$,RP.InvalidTargetMaps);t.InvalidTypeNameException$=[-3,wP,Yf,{[fP]:[`InvalidTypeName`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidTypeNameException$,RP.InvalidTypeNameException);t.InvalidUpdate$=[-3,wP,em,{[fP]:[`InvalidUpdate`,400],[hP]:mP},[rg],[0]];xP.registerError(t.InvalidUpdate$,RP.InvalidUpdate);t.InvocationDoesNotExist$=[-3,wP,tp,{[fP]:[`InvocationDoesNotExist`,400],[hP]:mP},[],[]];xP.registerError(t.InvocationDoesNotExist$,RP.InvocationDoesNotExist);t.ItemContentMismatchException$=[-3,wP,Gd,{[fP]:[`ItemContentMismatch`,400],[hP]:mP},[EA,rg],[0,0]];xP.registerError(t.ItemContentMismatchException$,RP.ItemContentMismatchException);t.ItemSizeLimitExceededException$=[-3,wP,Vf,{[fP]:[`ItemSizeLimitExceeded`,400],[hP]:mP},[EA,rg],[0,0]];xP.registerError(t.ItemSizeLimitExceededException$,RP.ItemSizeLimitExceededException);t.MalformedResourcePolicyDocumentException$=[-3,wP,yg,{[fP]:[`MalformedResourcePolicyDocumentException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.MalformedResourcePolicyDocumentException$,RP.MalformedResourcePolicyDocumentException);t.MaxDocumentSizeExceeded$=[-3,wP,pg,{[fP]:[`MaxDocumentSizeExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.MaxDocumentSizeExceeded$,RP.MaxDocumentSizeExceeded);t.NoLongerSupportedException$=[-3,wP,gy,{[fP]:[`NoLongerSupported`,400],[hP]:mP},[rg],[0]];xP.registerError(t.NoLongerSupportedException$,RP.NoLongerSupportedException);t.OpsItemAccessDeniedException$=[-3,wP,Vy,{[fP]:[`OpsItemAccessDeniedException`,403],[hP]:mP},[rg],[0]];xP.registerError(t.OpsItemAccessDeniedException$,RP.OpsItemAccessDeniedException);t.OpsItemAlreadyExistsException$=[-3,wP,Gy,{[fP]:[`OpsItemAlreadyExistsException`,400],[hP]:mP},[rg,tS],[0,0]];xP.registerError(t.OpsItemAlreadyExistsException$,RP.OpsItemAlreadyExistsException);t.OpsItemConflictException$=[-3,wP,Wy,{[fP]:[`OpsItemConflictException`,409],[hP]:mP},[rg],[0]];xP.registerError(t.OpsItemConflictException$,RP.OpsItemConflictException);t.OpsItemInvalidParameterException$=[-3,wP,nS,{[fP]:[`OpsItemInvalidParameterException`,400],[hP]:mP},[qE,rg],[64|0,0]];xP.registerError(t.OpsItemInvalidParameterException$,RP.OpsItemInvalidParameterException);t.OpsItemLimitExceededException$=[-3,wP,oS,{[fP]:[`OpsItemLimitExceededException`,400],[hP]:mP},[cI,Pm,Wh,rg],[64|0,1,0,0]];xP.registerError(t.OpsItemLimitExceededException$,RP.OpsItemLimitExceededException);t.OpsItemNotFoundException$=[-3,wP,sS,{[fP]:[`OpsItemNotFoundException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.OpsItemNotFoundException$,RP.OpsItemNotFoundException);t.OpsItemRelatedItemAlreadyExistsException$=[-3,wP,lS,{[fP]:[`OpsItemRelatedItemAlreadyExistsException`,400],[hP]:mP},[rg,II,tS],[0,0,0]];xP.registerError(t.OpsItemRelatedItemAlreadyExistsException$,RP.OpsItemRelatedItemAlreadyExistsException);t.OpsItemRelatedItemAssociationNotFoundException$=[-3,wP,uS,{[fP]:[`OpsItemRelatedItemAssociationNotFoundException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.OpsItemRelatedItemAssociationNotFoundException$,RP.OpsItemRelatedItemAssociationNotFoundException);t.OpsMetadataAlreadyExistsException$=[-3,wP,IS,{[fP]:[`OpsMetadataAlreadyExistsException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.OpsMetadataAlreadyExistsException$,RP.OpsMetadataAlreadyExistsException);t.OpsMetadataInvalidArgumentException$=[-3,wP,AS,{[fP]:[`OpsMetadataInvalidArgumentException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.OpsMetadataInvalidArgumentException$,RP.OpsMetadataInvalidArgumentException);t.OpsMetadataKeyLimitExceededException$=[-3,wP,RS,{[fP]:[`OpsMetadataKeyLimitExceededException`,429],[hP]:mP},[SP],[0]];xP.registerError(t.OpsMetadataKeyLimitExceededException$,RP.OpsMetadataKeyLimitExceededException);t.OpsMetadataLimitExceededException$=[-3,wP,TS,{[fP]:[`OpsMetadataLimitExceededException`,429],[hP]:mP},[SP],[0]];xP.registerError(t.OpsMetadataLimitExceededException$,RP.OpsMetadataLimitExceededException);t.OpsMetadataNotFoundException$=[-3,wP,xS,{[fP]:[`OpsMetadataNotFoundException`,404],[hP]:mP},[SP],[0]];xP.registerError(t.OpsMetadataNotFoundException$,RP.OpsMetadataNotFoundException);t.OpsMetadataTooManyUpdatesException$=[-3,wP,_S,{[fP]:[`OpsMetadataTooManyUpdatesException`,429],[hP]:mP},[SP],[0]];xP.registerError(t.OpsMetadataTooManyUpdatesException$,RP.OpsMetadataTooManyUpdatesException);t.ParameterAlreadyExists$=[-3,wP,rE,{[fP]:[`ParameterAlreadyExists`,400],[hP]:mP},[SP],[0]];xP.registerError(t.ParameterAlreadyExists$,RP.ParameterAlreadyExists);t.ParameterLimitExceeded$=[-3,wP,NE,{[fP]:[`ParameterLimitExceeded`,429],[hP]:mP},[SP],[0]];xP.registerError(t.ParameterLimitExceeded$,RP.ParameterLimitExceeded);t.ParameterMaxVersionLimitExceeded$=[-3,wP,BE,{[fP]:[`ParameterMaxVersionLimitExceeded`,400],[hP]:mP},[SP],[0]];xP.registerError(t.ParameterMaxVersionLimitExceeded$,RP.ParameterMaxVersionLimitExceeded);t.ParameterNotFound$=[-3,wP,jE,{[fP]:[`ParameterNotFound`,404],[hP]:mP},[SP],[0]];xP.registerError(t.ParameterNotFound$,RP.ParameterNotFound);t.ParameterPatternMismatchException$=[-3,wP,YE,{[fP]:[`ParameterPatternMismatchException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.ParameterPatternMismatchException$,RP.ParameterPatternMismatchException);t.ParameterVersionLabelLimitExceeded$=[-3,wP,Pv,{[fP]:[`ParameterVersionLabelLimitExceeded`,400],[hP]:mP},[SP],[0]];xP.registerError(t.ParameterVersionLabelLimitExceeded$,RP.ParameterVersionLabelLimitExceeded);t.ParameterVersionNotFound$=[-3,wP,Tv,{[fP]:[`ParameterVersionNotFound`,400],[hP]:mP},[SP],[0]];xP.registerError(t.ParameterVersionNotFound$,RP.ParameterVersionNotFound);t.PoliciesLimitExceededException$=[-3,wP,kE,{[fP]:[`PoliciesLimitExceededException`,400],[hP]:mP},[SP],[0]];xP.registerError(t.PoliciesLimitExceededException$,RP.PoliciesLimitExceededException);t.ResourceDataSyncAlreadyExistsException$=[-3,wP,uC,{[fP]:[`ResourceDataSyncAlreadyExists`,400],[hP]:mP},[Hb],[0]];xP.registerError(t.ResourceDataSyncAlreadyExistsException$,RP.ResourceDataSyncAlreadyExistsException);t.ResourceDataSyncConflictException$=[-3,wP,pC,{[fP]:[`ResourceDataSyncConflictException`,409],[hP]:mP},[rg],[0]];xP.registerError(t.ResourceDataSyncConflictException$,RP.ResourceDataSyncConflictException);t.ResourceDataSyncCountExceededException$=[-3,wP,fC,{[fP]:[`ResourceDataSyncCountExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.ResourceDataSyncCountExceededException$,RP.ResourceDataSyncCountExceededException);t.ResourceDataSyncInvalidConfigurationException$=[-3,wP,gC,{[fP]:[`ResourceDataSyncInvalidConfiguration`,400],[hP]:mP},[rg],[0]];xP.registerError(t.ResourceDataSyncInvalidConfigurationException$,RP.ResourceDataSyncInvalidConfigurationException);t.ResourceDataSyncNotFoundException$=[-3,wP,EC,{[fP]:[`ResourceDataSyncNotFound`,404],[hP]:mP},[Hb,mw,rg],[0,0,0]];xP.registerError(t.ResourceDataSyncNotFoundException$,RP.ResourceDataSyncNotFoundException);t.ResourceInUseException$=[-3,wP,_C,{[fP]:[`ResourceInUseException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.ResourceInUseException$,RP.ResourceInUseException);t.ResourceLimitExceededException$=[-3,wP,$C,{[fP]:[`ResourceLimitExceededException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.ResourceLimitExceededException$,RP.ResourceLimitExceededException);t.ResourceNotFoundException$=[-3,wP,FC,{[fP]:[`ResourceNotFoundException`,404],[hP]:mP},[rg],[0]];xP.registerError(t.ResourceNotFoundException$,RP.ResourceNotFoundException);t.ResourcePolicyConflictException$=[-3,wP,QC,{[fP]:[`ResourcePolicyConflictException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.ResourcePolicyConflictException$,RP.ResourcePolicyConflictException);t.ResourcePolicyInvalidParameterException$=[-3,wP,YC,{[fP]:[`ResourcePolicyInvalidParameterException`,400],[hP]:mP},[qE,rg],[64|0,0]];xP.registerError(t.ResourcePolicyInvalidParameterException$,RP.ResourcePolicyInvalidParameterException);t.ResourcePolicyLimitExceededException$=[-3,wP,JC,{[fP]:[`ResourcePolicyLimitExceededException`,400],[hP]:mP},[Pm,Wh,rg],[1,0,0]];xP.registerError(t.ResourcePolicyLimitExceededException$,RP.ResourcePolicyLimitExceededException);t.ResourcePolicyNotFoundException$=[-3,wP,XC,{[fP]:[`ResourcePolicyNotFoundException`,404],[hP]:mP},[rg],[0]];xP.registerError(t.ResourcePolicyNotFoundException$,RP.ResourcePolicyNotFoundException);t.ServiceQuotaExceededException$=[-3,wP,Zb,{[hP]:mP},[rg,Vv,XI,TC,SI],[0,0,0,0,0],3];xP.registerError(t.ServiceQuotaExceededException$,RP.ServiceQuotaExceededException);t.ServiceSettingNotFound$=[-3,wP,sw,{[fP]:[`ServiceSettingNotFound`,400],[hP]:mP},[rg],[0]];xP.registerError(t.ServiceSettingNotFound$,RP.ServiceSettingNotFound);t.StatusUnchanged$=[-3,wP,ww,{[fP]:[`StatusUnchanged`,400],[hP]:mP},[],[]];xP.registerError(t.StatusUnchanged$,RP.StatusUnchanged);t.SubTypeCountLimitExceededException$=[-3,wP,hw,{[fP]:[`SubTypeCountLimitExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.SubTypeCountLimitExceededException$,RP.SubTypeCountLimitExceededException);t.TargetInUseException$=[-3,wP,rA,{[fP]:[`TargetInUseException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.TargetInUseException$,RP.TargetInUseException);t.TargetNotConnected$=[-3,wP,vA,{[fP]:[`TargetNotConnected`,430],[hP]:mP},[rg],[0]];xP.registerError(t.TargetNotConnected$,RP.TargetNotConnected);t.ThrottlingException$=[-3,wP,Zw,{[hP]:mP},[rg,Vv,XI],[0,0,0],1];xP.registerError(t.ThrottlingException$,RP.ThrottlingException);t.TooManyTagsError$=[-3,wP,gA,{[fP]:[`TooManyTagsError`,400],[hP]:mP},[],[]];xP.registerError(t.TooManyTagsError$,RP.TooManyTagsError);t.TooManyUpdates$=[-3,wP,yA,{[fP]:[`TooManyUpdates`,429],[hP]:mP},[rg],[0]];xP.registerError(t.TooManyUpdates$,RP.TooManyUpdates);t.TotalSizeLimitExceededException$=[-3,wP,xA,{[fP]:[`TotalSizeLimitExceeded`,400],[hP]:mP},[rg],[0]];xP.registerError(t.TotalSizeLimitExceededException$,RP.TotalSizeLimitExceededException);t.UnsupportedCalendarException$=[-3,wP,ZA,{[fP]:[`UnsupportedCalendarException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.UnsupportedCalendarException$,RP.UnsupportedCalendarException);t.UnsupportedFeatureRequiredException$=[-3,wP,lR,{[fP]:[`UnsupportedFeatureRequiredException`,400],[hP]:mP},[rg],[0]];xP.registerError(t.UnsupportedFeatureRequiredException$,RP.UnsupportedFeatureRequiredException);t.UnsupportedInventoryItemContextException$=[-3,wP,uR,{[fP]:[`UnsupportedInventoryItemContext`,400],[hP]:mP},[EA,rg],[0,0]];xP.registerError(t.UnsupportedInventoryItemContextException$,RP.UnsupportedInventoryItemContextException);t.UnsupportedInventorySchemaVersionException$=[-3,wP,dR,{[fP]:[`UnsupportedInventorySchemaVersion`,400],[hP]:mP},[rg],[0]];xP.registerError(t.UnsupportedInventorySchemaVersionException$,RP.UnsupportedInventorySchemaVersionException);t.UnsupportedOperatingSystem$=[-3,wP,MR,{[fP]:[`UnsupportedOperatingSystem`,400],[hP]:mP},[rg],[0]];xP.registerError(t.UnsupportedOperatingSystem$,RP.UnsupportedOperatingSystem);t.UnsupportedOperationException$=[-3,wP,AR,{[fP]:[`UnsupportedOperation`,400],[hP]:mP},[rg],[0]];xP.registerError(t.UnsupportedOperationException$,RP.UnsupportedOperationException);t.UnsupportedParameterType$=[-3,wP,kR,{[fP]:[`UnsupportedParameterType`,400],[hP]:mP},[SP],[0]];xP.registerError(t.UnsupportedParameterType$,RP.UnsupportedParameterType);t.UnsupportedPlatformType$=[-3,wP,LR,{[fP]:[`UnsupportedPlatformType`,400],[hP]:mP},[rg],[0]];xP.registerError(t.UnsupportedPlatformType$,RP.UnsupportedPlatformType);t.ValidationException$=[-3,wP,JR,{[fP]:[`ValidationException`,400],[hP]:mP},[rg,Jv],[0,0]];xP.registerError(t.ValidationException$,RP.ValidationException);t.errorTypeRegistries=[TP,xP];var _P=[0,wP,He,8,0];var OP=[0,wP,lf,8,0];var MP=[0,wP,wg,8,0];var DP=[0,wP,Og,8,0];var $P=[0,wP,Ug,8,21];var NP=[0,wP,qg,8,0];var kP=[0,wP,Qg,8,0];var LP=[0,wP,zy,8,0];var UP=[0,wP,lv,8,0];var FP=[0,wP,mv,8,0];var BP=[0,wP,gw,8,0];t.AccountSharingInfo$=[3,wP,jt,0,[$e,ub],[0,0]];t.Activation$=[3,wP,o,0,[ke,qo,rs,qf,DC,nC,Gc,Uc,fr,Ww],[0,0,0,0,1,1,4,2,4,()=>K_]];t.AddTagsToResourceRequest$=[3,wP,nn,0,[SI,TC,Ww],[0,0,()=>K_],3];t.AddTagsToResourceResult$=[3,wP,rn,0,[],[]];t.Alarm$=[3,wP,An,0,[ny],[0],1];t.AlarmConfiguration$=[3,wP,f,0,[Rn,df],[()=>VP,2],1];t.AlarmStateInformation$=[3,wP,Vt,0,[ny,$I],[0,0],2];t.AssociateOpsItemRelatedItemRequest$=[3,wP,ht,0,[tS,Zt,SI,II],[0,0,0,0],4];t.AssociateOpsItemRelatedItemResponse$=[3,wP,It,0,[Fe],[0]];t.Association$=[3,wP,_n,0,[ny,wp,Fe,pn,wc,LA,rh,Ty,fb,Qe,Wb,Lc,fA],[0,0,0,0,0,()=>eO,4,()=>t.AssociationOverview$,0,0,1,1,[1,wP,fA,0,[2,wP,SA,0,0,64|0]]]];t.AssociationDescription$=[3,wP,D,0,[ny,wp,pn,Mc,Xh,zw,Ty,wc,en,nE,Fe,LA,fb,ES,rh,qh,Qe,fg,ig,ao,sb,Xe,jr,sA,Wb,Lc,fA,f,Kw,k],[0,0,0,4,4,()=>t.AssociationStatus$,()=>t.AssociationOverview$,0,0,[()=>SO,0],0,()=>eO,0,()=>t.InstanceAssociationOutputLocation$,4,4,0,0,0,0,0,2,64|0,()=>Q_,1,1,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],()=>t.AlarmConfiguration$,()=>GP,0]];t.AssociationExecution$=[3,wP,re,0,[Fe,pn,Xc,zw,ac,Eo,rh,Xv,f,Kw],[0,0,0,0,0,4,4,0,()=>t.AlarmConfiguration$,()=>GP]];t.AssociationExecutionFilter$=[3,wP,se,0,[Cm,YR,HA],[0,0,0],3];t.AssociationExecutionTarget$=[3,wP,Ee,0,[Fe,pn,Xc,TC,SI,zw,ac,rh,NS],[0,0,0,0,0,0,0,4,()=>t.OutputSource$]];t.AssociationExecutionTargetsFilter$=[3,wP,ve,0,[Cm,YR],[0,0],2];t.AssociationFilter$=[3,wP,Pe,0,[yP,CP],[0,0],2];t.AssociationOverview$=[3,wP,Je,0,[zw,ac,qt],[0,0,128|1]];t.AssociationStatus$=[3,wP,Bt,0,[Mc,ny,rg,Le],[4,0,0,0],3];t.AssociationVersionInfo$=[3,wP,mn,0,[Fe,pn,fr,ny,wc,nE,LA,fb,ES,Qe,fg,ig,ao,sb,Xe,jr,sA,Wb,Lc,fA,k],[0,0,4,0,0,[()=>SO,0],()=>eO,0,()=>t.InstanceAssociationOutputLocation$,0,0,0,0,0,2,64|0,()=>Q_,1,1,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],0]];t.AttachmentContent$=[3,wP,C,0,[ny,Bw,yd,vd,VA],[0,1,0,0,0]];t.AttachmentInformation$=[3,wP,qe,0,[ny],[0]];t.AttachmentsSource$=[3,wP,Jt,0,[Cm,eP,ny],[0,64|0,0]];t.AutomationExecution$=[3,wP,Re,0,[ue,ta,wc,ul,Yc,Se,Ab,Ib,nE,XS,xl,ty,oE,zc,go,Gn,AA,LA,fA,vI,ig,fg,FA,sA,aE,f,Kw,uA,Xt,yw,Gv,tS,Fe,so,tP],[0,0,0,4,4,0,()=>G_,2,[2,wP,Dt,0,0,64|0],[2,wP,Dt,0,0,64|0],0,0,0,0,0,0,0,()=>eO,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],()=>t.ResolvedTargets$,0,0,0,()=>Q_,()=>t.ProgressCounters$,()=>t.AlarmConfiguration$,()=>GP,0,0,4,()=>F_,0,0,0,[2,wP,Dt,0,0,64|0]]];t.AutomationExecutionFilter$=[3,wP,le,0,[Cm,eP],[0,64|0],2];t.AutomationExecutionInputs$=[3,wP,de,0,[nE,AA,LA,fA,sA,uA],[[2,wP,Dt,0,0,64|0],0,()=>eO,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],()=>Q_,0]];t.AutomationExecutionMetadata$=[3,wP,me,0,[ue,ta,wc,Se,ul,Yc,zc,oh,XS,ty,oE,go,Gn,xl,AA,LA,fA,vI,ig,fg,FA,ln,f,Kw,uA,Xt,yw,Gv,tS,Fe,so],[0,0,0,0,4,4,0,0,[2,wP,Dt,0,0,64|0],0,0,0,0,0,0,()=>eO,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],()=>t.ResolvedTargets$,0,0,0,0,()=>t.AlarmConfiguration$,()=>GP,0,0,4,()=>F_,0,0,0]];t.AutomationExecutionPreview$=[3,wP,ye,0,[Xb,bI,bA,Yw],[128|1,64|0,()=>Z_,1]];t.BaselineOverride$=[3,wP,Hn,0,[zS,mu,kt,Pt,_t,HC,VC,Mt,qw,Yt],[0,()=>t.PatchFilterGroup$,()=>t.PatchRuleGroup$,64|0,0,64|0,0,2,[()=>w_,0],0]];t.CancelCommandRequest$=[3,wP,ar,0,[Ar,Vp],[0,64|0],1];t.CancelCommandResult$=[3,wP,cr,0,[],[]];t.CancelMaintenanceWindowExecutionRequest$=[3,wP,Ur,0,[sP],[0],1];t.CancelMaintenanceWindowExecutionResult$=[3,wP,Fr,0,[sP],[0]];t.CloudWatchOutputConfig$=[3,wP,To,0,[Po,xo],[0,2]];t.Command$=[3,wP,Vn,0,[Ar,ta,wc,Do,Fc,nE,Vp,LA,AC,zw,ab,FS,kS,US,ig,fg,Jw,sr,Hc,Cc,ew,ay,To,TA,f,Kw],[0,0,0,0,4,[()=>SO,0],64|0,()=>eO,4,0,0,0,0,0,0,0,1,1,1,1,0,()=>t.NotificationConfig$,()=>t.CloudWatchOutputConfig$,1,()=>t.AlarmConfiguration$,()=>GP]];t.CommandFilter$=[3,wP,Cr,0,[yP,CP],[0,0],2];t.CommandInvocation$=[3,wP,_r,0,[Ar,wp,Zp,Do,ta,wc,AC,zw,ab,CA,Yb,wb,Jr,ew,ay,To],[0,0,0,0,0,0,4,0,0,0,0,0,()=>gT,0,()=>t.NotificationConfig$,()=>t.CloudWatchOutputConfig$]];t.CommandPlugin$=[3,wP,no,0,[ny,zw,ab,oC,tI,PC,ZS,Yb,wb,FS,kS,US],[0,0,0,1,4,4,0,0,0,0,0,0]];t.ComplianceExecutionSummary$=[3,wP,vr,0,[dl,Xc,fl],[4,0,0],1];t.ComplianceItem$=[3,wP,Or,0,[bo,SI,TC,Id,qA,zw,$w,cl,$c],[0,0,0,0,0,0,0,()=>t.ComplianceExecutionSummary$,128|0]];t.ComplianceItemEntry$=[3,wP,Rr,0,[$w,zw,Id,qA,$c],[0,0,0,0,128|0],2];t.ComplianceStringFilter$=[3,wP,lo,0,[Cm,eP,HA],[0,[()=>IT,0],0]];t.ComplianceSummaryItem$=[3,wP,fo,0,[bo,So,ly],[0,()=>t.CompliantSummary$,()=>t.NonCompliantSummary$]];t.CompliantSummary$=[3,wP,So,0,[dr,iw],[1,()=>t.SeveritySummary$]];t.CreateActivationRequest$=[3,wP,Xn,0,[qf,qo,rs,DC,Gc,Ww,kC],[0,0,0,1,4,()=>K_,()=>x_],1];t.CreateActivationResult$=[3,wP,Zn,0,[ke,h],[0,0]];t.CreateAssociationBatchRequest$=[3,wP,Kn,0,[hl,k],[[()=>wT,0],0],1];t.CreateAssociationBatchRequestEntry$=[3,wP,Qn,0,[ny,wp,nE,en,wc,LA,fb,ES,Qe,fg,ig,ao,sb,Xe,jr,sA,Wb,Lc,fA,f],[0,0,[()=>SO,0],0,0,()=>eO,0,()=>t.InstanceAssociationOutputLocation$,0,0,0,0,0,2,64|0,()=>Q_,1,1,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],()=>t.AlarmConfiguration$],1];t.CreateAssociationBatchResult$=[3,wP,Jn,0,[Hw,Il],[[()=>WP,0],[()=>LT,0]]];t.CreateAssociationRequest$=[3,wP,er,0,[ny,wc,wp,nE,LA,fb,ES,Qe,en,fg,ig,ao,sb,Xe,jr,sA,Wb,Lc,fA,Ww,f,k],[0,0,0,[()=>SO,0],()=>eO,0,()=>t.InstanceAssociationOutputLocation$,0,0,0,0,0,0,2,64|0,()=>Q_,1,1,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],()=>K_,()=>t.AlarmConfiguration$,0],1];t.CreateAssociationResult$=[3,wP,tr,0,[D],[[()=>t.AssociationDescription$,0]]];t.CreateDocumentRequest$=[3,wP,mr,0,[No,ny,_I,Mn,ra,XR,mc,Bi,$A,Ww],[0,0,()=>OT,()=>oT,0,0,0,0,0,()=>K_],2];t.CreateDocumentResult$=[3,wP,hr,0,[Ei],[[()=>t.DocumentDescription$,0]]];t.CreateMaintenanceWindowRequest$=[3,wP,Br,0,[ny,Mw,Lc,Bo,dn,qo,pb,Wc,Sw,Wb,Io,Ww],[0,0,1,1,2,[()=>MP,0],0,0,0,1,[0,4],()=>K_],5];t.CreateMaintenanceWindowResult$=[3,wP,qr,0,[lP],[0]];t.CreateOpsItemRequest$=[3,wP,Gr,0,[qo,jw,qA,yS,Oy,Ay,Uv,qC,Ww,Oo,$w,Kt,be,hv,fE,$e],[0,0,0,0,()=>yO,()=>qx,1,()=>O_,()=>K_,0,0,4,4,4,4,0],3];t.CreateOpsItemResponse$=[3,wP,Wr,0,[tS,Hy],[0,0]];t.CreateOpsMetadataRequest$=[3,wP,Qr,0,[TC,ey,Ww],[0,()=>dO,()=>K_],1];t.CreateOpsMetadataResult$=[3,wP,Yr,0,[CS],[0]];t.CreatePatchBaselineRequest$=[3,wP,Zr,0,[ny,zS,mu,kt,Pt,_t,Mt,HC,VC,qo,qw,Yt,Io,Ww],[0,0,()=>t.PatchFilterGroup$,()=>t.PatchRuleGroup$,64|0,0,2,64|0,0,0,[()=>w_,0],0,[0,4],()=>K_],1];t.CreatePatchBaselineResult$=[3,wP,eo,0,[Un],[0]];t.CreateResourceDataSyncRequest$=[3,wP,oo,0,[Hb,db,mw,fw],[0,()=>t.ResourceDataSyncS3Destination$,0,()=>t.ResourceDataSyncSource$],1];t.CreateResourceDataSyncResult$=[3,wP,io,0,[],[]];t.Credentials$=[3,wP,Fo,0,[ze,qI,Ew,ml],[0,[()=>_P,0],[()=>BP,0],4],4];t.DeleteActivationRequest$=[3,wP,oi,0,[ke],[0],1];t.DeleteActivationResult$=[3,wP,ii,0,[],[]];t.DeleteAssociationRequest$=[3,wP,si,0,[ny,wp,Fe],[0,0,0]];t.DeleteAssociationResult$=[3,wP,ai,0,[],[]];t.DeleteDocumentRequest$=[3,wP,wi,0,[ny,wc,XR,Fl],[0,0,0,2],1];t.DeleteDocumentResult$=[3,wP,Ai,0,[],[]];t.DeleteInventoryRequest$=[3,wP,gs,0,[EA,cb,Wa,Io],[0,0,2,[0,4]],1];t.DeleteInventoryResult$=[3,wP,ys,0,[Vi,EA,dc],[0,0,()=>t.InventoryDeletionSummary$]];t.DeleteMaintenanceWindowRequest$=[3,wP,qs,0,[lP],[0],1];t.DeleteMaintenanceWindowResult$=[3,wP,js,0,[lP],[0]];t.DeleteOpsItemRequest$=[3,wP,ia,0,[tS],[0],1];t.DeleteOpsItemResponse$=[3,wP,la,0,[],[]];t.DeleteOpsMetadataRequest$=[3,wP,ma,0,[CS],[0],1];t.DeleteOpsMetadataResult$=[3,wP,ha,0,[],[]];t.DeleteParameterRequest$=[3,wP,La,0,[ny],[0],1];t.DeleteParameterResult$=[3,wP,Ua,0,[],[]];t.DeleteParametersRequest$=[3,wP,Fa,0,[wy],[64|0],1];t.DeleteParametersResult$=[3,wP,Ba,0,[ga,cf],[64|0,64|0]];t.DeletePatchBaselineRequest$=[3,wP,Ca,0,[Un],[0],1];t.DeletePatchBaselineResult$=[3,wP,Ia,0,[Un],[0]];t.DeleteResourceDataSyncRequest$=[3,wP,Ja,0,[Hb,mw],[0,0],1];t.DeleteResourceDataSyncResult$=[3,wP,Xa,0,[],[]];t.DeleteResourcePolicyRequest$=[3,wP,tc,0,[Wv,xE,RE],[0,0,0],3];t.DeleteResourcePolicyResponse$=[3,wP,nc,0,[],[]];t.DeregisterManagedInstanceRequest$=[3,wP,As,0,[wp],[0],1];t.DeregisterManagedInstanceResult$=[3,wP,Rs,0,[],[]];t.DeregisterPatchBaselineForPatchGroupRequest$=[3,wP,Ea,0,[Un,IE],[0,0],2];t.DeregisterPatchBaselineForPatchGroupResult$=[3,wP,va,0,[Un,IE],[0,0]];t.DeregisterTargetFromMaintenanceWindowRequest$=[3,wP,gc,0,[lP,dP,Ow],[0,0,2],2];t.DeregisterTargetFromMaintenanceWindowResult$=[3,wP,yc,0,[lP,dP],[0,0]];t.DeregisterTaskFromMaintenanceWindowRequest$=[3,wP,Sc,0,[lP,pP],[0,0],2];t.DeregisterTaskFromMaintenanceWindowResult$=[3,wP,Ec,0,[lP,pP],[0,0]];t.DescribeActivationsFilter$=[3,wP,Zo,0,[Tl,$l],[0,64|0]];t.DescribeActivationsRequest$=[3,wP,ci,0,[Ul,gg,vy],[()=>AT,1,0]];t.DescribeActivationsResult$=[3,wP,li,0,[Ve,vy],[()=>HP,0]];t.DescribeAssociationExecutionsRequest$=[3,wP,Ho,0,[Fe,Ul,gg,vy],[0,[()=>KP,0],1,0],1];t.DescribeAssociationExecutionsResult$=[3,wP,Vo,0,[Ae,vy],[[()=>QP,0],0]];t.DescribeAssociationExecutionTargetsRequest$=[3,wP,Qo,0,[Fe,Xc,Ul,gg,vy],[0,0,[()=>YP,0],1,0],2];t.DescribeAssociationExecutionTargetsResult$=[3,wP,Yo,0,[we,vy],[[()=>JP,0],0]];t.DescribeAssociationRequest$=[3,wP,ui,0,[ny,wp,Fe,pn],[0,0,0,0]];t.DescribeAssociationResult$=[3,wP,di,0,[D],[[()=>t.AssociationDescription$,0]]];t.DescribeAutomationExecutionsRequest$=[3,wP,Go,0,[Ul,gg,vy],[()=>sT,1,0]];t.DescribeAutomationExecutionsResult$=[3,wP,Wo,0,[he,vy],[()=>cT,0]];t.DescribeAutomationStepExecutionsRequest$=[3,wP,fi,0,[ue,Ul,vy,gg,BC],[0,()=>H_,0,1,2],1];t.DescribeAutomationStepExecutionsResult$=[3,wP,mi,0,[Ab,vy],[()=>G_,0]];t.DescribeAvailablePatchesRequest$=[3,wP,ni,0,[Ul,gg,vy],[()=>v_,1,0]];t.DescribeAvailablePatchesResult$=[3,wP,ri,0,[Ov,vy],[()=>E_,0]];t.DescribeDocumentPermissionRequest$=[3,wP,Ii,0,[ny,vv,gg,vy],[0,0,1,0],2];t.DescribeDocumentPermissionResponse$=[3,wP,bi,0,[Ne,zt,vy],[[()=>qP,0],[()=>zP,0],0]];t.DescribeDocumentRequest$=[3,wP,Ri,0,[ny,wc,XR],[0,0,0],1];t.DescribeDocumentResult$=[3,wP,Pi,0,[kc],[[()=>t.DocumentDescription$,0]]];t.DescribeEffectiveInstanceAssociationsRequest$=[3,wP,Ni,0,[wp,gg,vy],[0,1,0],1];t.DescribeEffectiveInstanceAssociationsResult$=[3,wP,ki,0,[On,vy],[()=>FT,0]];t.DescribeEffectivePatchesForPatchBaselineRequest$=[3,wP,Ui,0,[Un,gg,vy],[0,1,0],1];t.DescribeEffectivePatchesForPatchBaselineResult$=[3,wP,Fi,0,[nl,vy],[()=>NT,0]];t.DescribeInstanceAssociationsStatusRequest$=[3,wP,Wi,0,[wp,gg,vy],[0,1,0],1];t.DescribeInstanceAssociationsStatusResult$=[3,wP,Ki,0,[Nd,vy],[()=>BT,0]];t.DescribeInstanceInformationRequest$=[3,wP,Zi,0,[_p,Ul,gg,vy],[[()=>jT,0],[()=>VT,0],1,0]];t.DescribeInstanceInformationResult$=[3,wP,es,0,[Lp,vy],[[()=>HT,0],0]];t.DescribeInstancePatchesRequest$=[3,wP,is,0,[wp,Ul,vy,gg],[0,()=>v_,0,1],1];t.DescribeInstancePatchesResult$=[3,wP,ss,0,[Ov,vy],[()=>p_,0]];t.DescribeInstancePatchStatesForPatchGroupRequest$=[3,wP,ds,0,[IE,Ul,vy,gg],[0,()=>GT,0,1],1];t.DescribeInstancePatchStatesForPatchGroupResult$=[3,wP,ps,0,[vf,vy],[[()=>QT,0],0]];t.DescribeInstancePatchStatesRequest$=[3,wP,fs,0,[Vp,vy,gg],[64|0,0,1],1];t.DescribeInstancePatchStatesResult$=[3,wP,ms,0,[vf,vy],[[()=>KT,0],0]];t.DescribeInstancePropertiesRequest$=[3,wP,as,0,[mf,kl,gg,vy],[[()=>JT,0],[()=>ZT,0],1,0]];t.DescribeInstancePropertiesResult$=[3,wP,cs,0,[_f,vy],[[()=>YT,0],0]];t.DescribeInventoryDeletionsRequest$=[3,wP,Yi,0,[Vi,vy,gg],[0,0,1]];t.DescribeInventoryDeletionsResult$=[3,wP,Ji,0,[pp,vy],[()=>tx,0]];t.DescribeMaintenanceWindowExecutionsRequest$=[3,wP,_s,0,[lP,Ul,gg,vy],[0,()=>gx,1,0],1];t.DescribeMaintenanceWindowExecutionsResult$=[3,wP,Os,0,[iP,vy],[()=>px,0]];t.DescribeMaintenanceWindowExecutionTaskInvocationsRequest$=[3,wP,$s,0,[sP,tA,Ul,gg,vy],[0,0,()=>gx,1,0],2];t.DescribeMaintenanceWindowExecutionTaskInvocationsResult$=[3,wP,Ns,0,[cP,vy],[[()=>hx,0],0]];t.DescribeMaintenanceWindowExecutionTasksRequest$=[3,wP,ks,0,[sP,Ul,gg,vy],[0,()=>gx,1,0],1];t.DescribeMaintenanceWindowExecutionTasksResult$=[3,wP,Ls,0,[aP,vy],[()=>fx,0]];t.DescribeMaintenanceWindowScheduleRequest$=[3,wP,Gs,0,[lP,LA,SI,Ul,gg,vy],[0,()=>eO,0,()=>v_,1,0]];t.DescribeMaintenanceWindowScheduleResult$=[3,wP,Ws,0,[Tw,vy],[()=>B_,0]];t.DescribeMaintenanceWindowsForTargetRequest$=[3,wP,Fs,0,[LA,SI,gg,vy],[()=>eO,0,1,0],2];t.DescribeMaintenanceWindowsForTargetResult$=[3,wP,Bs,0,[uP,vy],[()=>Ex,0]];t.DescribeMaintenanceWindowsRequest$=[3,wP,zs,0,[Ul,gg,vy],[()=>gx,1,0]];t.DescribeMaintenanceWindowsResult$=[3,wP,Hs,0,[uP,vy],[[()=>Sx,0],0]];t.DescribeMaintenanceWindowTargetsRequest$=[3,wP,Qs,0,[lP,Ul,gg,vy],[0,()=>gx,1,0],1];t.DescribeMaintenanceWindowTargetsResult$=[3,wP,Ys,0,[LA,vy],[[()=>vx,0],0]];t.DescribeMaintenanceWindowTasksRequest$=[3,wP,Js,0,[lP,Ul,gg,vy],[0,()=>gx,1,0],1];t.DescribeMaintenanceWindowTasksResult$=[3,wP,Xs,0,[BA,vy],[[()=>Cx,0],0]];t.DescribeOpsItemsRequest$=[3,wP,ua,0,[Zy,gg,vy],[()=>Fx,1,0]];t.DescribeOpsItemsResponse$=[3,wP,da,0,[vy,hS],[0,()=>Wx]];t.DescribeParametersRequest$=[3,wP,qa,0,[Ul,mE,gg,vy,Uw],[()=>o_,()=>s_,1,0,2]];t.DescribeParametersResult$=[3,wP,ja,0,[nE,vy],[()=>t_,0]];t.DescribePatchBaselinesRequest$=[3,wP,ba,0,[Ul,gg,vy],[()=>v_,1,0]];t.DescribePatchBaselinesResult$=[3,wP,wa,0,[Fn,vy],[()=>u_,0]];t.DescribePatchGroupsRequest$=[3,wP,Pa,0,[gg,Ul,vy],[1,()=>v_,0]];t.DescribePatchGroupsResult$=[3,wP,Ta,0,[Zg,vy],[()=>y_,0]];t.DescribePatchGroupStateRequest$=[3,wP,_a,0,[IE],[0],1];t.DescribePatchGroupStateResult$=[3,wP,Oa,0,[mm,sm,im,am,cm,lm,om,um,fm,rm,pm,dm,nm],[1,1,1,1,1,1,1,1,1,1,1,1,1]];t.DescribePatchPropertiesRequest$=[3,wP,Na,0,[zS,Bv,cv,gg,vy],[0,0,0,1,0],2];t.DescribePatchPropertiesResult$=[3,wP,ka,0,[zv,vy],[[1,wP,KE,0,128|0],0]];t.DescribeSessionsRequest$=[3,wP,cc,0,[$I,gg,vy,Ul],[0,1,0,()=>q_],1];t.DescribeSessionsResponse$=[3,wP,lc,0,[kw,vy],[()=>j_,0]];t.DisassociateOpsItemRelatedItemRequest$=[3,wP,aa,0,[tS,Fe],[0,0],2];t.DisassociateOpsItemRelatedItemResponse$=[3,wP,ca,0,[],[]];t.DocumentDefaultVersionDescription$=[3,wP,_i,0,[ny,xc,Tc],[0,0,0]];t.DocumentDescription$=[3,wP,Ei,0,[Fw,yd,vd,ny,ra,XR,tE,fr,zw,Ob,wc,qo,nE,Iv,mc,Rw,Zh,xc,Bi,$A,Ww,je,_I,Nn,OC,Sn,sv,eI,Oo,Er],[0,0,0,0,0,0,0,4,0,0,0,0,[()=>_T,0],[()=>R_,0],0,0,0,0,0,0,()=>K_,[()=>rT,0],()=>OT,0,[()=>U_,0],0,0,0,64|0,64|0]];t.DocumentFilter$=[3,wP,ji,0,[yP,CP],[0,0],2];t.DocumentIdentifier$=[3,wP,Es,0,[ny,fr,ra,tE,XR,Iv,wc,mc,Rw,Bi,$A,Ww,_I,eI,Nn],[0,4,0,0,0,[()=>R_,0],0,0,0,0,0,()=>K_,()=>OT,0,0]];t.DocumentKeyValuesFilter$=[3,wP,Cs,0,[Cm,eP],[0,64|0]];t.DocumentMetadataResponseInfo$=[3,wP,Ps,0,[ZC],[()=>DT]];t.DocumentParameter$=[3,wP,Ga,0,[ny,HA,qo,_c],[0,0,0,0]];t.DocumentRequires$=[3,wP,ic,0,[ny,nP,EI,XR],[0,0,0,0],1];t.DocumentReviewCommentSource$=[3,wP,Qa,0,[HA,No],[0,0]];t.DocumentReviewerResponseSource$=[3,wP,oc,0,[wo,KR,eI,Do,MI],[4,4,0,()=>MT,0]];t.DocumentReviews$=[3,wP,sc,0,[Cn,Do],[0,()=>MT],1];t.DocumentVersionInfo$=[3,wP,Ac,0,[ny,ra,wc,XR,fr,dp,Bi,zw,Ob,eI],[0,0,0,0,4,2,0,0,0,0]];t.EffectivePatch$=[3,wP,il,0,[Dv,gv],[()=>t.Patch$,()=>t.PatchStatus$]];t.FailedCreateAssociation$=[3,wP,wl,0,[yl,rg,Ll],[[()=>t.CreateAssociationBatchRequestEntry$,0],0,0]];t.FailureDetails$=[3,wP,Pl,0,[Ol,Dl,$c],[0,0,[2,wP,Dt,0,0,64|0]]];t.GetAccessTokenRequest$=[3,wP,Vl,0,[Lt],[0],1];t.GetAccessTokenResponse$=[3,wP,Gl,0,[Fo,Ft],[[()=>t.Credentials$,0],0]];t.GetAutomationExecutionRequest$=[3,wP,jl,0,[ue],[0],1];t.GetAutomationExecutionResult$=[3,wP,zl,0,[Re],[()=>t.AutomationExecution$]];t.GetCalendarStateRequest$=[3,wP,Jl,0,[jr,cn],[64|0,0],1];t.GetCalendarStateResponse$=[3,wP,Xl,0,[$I,cn,Cy],[0,0,0]];t.GetCommandInvocationRequest$=[3,wP,Kl,0,[Ar,wp,zE],[0,0,0],2];t.GetCommandInvocationResult$=[3,wP,Ql,0,[Ar,wp,Do,ta,wc,zE,oC,ll,Jc,Qc,zw,ab,Kb,Yb,mb,wb,To],[0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,()=>t.CloudWatchOutputConfig$]];t.GetConnectionStatusRequest$=[3,wP,Zl,0,[FA],[0],1];t.GetConnectionStatusResponse$=[3,wP,eu,0,[FA,zw],[0,0]];t.GetDefaultPatchBaselineRequest$=[3,wP,ou,0,[zS],[0]];t.GetDefaultPatchBaselineResult$=[3,wP,iu,0,[Un,zS],[0,0]];t.GetDeployablePatchSnapshotForInstanceRequest$=[3,wP,au,0,[wp,$b,Hn,HR],[0,0,[()=>t.BaselineOverride$,0],2],2];t.GetDeployablePatchSnapshotForInstanceResult$=[3,wP,cu,0,[wp,$b,lb,qv],[0,0,0,0]];t.GetDocumentRequest$=[3,wP,lu,0,[ny,XR,wc,Bi],[0,0,0,0],1];t.GetDocumentResult$=[3,wP,uu,0,[ny,fr,ra,XR,wc,zw,Ob,No,mc,Bi,_I,P,eI],[0,4,0,0,0,0,0,0,0,0,()=>OT,[()=>nT,0],0]];t.GetExecutionPreviewRequest$=[3,wP,pu,0,[rl],[0],1];t.GetExecutionPreviewResponse$=[3,wP,fu,0,[rl,qc,zw,qb,sl],[0,4,0,0,()=>t.ExecutionPreview$]];t.GetInventoryRequest$=[3,wP,gu,0,[Ul,bn,Qv,vy,gg],[[()=>rx,0],[()=>ex,0],[()=>L_,0],0,1]];t.GetInventoryResult$=[3,wP,yu,0,[Sl,vy],[[()=>ux,0],0]];t.GetInventorySchemaRequest$=[3,wP,Eu,0,[EA,vy,gg,wn,bw],[0,0,1,2,2]];t.GetInventorySchemaResult$=[3,wP,vu,0,[Dw,vy],[[()=>lx,0],0]];t.GetMaintenanceWindowExecutionRequest$=[3,wP,bu,0,[sP],[0],1];t.GetMaintenanceWindowExecutionResult$=[3,wP,wu,0,[sP,oA,zw,ab,Iw,pl],[0,64|0,0,0,4,4]];t.GetMaintenanceWindowExecutionTaskInvocationRequest$=[3,wP,Pu,0,[sP,tA,Kp],[0,0,0],3];t.GetMaintenanceWindowExecutionTaskInvocationResult$=[3,wP,Tu,0,[sP,eA,Kp,Xc,NA,nE,zw,ab,Iw,pl,zy,dP],[0,0,0,0,0,[()=>DP,0],0,0,4,4,[()=>LP,0],0]];t.GetMaintenanceWindowExecutionTaskRequest$=[3,wP,xu,0,[sP,tA],[0,0],2];t.GetMaintenanceWindowExecutionTaskResult$=[3,wP,_u,0,[sP,eA,Qw,ew,HA,RA,Uv,ig,fg,zw,ab,Iw,pl,f,Kw],[0,0,0,0,0,[()=>Ix,0],1,0,0,0,0,4,4,()=>t.AlarmConfiguration$,()=>GP]];t.GetMaintenanceWindowRequest$=[3,wP,Ou,0,[lP],[0],1];t.GetMaintenanceWindowResult$=[3,wP,Mu,0,[lP,ny,qo,pb,Wc,Mw,Sw,Wb,dy,Lc,Bo,dn,gl,fr,cg],[0,0,[()=>MP,0],0,0,0,0,1,0,1,1,2,2,4,4]];t.GetMaintenanceWindowTaskRequest$=[3,wP,$u,0,[lP,pP],[0,0],2];t.GetMaintenanceWindowTaskResult$=[3,wP,Nu,0,[lP,pP,LA,Qw,tw,NA,RA,nA,Uv,ig,fg,ih,ny,qo,or,f],[0,0,()=>eO,0,0,0,[()=>uO,0],[()=>t.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>t.LoggingInfo$,0,[()=>MP,0],0,()=>t.AlarmConfiguration$]];t.GetOpsItemRequest$=[3,wP,Lu,0,[tS,Hy],[0,0],1];t.GetOpsItemResponse$=[3,wP,Uu,0,[SS],[()=>t.OpsItem$]];t.GetOpsMetadataRequest$=[3,wP,Bu,0,[CS,gg,vy],[0,1,0],1];t.GetOpsMetadataResult$=[3,wP,qu,0,[TC,ey,vy],[0,()=>dO,0]];t.GetOpsSummaryRequest$=[3,wP,zu,0,[Hb,Ul,bn,Qv,vy,gg],[0,[()=>$x,0],[()=>Ox,0],[()=>Jx,0],0,1]];t.GetOpsSummaryResult$=[3,wP,Hu,0,[Sl,vy],[[()=>Dx,0],0]];t.GetParameterHistoryRequest$=[3,wP,nd,0,[ny,oP,gg,vy],[0,2,1,0],1];t.GetParameterHistoryResult$=[3,wP,rd,0,[nE,vy],[[()=>Xx,0],0]];t.GetParameterRequest$=[3,wP,od,0,[ny,oP],[0,2],1];t.GetParameterResult$=[3,wP,id,0,[Mv],[[()=>t.Parameter$,0]]];t.GetParametersByPathRequest$=[3,wP,Ju,0,[$v,AI,mE,oP,gg,vy],[0,2,()=>s_,2,1,0],1];t.GetParametersByPathResult$=[3,wP,Xu,0,[nE,vy],[[()=>e_,0],0]];t.GetParametersRequest$=[3,wP,sd,0,[wy,oP],[64|0,2],1];t.GetParametersResult$=[3,wP,ad,0,[nE,cf],[[()=>e_,0],64|0]];t.GetPatchBaselineForPatchGroupRequest$=[3,wP,Ku,0,[IE,zS],[0,0],1];t.GetPatchBaselineForPatchGroupResult$=[3,wP,Qu,0,[Un,IE,zS],[0,0,0]];t.GetPatchBaselineRequest$=[3,wP,Zu,0,[Un],[0],1];t.GetPatchBaselineResult$=[3,wP,ed,0,[Un,ny,zS,mu,kt,Pt,_t,Mt,HC,VC,AE,fr,cg,qo,qw,Yt],[0,0,0,()=>t.PatchFilterGroup$,()=>t.PatchRuleGroup$,64|0,0,2,64|0,0,64|0,4,4,0,[()=>w_,0],0]];t.GetResourcePoliciesRequest$=[3,wP,ud,0,[Wv,vy,gg],[0,0,1],1];t.GetResourcePoliciesResponse$=[3,wP,fd,0,[vy,kv],[0,()=>UT]];t.GetResourcePoliciesResponseEntry$=[3,wP,dd,0,[xE,RE,Lv],[0,0,0]];t.GetServiceSettingRequest$=[3,wP,hd,0,[Mb],[0],1];t.GetServiceSettingResult$=[3,wP,gd,0,[lw],[()=>t.ServiceSetting$]];t.InstanceAggregatedAssociationOverview$=[3,wP,wd,0,[ac,Dd],[0,128|1]];t.InstanceAssociation$=[3,wP,Bd,0,[Fe,wp,No,pn],[0,0,0,0]];t.InstanceAssociationOutputLocation$=[3,wP,_d,0,[Ub],[()=>t.S3OutputLocation$]];t.InstanceAssociationOutputUrl$=[3,wP,Od,0,[Jb],[()=>t.S3OutputUrl$]];t.InstanceAssociationStatusInfo$=[3,wP,kd,0,[Fe,ny,wc,pn,wp,Kc,zw,ac,cl,Vc,VS,Qe],[0,0,0,0,0,4,0,0,0,0,()=>t.InstanceAssociationOutputUrl$,0]];t.InstanceInfo$=[3,wP,Gp,0,[sn,yn,Hr,Gf,jd,Sg,bv,HE,Rv,SI],[0,0,0,0,[()=>OP,0],0,0,0,0,0]];t.InstanceInformation$=[3,wP,Wp,0,[wp,Sv,xh,yn,Xp,bv,HE,Rv,ke,qf,sC,SI,ny,lf,Hr,Bt,xm,Bh,Je,Nb,Cw],[0,0,4,0,2,0,0,0,0,0,4,0,0,[()=>OP,0],0,0,4,4,()=>t.InstanceAggregatedAssociationOverview$,0,0]];t.InstanceInformationFilter$=[3,wP,xp,0,[yP,IP],[0,[()=>zT,0]],2];t.InstanceInformationStringFilter$=[3,wP,jp,0,[Cm,eP],[0,[()=>zT,0]],2];t.InstancePatchState$=[3,wP,Pf,0,[wp,IE,Un,BS,Uy,QS,$b,af,zy,zd,nf,Ef,$f,ag,bl,wR,oy,Qt,hh,zC,zr,Vb,OS],[0,0,0,4,4,0,0,0,[()=>LP,0],1,1,1,1,1,1,1,1,1,4,0,1,1,1],6];t.InstancePatchStateFilter$=[3,wP,Cf,0,[Cm,eP,HA],[0,64|0,0],3];t.InstanceProperty$=[3,wP,Of,0,[ny,wp,Xf,jf,wm,Wf,Pn,lf,Jh,Sv,xh,yn,bv,HE,Rv,ke,qf,sC,SI,Hr,Bt,xm,Bh,Je,Nb,Cw],[0,0,0,0,0,0,0,[()=>OP,0],4,0,4,0,0,0,0,0,0,4,0,0,0,4,4,()=>t.InstanceAggregatedAssociationOverview$,0,0]];t.InstancePropertyFilter$=[3,wP,ff,0,[yP,IP],[0,[()=>XT,0]],2];t.InstancePropertyStringFilter$=[3,wP,wf,0,[Cm,eP,YS],[0,[()=>XT,0],0],2];t.InventoryAggregator$=[3,wP,qd,0,[Cl,bn,Bl],[0,[()=>ex,0],[()=>ix,0]]];t.InventoryDeletionStatusItem$=[3,wP,ip,0,[Vi,EA,uc,Fh,jh,dc,Gh],[0,0,4,0,0,()=>t.InventoryDeletionSummary$,4]];t.InventoryDeletionSummary$=[3,wP,rp,0,[Xw,rC,kb],[1,1,()=>nx]];t.InventoryDeletionSummaryItem$=[3,wP,sp,0,[nP,Uo,rC],[0,1,1]];t.InventoryFilter$=[3,wP,Cp,0,[Cm,eP,HA],[0,[()=>ox,0],0],2];t.InventoryGroup$=[3,wP,Ip,0,[ny,Ul],[0,[()=>rx,0]],2];t.InventoryItem$=[3,wP,Qp,0,[EA,Rw,Co,wr,No,Lo],[0,0,0,0,[1,wP,Tp,0,128|0],128|0],3];t.InventoryItemAttribute$=[3,wP,Ap,0,[ny,Ic],[0,0],2];t.InventoryItemSchema$=[3,wP,qp,0,[EA,Dn,nP,ra],[0,[()=>sx,0],0,0],2];t.InventoryResultEntity$=[3,wP,Nf,0,[Id,Dc],[0,()=>lO]];t.InventoryResultItem$=[3,wP,Ff,0,[EA,Rw,No,Co,wr],[0,0,[1,wP,Tp,0,128|0],0,0],3];t.LabelParameterVersionRequest$=[3,wP,Oh,0,[ny,eg,xv],[0,64|0,1],2];t.LabelParameterVersionResult$=[3,wP,Mh,0,[Jp,xv],[64|0,1]];t.ListAssociationsRequest$=[3,wP,_m,0,[Te,gg,vy],[[()=>XP,0],1,0]];t.ListAssociationsResult$=[3,wP,Om,0,[On,vy],[[()=>eT,0],0]];t.ListAssociationVersionsRequest$=[3,wP,Dm,0,[Fe,gg,vy],[0,1,0],1];t.ListAssociationVersionsResult$=[3,wP,$m,0,[En,vy],[[()=>tT,0],0]];t.ListCommandInvocationsRequest$=[3,wP,Lm,0,[Ar,wp,gg,vy,Ul,$c],[0,0,1,0,()=>fT,2]];t.ListCommandInvocationsResult$=[3,wP,Um,0,[Mr,vy],[()=>mT,0]];t.ListCommandsRequest$=[3,wP,jm,0,[Ar,wp,gg,vy,Ul],[0,0,1,0,()=>fT]];t.ListCommandsResult$=[3,wP,zm,0,[$o,vy],[[()=>hT,0],0]];t.ListComplianceItemsRequest$=[3,wP,Fm,0,[Ul,MC,cI,vy,gg],[[()=>CT,0],64|0,64|0,0,1]];t.ListComplianceItemsResult$=[3,wP,Bm,0,[Dr,vy],[[()=>ST,0],0]];t.ListComplianceSummariesRequest$=[3,wP,Vm,0,[Ul,vy,gg],[[()=>CT,0],0,1]];t.ListComplianceSummariesResult$=[3,wP,Gm,0,[ho,vy],[[()=>bT,0],0]];t.ListDocumentMetadataHistoryRequest$=[3,wP,Ym,0,[ny,ey,wc,vy,gg],[0,0,0,0,1],2];t.ListDocumentMetadataHistoryResponse$=[3,wP,Jm,0,[ny,wc,Nn,ey,vy],[0,0,0,()=>t.DocumentMetadataResponseInfo$,0]];t.ListDocumentsRequest$=[3,wP,Xm,0,[qi,Ul,gg,vy],[[()=>RT,0],()=>TT,1,0]];t.ListDocumentsResult$=[3,wP,Zm,0,[vs,vy],[[()=>PT,0],0]];t.ListDocumentVersionsRequest$=[3,wP,th,0,[ny,gg,vy],[0,1,0],1];t.ListDocumentVersionsResult$=[3,wP,nh,0,[Oc,vy],[()=>$T,0]];t.ListInventoryEntriesRequest$=[3,wP,ah,0,[wp,EA,Ul,vy,gg],[0,0,[()=>rx,0],0,1],2];t.ListInventoryEntriesResult$=[3,wP,ch,0,[EA,wp,Rw,Co,hl,vy],[0,0,0,0,[1,wP,Tp,0,128|0],0]];t.ListNodesRequest$=[3,wP,mh,0,[Hb,Ul,vy,gg],[0,[()=>Rx,0],0,1]];t.ListNodesResult$=[3,wP,gh,0,[Ry,vy],[[()=>Tx,0],0]];t.ListNodesSummaryRequest$=[3,wP,Sh,0,[bn,Hb,Ul,vy,gg],[[()=>Ax,0],0,[()=>Rx,0],0,1],1];t.ListNodesSummaryResult$=[3,wP,Eh,0,[Vw,vy],[[1,wP,Ey,0,128|0],0]];t.ListOpsItemEventsRequest$=[3,wP,Ch,0,[Ul,gg,vy],[()=>kx,1,0]];t.ListOpsItemEventsResponse$=[3,wP,Ih,0,[vy,Gw],[0,()=>Ux]];t.ListOpsItemRelatedItemsRequest$=[3,wP,wh,0,[tS,Ul,gg,vy],[0,()=>Hx,1,0]];t.ListOpsItemRelatedItemsResponse$=[3,wP,Ah,0,[vy,Gw],[0,()=>Gx]];t.ListOpsMetadataRequest$=[3,wP,Ph,0,[Ul,gg,vy],[()=>Kx,1,0]];t.ListOpsMetadataResult$=[3,wP,Th,0,[PS,vy],[()=>Yx,0]];t.ListResourceComplianceSummariesRequest$=[3,wP,$h,0,[Ul,vy,gg],[[()=>CT,0],0,1]];t.ListResourceComplianceSummariesResult$=[3,wP,Nh,0,[Zv,vy],[[()=>M_,0],0]];t.ListResourceDataSyncRequest$=[3,wP,Lh,0,[mw,vy,gg],[0,0,1]];t.ListResourceDataSyncResult$=[3,wP,Uh,0,[hC,vy],[()=>D_,0]];t.ListTagsForResourceRequest$=[3,wP,Qh,0,[SI,TC],[0,0],2];t.ListTagsForResourceResult$=[3,wP,Yh,0,[dA],[()=>K_]];t.LoggingInfo$=[3,wP,ih,0,[JI,nw,Lb],[0,0,0],2];t.MaintenanceWindowAutomationParameters$=[3,wP,bg,0,[wc,nE],[0,[2,wP,Dt,0,0,64|0]]];t.MaintenanceWindowExecution$=[3,wP,Ag,0,[lP,sP,zw,ab,Iw,pl],[0,0,0,0,4,4]];t.MaintenanceWindowExecutionTaskIdentity$=[3,wP,Pg,0,[sP,eA,zw,ab,Iw,pl,Qw,NA,f,Kw],[0,0,0,0,4,4,0,0,()=>t.AlarmConfiguration$,()=>GP]];t.MaintenanceWindowExecutionTaskInvocationIdentity$=[3,wP,Tg,0,[sP,eA,Kp,Xc,NA,nE,zw,ab,Iw,pl,zy,dP],[0,0,0,0,0,[()=>DP,0],0,0,4,4,[()=>LP,0],0]];t.MaintenanceWindowFilter$=[3,wP,Mg,0,[Cm,eP],[0,64|0]];t.MaintenanceWindowIdentity$=[3,wP,Ng,0,[lP,ny,qo,gl,Lc,Bo,Mw,Sw,Wb,Wc,pb,dy],[0,0,[()=>MP,0],2,1,1,0,0,1,0,0,0]];t.MaintenanceWindowIdentityForTarget$=[3,wP,kg,0,[lP,ny],[0,0]];t.MaintenanceWindowLambdaParameters$=[3,wP,Fg,0,[ur,Hv,Nv],[0,0,[()=>$P,0]]];t.MaintenanceWindowRunCommandParameters$=[3,wP,Bg,0,[Do,To,zi,Hi,wc,ay,kS,US,nE,tw,TA],[0,()=>t.CloudWatchOutputConfig$,0,0,0,()=>t.NotificationConfig$,0,0,[()=>SO,0],0,1]];t.MaintenanceWindowStepFunctionsParameters$=[3,wP,jg,0,[hm,ny],[[()=>NP,0],0]];t.MaintenanceWindowTarget$=[3,wP,zg,0,[lP,dP,SI,LA,zy,ny,qo],[0,0,0,()=>eO,[()=>LP,0],0,[()=>MP,0]]];t.MaintenanceWindowTask$=[3,wP,Xg,0,[lP,pP,Qw,HA,LA,RA,Uv,ih,tw,ig,fg,ny,qo,or,f],[0,0,0,0,()=>eO,[()=>uO,0],1,()=>t.LoggingInfo$,0,0,0,0,[()=>MP,0],0,()=>t.AlarmConfiguration$]];t.MaintenanceWindowTaskInvocationParameters$=[3,wP,Hg,0,[iC,kn,Pb,tg],[[()=>t.MaintenanceWindowRunCommandParameters$,0],()=>t.MaintenanceWindowAutomationParameters$,[()=>t.MaintenanceWindowStepFunctionsParameters$,0],[()=>t.MaintenanceWindowLambdaParameters$,0]]];t.MaintenanceWindowTaskParameterValueExpression$=[3,wP,Yg,8,[eP],[[()=>bx,0]]];t.MetadataValue$=[3,wP,Ig,0,[YR],[0]];t.ModifyDocumentPermissionRequest$=[3,wP,ug,0,[ny,vv,Me,De,ub],[0,0,[()=>qP,0],[()=>qP,0],0],2];t.ModifyDocumentPermissionResponse$=[3,wP,dg,0,[],[]];t.Node$=[3,wP,Py,0,[Co,Id,tE,RI,Iy],[4,0,()=>t.NodeOwnerInfo$,0,[()=>t.NodeType$,0]]];t.NodeAggregator$=[3,wP,ry,0,[an,EA,Ye,bn],[0,0,0,[()=>Ax,0]],3];t.NodeFilter$=[3,wP,py,0,[Cm,eP,HA],[0,[()=>Px,0],0],2];t.NodeOwnerInfo$=[3,wP,yy,0,[$e,GS,WS],[0,0,0]];t.NonCompliantSummary$=[3,wP,ly,0,[cy,iw],[1,()=>t.SeveritySummary$]];t.NotificationConfig$=[3,wP,ay,0,[sy,uy,by],[0,64|0,0]];t.OpsAggregator$=[3,wP,xy,0,[an,EA,Ye,eP,Ul,bn],[0,0,0,128|0,[()=>$x,0],[()=>Ox,0]]];t.OpsEntity$=[3,wP,Dy,0,[Id,Dc],[0,()=>gO]];t.OpsEntityItem$=[3,wP,$y,0,[Co,No],[0,[1,wP,Ny,0,128|0]]];t.OpsFilter$=[3,wP,Fy,0,[Cm,eP,HA],[0,[()=>Nx,0],0],2];t.OpsItem$=[3,wP,SS,0,[ir,yS,Eo,qo,lh,dh,Ay,Uv,qC,zw,tS,nP,qA,jw,Oy,Oo,$w,Kt,be,hv,fE,Hy],[0,0,4,0,0,4,()=>qx,1,()=>O_,0,0,0,0,0,()=>yO,0,0,4,4,4,4,0]];t.OpsItemDataValue$=[3,wP,Ky,0,[YR,HA],[0,0]];t.OpsItemEventFilter$=[3,wP,Qy,0,[Cm,eP,YS],[0,64|0,0],3];t.OpsItemEventSummary$=[3,wP,Jy,0,[tS,Zc,jw,bc,Nc,ir,Eo],[0,0,0,0,0,()=>t.OpsItemIdentity$,4]];t.OpsItemFilter$=[3,wP,eS,0,[Cm,eP,YS],[0,64|0,0],3];t.OpsItemIdentity$=[3,wP,rS,0,[xn],[0]];t.OpsItemNotification$=[3,wP,iS,0,[xn],[0]];t.OpsItemRelatedItemsFilter$=[3,wP,dS,0,[Cm,eP,YS],[0,64|0,0],3];t.OpsItemRelatedItemSummary$=[3,wP,fS,0,[tS,Fe,SI,Zt,II,ir,Eo,lh,dh],[0,0,0,0,0,()=>t.OpsItemIdentity$,4,()=>t.OpsItemIdentity$,4]];t.OpsItemSummary$=[3,wP,gS,0,[ir,Eo,lh,dh,Uv,jw,zw,tS,qA,Oy,Oo,$w,yS,Kt,be,hv,fE],[0,4,0,4,1,0,0,0,0,()=>yO,0,0,0,4,4,4,4]];t.OpsMetadata$=[3,wP,vS,0,[TC,CS,uh,ph,yr],[0,0,4,0,4]];t.OpsMetadataFilter$=[3,wP,bS,0,[Cm,eP],[0,64|0],2];t.OpsResultAttribute$=[3,wP,DS,0,[EA],[0],1];t.OutputSource$=[3,wP,NS,0,[LS,jS],[0,0]];t.Parameter$=[3,wP,Mv,0,[ny,HA,YR,nP,Nw,rw,uh,Ut,Ic],[0,0,[()=>FP,0],1,0,0,4,0,0]];t.ParameterHistory$=[3,wP,TE,0,[ny,HA,bm,uh,ph,qo,YR,$t,nP,eg,jA,kv,Ic],[0,0,0,4,0,0,[()=>FP,0],0,1,64|0,0,()=>r_,0]];t.ParameterInlinePolicy$=[3,wP,_E,0,[wv,Av,Ev],[0,0,0]];t.ParameterMetadata$=[3,wP,UE,0,[ny,Ut,HA,bm,uh,ph,qo,$t,nP,jA,kv,Ic],[0,0,0,0,4,0,0,0,1,0,()=>r_,0]];t.ParametersFilter$=[3,wP,SE,0,[Cm,eP],[0,64|0],2];t.ParameterStringFilter$=[3,wP,dv,0,[Cm,JS,eP],[0,0,64|0],1];t.ParentStepDetails$=[3,wP,uv,0,[yb,Gb,Cn,Sm,tm],[0,0,0,1,0]];t.Patch$=[3,wP,Dv,0,[Id,RC,qA,qo,Ao,rP,CE,qv,Mo,vg,Am,hg,ng,Ue,qn,Ro,ny,vl,nP,PI,Tn,$w,TI],[0,4,0,0,0,0,0,0,0,0,0,0,0,64|0,64|0,64|0,0,1,0,0,0,0,0]];t.PatchBaselineIdentity$=[3,wP,iE,0,[Un,jn,zS,Ln,Si],[0,0,0,0,2]];t.PatchComplianceData$=[3,wP,cE,0,[qA,Im,Mo,$w,$I,Zf,Ro],[0,0,0,0,0,4,0],6];t.PatchFilter$=[3,wP,EE,0,[Cm,eP],[0,64|0],2];t.PatchFilterGroup$=[3,wP,hE,0,[vE],[()=>m_],1];t.PatchGroupPatchBaselineMapping$=[3,wP,bE,0,[IE,Bn],[0,()=>t.PatchBaselineIdentity$]];t.PatchOrchestratorFilter$=[3,wP,VE,0,[Cm,eP],[0,64|0]];t.PatchRule$=[3,wP,ZE,0,[hE,$r,a,un,tl],[()=>t.PatchFilterGroup$,0,1,0,2],1];t.PatchRuleGroup$=[3,wP,ev,0,[av],[()=>b_],1];t.PatchSource$=[3,wP,yv,0,[ny,jv,ko],[0,64|0,[()=>UP,0]],3];t.PatchStatus$=[3,wP,gv,0,[pc,$r,ne],[0,0,4]];t.ProgressCounters$=[3,wP,aE,0,[DA,pw,Ml,yo,IA],[1,1,1,1,1]];t.PutComplianceItemsRequest$=[3,wP,dE,0,[TC,SI,bo,cl,Em,Hd,QR],[0,0,0,()=>t.ComplianceExecutionSummary$,()=>yT,0,0],5];t.PutComplianceItemsResult$=[3,wP,pE,0,[],[]];t.PutInventoryRequest$=[3,wP,OE,0,[wp,Em],[0,[()=>cx,0]],2];t.PutInventoryResult$=[3,wP,ME,0,[rg],[0]];t.PutParameterRequest$=[3,wP,JE,0,[ny,YR,qo,HA,bm,eE,$t,Ww,jA,kv,Ic],[0,[()=>FP,0],0,0,0,2,0,()=>K_,0,0,0],2];t.PutParameterResult$=[3,wP,XE,0,[nP,jA],[1,0]];t.PutResourcePolicyRequest$=[3,wP,ov,0,[Wv,Lv,xE,RE],[0,0,0,0],2];t.PutResourcePolicyResponse$=[3,wP,iv,0,[xE,RE],[0,0]];t.RegisterDefaultPatchBaselineRequest$=[3,wP,cC,0,[Un],[0],1];t.RegisterDefaultPatchBaselineResult$=[3,wP,lC,0,[Un],[0]];t.RegisterPatchBaselineForPatchGroupRequest$=[3,wP,WC,0,[Un,IE],[0,0],2];t.RegisterPatchBaselineForPatchGroupResult$=[3,wP,KC,0,[Un,IE],[0,0]];t.RegisterTargetWithMaintenanceWindowRequest$=[3,wP,fI,0,[lP,SI,LA,zy,ny,qo,Io],[0,0,()=>eO,[()=>LP,0],0,[()=>MP,0],[0,4]],3];t.RegisterTargetWithMaintenanceWindowResult$=[3,wP,mI,0,[dP],[0]];t.RegisterTaskWithMaintenanceWindowRequest$=[3,wP,hI,0,[lP,Qw,NA,LA,tw,RA,nA,Uv,ig,fg,ih,ny,qo,Io,or,f],[0,0,0,()=>eO,0,[()=>uO,0],[()=>t.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>t.LoggingInfo$,0,[()=>MP,0],[0,4],0,()=>t.AlarmConfiguration$],3];t.RegisterTaskWithMaintenanceWindowResult$=[3,wP,gI,0,[pP],[0]];t.RegistrationMetadataItem$=[3,wP,LC,0,[Cm,YR],[0,0],2];t.RelatedOpsItem$=[3,wP,jC,0,[tS],[0],1];t.RemoveTagsFromResourceRequest$=[3,wP,uI,0,[SI,TC,iA],[0,0,64|0],3];t.RemoveTagsFromResourceResult$=[3,wP,dI,0,[],[]];t.ResetServiceSettingRequest$=[3,wP,iI,0,[Mb],[0],1];t.ResetServiceSettingResult$=[3,wP,sI,0,[lw],[()=>t.ServiceSetting$]];t.ResolvedTargets$=[3,wP,vI,0,[_v,zA],[64|0,2]];t.ResourceComplianceSummaryItem$=[3,wP,tC,0,[bo,SI,TC,zw,HS,cl,So,ly],[0,0,0,0,0,()=>t.ComplianceExecutionSummary$,()=>t.CompliantSummary$,()=>t.NonCompliantSummary$]];t.ResourceDataSyncAwsOrganizationsSource$=[3,wP,dC,0,[qS,KS],[0,()=>$_],1];t.ResourceDataSyncDestinationDataSharing$=[3,wP,mC,0,[xi],[0]];t.ResourceDataSyncItem$=[3,wP,SC,0,[Hb,mw,fw,db,Vh,Hh,Fb,Fh,ob,zh],[0,0,()=>t.ResourceDataSyncSourceWithState$,()=>t.ResourceDataSyncS3Destination$,4,4,4,0,4,0]];t.ResourceDataSyncOrganizationalUnit$=[3,wP,vC,0,[GS],[0]];t.ResourceDataSyncS3Destination$=[3,wP,bC,0,[zn,_b,RI,Fv,vn,Ti],[0,0,0,0,0,()=>t.ResourceDataSyncDestinationDataSharing$],3];t.ResourceDataSyncSource$=[3,wP,IC,0,[Cw,ow,Rt,Sp,Bc],[0,64|0,()=>t.ResourceDataSyncAwsOrganizationsSource$,2,2],2];t.ResourceDataSyncSourceWithState$=[3,wP,wC,0,[Cw,Rt,ow,Sp,$I,Bc],[0,()=>t.ResourceDataSyncAwsOrganizationsSource$,64|0,2,0,2]];t.ResultAttribute$=[3,wP,Yv,0,[EA],[0],1];t.ResumeSessionRequest$=[3,wP,nI,0,[Db],[0],1];t.ResumeSessionResponse$=[3,wP,rI,0,[Db,kA,Aw],[0,0,0]];t.ReviewInformation$=[3,wP,OC,0,[CI,zw,MI],[4,0,0]];t.Runbook$=[3,wP,DI,0,[ta,wc,nE,AA,LA,fA,ig,fg,sA],[0,0,[2,wP,Dt,0,0,64|0],0,()=>eO,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],0,0,()=>Q_],1];t.S3OutputLocation$=[3,wP,Qb,0,[FS,kS,US],[0,0,0]];t.S3OutputUrl$=[3,wP,Jb,0,[VS],[0]];t.ScheduledWindowExecution$=[3,wP,_w,0,[lP,ny,dl],[0,0,0]];t.SendAutomationSignalRequest$=[3,wP,QI,0,[ue,vw,Nv],[0,0,[2,wP,Dt,0,0,64|0]],2];t.SendAutomationSignalResult$=[3,wP,YI,0,[],[]];t.SendCommandRequest$=[3,wP,ZI,0,[ta,Vp,LA,wc,zi,Hi,TA,Do,nE,FS,kS,US,ig,fg,tw,ay,To,f],[0,64|0,()=>eO,0,0,0,1,0,[()=>SO,0],0,0,0,0,0,0,()=>t.NotificationConfig$,()=>t.CloudWatchOutputConfig$,()=>t.AlarmConfiguration$],1];t.SendCommandResult$=[3,wP,rb,0,[Vn],[[()=>t.Command$,0]]];t.ServiceSetting$=[3,wP,lw,0,[Mb,Pw,uh,ph,Ut,zw],[0,0,4,0,0,0]];t.Session$=[3,wP,Lw,0,[Db,FA,zw,pb,Wc,ta,tE,wI,$c,VS,Eg,on],[0,0,0,4,4,0,0,0,0,()=>t.SessionManagerOutputUrl$,0,0]];t.SessionFilter$=[3,wP,xb,0,[yP,CP],[0,0],2];t.SessionManagerOutputUrl$=[3,wP,jb,0,[Jb,_o],[0,0]];t.SeveritySummary$=[3,wP,iw,0,[pr,Sd,sg,Nm,Kd,XA],[1,1,1,1,1,1]];t.StartAccessRequestRequest$=[3,wP,GI,0,[wI,LA,Ww],[0,()=>eO,()=>K_],2];t.StartAccessRequestResponse$=[3,wP,WI,0,[Lt],[0]];t.StartAssociationsOnceRequest$=[3,wP,zI,0,[Be],[64|0],1];t.StartAssociationsOnceResult$=[3,wP,HI,0,[],[]];t.StartAutomationExecutionRequest$=[3,wP,kI,0,[ta,wc,nE,Io,ty,AA,LA,fA,ig,fg,sA,Ww,f,uA],[0,0,[2,wP,Dt,0,0,64|0],0,0,0,()=>eO,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],0,0,()=>Q_,()=>K_,()=>t.AlarmConfiguration$,0],1];t.StartAutomationExecutionResult$=[3,wP,LI,0,[ue],[0]];t.StartChangeRequestExecutionRequest$=[3,wP,tb,0,[ta,Gv,yw,wc,nE,so,Io,i,Ww,bb,gr],[0,()=>F_,4,0,[2,wP,Dt,0,0,64|0],0,0,2,()=>K_,4,0],2];t.StartChangeRequestExecutionResult$=[3,wP,nb,0,[ue],[0]];t.StartExecutionPreviewRequest$=[3,wP,vb,0,[ta,wc,el],[0,0,()=>t.ExecutionInputs$],1];t.StartExecutionPreviewResponse$=[3,wP,Cb,0,[rl],[0]];t.StartSessionRequest$=[3,wP,aw,0,[FA,ta,wI,nE],[0,0,0,[2,wP,zb,0,0,64|0]],1];t.StartSessionResponse$=[3,wP,cw,0,[Db,kA,Aw],[0,0,0]];t.StepExecution$=[3,wP,Rb,0,[Gb,Cn,TA,jy,og,ul,Yc,uw,oC,gm,XS,OI,xl,Pl,yb,MS,fp,Sy,Qd,ZR,LA,pA,Kw,uv],[0,0,1,0,1,4,4,0,0,128|0,[2,wP,Dt,0,0,64|0],0,0,()=>t.FailureDetails$,0,[2,wP,Dt,0,0,64|0],2,0,2,64|0,()=>eO,()=>t.TargetLocation$,()=>GP,()=>t.ParentStepDetails$]];t.StepExecutionFilter$=[3,wP,hb,0,[Cm,eP],[0,64|0],2];t.StopAutomationExecutionRequest$=[3,wP,UI,0,[ue,HA],[0,0],1];t.StopAutomationExecutionResult$=[3,wP,FI,0,[],[]];t.Tag$=[3,wP,UA,0,[Cm,YR],[0,0],2];t.Target$=[3,wP,FA,0,[Cm,eP],[0,64|0]];t.TargetLocation$=[3,wP,pA,0,[In,bI,cA,lA,al,aA,Wd,jc,LA,mA,hA],[64|0,64|0,0,0,0,()=>t.AlarmConfiguration$,2,64|0,()=>eO,0,0]];t.TargetPreview$=[3,wP,PA,0,[Uo,$A],[1,0]];t.TerminateSessionRequest$=[3,wP,_A,0,[Db],[0],1];t.TerminateSessionResponse$=[3,wP,OA,0,[Db],[0]];t.UnlabelParameterVersionRequest$=[3,wP,FR,0,[ny,xv,eg],[0,1,64|0],3];t.UnlabelParameterVersionResult$=[3,wP,BR,0,[NC,Jp],[64|0,64|0]];t.UpdateAssociationRequest$=[3,wP,WA,0,[Fe,nE,wc,fb,ES,ny,LA,Qe,pn,en,fg,ig,ao,sb,Xe,jr,sA,Wb,Lc,fA,f,k],[0,[()=>SO,0],0,0,()=>t.InstanceAssociationOutputLocation$,0,()=>eO,0,0,0,0,0,0,0,2,64|0,()=>Q_,1,1,[1,wP,fA,0,[2,wP,SA,0,0,64|0]],()=>t.AlarmConfiguration$,0],1];t.UpdateAssociationResult$=[3,wP,KA,0,[D],[[()=>t.AssociationDescription$,0]]];t.UpdateAssociationStatusRequest$=[3,wP,YA,0,[ny,wp,Bt],[0,0,()=>t.AssociationStatus$],3];t.UpdateAssociationStatusResult$=[3,wP,JA,0,[D],[[()=>t.AssociationDescription$,0]]];t.UpdateDocumentDefaultVersionRequest$=[3,wP,nR,0,[ny,wc],[0,0],2];t.UpdateDocumentDefaultVersionResult$=[3,wP,rR,0,[qo],[()=>t.DocumentDefaultVersionDescription$]];t.UpdateDocumentMetadataRequest$=[3,wP,iR,0,[ny,sc,wc],[0,()=>t.DocumentReviews$,0],2];t.UpdateDocumentMetadataResponse$=[3,wP,sR,0,[],[]];t.UpdateDocumentRequest$=[3,wP,aR,0,[No,ny,Mn,ra,XR,wc,Bi,$A],[0,0,()=>oT,0,0,0,0,0],2];t.UpdateDocumentResult$=[3,wP,cR,0,[Ei],[[()=>t.DocumentDescription$,0]]];t.UpdateMaintenanceWindowRequest$=[3,wP,gR,0,[lP,ny,qo,pb,Wc,Mw,Sw,Wb,Lc,Bo,dn,gl,xI],[0,0,[()=>MP,0],0,0,0,0,1,1,1,2,2,2],1];t.UpdateMaintenanceWindowResult$=[3,wP,yR,0,[lP,ny,qo,pb,Wc,Mw,Sw,Wb,Lc,Bo,dn,gl],[0,0,[()=>MP,0],0,0,0,0,1,1,1,2,2]];t.UpdateMaintenanceWindowTargetRequest$=[3,wP,ER,0,[lP,dP,LA,zy,ny,qo,xI],[0,0,()=>eO,[()=>LP,0],0,[()=>MP,0],2],2];t.UpdateMaintenanceWindowTargetResult$=[3,wP,vR,0,[lP,dP,LA,zy,ny,qo],[0,0,()=>eO,[()=>LP,0],0,[()=>MP,0]]];t.UpdateMaintenanceWindowTaskRequest$=[3,wP,CR,0,[lP,pP,LA,Qw,tw,RA,nA,Uv,ig,fg,ih,ny,qo,xI,or,f],[0,0,()=>eO,0,0,[()=>uO,0],[()=>t.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>t.LoggingInfo$,0,[()=>MP,0],2,0,()=>t.AlarmConfiguration$],2];t.UpdateMaintenanceWindowTaskResult$=[3,wP,IR,0,[lP,pP,LA,Qw,tw,RA,nA,Uv,ig,fg,ih,ny,qo,or,f],[0,0,()=>eO,0,0,[()=>uO,0],[()=>t.MaintenanceWindowTaskInvocationParameters$,0],1,0,0,()=>t.LoggingInfo$,0,[()=>MP,0],0,()=>t.AlarmConfiguration$]];t.UpdateManagedInstanceRoleRequest$=[3,wP,fR,0,[wp,qf],[0,0],2];t.UpdateManagedInstanceRoleResult$=[3,wP,mR,0,[],[]];t.UpdateOpsItemRequest$=[3,wP,PR,0,[tS,qo,Oy,My,Ay,Uv,qC,zw,qA,Oo,$w,Kt,be,hv,fE,Hy],[0,0,()=>yO,64|0,()=>qx,1,()=>O_,0,0,0,0,4,4,4,4,0],1];t.UpdateOpsItemResponse$=[3,wP,TR,0,[],[]];t.UpdateOpsMetadataRequest$=[3,wP,_R,0,[CS,Cg,Rm],[0,()=>dO,64|0],1];t.UpdateOpsMetadataResult$=[3,wP,OR,0,[CS],[0]];t.UpdatePatchBaselineRequest$=[3,wP,$R,0,[Un,ny,mu,kt,Pt,_t,Mt,HC,VC,qo,qw,Yt,xI],[0,0,()=>t.PatchFilterGroup$,()=>t.PatchRuleGroup$,64|0,0,2,64|0,0,0,[()=>w_,0],0,2],1];t.UpdatePatchBaselineResult$=[3,wP,NR,0,[Un,ny,zS,mu,kt,Pt,_t,Mt,HC,VC,fr,cg,qo,qw,Yt],[0,0,0,()=>t.PatchFilterGroup$,()=>t.PatchRuleGroup$,64|0,0,2,64|0,0,4,4,0,[()=>w_,0],0]];t.UpdateResourceDataSyncRequest$=[3,wP,jR,0,[Hb,mw,fw],[0,0,()=>t.ResourceDataSyncSource$],3];t.UpdateResourceDataSyncResult$=[3,wP,zR,0,[],[]];t.UpdateServiceSettingRequest$=[3,wP,GR,0,[Mb,Pw],[0,0],2];t.UpdateServiceSettingResult$=[3,wP,WR,0,[],[]];var qP=[1,wP,_e,0,[0,{[bP]:$e}]];var jP=null&&64|0;var zP=[1,wP,zt,0,[()=>t.AccountSharingInfo$,{[bP]:jt}]];var HP=[1,wP,Ve,0,()=>t.Activation$];var VP=[1,wP,We,0,()=>t.Alarm$];var GP=[1,wP,Ht,0,()=>t.AlarmStateInformation$];var WP=[1,wP,F,0,[()=>t.AssociationDescription$,{[bP]:D}]];var KP=[1,wP,ae,0,[()=>t.AssociationExecutionFilter$,{[bP]:se}]];var QP=[1,wP,pe,0,[()=>t.AssociationExecution$,{[bP]:re}]];var YP=[1,wP,Ce,0,[()=>t.AssociationExecutionTargetsFilter$,{[bP]:ve}]];var JP=[1,wP,Ie,0,[()=>t.AssociationExecutionTarget$,{[bP]:Ee}]];var XP=[1,wP,Te,0,[()=>t.AssociationFilter$,{[bP]:Pe}]];var ZP=null&&64|0;var eT=[1,wP,Ke,0,[()=>t.Association$,{[bP]:_n}]];var tT=[1,wP,hn,0,[()=>t.AssociationVersionInfo$,0]];var nT=[1,wP,m,0,[()=>t.AttachmentContent$,{[bP]:C}]];var rT=[1,wP,Oe,0,[()=>t.AttachmentInformation$,{[bP]:qe}]];var oT=[1,wP,Gt,0,()=>t.AttachmentsSource$];var iT=null&&64|0;var sT=[1,wP,ce,0,()=>t.AutomationExecutionFilter$];var aT=null&&64|0;var cT=[1,wP,he,0,()=>t.AutomationExecutionMetadata$];var lT=null&&64|0;var uT=null&&64|0;var dT=null&&64|0;var pT=null&&64|0;var fT=[1,wP,Ir,0,()=>t.CommandFilter$];var mT=[1,wP,Tr,0,()=>t.CommandInvocation$];var hT=[1,wP,Nr,0,[()=>t.Command$,0]];var gT=[1,wP,to,0,()=>t.CommandPlugin$];var yT=[1,wP,Pr,0,()=>t.ComplianceItemEntry$];var ST=[1,wP,xr,0,[()=>t.ComplianceItem$,{[bP]:vm}]];var ET=null&&64|0;var vT=null&&64|0;var CT=[1,wP,uo,0,[()=>t.ComplianceStringFilter$,{[bP]:br}]];var IT=[1,wP,po,0,[0,{[bP]:Nl}]];var bT=[1,wP,mo,0,[()=>t.ComplianceSummaryItem$,{[bP]:vm}]];var wT=[1,wP,Yn,0,[()=>t.CreateAssociationBatchRequestEntry$,{[bP]:gP}]];var AT=[1,wP,ei,0,()=>t.DescribeActivationsFilter$];var RT=[1,wP,qi,0,[()=>t.DocumentFilter$,{[bP]:ji}]];var PT=[1,wP,ns,0,[()=>t.DocumentIdentifier$,{[bP]:Es}]];var TT=[1,wP,Is,0,()=>t.DocumentKeyValuesFilter$];var xT=null&&64|0;var _T=[1,wP,Da,0,[()=>t.DocumentParameter$,{[bP]:Ga}]];var OT=[1,wP,Za,0,()=>t.DocumentRequires$];var MT=[1,wP,Ka,0,()=>t.DocumentReviewCommentSource$];var DT=[1,wP,rc,0,()=>t.DocumentReviewerResponseSource$];var $T=[1,wP,Rc,0,()=>t.DocumentVersionInfo$];var NT=[1,wP,ol,0,()=>t.EffectivePatch$];var kT=null&&64|0;var LT=[1,wP,Rl,0,[()=>t.FailedCreateAssociation$,{[bP]:Al}]];var UT=[1,wP,pd,0,()=>t.GetResourcePoliciesResponseEntry$];var FT=[1,wP,Td,0,()=>t.InstanceAssociation$];var BT=[1,wP,Nd,0,()=>t.InstanceAssociationStatusInfo$];var qT=null&&64|0;var jT=[1,wP,_p,0,[()=>t.InstanceInformationFilter$,{[bP]:xp}]];var zT=[1,wP,Mp,0,[0,{[bP]:Op}]];var HT=[1,wP,Lp,0,[()=>t.InstanceInformation$,{[bP]:Wp}]];var VT=[1,wP,zp,0,[()=>t.InstanceInformationStringFilter$,{[bP]:jp}]];var GT=[1,wP,If,0,()=>t.InstancePatchStateFilter$];var WT=null&&64|0;var KT=[1,wP,Af,0,[()=>t.InstancePatchState$,0]];var QT=[1,wP,Rf,0,[()=>t.InstancePatchState$,0]];var YT=[1,wP,_f,0,[()=>t.InstanceProperty$,{[bP]:Of}]];var JT=[1,wP,mf,0,[()=>t.InstancePropertyFilter$,{[bP]:ff}]];var XT=[1,wP,gf,0,[0,{[bP]:hf}]];var ZT=[1,wP,bf,0,[()=>t.InstancePropertyStringFilter$,{[bP]:wf}]];var ex=[1,wP,xd,0,[()=>t.InventoryAggregator$,{[bP]:wn}]];var tx=[1,wP,ep,0,()=>t.InventoryDeletionStatusItem$];var nx=[1,wP,ap,0,()=>t.InventoryDeletionSummaryItem$];var rx=[1,wP,gp,0,[()=>t.InventoryFilter$,{[bP]:Cp}]];var ox=[1,wP,vp,0,[0,{[bP]:Nl}]];var ix=[1,wP,bp,0,[()=>t.InventoryGroup$,{[bP]:Ip}]];var sx=[1,wP,Rp,0,[()=>t.InventoryItemAttribute$,{[bP]:$n}]];var ax=[1,wP,Tp,0,128|0];var cx=[1,wP,Up,0,[()=>t.InventoryItem$,{[bP]:vm}]];var lx=[1,wP,Hp,0,[()=>t.InventoryItemSchema$,0]];var ux=[1,wP,kf,0,[()=>t.InventoryResultEntity$,{[bP]:El}]];var dx=null&&64|0;var px=[1,wP,Rg,0,()=>t.MaintenanceWindowExecution$];var fx=[1,wP,_g,0,()=>t.MaintenanceWindowExecutionTaskIdentity$];var mx=null&&64|0;var hx=[1,wP,xg,0,[()=>t.MaintenanceWindowExecutionTaskInvocationIdentity$,0]];var gx=[1,wP,Dg,0,()=>t.MaintenanceWindowFilter$];var yx=null&&64|0;var Sx=[1,wP,Lg,0,[()=>t.MaintenanceWindowIdentity$,0]];var Ex=[1,wP,$g,0,()=>t.MaintenanceWindowIdentityForTarget$];var vx=[1,wP,Vg,0,[()=>t.MaintenanceWindowTarget$,0]];var Cx=[1,wP,Gg,0,[()=>t.MaintenanceWindowTask$,0]];var Ix=[1,wP,Kg,8,[()=>uO,0]];var bx=[1,wP,Jg,8,[()=>kP,0]];var wx=null&&64|0;var Ax=[1,wP,iy,0,[()=>t.NodeAggregator$,{[bP]:ry}]];var Rx=[1,wP,fy,0,[()=>t.NodeFilter$,{[bP]:py}]];var Px=[1,wP,my,0,[0,{[bP]:Nl}]];var Tx=[1,wP,hy,0,[()=>t.Node$,0]];var xx=[1,wP,Ey,0,128|0];var _x=null&&64|0;var Ox=[1,wP,_y,0,[()=>t.OpsAggregator$,{[bP]:wn}]];var Mx=[1,wP,Ny,0,128|0];var Dx=[1,wP,Ly,0,[()=>t.OpsEntity$,{[bP]:El}]];var $x=[1,wP,By,0,[()=>t.OpsFilter$,{[bP]:Fy}]];var Nx=[1,wP,qy,0,[0,{[bP]:Nl}]];var kx=[1,wP,Yy,0,()=>t.OpsItemEventFilter$];var Lx=null&&64|0;var Ux=[1,wP,Xy,0,()=>t.OpsItemEventSummary$];var Fx=[1,wP,Zy,0,()=>t.OpsItemFilter$];var Bx=null&&64|0;var qx=[1,wP,aS,0,()=>t.OpsItemNotification$];var jx=null&&64|0;var zx=null&&64|0;var Hx=[1,wP,pS,0,()=>t.OpsItemRelatedItemsFilter$];var Vx=null&&64|0;var Gx=[1,wP,mS,0,()=>t.OpsItemRelatedItemSummary$];var Wx=[1,wP,hS,0,()=>t.OpsItemSummary$];var Kx=[1,wP,wS,0,()=>t.OpsMetadataFilter$];var Qx=null&&64|0;var Yx=[1,wP,PS,0,()=>t.OpsMetadata$];var Jx=[1,wP,$S,0,[()=>t.OpsResultAttribute$,{[bP]:DS}]];var Xx=[1,wP,PE,0,[()=>t.ParameterHistory$,0]];var Zx=null&&64|0;var e_=[1,wP,$E,0,[()=>t.Parameter$,0]];var t_=[1,wP,FE,0,()=>t.ParameterMetadata$];var n_=null&&64|0;var r_=[1,wP,QE,0,()=>t.ParameterInlinePolicy$];var o_=[1,wP,gE,0,()=>t.ParametersFilter$];var i_=null&&64|0;var s_=[1,wP,pv,0,()=>t.ParameterStringFilter$];var a_=null&&64|0;var c_=null&&64|0;var l_=null&&64|0;var u_=[1,wP,sE,0,()=>t.PatchBaselineIdentity$];var d_=null&&64|0;var p_=[1,wP,lE,0,()=>t.PatchComplianceData$];var f_=null&&64|0;var m_=[1,wP,yE,0,()=>t.PatchFilter$];var h_=null&&64|0;var g_=null&&64|0;var y_=[1,wP,wE,0,()=>t.PatchGroupPatchBaselineMapping$];var S_=null&&64|0;var E_=[1,wP,LE,0,()=>t.Patch$];var v_=[1,wP,GE,0,()=>t.PatchOrchestratorFilter$];var C_=null&&64|0;var I_=[1,wP,KE,0,128|0];var b_=[1,wP,tv,0,()=>t.PatchRule$];var w_=[1,wP,fv,0,[()=>t.PatchSource$,0]];var A_=null&&64|0;var R_=[1,wP,Cv,0,[0,{[bP]:bv}]];var P_=null&&64|0;var T_=null&&64|0;var x_=[1,wP,UC,0,()=>t.RegistrationMetadataItem$];var O_=[1,wP,qC,0,()=>t.RelatedOpsItem$];var M_=[1,wP,eC,0,[()=>t.ResourceComplianceSummaryItem$,{[bP]:vm}]];var D_=[1,wP,yC,0,()=>t.ResourceDataSyncItem$];var $_=[1,wP,CC,0,()=>t.ResourceDataSyncOrganizationalUnit$];var N_=null&&64|0;var k_=null&&64|0;var L_=[1,wP,Kv,0,[()=>t.ResultAttribute$,{[bP]:Yv}]];var U_=[1,wP,xC,0,[()=>t.ReviewInformation$,{[bP]:OC}]];var F_=[1,wP,Gv,0,()=>t.Runbook$];var B_=[1,wP,xw,0,()=>t.ScheduledWindowExecution$];var q_=[1,wP,Tb,0,()=>t.SessionFilter$];var j_=[1,wP,Bb,0,()=>t.Session$];var z_=null&&64|0;var H_=[1,wP,gb,0,()=>t.StepExecutionFilter$];var V_=null&&64|0;var G_=[1,wP,Sb,0,()=>t.StepExecution$];var W_=null&&64|0;var K_=[1,wP,dA,0,()=>t.Tag$];var Q_=[1,wP,sA,0,()=>t.TargetLocation$];var Y_=[1,wP,fA,0,[2,wP,SA,0,0,64|0]];var J_=null&&64|0;var X_=null&&64|0;var Z_=[1,wP,wA,0,()=>t.TargetPreview$];var eO=[1,wP,LA,0,()=>t.Target$];var tO=null&&64|0;var nO=null&&64|0;var rO=null&&128|1;var oO=[2,wP,Dt,0,0,64|0];var iO=null&&128|0;var sO=null&&128|1;var aO=null&&128|0;var cO=null&&128|0;var lO=[2,wP,Uf,0,0,()=>t.InventoryResultItem$];var uO=[2,wP,Wg,8,[0,0],[()=>t.MaintenanceWindowTaskParameterValueExpression$,0]];var dO=[2,wP,mg,0,0,()=>t.MetadataValue$];var pO=null&&128|0;var fO=null&&128|0;var mO=null&&128|0;var hO=null&&128|0;var gO=[2,wP,ky,0,0,()=>t.OpsEntityItem$];var yO=[2,wP,cS,0,0,()=>t.OpsItemDataValue$];var SO=[2,wP,nE,8,0,64|0];var EO=null&&128|0;var vO=[2,wP,zb,0,0,64|0];var CO=null&&128|1;var IO=[2,wP,SA,0,0,64|0];t.ExecutionInputs$=[4,wP,el,0,[kn],[()=>t.AutomationExecutionInputs$]];t.ExecutionPreview$=[4,wP,sl,0,[kn],[()=>t.AutomationExecutionPreview$]];t.NodeType$=[4,wP,Iy,0,[ym],[[()=>t.InstanceInfo$,0]]];t.AddTagsToResource$=[9,wP,tn,0,()=>t.AddTagsToResourceRequest$,()=>t.AddTagsToResourceResult$];t.AssociateOpsItemRelatedItem$=[9,wP,Ze,0,()=>t.AssociateOpsItemRelatedItemRequest$,()=>t.AssociateOpsItemRelatedItemResponse$];t.CancelCommand$=[9,wP,lr,0,()=>t.CancelCommandRequest$,()=>t.CancelCommandResult$];t.CancelMaintenanceWindowExecution$=[9,wP,Lr,0,()=>t.CancelMaintenanceWindowExecutionRequest$,()=>t.CancelMaintenanceWindowExecutionResult$];t.CreateActivation$=[9,wP,nr,0,()=>t.CreateActivationRequest$,()=>t.CreateActivationResult$];t.CreateAssociation$=[9,wP,rr,0,()=>t.CreateAssociationRequest$,()=>t.CreateAssociationResult$];t.CreateAssociationBatch$=[9,wP,Wn,0,()=>t.CreateAssociationBatchRequest$,()=>t.CreateAssociationBatchResult$];t.CreateDocument$=[9,wP,Sr,0,()=>t.CreateDocumentRequest$,()=>t.CreateDocumentResult$];t.CreateMaintenanceWindow$=[9,wP,kr,0,()=>t.CreateMaintenanceWindowRequest$,()=>t.CreateMaintenanceWindowResult$];t.CreateOpsItem$=[9,wP,Vr,0,()=>t.CreateOpsItemRequest$,()=>t.CreateOpsItemResponse$];t.CreateOpsMetadata$=[9,wP,Kr,0,()=>t.CreateOpsMetadataRequest$,()=>t.CreateOpsMetadataResult$];t.CreatePatchBaseline$=[9,wP,Xr,0,()=>t.CreatePatchBaselineRequest$,()=>t.CreatePatchBaselineResult$];t.CreateResourceDataSync$=[9,wP,ro,0,()=>t.CreateResourceDataSyncRequest$,()=>t.CreateResourceDataSyncResult$];t.DeleteActivation$=[9,wP,jo,0,()=>t.DeleteActivationRequest$,()=>t.DeleteActivationResult$];t.DeleteAssociation$=[9,wP,hi,0,()=>t.DeleteAssociationRequest$,()=>t.DeleteAssociationResult$];t.DeleteDocument$=[9,wP,Mi,0,()=>t.DeleteDocumentRequest$,()=>t.DeleteDocumentResult$];t.DeleteInventory$=[9,wP,Ss,0,()=>t.DeleteInventoryRequest$,()=>t.DeleteInventoryResult$];t.DeleteMaintenanceWindow$=[9,wP,Ts,0,()=>t.DeleteMaintenanceWindowRequest$,()=>t.DeleteMaintenanceWindowResult$];t.DeleteOpsItem$=[9,wP,oa,0,()=>t.DeleteOpsItemRequest$,()=>t.DeleteOpsItemResponse$];t.DeleteOpsMetadata$=[9,wP,fa,0,()=>t.DeleteOpsMetadataRequest$,()=>t.DeleteOpsMetadataResult$];t.DeleteParameter$=[9,wP,za,0,()=>t.DeleteParameterRequest$,()=>t.DeleteParameterResult$];t.DeleteParameters$=[9,wP,Ha,0,()=>t.DeleteParametersRequest$,()=>t.DeleteParametersResult$];t.DeletePatchBaseline$=[9,wP,ya,0,()=>t.DeletePatchBaselineRequest$,()=>t.DeletePatchBaselineResult$];t.DeleteResourceDataSync$=[9,wP,Ya,0,()=>t.DeleteResourceDataSyncRequest$,()=>t.DeleteResourceDataSyncResult$];t.DeleteResourcePolicy$=[9,wP,ec,0,()=>t.DeleteResourcePolicyRequest$,()=>t.DeleteResourcePolicyResponse$];t.DeregisterManagedInstance$=[9,wP,ws,0,()=>t.DeregisterManagedInstanceRequest$,()=>t.DeregisterManagedInstanceResult$];t.DeregisterPatchBaselineForPatchGroup$=[9,wP,Sa,0,()=>t.DeregisterPatchBaselineForPatchGroupRequest$,()=>t.DeregisterPatchBaselineForPatchGroupResult$];t.DeregisterTargetFromMaintenanceWindow$=[9,wP,hc,0,()=>t.DeregisterTargetFromMaintenanceWindowRequest$,()=>t.DeregisterTargetFromMaintenanceWindowResult$];t.DeregisterTaskFromMaintenanceWindow$=[9,wP,vc,0,()=>t.DeregisterTaskFromMaintenanceWindowRequest$,()=>t.DeregisterTaskFromMaintenanceWindowResult$];t.DescribeActivations$=[9,wP,gi,0,()=>t.DescribeActivationsRequest$,()=>t.DescribeActivationsResult$];t.DescribeAssociation$=[9,wP,yi,0,()=>t.DescribeAssociationRequest$,()=>t.DescribeAssociationResult$];t.DescribeAssociationExecutions$=[9,wP,Jo,0,()=>t.DescribeAssociationExecutionsRequest$,()=>t.DescribeAssociationExecutionsResult$];t.DescribeAssociationExecutionTargets$=[9,wP,Ko,0,()=>t.DescribeAssociationExecutionTargetsRequest$,()=>t.DescribeAssociationExecutionTargetsResult$];t.DescribeAutomationExecutions$=[9,wP,Xo,0,()=>t.DescribeAutomationExecutionsRequest$,()=>t.DescribeAutomationExecutionsResult$];t.DescribeAutomationStepExecutions$=[9,wP,pi,0,()=>t.DescribeAutomationStepExecutionsRequest$,()=>t.DescribeAutomationStepExecutionsResult$];t.DescribeAvailablePatches$=[9,wP,ti,0,()=>t.DescribeAvailablePatchesRequest$,()=>t.DescribeAvailablePatchesResult$];t.DescribeDocument$=[9,wP,Di,0,()=>t.DescribeDocumentRequest$,()=>t.DescribeDocumentResult$];t.DescribeDocumentPermission$=[9,wP,Ci,0,()=>t.DescribeDocumentPermissionRequest$,()=>t.DescribeDocumentPermissionResponse$];t.DescribeEffectiveInstanceAssociations$=[9,wP,$i,0,()=>t.DescribeEffectiveInstanceAssociationsRequest$,()=>t.DescribeEffectiveInstanceAssociationsResult$];t.DescribeEffectivePatchesForPatchBaseline$=[9,wP,Li,0,()=>t.DescribeEffectivePatchesForPatchBaselineRequest$,()=>t.DescribeEffectivePatchesForPatchBaselineResult$];t.DescribeInstanceAssociationsStatus$=[9,wP,Gi,0,()=>t.DescribeInstanceAssociationsStatusRequest$,()=>t.DescribeInstanceAssociationsStatusResult$];t.DescribeInstanceInformation$=[9,wP,ts,0,()=>t.DescribeInstanceInformationRequest$,()=>t.DescribeInstanceInformationResult$];t.DescribeInstancePatches$=[9,wP,os,0,()=>t.DescribeInstancePatchesRequest$,()=>t.DescribeInstancePatchesResult$];t.DescribeInstancePatchStates$=[9,wP,ls,0,()=>t.DescribeInstancePatchStatesRequest$,()=>t.DescribeInstancePatchStatesResult$];t.DescribeInstancePatchStatesForPatchGroup$=[9,wP,us,0,()=>t.DescribeInstancePatchStatesForPatchGroupRequest$,()=>t.DescribeInstancePatchStatesForPatchGroupResult$];t.DescribeInstanceProperties$=[9,wP,hs,0,()=>t.DescribeInstancePropertiesRequest$,()=>t.DescribeInstancePropertiesResult$];t.DescribeInventoryDeletions$=[9,wP,Qi,0,()=>t.DescribeInventoryDeletionsRequest$,()=>t.DescribeInventoryDeletionsResult$];t.DescribeMaintenanceWindowExecutions$=[9,wP,xs,0,()=>t.DescribeMaintenanceWindowExecutionsRequest$,()=>t.DescribeMaintenanceWindowExecutionsResult$];t.DescribeMaintenanceWindowExecutionTaskInvocations$=[9,wP,Ds,0,()=>t.DescribeMaintenanceWindowExecutionTaskInvocationsRequest$,()=>t.DescribeMaintenanceWindowExecutionTaskInvocationsResult$];t.DescribeMaintenanceWindowExecutionTasks$=[9,wP,Ms,0,()=>t.DescribeMaintenanceWindowExecutionTasksRequest$,()=>t.DescribeMaintenanceWindowExecutionTasksResult$];t.DescribeMaintenanceWindows$=[9,wP,ea,0,()=>t.DescribeMaintenanceWindowsRequest$,()=>t.DescribeMaintenanceWindowsResult$];t.DescribeMaintenanceWindowSchedule$=[9,wP,Vs,0,()=>t.DescribeMaintenanceWindowScheduleRequest$,()=>t.DescribeMaintenanceWindowScheduleResult$];t.DescribeMaintenanceWindowsForTarget$=[9,wP,Us,0,()=>t.DescribeMaintenanceWindowsForTargetRequest$,()=>t.DescribeMaintenanceWindowsForTargetResult$];t.DescribeMaintenanceWindowTargets$=[9,wP,Ks,0,()=>t.DescribeMaintenanceWindowTargetsRequest$,()=>t.DescribeMaintenanceWindowTargetsResult$];t.DescribeMaintenanceWindowTasks$=[9,wP,Zs,0,()=>t.DescribeMaintenanceWindowTasksRequest$,()=>t.DescribeMaintenanceWindowTasksResult$];t.DescribeOpsItems$=[9,wP,pa,0,()=>t.DescribeOpsItemsRequest$,()=>t.DescribeOpsItemsResponse$];t.DescribeParameters$=[9,wP,Va,0,()=>t.DescribeParametersRequest$,()=>t.DescribeParametersResult$];t.DescribePatchBaselines$=[9,wP,Aa,0,()=>t.DescribePatchBaselinesRequest$,()=>t.DescribePatchBaselinesResult$];t.DescribePatchGroups$=[9,wP,Ra,0,()=>t.DescribePatchGroupsRequest$,()=>t.DescribePatchGroupsResult$];t.DescribePatchGroupState$=[9,wP,xa,0,()=>t.DescribePatchGroupStateRequest$,()=>t.DescribePatchGroupStateResult$];t.DescribePatchProperties$=[9,wP,$a,0,()=>t.DescribePatchPropertiesRequest$,()=>t.DescribePatchPropertiesResult$];t.DescribeSessions$=[9,wP,fc,0,()=>t.DescribeSessionsRequest$,()=>t.DescribeSessionsResponse$];t.DisassociateOpsItemRelatedItem$=[9,wP,sa,0,()=>t.DisassociateOpsItemRelatedItemRequest$,()=>t.DisassociateOpsItemRelatedItemResponse$];t.GetAccessToken$=[9,wP,Hl,0,()=>t.GetAccessTokenRequest$,()=>t.GetAccessTokenResponse$];t.GetAutomationExecution$=[9,wP,ql,0,()=>t.GetAutomationExecutionRequest$,()=>t.GetAutomationExecutionResult$];t.GetCalendarState$=[9,wP,Yl,0,()=>t.GetCalendarStateRequest$,()=>t.GetCalendarStateResponse$];t.GetCommandInvocation$=[9,wP,Wl,0,()=>t.GetCommandInvocationRequest$,()=>t.GetCommandInvocationResult$];t.GetConnectionStatus$=[9,wP,tu,0,()=>t.GetConnectionStatusRequest$,()=>t.GetConnectionStatusResponse$];t.GetDefaultPatchBaseline$=[9,wP,ru,0,()=>t.GetDefaultPatchBaselineRequest$,()=>t.GetDefaultPatchBaselineResult$];t.GetDeployablePatchSnapshotForInstance$=[9,wP,su,0,()=>t.GetDeployablePatchSnapshotForInstanceRequest$,()=>t.GetDeployablePatchSnapshotForInstanceResult$];t.GetDocument$=[9,wP,nu,0,()=>t.GetDocumentRequest$,()=>t.GetDocumentResult$];t.GetExecutionPreview$=[9,wP,du,0,()=>t.GetExecutionPreviewRequest$,()=>t.GetExecutionPreviewResponse$];t.GetInventory$=[9,wP,hu,0,()=>t.GetInventoryRequest$,()=>t.GetInventoryResult$];t.GetInventorySchema$=[9,wP,Su,0,()=>t.GetInventorySchemaRequest$,()=>t.GetInventorySchemaResult$];t.GetMaintenanceWindow$=[9,wP,Cu,0,()=>t.GetMaintenanceWindowRequest$,()=>t.GetMaintenanceWindowResult$];t.GetMaintenanceWindowExecution$=[9,wP,Iu,0,()=>t.GetMaintenanceWindowExecutionRequest$,()=>t.GetMaintenanceWindowExecutionResult$];t.GetMaintenanceWindowExecutionTask$=[9,wP,Au,0,()=>t.GetMaintenanceWindowExecutionTaskRequest$,()=>t.GetMaintenanceWindowExecutionTaskResult$];t.GetMaintenanceWindowExecutionTaskInvocation$=[9,wP,Ru,0,()=>t.GetMaintenanceWindowExecutionTaskInvocationRequest$,()=>t.GetMaintenanceWindowExecutionTaskInvocationResult$];t.GetMaintenanceWindowTask$=[9,wP,Du,0,()=>t.GetMaintenanceWindowTaskRequest$,()=>t.GetMaintenanceWindowTaskResult$];t.GetOpsItem$=[9,wP,ku,0,()=>t.GetOpsItemRequest$,()=>t.GetOpsItemResponse$];t.GetOpsMetadata$=[9,wP,Fu,0,()=>t.GetOpsMetadataRequest$,()=>t.GetOpsMetadataResult$];t.GetOpsSummary$=[9,wP,ju,0,()=>t.GetOpsSummaryRequest$,()=>t.GetOpsSummaryResult$];t.GetParameter$=[9,wP,Vu,0,()=>t.GetParameterRequest$,()=>t.GetParameterResult$];t.GetParameterHistory$=[9,wP,td,0,()=>t.GetParameterHistoryRequest$,()=>t.GetParameterHistoryResult$];t.GetParameters$=[9,wP,cd,0,()=>t.GetParametersRequest$,()=>t.GetParametersResult$];t.GetParametersByPath$=[9,wP,Yu,0,()=>t.GetParametersByPathRequest$,()=>t.GetParametersByPathResult$];t.GetPatchBaseline$=[9,wP,Gu,0,()=>t.GetPatchBaselineRequest$,()=>t.GetPatchBaselineResult$];t.GetPatchBaselineForPatchGroup$=[9,wP,Wu,0,()=>t.GetPatchBaselineForPatchGroupRequest$,()=>t.GetPatchBaselineForPatchGroupResult$];t.GetResourcePolicies$=[9,wP,ld,0,()=>t.GetResourcePoliciesRequest$,()=>t.GetResourcePoliciesResponse$];t.GetServiceSetting$=[9,wP,md,0,()=>t.GetServiceSettingRequest$,()=>t.GetServiceSettingResult$];t.LabelParameterVersion$=[9,wP,_h,0,()=>t.LabelParameterVersionRequest$,()=>t.LabelParameterVersionResult$];t.ListAssociations$=[9,wP,Tm,0,()=>t.ListAssociationsRequest$,()=>t.ListAssociationsResult$];t.ListAssociationVersions$=[9,wP,Mm,0,()=>t.ListAssociationVersionsRequest$,()=>t.ListAssociationVersionsResult$];t.ListCommandInvocations$=[9,wP,km,0,()=>t.ListCommandInvocationsRequest$,()=>t.ListCommandInvocationsResult$];t.ListCommands$=[9,wP,Wm,0,()=>t.ListCommandsRequest$,()=>t.ListCommandsResult$];t.ListComplianceItems$=[9,wP,qm,0,()=>t.ListComplianceItemsRequest$,()=>t.ListComplianceItemsResult$];t.ListComplianceSummaries$=[9,wP,Hm,0,()=>t.ListComplianceSummariesRequest$,()=>t.ListComplianceSummariesResult$];t.ListDocumentMetadataHistory$=[9,wP,Qm,0,()=>t.ListDocumentMetadataHistoryRequest$,()=>t.ListDocumentMetadataHistoryResponse$];t.ListDocuments$=[9,wP,Km,0,()=>t.ListDocumentsRequest$,()=>t.ListDocumentsResult$];t.ListDocumentVersions$=[9,wP,eh,0,()=>t.ListDocumentVersionsRequest$,()=>t.ListDocumentVersionsResult$];t.ListInventoryEntries$=[9,wP,sh,0,()=>t.ListInventoryEntriesRequest$,()=>t.ListInventoryEntriesResult$];t.ListNodes$=[9,wP,fh,0,()=>t.ListNodesRequest$,()=>t.ListNodesResult$];t.ListNodesSummary$=[9,wP,yh,0,()=>t.ListNodesSummaryRequest$,()=>t.ListNodesSummaryResult$];t.ListOpsItemEvents$=[9,wP,vh,0,()=>t.ListOpsItemEventsRequest$,()=>t.ListOpsItemEventsResponse$];t.ListOpsItemRelatedItems$=[9,wP,bh,0,()=>t.ListOpsItemRelatedItemsRequest$,()=>t.ListOpsItemRelatedItemsResponse$];t.ListOpsMetadata$=[9,wP,Rh,0,()=>t.ListOpsMetadataRequest$,()=>t.ListOpsMetadataResult$];t.ListResourceComplianceSummaries$=[9,wP,Dh,0,()=>t.ListResourceComplianceSummariesRequest$,()=>t.ListResourceComplianceSummariesResult$];t.ListResourceDataSync$=[9,wP,kh,0,()=>t.ListResourceDataSyncRequest$,()=>t.ListResourceDataSyncResult$];t.ListTagsForResource$=[9,wP,Kh,0,()=>t.ListTagsForResourceRequest$,()=>t.ListTagsForResourceResult$];t.ModifyDocumentPermission$=[9,wP,lg,0,()=>t.ModifyDocumentPermissionRequest$,()=>t.ModifyDocumentPermissionResponse$];t.PutComplianceItems$=[9,wP,uE,0,()=>t.PutComplianceItemsRequest$,()=>t.PutComplianceItemsResult$];t.PutInventory$=[9,wP,DE,0,()=>t.PutInventoryRequest$,()=>t.PutInventoryResult$];t.PutParameter$=[9,wP,WE,0,()=>t.PutParameterRequest$,()=>t.PutParameterResult$];t.PutResourcePolicy$=[9,wP,rv,0,()=>t.PutResourcePolicyRequest$,()=>t.PutResourcePolicyResponse$];t.RegisterDefaultPatchBaseline$=[9,wP,aC,0,()=>t.RegisterDefaultPatchBaselineRequest$,()=>t.RegisterDefaultPatchBaselineResult$];t.RegisterPatchBaselineForPatchGroup$=[9,wP,GC,0,()=>t.RegisterPatchBaselineForPatchGroupRequest$,()=>t.RegisterPatchBaselineForPatchGroupResult$];t.RegisterTargetWithMaintenanceWindow$=[9,wP,pI,0,()=>t.RegisterTargetWithMaintenanceWindowRequest$,()=>t.RegisterTargetWithMaintenanceWindowResult$];t.RegisterTaskWithMaintenanceWindow$=[9,wP,yI,0,()=>t.RegisterTaskWithMaintenanceWindowRequest$,()=>t.RegisterTaskWithMaintenanceWindowResult$];t.RemoveTagsFromResource$=[9,wP,lI,0,()=>t.RemoveTagsFromResourceRequest$,()=>t.RemoveTagsFromResourceResult$];t.ResetServiceSetting$=[9,wP,oI,0,()=>t.ResetServiceSettingRequest$,()=>t.ResetServiceSettingResult$];t.ResumeSession$=[9,wP,aI,0,()=>t.ResumeSessionRequest$,()=>t.ResumeSessionResponse$];t.SendAutomationSignal$=[9,wP,KI,0,()=>t.SendAutomationSignalRequest$,()=>t.SendAutomationSignalResult$];t.SendCommand$=[9,wP,ib,0,()=>t.SendCommandRequest$,()=>t.SendCommandResult$];t.StartAccessRequest$=[9,wP,VI,0,()=>t.StartAccessRequestRequest$,()=>t.StartAccessRequestResponse$];t.StartAssociationsOnce$=[9,wP,jI,0,()=>t.StartAssociationsOnceRequest$,()=>t.StartAssociationsOnceResult$];t.StartAutomationExecution$=[9,wP,NI,0,()=>t.StartAutomationExecutionRequest$,()=>t.StartAutomationExecutionResult$];t.StartChangeRequestExecution$=[9,wP,eb,0,()=>t.StartChangeRequestExecutionRequest$,()=>t.StartChangeRequestExecutionResult$];t.StartExecutionPreview$=[9,wP,Eb,0,()=>t.StartExecutionPreviewRequest$,()=>t.StartExecutionPreviewResponse$];t.StartSession$=[9,wP,dw,0,()=>t.StartSessionRequest$,()=>t.StartSessionResponse$];t.StopAutomationExecution$=[9,wP,BI,0,()=>t.StopAutomationExecutionRequest$,()=>t.StopAutomationExecutionResult$];t.TerminateSession$=[9,wP,MA,0,()=>t.TerminateSessionRequest$,()=>t.TerminateSessionResponse$];t.UnlabelParameterVersion$=[9,wP,UR,0,()=>t.UnlabelParameterVersionRequest$,()=>t.UnlabelParameterVersionResult$];t.UpdateAssociation$=[9,wP,GA,0,()=>t.UpdateAssociationRequest$,()=>t.UpdateAssociationResult$];t.UpdateAssociationStatus$=[9,wP,QA,0,()=>t.UpdateAssociationStatusRequest$,()=>t.UpdateAssociationStatusResult$];t.UpdateDocument$=[9,wP,eR,0,()=>t.UpdateDocumentRequest$,()=>t.UpdateDocumentResult$];t.UpdateDocumentDefaultVersion$=[9,wP,tR,0,()=>t.UpdateDocumentDefaultVersionRequest$,()=>t.UpdateDocumentDefaultVersionResult$];t.UpdateDocumentMetadata$=[9,wP,oR,0,()=>t.UpdateDocumentMetadataRequest$,()=>t.UpdateDocumentMetadataResponse$];t.UpdateMaintenanceWindow$=[9,wP,hR,0,()=>t.UpdateMaintenanceWindowRequest$,()=>t.UpdateMaintenanceWindowResult$];t.UpdateMaintenanceWindowTarget$=[9,wP,SR,0,()=>t.UpdateMaintenanceWindowTargetRequest$,()=>t.UpdateMaintenanceWindowTargetResult$];t.UpdateMaintenanceWindowTask$=[9,wP,bR,0,()=>t.UpdateMaintenanceWindowTaskRequest$,()=>t.UpdateMaintenanceWindowTaskResult$];t.UpdateManagedInstanceRole$=[9,wP,pR,0,()=>t.UpdateManagedInstanceRoleRequest$,()=>t.UpdateManagedInstanceRoleResult$];t.UpdateOpsItem$=[9,wP,RR,0,()=>t.UpdateOpsItemRequest$,()=>t.UpdateOpsItemResponse$];t.UpdateOpsMetadata$=[9,wP,xR,0,()=>t.UpdateOpsMetadataRequest$,()=>t.UpdateOpsMetadataResult$];t.UpdatePatchBaseline$=[9,wP,DR,0,()=>t.UpdatePatchBaselineRequest$,()=>t.UpdatePatchBaselineResult$];t.UpdateResourceDataSync$=[9,wP,qR,0,()=>t.UpdateResourceDataSyncRequest$,()=>t.UpdateResourceDataSyncResult$];t.UpdateServiceSetting$=[9,wP,VR,0,()=>t.UpdateServiceSettingRequest$,()=>t.UpdateServiceSettingResult$]},6992:(e,t,n)=>{var o=n(9228);var i=n(4918);var a=n(4036);var d=n(9728);var f=n(7202);var m=n(7657);var h=n(2566);var C=n(4271);var P=n(5770);var D=n(8682);var k=n(3158);var L=n(8165);var F=n(3955);const q={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!q.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){q.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}const getDateHeader=e=>o.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,t)=>Math.abs(getSkewCorrectedDate(t).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if(isClockSkewed(n,t)){return n-Date.now()}return t};const throwSigningPropertyError=(e,t)=>{if(!t){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return t};const validateSigningProperties=async e=>{const t=throwSigningPropertyError("context",e.context);const n=throwSigningPropertyError("config",e.config);const o=t.endpointV2?.properties?.authSchemes?.[0];const i=throwSigningPropertyError("signer",n.signer);const a=await i(o);const d=e?.signingRegion;const f=e?.signingRegionSet;const m=e?.signingName;return{config:n,signer:a,signingRegion:d,signingRegionSet:f,signingName:m}};class AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const i=await validateSigningProperties(n);const{config:a,signer:d}=i;let{signingRegion:f,signingName:m}=i;const h=n.context;if(h?.authSchemes?.length??0>1){const[e,t]=h.authSchemes;if(e?.name==="sigv4a"&&t?.name==="sigv4"){f=t?.signingRegion??f;m=t?.signingName??m}}const C=await d.sign(e,{signingDate:getSkewCorrectedDate(a.systemClockOffset),signingRegion:f,signingService:m});return C}errorHandler(e){return t=>{const n=t.ServerTime??getDateHeader(t.$response);if(n){const o=throwSigningPropertyError("config",e.config);const i=o.systemClockOffset;o.systemClockOffset=getUpdatedSystemClockOffset(n,o.systemClockOffset);const a=o.systemClockOffset!==i;if(a&&t.$metadata){t.$metadata.clockSkewCorrected=true}}throw t}}successHandler(e,t){const n=getDateHeader(e);if(n){const e=throwSigningPropertyError("config",t.config);e.systemClockOffset=getUpdatedSystemClockOffset(n,e.systemClockOffset)}}}const V=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:i,signer:a,signingRegion:d,signingRegionSet:f,signingName:m}=await validateSigningProperties(n);const h=await(i.sigv4aSigningRegionSet?.());const C=(h??f??[d]).join(",");const P=await a.sign(e,{signingDate:getSkewCorrectedDate(i.systemClockOffset),signingRegion:C,signingService:m});return P}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const ee="AWS_AUTH_SCHEME_PREFERENCE";const te="auth_scheme_preference";const ne={environmentVariableSelector:(e,t)=>{if(t?.signingName){const n=getBearerTokenEnvKey(t.signingName);if(n in e)return["httpBearerAuth"]}if(!(ee in e))return undefined;return getArrayForCommaSeparatedString(e[ee])},configFileSelector:e=>{if(!(te in e))return undefined;return getArrayForCommaSeparatedString(e[te])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=i.normalizeProvider(e.sigv4aSigningRegionSet);return e};const re={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new a.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new a.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let t=e.credentials;let n=!!e.credentials;let o=undefined;Object.defineProperty(e,"credentials",{set(i){if(i&&i!==t&&i!==o){n=true}t=i;const a=normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider});const f=bindCallerConfig(e,a);if(n&&!f.attributed){const e=typeof t==="object"&&t!==null;o=async t=>{const n=await f(t);const o=n;if(e&&(!o.$source||Object.keys(o.$source).length===0)){return d.setCredentialFeature(o,"CREDENTIALS_CODE","e")}return o};o.memoized=f.memoized;o.configBound=f.configBound;o.attributed=true}else{o=f}},get(){return o},enumerable:true,configurable:true});e.credentials=t;const{signingEscapePath:a=true,systemClockOffset:m=e.systemClockOffset||0,sha256:h}=e;let C;if(e.signer){C=i.normalizeProvider(e.signer)}else if(e.regionInfoProvider){C=()=>i.normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([t,n])=>{const{signingRegion:o,signingService:i}=t;e.signingRegion=e.signingRegion||o||n;e.signingName=e.signingName||i||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:h,uriEscapePath:a};const m=e.signerConstructor||f.SignatureV4;return new m(d)}))}else{C=async t=>{t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await i.normalizeProvider(e.region)(),properties:{}},t);const n=t.signingRegion;const o=t.signingName;e.signingRegion=e.signingRegion||n;e.signingName=e.signingName||o||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:h,uriEscapePath:a};const m=e.signerConstructor||f.SignatureV4;return new m(d)}}const P=Object.assign(e,{systemClockOffset:m,signingEscapePath:a,signer:C});return P};const oe=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:n}){let o;if(t){if(!t?.memoized){o=i.memoizeIdentityProvider(t,i.isIdentityExpired,i.doesIdentityRequireRefresh)}else{o=t}}else{if(n){o=i.normalizeProvider(n(Object.assign({},e,{parentClientConfig:e})))}else{o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}o.memoized=true;return o}function bindCallerConfig(e,t){if(t.configBound){return t}const fn=async n=>t({...n,callerClientConfig:e});fn.memoized=t.memoized;fn.configBound=true;return fn}class ProtocolLib{queryCompat;errorRegistry;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();const d=a===void 0;return!t&&!n&&!o&&!i&&d}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,i,a){let d=e;if(e.includes("#")){[,d]=e.split("#")}const f={$metadata:i,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry){throw new Error("@aws-sdk/core/protocols - error handler not initialized.")}try{const t=a?.(this.errorRegistry,d)??this.errorRegistry.getSchema(e);return{errorSchema:t,errorMetadata:f}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=this.errorRegistry;const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:d}),f),o)}const i=o;const a=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(a),{name:d},f),o)}}compose(e,t,n){let o=n;if(t.includes("#")){[o]=t.split("#")}const i=h.TypeRegistry.for(o);const a=h.TypeRegistry.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(i);e.copyFrom(a);this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=C.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error?.Type,Code:o.Error?.Code,Message:o.Error?.message??o.Error?.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return C.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const a={Code:t,Type:o};Object.assign(e,a);for(const[e,t]of i){a[e==="message"?"Message":e]=t}delete a.__type;e.Error=a}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>h.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends m.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:t});this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const a=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return m.loadSmithyRpcV2CborErrorCode(n,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);const{errorSchema:d,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const C=h.NormalizedSchema.of(d);const P=o.message??o.Message??"UnknownError";const D=this.compositeErrorRegistry.getErrorCtor(d)??Error;const k=new D(P);const L={};for(const[e,t]of C.structIterator()){if(o[e]!=null){L[e]=this.deserializer.readValue(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,L)}throw this.mixin.decorateServiceException(Object.assign(k,f,{$fault:C.getMergedTraits().error,message:P},L),o)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)){const t=e.includes(".");if(t){return new D.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return t}const collectBodyString=(e,t)=>C.collectBody(e,t).then((e=>(t?.utf8Encoder??L.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=h.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let a=void 0;const{jsonName:d}=this.settings;if(d){a={}}let f;if(n){f=new UnionSerde(e,i)}for(const[t,m]of o.structIterator()){let o=t;if(d){o=m.getMergedTraits().jsonName??o;a[o]=t}if(n){f.mark(o)}if(e[o]!=null){i[t]=this._read(m,e[o])}}if(n){f.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=d?a[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];for(const o of t){n.push(this._read(e,o))}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};for(const[o,i]of Object.entries(t)){n[o]=this._read(e,i)}return n}}if(o.isBlobSchema()&&typeof t==="string"){return k.fromBase64(t)}const i=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&i){const e=i==="application/json"||i.endsWith("+json");if(e){return D.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=P.determineTimestampFormat(o,this.settings);switch(e){case 5:return D.parseRfc3339DateTimeWithOffset(t);case 6:return D.parseRfc7231DateTime(t);case 7:return D.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof D.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new D.NumericValue(e.string,e.type)}return new D.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof D.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const ie=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof D.NumericValue){const e=`${ie+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${ie+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=h.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=h.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const i=h.NormalizedSchema.of(e);if(o){if(i.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let a=void 0;if(o){a={}}for(const[t,d]of i.structIterator()){const f=this._write(d,e[t],i);if(f!==undefined){let e=t;if(o){e=d.getMergedTraits().jsonName??t;a[t]=e}n[e]=f}}if(i.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,i]of Object.entries(e)){const e=o?a[t]??t:t;if(!(e in n)){n[e]=this._write(15,i)}}}return n}if(Array.isArray(t)&&i.isListSchema()){const e=i.getValueSchema();const n=[];const o=!!i.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(i.isMapSchema()){const e=i.getValueSchema();const n={};const o=!!i.getMergedTraits().sparse;for(const[i,a]of Object.entries(t)){if(o||a!=null){n[i]=this._write(e,a)}}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema())){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??k.toBase64)(t)}if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema())){const e=P.determineTimestampFormat(i,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return D.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof D.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(i.isStringSchema()){if(typeof t==="undefined"&&i.isIdempotencyToken()){return D.generateIdempotencyToken()}const e=i.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return D.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&i.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&i.isBlobSchema()){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??k.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(i.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof D.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(i,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends P.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t});this.serviceTarget=n;this.codec=i??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!o;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(h.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const a=loadRestJsonErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);const{errorSchema:d,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const m=h.NormalizedSchema.of(d);const C=o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(d)??Error;const D=new P(C);const k={};for(const[e,t]of m.structIterator()){if(o[e]!=null){k[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,k)}throw this.mixin.decorateServiceException(Object.assign(D,f,{$fault:m.getMergedTraits().error,message:C},k),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends P.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});const n={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(n);this.serializer=new P.HttpInterceptingShapeSerializer(this.codec.createSerializer(),n);this.deserializer=new P.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),n)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=h.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const i=h.NormalizedSchema.of(e.output);for(const[e,t]of i.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,i){const a=loadRestJsonErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);const{errorSchema:d,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i);const m=h.NormalizedSchema.of(d);const C=o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(d)??Error;const D=new P(C);await this.deserializeHttpMessage(d,t,n,o);const k={};for(const[e,t]of m.structIterator()){const n=t.getMergedTraits().jsonName??e;k[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(D,f,{$fault:m.getMergedTraits().error,message:C},k),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return C.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new P.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=h.NormalizedSchema.of(e);const i=o.getMemberSchemas();const a=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(i).find((e=>!!e.getMemberTraits().eventPayload));if(a){const e={};const n=Object.keys(i)[0];const o=i[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(i[n],t)}return e}const d=(this.serdeContext?.utf8Encoder??L.toUtf8)(t);const f=this.parseXml(d);return this.readSchema(e,n?f[n]:f)}readSchema(e,t){const n=h.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const i=[];const a=o.getMergedTraits().xmlName??"member";const d=e?t:(t[0]??t)[a];if(d==null){return i}const f=Array.isArray(d)?d:[d];for(const e of f){i.push(this.readSchema(o,e))}return i}const i={};if(n.isMapSchema()){const o=n.getKeySchema();const a=n.getValueSchema();let d;if(e){d=Array.isArray(t)?t:[t]}else{d=Array.isArray(t.entry)?t.entry:[t.entry]}const f=o.getMergedTraits().xmlName??"key";const m=a.getMergedTraits().xmlName??"value";for(const e of d){const t=e[f];const n=e[m];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,i)}for(const[a,d]of n.structIterator()){const n=d.getMergedTraits();const f=!n.httpPayload?d.getMemberTraits().xmlName??a:n.xmlName??d.getName();if(e){o.mark(f)}if(t[f]!=null){i[a]=this.readSchema(d,t[f])}}if(e){o.writeUnknown()}return i}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=F.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return C.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=h.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??k.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(D.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof D.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=P.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(C.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let a=1;for(const o of t){if(o==null){continue}const t=e.getMergedTraits();const d=this.getKey("member",t.xmlName,t.ec2QueryName);const f=i?`${n}${a}`:`${n}${d}.${a}`;this.write(e,o,f);++a}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const a=o.getMergedTraits().xmlFlattened;let d=1;for(const[o,f]of Object.entries(t)){if(f==null){continue}const t=e.getMergedTraits();const m=this.getKey("key",t.xmlName,t.ec2QueryName);const h=a?`${n}${d}.${m}`:`${n}entry.${d}.${m}`;const C=i.getMergedTraits();const P=this.getKey("value",C.xmlName,C.ec2QueryName);const D=a?`${n}${d}.${P}`:`${n}entry.${d}.${P}`;this.write(e,o,h);this.write(i,f,D);++d}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,a]of o.structIterator()){if(t[i]==null&&!a.isIdempotencyToken()){continue}const o=a.getMergedTraits();const d=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const f=`${n}${d}`;this.write(a,t[i],f);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,n,o){const{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n){return n}const d=t??e;if(a&&o==="struct"){return d[0].toUpperCase()+d.slice(1)}return d}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${P.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=P.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends P.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(h.deref(e.input)==="unit"||!o.body){o.body=""}const i=e.name.split("#")[1]??e.name;o.body=`Action=${i}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const i=h.NormalizedSchema.of(e.output);const a={};if(n.statusCode>=300){const i=await P.collectBody(n.body,t);if(i.byteLength>0){Object.assign(a,await o.read(15,i))}await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const d=e.name.split("#")[1]??e.name;const f=i.isStructSchema()&&this.useNestedResult()?d+"Result":undefined;const m=await P.collectBody(n.body,t);if(m.byteLength>0){Object.assign(a,await o.read(i,m,f))}const C={$metadata:this.deserializeMetadata(n),...a};return C}useNestedResult(){return true}async handleError(e,t,n,o,i){const a=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);const d=this.loadQueryError(o)??{};const f=this.loadQueryErrorMessage(o);d.message=f;d.Error={Type:d.Type,Code:d.Code,Message:f};const{errorSchema:m,errorMetadata:C}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,d,i,this.mixin.findQueryCompatibleError);const P=h.NormalizedSchema.of(m);const D=this.compositeErrorRegistry.getErrorCtor(m)??Error;const k=new D(f);const L={Type:d.Error.Type,Code:d.Error.Code,Error:d.Error};for(const[e,t]of P.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=d[n]??o[n];L[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(k,C,{$fault:P.getMergedTraits().error,message:f},L),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=F.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return C.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=h.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??k.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const a=F.XmlNode.of(i);const[d,f]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){a.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,a,f)}else if(o.isMapSchema()){this.writeMap(o,e,a,f)}else if(o.isStructSchema()){a.addChildNode(this.writeStruct(o,e,f))}else{const t=F.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,f);a.addChildNode(t)}}}const{$unknown:m}=t;if(m&&e.isUnionSchema()&&Array.isArray(m)&&Object.keys(t).length===1){const[e,n]=m;const o=F.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof F.XmlNode||t instanceof F.XmlText){a.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,f);a.addChildNode(o)}if(f){a.addAttribute(d,f)}return a}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const a=e.getValueSchema();const d=a.getMergedTraits();const f=!!d.sparse;const m=!!i.xmlFlattened;const[h,C]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(a.isListSchema()){this.writeList(a,Array.isArray(n)?n:[n],t,C)}else if(a.isMapSchema()){this.writeMap(a,n,t,C)}else if(a.isStructSchema()){const o=this.writeStruct(a,n,C);t.addChildNode(o.withName(m?i.xmlName??e.getMemberName():d.xmlName??"member"))}else{const o=F.XmlNode.of(m?i.xmlName??e.getMemberName():d.xmlName??"member");this.writeSimpleInto(a,n,o,C);t.addChildNode(o)}};if(m){for(const e of t){if(f||e!=null){writeItem(n,e)}}}else{const o=F.XmlNode.of(i.xmlName??e.getMemberName());if(C){o.addAttribute(h,C)}for(const e of t){if(f||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const a=e.getMergedTraits();const d=e.getKeySchema();const f=d.getMergedTraits();const m=f.xmlName??"key";const h=e.getValueSchema();const C=h.getMergedTraits();const P=C.xmlName??"value";const D=!!C.sparse;const k=!!a.xmlFlattened;const[L,q]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=F.XmlNode.of(m,t);const[i,a]=this.getXmlnsAttribute(d,q);if(a){o.addAttribute(i,a)}e.addChildNode(o);let f=F.XmlNode.of(P);if(h.isListSchema()){this.writeList(h,n,f,q)}else if(h.isMapSchema()){this.writeMap(h,n,f,q,true)}else if(h.isStructSchema()){f=this.writeStruct(h,n,q)}else{this.writeSimpleInto(h,n,f,q)}e.addChildNode(f)};if(k){for(const[o,i]of Object.entries(t)){if(D||i!=null){const t=F.XmlNode.of(a.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=F.XmlNode.of(a.xmlName??e.getMemberName());if(q){o.addAttribute(L,q)}n.addChildNode(o)}for(const[e,a]of Object.entries(t)){if(D||a!=null){const t=F.XmlNode.of("entry");addKeyValue(t,e,a);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=h.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??k.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=P.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=C.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=C.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof D.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=D.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const i=this.writeSimple(e,t);const a=h.NormalizedSchema.of(e);const d=new F.XmlText(i);const[f,m]=this.getXmlnsAttribute(a,o);if(m){n.addAttribute(f,m)}n.addChildNode(d)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends P.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new P.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new P.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t);this.compositeErrorRegistry}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=h.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(i)){o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const a=loadRestXmlErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);if(o.Error&&typeof o.Error==="object"){for(const e of Object.keys(o.Error)){o[e]=o.Error[e];if(e.toLowerCase()==="message"){o.message=o.Error[e]}}}if(o.RequestId&&!i.requestId){i.requestId=o.RequestId}const{errorSchema:d,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i);const m=h.NormalizedSchema.of(d);const C=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(d)??Error;const D=new P(C);await this.deserializeHttpMessage(d,t,n,o);const k={};for(const[e,t]of m.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];k[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(D,f,{$fault:m.getMergedTraits().error,message:C},k),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AWSSDKSigV4Signer=V;t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;t.AwsSdkSigV4Signer=AwsSdkSigV4Signer;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=ne;t.NODE_SIGV4A_CONFIG_OPTIONS=re;t.QueryShapeSerializer=QueryShapeSerializer;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getBearerTokenEnvKey=getBearerTokenEnvKey;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody;t.resolveAWSSDKSigV4Config=oe;t.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;t.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=q;t.validateSigningProperties=validateSigningProperties},9728:(e,t)=>{const n={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!n.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){n.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=n},8803:(e,t,n)=>{var o=n(9228);var i=n(4918);var a=n(4036);var d=n(9728);var f=n(7202);const getDateHeader=e=>o.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,t)=>Math.abs(getSkewCorrectedDate(t).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if(isClockSkewed(n,t)){return n-Date.now()}return t};const throwSigningPropertyError=(e,t)=>{if(!t){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return t};const validateSigningProperties=async e=>{const t=throwSigningPropertyError("context",e.context);const n=throwSigningPropertyError("config",e.config);const o=t.endpointV2?.properties?.authSchemes?.[0];const i=throwSigningPropertyError("signer",n.signer);const a=await i(o);const d=e?.signingRegion;const f=e?.signingRegionSet;const m=e?.signingName;return{config:n,signer:a,signingRegion:d,signingRegionSet:f,signingName:m}};class AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const i=await validateSigningProperties(n);const{config:a,signer:d}=i;let{signingRegion:f,signingName:m}=i;const h=n.context;if(h?.authSchemes?.length??0>1){const[e,t]=h.authSchemes;if(e?.name==="sigv4a"&&t?.name==="sigv4"){f=t?.signingRegion??f;m=t?.signingName??m}}const C=await d.sign(e,{signingDate:getSkewCorrectedDate(a.systemClockOffset),signingRegion:f,signingService:m});return C}errorHandler(e){return t=>{const n=t.ServerTime??getDateHeader(t.$response);if(n){const o=throwSigningPropertyError("config",e.config);const i=o.systemClockOffset;o.systemClockOffset=getUpdatedSystemClockOffset(n,o.systemClockOffset);const a=o.systemClockOffset!==i;if(a&&t.$metadata){t.$metadata.clockSkewCorrected=true}}throw t}}successHandler(e,t){const n=getDateHeader(e);if(n){const e=throwSigningPropertyError("config",t.config);e.systemClockOffset=getUpdatedSystemClockOffset(n,e.systemClockOffset)}}}const m=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:i,signer:a,signingRegion:d,signingRegionSet:f,signingName:m}=await validateSigningProperties(n);const h=await(i.sigv4aSigningRegionSet?.());const C=(h??f??[d]).join(",");const P=await a.sign(e,{signingDate:getSkewCorrectedDate(i.systemClockOffset),signingRegion:C,signingService:m});return P}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const h="AWS_AUTH_SCHEME_PREFERENCE";const C="auth_scheme_preference";const P={environmentVariableSelector:(e,t)=>{if(t?.signingName){const n=getBearerTokenEnvKey(t.signingName);if(n in e)return["httpBearerAuth"]}if(!(h in e))return undefined;return getArrayForCommaSeparatedString(e[h])},configFileSelector:e=>{if(!(C in e))return undefined;return getArrayForCommaSeparatedString(e[C])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=i.normalizeProvider(e.sigv4aSigningRegionSet);return e};const D={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new a.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new a.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let t=e.credentials;let n=!!e.credentials;let o=undefined;Object.defineProperty(e,"credentials",{set(i){if(i&&i!==t&&i!==o){n=true}t=i;const a=normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider});const f=bindCallerConfig(e,a);if(n&&!f.attributed){const e=typeof t==="object"&&t!==null;o=async t=>{const n=await f(t);const o=n;if(e&&(!o.$source||Object.keys(o.$source).length===0)){return d.setCredentialFeature(o,"CREDENTIALS_CODE","e")}return o};o.memoized=f.memoized;o.configBound=f.configBound;o.attributed=true}else{o=f}},get(){return o},enumerable:true,configurable:true});e.credentials=t;const{signingEscapePath:a=true,systemClockOffset:m=e.systemClockOffset||0,sha256:h}=e;let C;if(e.signer){C=i.normalizeProvider(e.signer)}else if(e.regionInfoProvider){C=()=>i.normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([t,n])=>{const{signingRegion:o,signingService:i}=t;e.signingRegion=e.signingRegion||o||n;e.signingName=e.signingName||i||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:h,uriEscapePath:a};const m=e.signerConstructor||f.SignatureV4;return new m(d)}))}else{C=async t=>{t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await i.normalizeProvider(e.region)(),properties:{}},t);const n=t.signingRegion;const o=t.signingName;e.signingRegion=e.signingRegion||n;e.signingName=e.signingName||o||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:h,uriEscapePath:a};const m=e.signerConstructor||f.SignatureV4;return new m(d)}}const P=Object.assign(e,{systemClockOffset:m,signingEscapePath:a,signer:C});return P};const k=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:n}){let o;if(t){if(!t?.memoized){o=i.memoizeIdentityProvider(t,i.isIdentityExpired,i.doesIdentityRequireRefresh)}else{o=t}}else{if(n){o=i.normalizeProvider(n(Object.assign({},e,{parentClientConfig:e})))}else{o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}o.memoized=true;return o}function bindCallerConfig(e,t){if(t.configBound){return t}const fn=async n=>t({...n,callerClientConfig:e});fn.memoized=t.memoized;fn.configBound=true;return fn}t.AWSSDKSigV4Signer=m;t.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;t.AwsSdkSigV4Signer=AwsSdkSigV4Signer;t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=P;t.NODE_SIGV4A_CONFIG_OPTIONS=D;t.getBearerTokenEnvKey=getBearerTokenEnvKey;t.resolveAWSSDKSigV4Config=k;t.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;t.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;t.validateSigningProperties=validateSigningProperties},4552:(e,t,n)=>{var o=n(7657);var i=n(2566);var a=n(4271);var d=n(5770);var f=n(8682);var m=n(3158);var h=n(8165);var C=n(3955);class ProtocolLib{queryCompat;errorRegistry;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();const d=a===void 0;return!t&&!n&&!o&&!i&&d}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,i,a){let d=e;if(e.includes("#")){[,d]=e.split("#")}const f={$metadata:i,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry){throw new Error("@aws-sdk/core/protocols - error handler not initialized.")}try{const t=a?.(this.errorRegistry,d)??this.errorRegistry.getSchema(e);return{errorSchema:t,errorMetadata:f}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=this.errorRegistry;const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:d}),f),o)}const i=o;const a=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(a),{name:d},f),o)}}compose(e,t,n){let o=n;if(t.includes("#")){[o]=t.split("#")}const a=i.TypeRegistry.for(o);const d=i.TypeRegistry.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(a);e.copyFrom(d);this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=a.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error?.Type,Code:o.Error?.Code,Message:o.Error?.message??o.Error?.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return a.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const a={Code:t,Type:o};Object.assign(e,a);for(const[e,t]of i){a[e==="message"?"Message":e]=t}delete a.__type;e.Error=a}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>i.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends o.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:t});this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,a,d){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(a,n)}const f=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return o.loadSmithyRpcV2CborErrorCode(n,a)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,f,this.options.defaultNamespace);const{errorSchema:m,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(f,this.options.defaultNamespace,n,a,d,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const C=i.NormalizedSchema.of(m);const P=a.message??a.Message??"UnknownError";const D=this.compositeErrorRegistry.getErrorCtor(m)??Error;const k=new D(P);const L={};for(const[e,t]of C.structIterator()){if(a[e]!=null){L[e]=this.deserializer.readValue(t,a[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(a,L)}throw this.mixin.decorateServiceException(Object.assign(k,h,{$fault:C.getMergedTraits().error,message:P},L),a)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)){const t=e.includes(".");if(t){return new f.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return t}const collectBodyString=(e,t)=>a.collectBody(e,t).then((e=>(t?.utf8Encoder??h.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=i.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let a=void 0;const{jsonName:d}=this.settings;if(d){a={}}let f;if(n){f=new UnionSerde(e,i)}for(const[t,m]of o.structIterator()){let o=t;if(d){o=m.getMergedTraits().jsonName??o;a[o]=t}if(n){f.mark(o)}if(e[o]!=null){i[t]=this._read(m,e[o])}}if(n){f.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=d?a[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];for(const o of t){n.push(this._read(e,o))}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};for(const[o,i]of Object.entries(t)){n[o]=this._read(e,i)}return n}}if(o.isBlobSchema()&&typeof t==="string"){return m.fromBase64(t)}const a=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&a){const e=a==="application/json"||a.endsWith("+json");if(e){return f.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:return f.parseRfc3339DateTimeWithOffset(t);case 6:return f.parseRfc7231DateTime(t);case 7:return f.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof f.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new f.NumericValue(e.string,e.type)}return new f.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof f.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const P=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof f.NumericValue){const e=`${P+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${P+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=i.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=i.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const a=i.NormalizedSchema.of(e);if(o){if(a.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let i=void 0;if(o){i={}}for(const[t,d]of a.structIterator()){const f=this._write(d,e[t],a);if(f!==undefined){let e=t;if(o){e=d.getMergedTraits().jsonName??t;i[t]=e}n[e]=f}}if(a.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,a]of Object.entries(e)){const e=o?i[t]??t:t;if(!(e in n)){n[e]=this._write(15,a)}}}return n}if(Array.isArray(t)&&a.isListSchema()){const e=a.getValueSchema();const n=[];const o=!!a.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(a.isMapSchema()){const e=a.getValueSchema();const n={};const o=!!a.getMergedTraits().sparse;for(const[i,a]of Object.entries(t)){if(o||a!=null){n[i]=this._write(e,a)}}return n}if(t instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema())){if(a===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??m.toBase64)(t)}if(t instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema())){const e=d.determineTimestampFormat(a,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return f.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof f.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(a.isStringSchema()){if(typeof t==="undefined"&&a.isIdempotencyToken()){return f.generateIdempotencyToken()}const e=a.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return f.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&a.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&a.isBlobSchema()){if(a===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??m.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(a.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof f.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(a,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends d.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t});this.serviceTarget=n;this.codec=i??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!o;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(i.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,a){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const d=loadRestJsonErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:f,errorMetadata:m}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,a,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const h=i.NormalizedSchema.of(f);const C=o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(f)??Error;const D=new P(C);const k={};for(const[e,t]of h.structIterator()){if(o[e]!=null){k[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,k)}throw this.mixin.decorateServiceException(Object.assign(D,m,{$fault:h.getMergedTraits().error,message:C},k),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends d.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});const n={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(n);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),n);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),n)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const a=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),a);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const a=i.NormalizedSchema.of(e.output);for(const[e,t]of a.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,a){const d=loadRestJsonErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:f,errorMetadata:m}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,a);const h=i.NormalizedSchema.of(f);const C=o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(f)??Error;const D=new P(C);await this.deserializeHttpMessage(f,t,n,o);const k={};for(const[e,t]of h.structIterator()){const n=t.getMergedTraits().jsonName??e;k[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(D,m,{$fault:h.getMergedTraits().error,message:C},k),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return a.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new d.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=i.NormalizedSchema.of(e);const a=o.getMemberSchemas();const d=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(a).find((e=>!!e.getMemberTraits().eventPayload));if(d){const e={};const n=Object.keys(a)[0];const o=a[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(a[n],t)}return e}const f=(this.serdeContext?.utf8Encoder??h.toUtf8)(t);const m=this.parseXml(f);return this.readSchema(e,n?m[n]:m)}readSchema(e,t){const n=i.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const i=[];const a=o.getMergedTraits().xmlName??"member";const d=e?t:(t[0]??t)[a];if(d==null){return i}const f=Array.isArray(d)?d:[d];for(const e of f){i.push(this.readSchema(o,e))}return i}const i={};if(n.isMapSchema()){const o=n.getKeySchema();const a=n.getValueSchema();let d;if(e){d=Array.isArray(t)?t:[t]}else{d=Array.isArray(t.entry)?t.entry:[t.entry]}const f=o.getMergedTraits().xmlName??"key";const m=a.getMergedTraits().xmlName??"value";for(const e of d){const t=e[f];const n=e[m];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,i)}for(const[a,d]of n.structIterator()){const n=d.getMergedTraits();const f=!n.httpPayload?d.getMemberTraits().xmlName??a:n.xmlName??d.getName();if(e){o.mark(f)}if(t[f]!=null){i[a]=this.readSchema(d,t[f])}}if(e){o.writeUnknown()}return i}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=C.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return a.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=i.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??m.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(f.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof f.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(a.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let a=1;for(const o of t){if(o==null){continue}const t=e.getMergedTraits();const d=this.getKey("member",t.xmlName,t.ec2QueryName);const f=i?`${n}${a}`:`${n}${d}.${a}`;this.write(e,o,f);++a}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const a=o.getMergedTraits().xmlFlattened;let d=1;for(const[o,f]of Object.entries(t)){if(f==null){continue}const t=e.getMergedTraits();const m=this.getKey("key",t.xmlName,t.ec2QueryName);const h=a?`${n}${d}.${m}`:`${n}entry.${d}.${m}`;const C=i.getMergedTraits();const P=this.getKey("value",C.xmlName,C.ec2QueryName);const D=a?`${n}${d}.${P}`:`${n}entry.${d}.${P}`;this.write(e,o,h);this.write(i,f,D);++d}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,a]of o.structIterator()){if(t[i]==null&&!a.isIdempotencyToken()){continue}const o=a.getMergedTraits();const d=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const f=`${n}${d}`;this.write(a,t[i],f);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,n,o){const{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n){return n}const d=t??e;if(a&&o==="struct"){return d[0].toUpperCase()+d.slice(1)}return d}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${d.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=d.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends d.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(i.deref(e.input)==="unit"||!o.body){o.body=""}const a=e.name.split("#")[1]??e.name;o.body=`Action=${a}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const a=i.NormalizedSchema.of(e.output);const f={};if(n.statusCode>=300){const i=await d.collectBody(n.body,t);if(i.byteLength>0){Object.assign(f,await o.read(15,i))}await this.handleError(e,t,n,f,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const m=e.name.split("#")[1]??e.name;const h=a.isStructSchema()&&this.useNestedResult()?m+"Result":undefined;const C=await d.collectBody(n.body,t);if(C.byteLength>0){Object.assign(f,await o.read(a,C,h))}const P={$metadata:this.deserializeMetadata(n),...f};return P}useNestedResult(){return true}async handleError(e,t,n,o,a){const d=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const f=this.loadQueryError(o)??{};const m=this.loadQueryErrorMessage(o);f.message=m;f.Error={Type:f.Type,Code:f.Code,Message:m};const{errorSchema:h,errorMetadata:C}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,f,a,this.mixin.findQueryCompatibleError);const P=i.NormalizedSchema.of(h);const D=this.compositeErrorRegistry.getErrorCtor(h)??Error;const k=new D(m);const L={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[e,t]of P.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=f[n]??o[n];L[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(k,C,{$fault:P.getMergedTraits().error,message:m},L),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=C.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return a.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??m.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const a=C.XmlNode.of(i);const[d,f]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){a.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,a,f)}else if(o.isMapSchema()){this.writeMap(o,e,a,f)}else if(o.isStructSchema()){a.addChildNode(this.writeStruct(o,e,f))}else{const t=C.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,f);a.addChildNode(t)}}}const{$unknown:m}=t;if(m&&e.isUnionSchema()&&Array.isArray(m)&&Object.keys(t).length===1){const[e,n]=m;const o=C.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof C.XmlNode||t instanceof C.XmlText){a.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,f);a.addChildNode(o)}if(f){a.addAttribute(d,f)}return a}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const a=e.getValueSchema();const d=a.getMergedTraits();const f=!!d.sparse;const m=!!i.xmlFlattened;const[h,P]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(a.isListSchema()){this.writeList(a,Array.isArray(n)?n:[n],t,P)}else if(a.isMapSchema()){this.writeMap(a,n,t,P)}else if(a.isStructSchema()){const o=this.writeStruct(a,n,P);t.addChildNode(o.withName(m?i.xmlName??e.getMemberName():d.xmlName??"member"))}else{const o=C.XmlNode.of(m?i.xmlName??e.getMemberName():d.xmlName??"member");this.writeSimpleInto(a,n,o,P);t.addChildNode(o)}};if(m){for(const e of t){if(f||e!=null){writeItem(n,e)}}}else{const o=C.XmlNode.of(i.xmlName??e.getMemberName());if(P){o.addAttribute(h,P)}for(const e of t){if(f||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const a=e.getMergedTraits();const d=e.getKeySchema();const f=d.getMergedTraits();const m=f.xmlName??"key";const h=e.getValueSchema();const P=h.getMergedTraits();const D=P.xmlName??"value";const k=!!P.sparse;const L=!!a.xmlFlattened;const[F,q]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=C.XmlNode.of(m,t);const[i,a]=this.getXmlnsAttribute(d,q);if(a){o.addAttribute(i,a)}e.addChildNode(o);let f=C.XmlNode.of(D);if(h.isListSchema()){this.writeList(h,n,f,q)}else if(h.isMapSchema()){this.writeMap(h,n,f,q,true)}else if(h.isStructSchema()){f=this.writeStruct(h,n,q)}else{this.writeSimpleInto(h,n,f,q)}e.addChildNode(f)};if(L){for(const[o,i]of Object.entries(t)){if(k||i!=null){const t=C.XmlNode.of(a.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=C.XmlNode.of(a.xmlName??e.getMemberName());if(q){o.addAttribute(F,q)}n.addChildNode(o)}for(const[e,a]of Object.entries(t)){if(k||a!=null){const t=C.XmlNode.of("entry");addKeyValue(t,e,a);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=i.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??m.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=d.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=a.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=a.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof f.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=f.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const a=this.writeSimple(e,t);const d=i.NormalizedSchema.of(e);const f=new C.XmlText(a);const[m,h]=this.getXmlnsAttribute(d,o);if(h){n.addAttribute(m,h)}n.addChildNode(f)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends d.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t);this.compositeErrorRegistry}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const a=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),a);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(a)){o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,a){const d=loadRestXmlErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);if(o.Error&&typeof o.Error==="object"){for(const e of Object.keys(o.Error)){o[e]=o.Error[e];if(e.toLowerCase()==="message"){o.message=o.Error[e]}}}if(o.RequestId&&!a.requestId){a.requestId=o.RequestId}const{errorSchema:f,errorMetadata:m}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,a);const h=i.NormalizedSchema.of(f);const C=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(f)??Error;const D=new P(C);await this.deserializeHttpMessage(f,t,n,o);const k={};for(const[e,t]of h.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];k[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(D,m,{$fault:h.getMergedTraits().error,message:C},k),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.QueryShapeSerializer=QueryShapeSerializer;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody},5106:(e,t,n)=>{var o=n(4036);function resolveLogins(e){return Promise.all(Object.keys(e).reduce(((t,n)=>{const o=e[n];if(typeof o==="string"){t.push([n,o])}else{t.push(o().then((e=>[n,e])))}return t}),[])).then((e=>e.reduce(((e,[t,n])=>{e[t]=n;return e}),{})))}function fromCognitoIdentity(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:i}=await Promise.resolve().then((function(){return n(3979)}));const fromConfigs=n=>e.clientConfig?.[n]??e.parentClientConfig?.[n]??t?.callerClientConfig?.[n];const{Credentials:{AccessKeyId:a=throwOnMissingAccessKeyId(e.logger),Expiration:d,SecretKey:f=throwOnMissingSecretKey(e.logger),SessionToken:m}=throwOnMissingCredentials(e.logger)}=await(e.client??new i(Object.assign({},e.clientConfig??{},{region:fromConfigs("region"),profile:fromConfigs("profile"),userAgentAppId:fromConfigs("userAgentAppId")}))).send(new o({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await resolveLogins(e.logins):undefined}));return{identityId:e.identityId,accessKeyId:a,secretAccessKey:f,sessionToken:m,expiration:d}}}function throwOnMissingAccessKeyId(e){throw new o.CredentialsProviderError("Response from Amazon Cognito contained no access key ID",{logger:e})}function throwOnMissingCredentials(e){throw new o.CredentialsProviderError("Response from Amazon Cognito contained no credentials",{logger:e})}function throwOnMissingSecretKey(e){throw new o.CredentialsProviderError("Response from Amazon Cognito contained no secret key",{logger:e})}const i="IdentityIds";class IndexedDbStorage{dbName;constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",(t=>{const n=t.get(e);return new Promise((e=>{n.onerror=()=>e(null);n.onsuccess=()=>e(n.result?n.result.value:null)}))})).catch((()=>null))}removeItem(e){return this.withObjectStore("readwrite",(t=>{const n=t.delete(e);return new Promise(((e,t)=>{n.onerror=()=>t(n.error);n.onsuccess=()=>e()}))}))}setItem(e,t){return this.withObjectStore("readwrite",(n=>{const o=n.put({id:e,value:t});return new Promise(((e,t)=>{o.onerror=()=>t(o.error);o.onsuccess=()=>e()}))}))}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise(((t,n)=>{e.onsuccess=()=>{t(e.result)};e.onerror=()=>{n(e.error)};e.onblocked=()=>{n(new Error("Unable to access DB"))};e.onupgradeneeded=()=>{const t=e.result;t.onerror=()=>{n(new Error("Failed to create object store"))};t.createObjectStore(i,{keyPath:"id"})}}))}withObjectStore(e,t){return this.getDb().then((n=>{const o=n.transaction(i,e);o.oncomplete=()=>n.close();return new Promise(((e,n)=>{o.onerror=()=>n(o.error);e(t(o.objectStore(i)))})).catch((e=>{n.close();throw e}))}))}}class InMemoryStorage{store;constructor(e={}){this.store=e}getItem(e){if(e in this.store){return this.store[e]}return null}removeItem(e){delete this.store[e]}setItem(e,t){this.store[e]=t}}const a=new InMemoryStorage;function localStorage(){if(typeof self==="object"&&self.indexedDB){return new IndexedDbStorage}if(typeof window==="object"&&window.localStorage){return window.localStorage}return a}function fromCognitoIdentityPool({accountId:e,cache:t=localStorage(),client:o,clientConfig:i,customRoleArn:a,identityPoolId:d,logins:f,userIdentifier:m=(!f||Object.keys(f).length===0?"ANONYMOUS":undefined),logger:h,parentClientConfig:C}){h?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const P=m?`aws:cognito-identity-credentials:${d}:${m}`:undefined;let provider=async m=>{const{GetIdCommand:D,CognitoIdentityClient:k}=await Promise.resolve().then((function(){return n(3979)}));const fromConfigs=e=>i?.[e]??C?.[e]??m?.callerClientConfig?.[e];const L=o??new k(Object.assign({},i??{},{region:fromConfigs("region"),profile:fromConfigs("profile"),userAgentAppId:fromConfigs("userAgentAppId")}));let F=P&&await t.getItem(P);if(!F){const{IdentityId:n=throwOnMissingId(h)}=await L.send(new D({AccountId:e,IdentityPoolId:d,Logins:f?await resolveLogins(f):undefined}));F=n;if(P){Promise.resolve(t.setItem(P,F)).catch((()=>{}))}}provider=fromCognitoIdentity({client:L,customRoleArn:a,logins:f,identityId:F});return provider(m)};return e=>provider(e).catch((async e=>{if(P){Promise.resolve(t.removeItem(P)).catch((()=>{}))}throw e}))}function throwOnMissingId(e){throw new o.CredentialsProviderError("Response from Amazon Cognito contained no identity ID",{logger:e})}t.fromCognitoIdentity=fromCognitoIdentity;t.fromCognitoIdentityPool=fromCognitoIdentityPool},3979:(e,t,n)=>{var o=n(2994);t.CognitoIdentityClient=o.CognitoIdentityClient;t.GetCredentialsForIdentityCommand=o.GetCredentialsForIdentityCommand;t.GetIdCommand=o.GetIdCommand},51:(e,t,n)=>{var o=n(9728);var i=n(4036);const a="AWS_ACCESS_KEY_ID";const d="AWS_SECRET_ACCESS_KEY";const f="AWS_SESSION_TOKEN";const m="AWS_CREDENTIAL_EXPIRATION";const h="AWS_CREDENTIAL_SCOPE";const C="AWS_ACCOUNT_ID";const fromEnv=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[a];const n=process.env[d];const P=process.env[f];const D=process.env[m];const k=process.env[h];const L=process.env[C];if(t&&n){const e={accessKeyId:t,secretAccessKey:n,...P&&{sessionToken:P},...D&&{expiration:new Date(D)},...k&&{credentialScope:k},...L&&{accountId:L}};o.setCredentialFeature(e,"CREDENTIALS_ENV_VARS","g");return e}throw new i.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};t.ENV_ACCOUNT_ID=C;t.ENV_CREDENTIAL_SCOPE=h;t.ENV_EXPIRATION=m;t.ENV_KEY=a;t.ENV_SECRET=d;t.ENV_SESSION=f;t.fromEnv=fromEnv},577:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkUrl=void 0;const o=n(4036);const i="127.0.0.0/8";const a="::1/128";const d="169.254.170.2";const f="169.254.170.23";const m="[fd00:ec2::23]";const checkUrl=(e,t)=>{if(e.protocol==="https:"){return}if(e.hostname===d||e.hostname===f||e.hostname===m){return}if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]"){return}}else{if(e.hostname==="localhost"){return}const t=e.hostname.split(".");const inRange=e=>{const t=parseInt(e,10);return 0<=t&&t<=255};if(t[0]==="127"&&inRange(t[1])&&inRange(t[2])&&inRange(t[3])&&t.length===4){return}}throw new o.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})};t.checkUrl=checkUrl},1332:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromHttp=void 0;const o=n(7892);const i=n(9728);const a=n(5422);const d=n(4036);const f=o.__importDefault(n(1455));const m=n(577);const h=n(974);const C=n(4582);const P="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const D="http://169.254.170.2";const k="AWS_CONTAINER_CREDENTIALS_FULL_URI";const L="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";const F="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromHttp=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t;const n=e.awsContainerCredentialsRelativeUri??process.env[P];const o=e.awsContainerCredentialsFullUri??process.env[k];const q=e.awsContainerAuthorizationToken??process.env[F];const V=e.awsContainerAuthorizationTokenFile??process.env[L];const ee=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(n&&o){ee("@aws-sdk/credential-provider-http: "+"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");ee("awsContainerCredentialsFullUri will take precedence.")}if(q&&V){ee("@aws-sdk/credential-provider-http: "+"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");ee("awsContainerAuthorizationToken will take precedence.")}if(o){t=o}else if(n){t=`${D}${n}`}else{throw new d.CredentialsProviderError(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger})}const te=new URL(t);(0,m.checkUrl)(te,e.logger);const ne=a.NodeHttpHandler.create({requestTimeout:e.timeout??1e3,connectionTimeout:e.timeout??1e3});return(0,C.retryWrapper)((async()=>{const t=(0,h.createGetRequest)(te);if(q){t.headers.Authorization=q}else if(V){t.headers.Authorization=(await f.default.readFile(V)).toString()}try{const e=await ne.handle(t);return(0,h.getCredentials)(e.response).then((e=>(0,i.setCredentialFeature)(e,"CREDENTIALS_HTTP","z")))}catch(t){throw new d.CredentialsProviderError(String(t),{logger:e.logger})}}),e.maxRetries??3,e.timeout??1e3)};t.fromHttp=fromHttp},974:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createGetRequest=createGetRequest;t.getCredentials=getCredentials;const o=n(4036);const i=n(9228);const a=n(4271);const d=n(6442);function createGetRequest(e){return new i.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce(((e,[t,n])=>{e[t]=n;return e}),{}),fragment:e.hash})}async function getCredentials(e,t){const n=(0,d.sdkStreamMixin)(e.body);const i=await n.transformToString();if(e.statusCode===200){const e=JSON.parse(i);if(typeof e.AccessKeyId!=="string"||typeof e.SecretAccessKey!=="string"||typeof e.Token!=="string"||typeof e.Expiration!=="string"){throw new o.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: "+"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t})}return{accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:(0,a.parseRfc3339DateTime)(e.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(i)}catch(e){}throw Object.assign(new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:t})}},4582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.retryWrapper=void 0;const retryWrapper=(e,t,n)=>async()=>{for(let o=0;o<t;++o){try{return await e()}catch(e){await new Promise((e=>setTimeout(e,n)))}}return await e()};t.retryWrapper=retryWrapper},6105:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromHttp=void 0;var o=n(1332);Object.defineProperty(t,"fromHttp",{enumerable:true,get:function(){return o.fromHttp}})},3668:(e,t,n)=>{var o=n(7016);var i=n(4036);var a=n(9728);var d=n(7278);const resolveCredentialSource=(e,t,o)=>{const a={EcsContainer:async e=>{const{fromHttp:t}=await Promise.resolve().then(n.bind(n,6105));const{fromContainerMetadata:a}=await Promise.resolve().then(n.t.bind(n,5518,19));o?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");return async()=>i.chain(t(e??{}),a(e))().then(setNamedProvider)},Ec2InstanceMetadata:async e=>{o?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:t}=await Promise.resolve().then(n.t.bind(n,5518,19));return async()=>t(e)().then(setNamedProvider)},Environment:async e=>{o?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:t}=await Promise.resolve().then(n.t.bind(n,51,19));return async()=>t(e)().then(setNamedProvider)}};if(e in a){return a[e]}else{throw new i.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:o})}};const setNamedProvider=e=>a.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");const isAssumeRoleProfile=(e,{profile:t="default",logger:n}={})=>Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(e,{profile:t,logger:n})||isCredentialSourceProfile(e,{profile:t,logger:n}));const isAssumeRoleWithSourceProfile=(e,{profile:t,logger:n})=>{const o=typeof e.source_profile==="string"&&typeof e.credential_source==="undefined";if(o){n?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`)}return o};const isCredentialSourceProfile=(e,{profile:t,logger:n})=>{const o=typeof e.credential_source==="string"&&typeof e.source_profile==="undefined";if(o){n?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`)}return o};const resolveAssumeRoleCredentials=async(e,t,d,f,m={},h)=>{d.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const C=t[e];const{source_profile:P,region:D}=C;if(!d.roleAssumer){const{getDefaultRoleAssumer:e}=await Promise.resolve().then(n.t.bind(n,3266,23));d.roleAssumer=e({...d.clientConfig,credentialProviderLogger:d.logger,parentClientConfig:{...f,...d?.parentClientConfig,region:D??d?.parentClientConfig?.region??f?.region}},d.clientPlugins)}if(P&&P in m){throw new i.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${o.getProfileName(d)}. Profiles visited: `+Object.keys(m).join(", "),{logger:d.logger})}d.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${P?`source_profile=[${P}]`:`profile=[${e}]`}`);const k=P?h(P,t,d,f,{...m,[P]:true},isCredentialSourceWithoutRoleArn(t[P]??{})):(await resolveCredentialSource(C.credential_source,e,d.logger)(d))();if(isCredentialSourceWithoutRoleArn(C)){return k.then((e=>a.setCredentialFeature(e,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o")))}else{const t={RoleArn:C.role_arn,RoleSessionName:C.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:C.external_id,DurationSeconds:parseInt(C.duration_seconds||"3600",10)};const{mfa_serial:n}=C;if(n){if(!d.mfaCodeProvider){throw new i.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:d.logger,tryNextLink:false})}t.SerialNumber=n;t.TokenCode=await d.mfaCodeProvider(n)}const o=await k;return d.roleAssumer(o,t).then((e=>a.setCredentialFeature(e,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o")))}};const isCredentialSourceWithoutRoleArn=e=>!e.role_arn&&!!e.credential_source;const isLoginProfile=e=>Boolean(e&&e.login_session);const resolveLoginCredentials=async(e,t,n)=>{const o=await d.fromLoginCredentials({...t,profile:e})({callerClientConfig:n});return a.setCredentialFeature(o,"CREDENTIALS_PROFILE_LOGIN","AC")};const isProcessProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string";const resolveProcessCredentials=async(e,t)=>Promise.resolve().then(n.t.bind(n,5271,19)).then((({fromProcess:n})=>n({...e,profile:t})().then((e=>a.setCredentialFeature(e,"CREDENTIALS_PROFILE_PROCESS","v")))));const resolveSsoCredentials=async(e,t,o={},i)=>{const{fromSSO:d}=await Promise.resolve().then(n.t.bind(n,4598,19));return d({profile:e,logger:o.logger,parentClientConfig:o.parentClientConfig,clientConfig:o.clientConfig})({callerClientConfig:i}).then((e=>{if(t.sso_session){return a.setCredentialFeature(e,"CREDENTIALS_PROFILE_SSO","r")}else{return a.setCredentialFeature(e,"CREDENTIALS_PROFILE_SSO_LEGACY","t")}}))};const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");const isStaticCredsProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1;const resolveStaticCredentials=async(e,t)=>{t?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");const n={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return a.setCredentialFeature(n,"CREDENTIALS_PROFILE","n")};const isWebIdentityProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;const resolveWebIdentityCredentials=async(e,t,o)=>Promise.resolve().then(n.t.bind(n,5528,23)).then((({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:o}).then((e=>a.setCredentialFeature(e,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")))));const resolveProfileData=async(e,t,n,o,a={},d=false)=>{const f=t[e];if(Object.keys(a).length>0&&isStaticCredsProfile(f)){return resolveStaticCredentials(f,n)}if(d||isAssumeRoleProfile(f,{profile:e,logger:n.logger})){return resolveAssumeRoleCredentials(e,t,n,o,a,resolveProfileData)}if(isStaticCredsProfile(f)){return resolveStaticCredentials(f,n)}if(isWebIdentityProfile(f)){return resolveWebIdentityCredentials(f,n,o)}if(isProcessProfile(f)){return resolveProcessCredentials(n,e)}if(isSsoProfile(f)){return await resolveSsoCredentials(e,f,n,o)}if(isLoginProfile(f)){return resolveLoginCredentials(e,n,o)}throw new i.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:n.logger})};const fromIni=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const n=await o.parseKnownFiles(e);return resolveProfileData(o.getProfileName({profile:e.profile??t?.profile}),n,e,t)};t.fromIni=fromIni},7278:(e,t,n)=>{var o=n(9728);var i=n(4036);var a=n(7016);var d=n(9228);var f=n(7598);var m=n(3024);var h=n(8161);var C=n(6760);class LoginCredentialsFetcher{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=5*60*1e3;constructor(e,t,n){this.profileData=e;this.init=t;this.callerClientConfig=n}async loadCredentials(){const e=await this.loadToken();if(!e){throw new i.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:false,logger:this.logger})}const t=e.accessToken;const n=Date.now();const o=new Date(t.expiresAt).getTime();const a=o-n;if(a<=LoginCredentialsFetcher.REFRESH_THRESHOLD){return this.refresh(e)}return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken,accountId:t.accountId,expiration:new Date(t.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){const{SigninClient:t,CreateOAuth2TokenCommand:o}=await n.e(224).then(n.t.bind(n,3224,23));const{logger:a,userAgentAppId:d}=this.callerClientConfig??{};const isH2=e=>e?.metadata?.handlerProtocol==="h2";const f=isH2(this.callerClientConfig?.requestHandler)?undefined:this.callerClientConfig?.requestHandler;const m=this.profileData.region??await(this.callerClientConfig?.region?.())??process.env.AWS_REGION;const h=new t({credentials:{accessKeyId:"",secretAccessKey:""},region:m,requestHandler:f,logger:a,userAgentAppId:d,...this.init?.clientConfig});this.createDPoPInterceptor(h.middlewareStack);const C={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{const t=await h.send(new o(C));const{accessKeyId:n,secretAccessKey:a,sessionToken:d}=t.tokenOutput?.accessToken??{};const{refreshToken:f,expiresIn:m}=t.tokenOutput??{};if(!n||!a||!d||!f){throw new i.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:false})}const P=(m??900)*1e3;const D=new Date(Date.now()+P);const k={...e,accessToken:{...e.accessToken,accessKeyId:n,secretAccessKey:a,sessionToken:d,expiresAt:D.toISOString()},refreshToken:f};await this.saveToken(k);const L=k.accessToken;return{accessKeyId:L.accessKeyId,secretAccessKey:L.secretAccessKey,sessionToken:L.sessionToken,accountId:L.accountId,expiration:D}}catch(e){if(e.name==="AccessDeniedException"){const t=e.error;let n;switch(t){case"TOKEN_EXPIRED":n="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":n="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":n="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:n=`Failed to refresh token: ${String(e)}. Please re-authenticate using \`aws login\``}throw new i.CredentialsProviderError(n,{logger:this.logger,tryNextLink:false})}throw new i.CredentialsProviderError(`Failed to refresh token: ${String(e)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){const e=this.getTokenFilePath();try{let t;try{t=await a.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{t=await m.promises.readFile(e,"utf8")}const n=JSON.parse(t);const o=["accessToken","clientId","refreshToken","dpopKey"].filter((e=>!n[e]));if(!n.accessToken?.accountId){o.push("accountId")}if(o.length>0){throw new i.CredentialsProviderError(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:false})}return n}catch(t){throw new i.CredentialsProviderError(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:false})}}async saveToken(e){const t=this.getTokenFilePath();const n=C.dirname(t);try{await m.promises.mkdir(n,{recursive:true})}catch(e){}await m.promises.writeFile(t,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){const e=process.env.AWS_LOGIN_CACHE_DIRECTORY??C.join(h.homedir(),".aws","login","cache");const t=Buffer.from(this.loginSession,"utf8");const n=f.createHash("sha256").update(t).digest("hex");return C.join(e,`${n}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2){throw new Error("Invalid DER signature")}t++;const n=e[t++];let o=e.subarray(t,t+n);t+=n;if(e[t]!==2){throw new Error("Invalid DER signature")}t++;const i=e[t++];let a=e.subarray(t,t+i);o=o[0]===0?o.subarray(1):o;a=a[0]===0?a.subarray(1):a;const d=Buffer.concat([Buffer.alloc(32-o.length),o]);const f=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([d,f])}createDPoPInterceptor(e){e.add((e=>async t=>{if(d.HttpRequest.isInstance(t.request)){const e=t.request;const n=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}${e.path}`;const o=await this.generateDpop(e.method,n);e.headers={...e.headers,DPoP:o}}return e(t)}),{step:"finalizeRequest",name:"dpopInterceptor",override:true})}async generateDpop(e="POST",t){const n=await this.loadToken();try{const o=f.createPrivateKey({key:n.dpopKey,format:"pem",type:"sec1"});const i=f.createPublicKey(o);const a=i.export({format:"der",type:"spki"});let d=-1;for(let e=0;e<a.length;e++){if(a[e]===4){d=e;break}}const m=a.slice(d+1,d+33);const h=a.slice(d+33,d+65);const C={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:m.toString("base64url"),y:h.toString("base64url")}};const P={jti:crypto.randomUUID(),htm:e,htu:t,iat:Math.floor(Date.now()/1e3)};const D=Buffer.from(JSON.stringify(C)).toString("base64url");const k=Buffer.from(JSON.stringify(P)).toString("base64url");const L=`${D}.${k}`;const F=f.sign("sha256",Buffer.from(L),o);const q=this.derToRawSignature(F);const V=q.toString("base64url");return`${L}.${V}`}catch(e){throw new i.CredentialsProviderError(`Failed to generate Dpop proof: ${e instanceof Error?e.message:String(e)}`,{logger:this.logger,tryNextLink:false})}}}const fromLoginCredentials=e=>async({callerClientConfig:t}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");const n=await a.parseKnownFiles(e||{});const d=a.getProfileName({profile:e?.profile??t?.profile});const f=n[d];if(!f?.login_session){throw new i.CredentialsProviderError(`Profile ${d} does not contain login_session.`,{tryNextLink:true,logger:e?.logger})}const m=new LoginCredentialsFetcher(f,e,t);const h=await m.loadCredentials();return o.setCredentialFeature(h,"CREDENTIALS_LOGIN","AD")};t.fromLoginCredentials=fromLoginCredentials},1375:(e,t,n)=>{var o=n(51);var i=n(4036);var a=n(7016);const d="AWS_EC2_METADATA_DISABLED";const remoteProvider=async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:o,fromContainerMetadata:a,fromInstanceMetadata:f}=await Promise.resolve().then(n.t.bind(n,5518,19));if(process.env[o]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await Promise.resolve().then(n.bind(n,6105));return i.chain(t(e),a(e))}if(process.env[d]&&process.env[d]!=="false"){return async()=>{throw new i.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}}e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return f(e)};function memoizeChain(e,t){const n=internalCreateChain(e);let o;let i;let a;const provider=async e=>{if(e?.forceRefresh){return await n(e)}if(a?.expiration){if(a?.expiration?.getTime()<Date.now()){a=undefined}}if(o){await o}else if(!a||t?.(a)){if(a){if(!i){i=n(e).then((e=>{a=e})).finally((()=>{i=undefined}))}}else{o=n(e).then((e=>{a=e})).finally((()=>{o=undefined}));return provider(e)}}return a};return provider}const internalCreateChain=e=>async t=>{let n;for(const o of e){try{return await o(t)}catch(e){n=e;if(e?.tryNextLink){continue}throw e}}throw n};let f=false;const defaultProvider=(e={})=>memoizeChain([async()=>{const t=e.profile??process.env[a.ENV_PROFILE];if(t){const t=process.env[o.ENV_KEY]&&process.env[o.ENV_SECRET];if(t){if(!f){const t=e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn;t(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);f=true}}throw new i.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:true})}e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return o.fromEnv(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:o,ssoAccountId:a,ssoRegion:d,ssoRoleName:f,ssoSession:m}=e;if(!o&&!a&&!d&&!f&&!m){throw new i.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger})}const{fromSSO:h}=await Promise.resolve().then(n.t.bind(n,4598,19));return h(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:o}=await Promise.resolve().then(n.t.bind(n,3668,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:o}=await Promise.resolve().then(n.t.bind(n,5271,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:o}=await Promise.resolve().then(n.t.bind(n,5528,23));return o(e)(t)},async()=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(e))()},async()=>{throw new i.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:e.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=e=>e?.expiration!==undefined;const credentialsTreatedAsExpired=e=>e?.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5;t.credentialsTreatedAsExpired=credentialsTreatedAsExpired;t.credentialsWillNeedRefresh=credentialsWillNeedRefresh;t.defaultProvider=defaultProvider},5271:(e,t,n)=>{var o=n(7016);var i=n(4036);var a=n(1421);var d=n(7975);var f=n(9728);const getValidatedProcessCredentials=(e,t,n)=>{if(t.Version!==1){throw Error(`Profile ${e} credential_process did not return Version 1.`)}if(t.AccessKeyId===undefined||t.SecretAccessKey===undefined){throw Error(`Profile ${e} credential_process returned invalid credentials.`)}if(t.Expiration){const n=new Date;const o=new Date(t.Expiration);if(o<n){throw Error(`Profile ${e} credential_process returned expired credentials.`)}}let o=t.AccountId;if(!o&&n?.[e]?.aws_account_id){o=n[e].aws_account_id}const i={accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)},...t.CredentialScope&&{credentialScope:t.CredentialScope},...o&&{accountId:o}};f.setCredentialFeature(i,"CREDENTIALS_PROCESS","w");return i};const resolveProcessCredentials=async(e,t,n)=>{const f=t[e];if(t[e]){const m=f["credential_process"];if(m!==undefined){const f=d.promisify(o.externalDataInterceptor?.getTokenRecord?.().exec??a.exec);try{const{stdout:n}=await f(m);let o;try{o=JSON.parse(n.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return getValidatedProcessCredentials(e,o,t)}catch(e){throw new i.CredentialsProviderError(e.message,{logger:n})}}else{throw new i.CredentialsProviderError(`Profile ${e} did not contain credential_process.`,{logger:n})}}else{throw new i.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`,{logger:n})}};const fromProcess=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const n=await o.parseKnownFiles(e);return resolveProcessCredentials(o.getProfileName({profile:e.profile??t?.profile}),n,e.logger)};t.fromProcess=fromProcess},4598:(e,t,n)=>{var o=n(4036);var i=n(7016);var a=n(9728);var d=n(9387);const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");const f=false;const resolveSSOCredentials=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:m,ssoRegion:h,ssoRoleName:C,ssoClient:P,clientConfig:D,parentClientConfig:k,callerClientConfig:L,profile:F,filepath:q,configFilepath:V,ignoreCache:ee,logger:te})=>{let ne;const re=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(t){try{const e=await d.fromSso({profile:F,filepath:q,configFilepath:V,ignoreCache:ee})();ne={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new o.CredentialsProviderError(e.message,{tryNextLink:f,logger:te})}}else{try{ne=await i.getSSOTokenFromFile(e)}catch(e){throw new o.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${re}`,{tryNextLink:f,logger:te})}}if(new Date(ne.expiresAt).getTime()-Date.now()<=0){throw new o.CredentialsProviderError(`The SSO session associated with this profile has expired. ${re}`,{tryNextLink:f,logger:te})}const{accessToken:oe}=ne;const{SSOClient:ie,GetRoleCredentialsCommand:se}=await Promise.resolve().then((function(){return n(4509)}));const ae=P||new ie(Object.assign({},D??{},{logger:D?.logger??L?.logger??k?.logger,region:D?.region??h,userAgentAppId:D?.userAgentAppId??L?.userAgentAppId??k?.userAgentAppId}));let ce;try{ce=await ae.send(new se({accountId:m,roleName:C,accessToken:oe}))}catch(e){throw new o.CredentialsProviderError(e,{tryNextLink:f,logger:te})}const{roleCredentials:{accessKeyId:le,secretAccessKey:ue,sessionToken:de,expiration:pe,credentialScope:fe,accountId:me}={}}=ce;if(!le||!ue||!de||!pe){throw new o.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:f,logger:te})}const he={accessKeyId:le,secretAccessKey:ue,sessionToken:de,expiration:new Date(pe),...fe&&{credentialScope:fe},...me&&{accountId:me}};if(t){a.setCredentialFeature(he,"CREDENTIALS_SSO","s")}else{a.setCredentialFeature(he,"CREDENTIALS_SSO_LEGACY","u")}return he};const validateSsoProfile=(e,t)=>{const{sso_start_url:n,sso_account_id:i,sso_region:a,sso_role_name:d}=e;if(!n||!i||!a||!d){throw new o.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", `+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:false,logger:t})}return e};const fromSSO=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:n,ssoAccountId:a,ssoRegion:d,ssoRoleName:f,ssoSession:m}=e;const{ssoClient:h}=e;const C=i.getProfileName({profile:e.profile??t?.profile});if(!n&&!a&&!d&&!f&&!m){const t=await i.parseKnownFiles(e);const a=t[C];if(!a){throw new o.CredentialsProviderError(`Profile ${C} was not found.`,{logger:e.logger})}if(!isSsoProfile(a)){throw new o.CredentialsProviderError(`Profile ${C} is not configured with SSO credentials.`,{logger:e.logger})}if(a?.sso_session){const t=await i.loadSsoSessionData(e);const f=t[a.sso_session];const m=` configurations in profile ${C} and sso-session ${a.sso_session}`;if(d&&d!==f.sso_region){throw new o.CredentialsProviderError(`Conflicting SSO region`+m,{tryNextLink:false,logger:e.logger})}if(n&&n!==f.sso_start_url){throw new o.CredentialsProviderError(`Conflicting SSO start_url`+m,{tryNextLink:false,logger:e.logger})}a.sso_region=f.sso_region;a.sso_start_url=f.sso_start_url}const{sso_start_url:f,sso_account_id:m,sso_region:P,sso_role_name:D,sso_session:k}=validateSsoProfile(a,e.logger);return resolveSSOCredentials({ssoStartUrl:f,ssoSession:k,ssoAccountId:m,ssoRegion:P,ssoRoleName:D,ssoClient:h,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:C,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!n||!a||!d||!f){throw new o.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:false,logger:e.logger})}else{return resolveSSOCredentials({ssoStartUrl:n,ssoSession:m,ssoAccountId:a,ssoRegion:d,ssoRoleName:f,ssoClient:h,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:C,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}};t.fromSSO=fromSSO;t.isSsoProfile=isSsoProfile;t.validateSsoProfile=validateSsoProfile},4509:(e,t,n)=>{var o=n(1185);t.GetRoleCredentialsCommand=o.GetRoleCredentialsCommand;t.SSOClient=o.SSOClient},6923:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const o=n(9728);const i=n(4036);const a=n(7016);const d=n(3024);const f=n(2865);const m="AWS_WEB_IDENTITY_TOKEN_FILE";const h="AWS_ROLE_ARN";const C="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const n=e?.webIdentityTokenFile??process.env[m];const P=e?.roleArn??process.env[h];const D=e?.roleSessionName??process.env[C];if(!n||!P){throw new i.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger})}const k=await(0,f.fromWebToken)({...e,webIdentityToken:a.externalDataInterceptor?.getTokenRecord?.()[n]??(0,d.readFileSync)(n,{encoding:"ascii"}),roleArn:P,roleSessionName:D})(t);if(n===process.env[m]){(0,o.setCredentialFeature)(k,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h")}return k};t.fromTokenFile=fromTokenFile},2865:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),a=0;a<n.length;a++)if(n[a]!=="default")o(t,e,n[a]);i(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const fromWebToken=e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:i,webIdentityToken:d,providerId:f,policyArns:m,policy:h,durationSeconds:C}=e;let{roleAssumerWithWebIdentity:P}=e;if(!P){const{getDefaultRoleAssumerWithWebIdentity:o}=await Promise.resolve().then((()=>a(n(3266))));P=o({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return P({RoleArn:o,RoleSessionName:i??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:d,ProviderId:f,PolicyArns:m,Policy:h,DurationSeconds:C})};t.fromWebToken=fromWebToken},5528:(e,t,n)=>{var o=n(6923);var i=n(2865);Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},3423:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.propertyProviderChain=t.createCredentialChain=void 0;const o=n(4036);const createCredentialChain=(...e)=>{let n=-1;const baseFunction=async o=>{const i=await(0,t.propertyProviderChain)(...e)(o);if(!i.expiration&&n!==-1){i.expiration=new Date(Date.now()+n)}return i};const o=Object.assign(baseFunction,{expireAfter(e){if(e<5*6e4){throw new Error("@aws-sdk/credential-providers - createCredentialChain(...).expireAfter(ms) may not be called with a duration lower than five minutes.")}n=e;return o}});return o};t.createCredentialChain=createCredentialChain;const propertyProviderChain=(...e)=>async t=>{if(e.length===0){throw new o.ProviderError("No providers in chain",{tryNextLink:false})}let n;for(const o of e){try{return await o(t)}catch(e){n=e;if(e?.tryNextLink){continue}throw e}}throw n};t.propertyProviderChain=propertyProviderChain},6860:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromCognitoIdentity=void 0;const o=n(5106);const fromCognitoIdentity=e=>(0,o.fromCognitoIdentity)({...e});t.fromCognitoIdentity=fromCognitoIdentity},8414:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromCognitoIdentityPool=void 0;const o=n(5106);const fromCognitoIdentityPool=e=>(0,o.fromCognitoIdentityPool)({...e});t.fromCognitoIdentityPool=fromCognitoIdentityPool},6255:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromContainerMetadata=void 0;const o=n(5518);const fromContainerMetadata=e=>{e?.logger?.debug("@smithy/credential-provider-imds","fromContainerMetadata");return(0,o.fromContainerMetadata)(e)};t.fromContainerMetadata=fromContainerMetadata},2202:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const o=n(51);const fromEnv=e=>(0,o.fromEnv)(e);t.fromEnv=fromEnv},8039:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const o=n(3668);const fromIni=(e={})=>(0,o.fromIni)({...e});t.fromIni=fromIni},8475:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const o=n(9728);const i=n(5518);const fromInstanceMetadata=e=>{e?.logger?.debug("@smithy/credential-provider-imds","fromInstanceMetadata");return async()=>(0,i.fromInstanceMetadata)(e)().then((e=>(0,o.setCredentialFeature)(e,"CREDENTIALS_IMDS","0")))};t.fromInstanceMetadata=fromInstanceMetadata},1880:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromLoginCredentials=void 0;const o=n(7278);const fromLoginCredentials=e=>(0,o.fromLoginCredentials)({...e});t.fromLoginCredentials=fromLoginCredentials},5923:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromNodeProviderChain=void 0;const o=n(1375);const fromNodeProviderChain=(e={})=>(0,o.defaultProvider)({...e});t.fromNodeProviderChain=fromNodeProviderChain},2880:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromProcess=void 0;const o=n(5271);const fromProcess=e=>(0,o.fromProcess)(e);t.fromProcess=fromProcess},1202:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromSSO=void 0;const o=n(4598);const fromSSO=(e={})=>(0,o.fromSSO)({...e});t.fromSSO=fromSSO},7439:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),a=0;a<n.length;a++)if(n[a]!=="default")o(t,e,n[a]);i(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.fromTemporaryCredentials=void 0;const d=n(4918);const f=n(4036);const m="us-east-1";const fromTemporaryCredentials=(e,t,o)=>{let i;return async(h={})=>{const{callerClientConfig:C}=h;const P=e.clientConfig?.profile??C?.profile;const D=e.logger??C?.logger;D?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const k={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(k?.SerialNumber){if(!e.mfaCodeProvider){throw new f.CredentialsProviderError(`Temporary credential requires multi-factor authentication, but no MFA code callback was provided.`,{tryNextLink:false,logger:D})}k.TokenCode=await e.mfaCodeProvider(k?.SerialNumber)}const{AssumeRoleCommand:L,STSClient:F}=await Promise.resolve().then((()=>a(n(1669))));if(!i){const n=typeof t==="function"?t():undefined;const a=[e.masterCredentials,e.clientConfig?.credentials,void C?.credentials,C?.credentialDefaultProvider?.(),n];let f="STS client default credentials";if(a[0]){f="options.masterCredentials"}else if(a[1]){f="options.clientConfig.credentials"}else if(a[2]){f="caller client's credentials";throw new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials")}else if(a[3]){f="caller client's credentialDefaultProvider"}else if(a[4]){f="AWS SDK default credentials"}const h=[e.clientConfig?.region,C?.region,await(o?.({profile:P})),m];let k="default partition's default region";if(h[0]){k="options.clientConfig.region"}else if(h[1]){k="caller client's region"}else if(h[2]){k="file or env region"}const L=[filterRequestHandler(e.clientConfig?.requestHandler),filterRequestHandler(C?.requestHandler)];let q="STS default requestHandler";if(L[0]){q="options.clientConfig.requestHandler"}else if(L[1]){q="caller client's requestHandler"}D?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with `+`${k}=${await(0,d.normalizeProvider)(coalesce(h))()}, ${f}, ${q}.`);i=new F({userAgentAppId:C?.userAgentAppId,...e.clientConfig,credentials:coalesce(a),logger:D,profile:P,region:coalesce(h),requestHandler:coalesce(L)})}if(e.clientPlugins){for(const t of e.clientPlugins){i.middlewareStack.use(t)}}const{Credentials:q}=await i.send(new L(k));if(!q||!q.AccessKeyId||!q.SecretAccessKey){throw new f.CredentialsProviderError(`Invalid response from STS.assumeRole call with role ${k.RoleArn}`,{logger:D})}return{accessKeyId:q.AccessKeyId,secretAccessKey:q.SecretAccessKey,sessionToken:q.SessionToken,expiration:q.Expiration,credentialScope:q.CredentialScope}}};t.fromTemporaryCredentials=fromTemporaryCredentials;const filterRequestHandler=e=>e?.metadata?.handlerProtocol==="h2"?undefined:e;const coalesce=e=>{for(const t of e){if(t!==undefined){return t}}}},1570:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromTemporaryCredentials=void 0;const o=n(6477);const i=n(1125);const a=n(5923);const d=n(7439);const fromTemporaryCredentials=e=>(0,d.fromTemporaryCredentials)(e,a.fromNodeProviderChain,(async({profile:e=process.env.AWS_PROFILE})=>(0,i.loadConfig)({environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>undefined},{...o.NODE_REGION_CONFIG_FILE_OPTIONS,profile:e})()));t.fromTemporaryCredentials=fromTemporaryCredentials},2166:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const o=n(5528);const fromTokenFile=(e={})=>(0,o.fromTokenFile)({...e});t.fromTokenFile=fromTokenFile},1054:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const o=n(5528);const fromWebToken=e=>(0,o.fromWebToken)({...e});t.fromWebToken=fromWebToken},8897:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromHttp=void 0;const o=n(7892);o.__exportStar(n(3423),t);o.__exportStar(n(6860),t);o.__exportStar(n(8414),t);o.__exportStar(n(6255),t);o.__exportStar(n(2202),t);var i=n(6105);Object.defineProperty(t,"fromHttp",{enumerable:true,get:function(){return i.fromHttp}});o.__exportStar(n(8039),t);o.__exportStar(n(8475),t);o.__exportStar(n(1880),t);o.__exportStar(n(5923),t);o.__exportStar(n(2880),t);o.__exportStar(n(1202),t);o.__exportStar(n(1570),t);o.__exportStar(n(2166),t);o.__exportStar(n(1054),t)},1669:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.STSClient=t.AssumeRoleCommand=void 0;const o=n(3266);Object.defineProperty(t,"AssumeRoleCommand",{enumerable:true,get:function(){return o.AssumeRoleCommand}});Object.defineProperty(t,"STSClient",{enumerable:true,get:function(){return o.STSClient}})},4736:(e,t,n)=>{var o=n(9228);function resolveHostHeaderConfig(e){return e}const hostHeaderMiddleware=e=>t=>async n=>{if(!o.HttpRequest.isInstance(n.request))return t(n);const{request:i}=n;const{handlerProtocol:a=""}=e.requestHandler.metadata||{};if(a.indexOf("h2")>=0&&!i.headers[":authority"]){delete i.headers["host"];i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"")}else if(!i.headers["host"]){let e=i.hostname;if(i.port!=null)e+=`:${i.port}`;i.headers["host"]=e}return t(n)};const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:t=>{t.add(hostHeaderMiddleware(e),i)}});t.getHostHeaderPlugin=getHostHeaderPlugin;t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions=i;t.resolveHostHeaderConfig=resolveHostHeaderConfig},6626:(e,t)=>{const loggerMiddleware=()=>(e,t)=>async n=>{try{const o=await e(n);const{clientName:i,commandName:a,logger:d,dynamoDbDocumentClientOptions:f={}}=t;const{overrideInputFilterSensitiveLog:m,overrideOutputFilterSensitiveLog:h}=f;const C=m??t.inputFilterSensitiveLog;const P=h??t.outputFilterSensitiveLog;const{$metadata:D,...k}=o.output;d?.info?.({clientName:i,commandName:a,input:C(n.input),output:P(k),metadata:D});return o}catch(e){const{clientName:o,commandName:i,logger:a,dynamoDbDocumentClientOptions:d={}}=t;const{overrideInputFilterSensitiveLog:f}=d;const m=f??t.inputFilterSensitiveLog;a?.error?.({clientName:o,commandName:i,input:m(n.input),error:e,metadata:e.$metadata});throw e}};const n={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(loggerMiddleware(),n)}});t.getLoggerPlugin=getLoggerPlugin;t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions=n},2575:(e,t,n)=>{var o=n(6908);const i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(o.recursionDetectionMiddleware(),i)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},6908:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.recursionDetectionMiddleware=void 0;const o=n(2017);const i=n(9228);const a="X-Amzn-Trace-Id";const d="AWS_LAMBDA_FUNCTION_NAME";const f="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=()=>e=>async t=>{const{request:n}=t;if(!i.HttpRequest.isInstance(n)){return e(t)}const m=Object.keys(n.headers??{}).find((e=>e.toLowerCase()===a.toLowerCase()))??a;if(n.headers.hasOwnProperty(m)){return e(t)}const h=process.env[d];const C=process.env[f];const P=await o.InvokeStore.getInstanceAsync();const D=P?.getXRayTraceId();const k=D??C;const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(h)&&nonEmptyString(k)){n.headers[a]=k}return e({...t,request:n})};t.recursionDetectionMiddleware=recursionDetectionMiddleware},4608:(e,t,n)=>{var o=n(4918);var i=n(3237);var a=n(9228);var d=n(6992);var f=n(2346);const m=undefined;function isValidUserAgentAppId(e){if(e===undefined){return true}return typeof e==="string"&&e.length<=50}function resolveUserAgentConfig(e){const t=o.normalizeProvider(e.userAgentAppId??m);const{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==="string"?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!isValidUserAgentAppId(n)){const t=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof n!=="string"){t?.warn("userAgentAppId must be a string or undefined.")}else if(n.length>50){t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return n}})}const h=/\d{12}\.ddb/;async function checkFeatures(e,t,n){const o=n.request;if(o?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){d.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof t.retryStrategy==="function"){const n=await t.retryStrategy();if(typeof n.mode==="string"){switch(n.mode){case f.RETRY_MODES.ADAPTIVE:d.setFeature(e,"RETRY_MODE_ADAPTIVE","F");break;case f.RETRY_MODES.STANDARD:d.setFeature(e,"RETRY_MODE_STANDARD","E");break}}}if(typeof t.accountIdEndpointMode==="function"){const n=e.endpointV2;if(String(n?.url?.hostname).match(h)){d.setFeature(e,"ACCOUNT_ID_ENDPOINT","O")}switch(await(t.accountIdEndpointMode?.())){case"disabled":d.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":d.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":d.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const t=i;if(t.accountId){d.setFeature(e,"RESOLVED_ACCOUNT_ID","T")}for(const[n,o]of Object.entries(t.$source??{})){d.setFeature(e,n,o)}}}const C="user-agent";const P="x-amz-user-agent";const D=" ";const k="/";const L=/[^!$%&'*+\-.^_`|~\w]/g;const F=/[^!$%&'*+\-.^_`|~\w#]/g;const q="-";const V=1024;function encodeFeatures(e){let t="";for(const n in e){const o=e[n];if(t.length+o.length+1<=V){if(t.length){t+=","+o}else{t+=o}continue}break}return t}const userAgentMiddleware=e=>(t,n)=>async o=>{const{request:d}=o;if(!a.HttpRequest.isInstance(d)){return t(o)}const{headers:f}=d;const m=n?.userAgent?.map(escapeUserAgent)||[];const h=(await e.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(n,e,o);const k=n;h.push(`m/${encodeFeatures(Object.assign({},n.__smithy_context?.features,k.__aws_sdk_context?.features))}`);const L=e?.customUserAgent?.map(escapeUserAgent)||[];const F=await e.userAgentAppId();if(F){h.push(escapeUserAgent([`app`,`${F}`]))}const q=i.getUserAgentPrefix();const V=(q?[q]:[]).concat([...h,...m,...L]).join(D);const ee=[...h.filter((e=>e.startsWith("aws-sdk-"))),...L].join(D);if(e.runtime!=="browser"){if(ee){f[P]=f[P]?`${f[C]} ${ee}`:ee}f[C]=V}else{f[P]=V}return t({...o,request:d})};const escapeUserAgent=e=>{const t=e[0].split(k).map((e=>e.replace(L,q))).join(k);const n=e[1]?.replace(F,q);const o=t.indexOf(k);const i=t.substring(0,o);let a=t.substring(o+1);if(i==="api"){a=a.toLowerCase()}return[i,a,n].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};const ee={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:t=>{t.add(userAgentMiddleware(e),ee)}});t.DEFAULT_UA_APP_ID=m;t.getUserAgentMiddlewareOptions=ee;t.getUserAgentPlugin=getUserAgentPlugin;t.resolveUserAgentConfig=resolveUserAgentConfig;t.userAgentMiddleware=userAgentMiddleware},4925:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultCognitoIdentityHttpAuthSchemeProvider=t.defaultCognitoIdentityHttpAuthSchemeParametersProvider=void 0;const o=n(8803);const i=n(5496);const defaultCognitoIdentityHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultCognitoIdentityHttpAuthSchemeParametersProvider=defaultCognitoIdentityHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function createSmithyApiNoAuthHttpAuthOption(e){return{schemeId:"smithy.api#noAuth"}}const defaultCognitoIdentityHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){case"GetCredentialsForIdentity":{t.push(createSmithyApiNoAuthHttpAuthOption(e));break}case"GetId":{t.push(createSmithyApiNoAuthHttpAuthOption(e));break}default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultCognitoIdentityHttpAuthSchemeProvider=defaultCognitoIdentityHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},3203:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3237);const i=n(9356);const a=n(8424);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(a.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},8424:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",a="ref";const d=true,f="isSet",m="booleanEquals",h="error",C="endpoint",P="tree",D="PartitionResult",k="getAttr",L="stringEquals",F={[n]:false,type:"string"},q={[n]:true,default:false,type:"boolean"},V={[a]:"Endpoint"},ee={[o]:m,[i]:[{[a]:"UseFIPS"},true]},te={[o]:m,[i]:[{[a]:"UseDualStack"},true]},ne={},re={[a]:"Region"},oe={[o]:k,[i]:[{[a]:D},"supportsFIPS"]},ie={[a]:D},se={[o]:m,[i]:[true,{[o]:k,[i]:[ie,"supportsDualStack"]}]},ae=[ee],ce=[te],le=[re];const ue={version:"1.0",parameters:{Region:F,UseDualStack:q,UseFIPS:q,Endpoint:F},rules:[{conditions:[{[o]:f,[i]:[V]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:h},{conditions:ce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:h},{endpoint:{url:V,properties:ne,headers:ne},type:C}],type:P},{conditions:[{[o]:f,[i]:le}],rules:[{conditions:[{[o]:"aws.partition",[i]:le,assign:D}],rules:[{conditions:[ee,te],rules:[{conditions:[{[o]:m,[i]:[d,oe]},se],rules:[{conditions:[{[o]:L,[i]:[re,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:ne,headers:ne},type:C},{conditions:[{[o]:L,[i]:[re,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:ne,headers:ne},type:C},{conditions:[{[o]:L,[i]:[re,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:ne,headers:ne},type:C},{conditions:[{[o]:L,[i]:[re,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:ne,headers:ne},type:C},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:C}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:h}],type:P},{conditions:ae,rules:[{conditions:[{[o]:m,[i]:[oe,d]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:C}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:h}],type:P},{conditions:ce,rules:[{conditions:[se],rules:[{conditions:[{[o]:L,[i]:["aws",{[o]:k,[i]:[ie,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:ne,headers:ne},type:C},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:C}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:h}],type:P},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:C}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:h}]};t.ruleSet=ue},2994:(e,t,n)=>{var o=n(4736);var i=n(6626);var a=n(2575);var d=n(4608);var f=n(6477);var m=n(4918);var h=n(2566);var C=n(5700);var P=n(8946);var D=n(4433);var k=n(4271);var L=n(4925);var F=n(6276);var q=n(2585);var V=n(9228);var ee=n(138);var te=n(8766);var ne=n(2716);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"cognito-identity"});const re={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(q.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),V.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,q.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),V.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class CognitoIdentityClient extends k.Client{config;constructor(...[e]){const t=F.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const q=D.resolveRetryConfig(k);const V=f.resolveRegionConfig(q);const ee=o.resolveHostHeaderConfig(V);const te=P.resolveEndpointConfig(ee);const ne=L.resolveHttpAuthSchemeConfig(te);const re=resolveRuntimeExtensions(ne,e?.extensions||[]);this.config=re;this.middlewareStack.use(h.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(C.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(a.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(m.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:L.defaultCognitoIdentityHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new m.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(m.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class GetCredentialsForIdentityCommand extends(k.Command.classBuilder().ep(re).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(ee.GetCredentialsForIdentity$).build()){}class GetIdCommand extends(k.Command.classBuilder().ep(re).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(ee.GetId$).build()){}const oe={GetCredentialsForIdentityCommand:GetCredentialsForIdentityCommand,GetIdCommand:GetIdCommand};class CognitoIdentity extends CognitoIdentityClient{}k.createAggregatedClient(oe,CognitoIdentity);t.$Command=k.Command;t.__Client=k.Client;t.CognitoIdentityServiceException=ne.CognitoIdentityServiceException;t.CognitoIdentity=CognitoIdentity;t.CognitoIdentityClient=CognitoIdentityClient;t.GetCredentialsForIdentityCommand=GetCredentialsForIdentityCommand;t.GetIdCommand=GetIdCommand;Object.prototype.hasOwnProperty.call(ee,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ee["__proto__"]});Object.keys(ee).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ee[e]}));Object.prototype.hasOwnProperty.call(te,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:te["__proto__"]});Object.keys(te).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=te[e]}))},2716:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.CognitoIdentityServiceException=t.__ServiceException=void 0;const o=n(4271);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class CognitoIdentityServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,CognitoIdentityServiceException.prototype)}}t.CognitoIdentityServiceException=CognitoIdentityServiceException},8766:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.LimitExceededException=t.TooManyRequestsException=t.ResourceNotFoundException=t.ResourceConflictException=t.NotAuthorizedException=t.InvalidParameterException=t.InvalidIdentityPoolConfigurationException=t.InternalErrorException=t.ExternalServiceException=void 0;const o=n(2716);class ExternalServiceException extends o.CognitoIdentityServiceException{name="ExternalServiceException";$fault="client";constructor(e){super({name:"ExternalServiceException",$fault:"client",...e});Object.setPrototypeOf(this,ExternalServiceException.prototype)}}t.ExternalServiceException=ExternalServiceException;class InternalErrorException extends o.CognitoIdentityServiceException{name="InternalErrorException";$fault="server";constructor(e){super({name:"InternalErrorException",$fault:"server",...e});Object.setPrototypeOf(this,InternalErrorException.prototype)}}t.InternalErrorException=InternalErrorException;class InvalidIdentityPoolConfigurationException extends o.CognitoIdentityServiceException{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidIdentityPoolConfigurationException.prototype)}}t.InvalidIdentityPoolConfigurationException=InvalidIdentityPoolConfigurationException;class InvalidParameterException extends o.CognitoIdentityServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class NotAuthorizedException extends o.CognitoIdentityServiceException{name="NotAuthorizedException";$fault="client";constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,NotAuthorizedException.prototype)}}t.NotAuthorizedException=NotAuthorizedException;class ResourceConflictException extends o.CognitoIdentityServiceException{name="ResourceConflictException";$fault="client";constructor(e){super({name:"ResourceConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceConflictException.prototype)}}t.ResourceConflictException=ResourceConflictException;class ResourceNotFoundException extends o.CognitoIdentityServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}t.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends o.CognitoIdentityServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}t.TooManyRequestsException=TooManyRequestsException;class LimitExceededException extends o.CognitoIdentityServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException},6276:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(7892);const i=o.__importDefault(n(5368));const a=n(9728);const d=n(8803);const f=n(1694);const m=n(6477);const h=n(8300);const C=n(4433);const P=n(1125);const D=n(5422);const k=n(4271);const L=n(6e3);const F=n(8322);const q=n(2346);const V=n(4437);const getRuntimeConfig=e=>{(0,k.emitWarningIfUnsupportedVersion)(process.version);const t=(0,F.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(k.loadConfigsForDefaultMode);const n=(0,V.getRuntimeConfig)(e);(0,a.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,P.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??L.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,f.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,P.loadConfig)(C.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,P.loadConfig)(m.NODE_REGION_CONFIG_OPTIONS,{...m.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:D.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,P.loadConfig)({...C.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||q.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??h.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??D.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,P.loadConfig)(m.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,P.loadConfig)(m.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,P.loadConfig)(f.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},4437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8803);const i=n(4552);const a=n(4918);const d=n(4271);const f=n(4418);const m=n(3158);const h=n(8165);const C=n(4925);const P=n(3203);const D=n(138);const getRuntimeConfig=e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??m.fromBase64,base64Encoder:e?.base64Encoder??m.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??P.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??C.defaultCognitoIdentityHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new a.NoAuthSigner}],logger:e?.logger??new d.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:D.errorTypeRegistries,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??f.parseUrl,utf8Decoder:e?.utf8Decoder??h.fromUtf8,utf8Encoder:e?.utf8Encoder??h.toUtf8});t.getRuntimeConfig=getRuntimeConfig},138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.GetId$=t.GetCredentialsForIdentity$=t.GetIdResponse$=t.GetIdInput$=t.GetCredentialsForIdentityResponse$=t.GetCredentialsForIdentityInput$=t.Credentials$=t.errorTypeRegistries=t.TooManyRequestsException$=t.ResourceNotFoundException$=t.ResourceConflictException$=t.NotAuthorizedException$=t.LimitExceededException$=t.InvalidParameterException$=t.InvalidIdentityPoolConfigurationException$=t.InternalErrorException$=t.ExternalServiceException$=t.CognitoIdentityServiceException$=void 0;const o="AccountId";const i="AccessKeyId";const a="Credentials";const d="CustomRoleArn";const f="Expiration";const m="ExternalServiceException";const h="GetCredentialsForIdentity";const C="GetCredentialsForIdentityInput";const P="GetCredentialsForIdentityResponse";const D="GetId";const k="GetIdInput";const L="GetIdResponse";const F="InternalErrorException";const q="IdentityId";const V="InvalidIdentityPoolConfigurationException";const ee="InvalidParameterException";const te="IdentityPoolId";const ne="IdentityProviderToken";const re="Logins";const oe="LimitExceededException";const ie="LoginsMap";const se="NotAuthorizedException";const ae="ResourceConflictException";const ce="ResourceNotFoundException";const le="SecretKey";const ue="SecretKeyString";const de="SessionToken";const pe="TooManyRequestsException";const fe="client";const me="error";const he="httpError";const ge="message";const ye="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";const Se="server";const Ee="com.amazonaws.cognitoidentity";const ve=n(2566);const Ce=n(2716);const Ie=n(8766);const be=ve.TypeRegistry.for(ye);t.CognitoIdentityServiceException$=[-3,ye,"CognitoIdentityServiceException",0,[],[]];be.registerError(t.CognitoIdentityServiceException$,Ce.CognitoIdentityServiceException);const we=ve.TypeRegistry.for(Ee);t.ExternalServiceException$=[-3,Ee,m,{[me]:fe,[he]:400},[ge],[0]];we.registerError(t.ExternalServiceException$,Ie.ExternalServiceException);t.InternalErrorException$=[-3,Ee,F,{[me]:Se},[ge],[0]];we.registerError(t.InternalErrorException$,Ie.InternalErrorException);t.InvalidIdentityPoolConfigurationException$=[-3,Ee,V,{[me]:fe,[he]:400},[ge],[0]];we.registerError(t.InvalidIdentityPoolConfigurationException$,Ie.InvalidIdentityPoolConfigurationException);t.InvalidParameterException$=[-3,Ee,ee,{[me]:fe,[he]:400},[ge],[0]];we.registerError(t.InvalidParameterException$,Ie.InvalidParameterException);t.LimitExceededException$=[-3,Ee,oe,{[me]:fe,[he]:400},[ge],[0]];we.registerError(t.LimitExceededException$,Ie.LimitExceededException);t.NotAuthorizedException$=[-3,Ee,se,{[me]:fe,[he]:403},[ge],[0]];we.registerError(t.NotAuthorizedException$,Ie.NotAuthorizedException);t.ResourceConflictException$=[-3,Ee,ae,{[me]:fe,[he]:409},[ge],[0]];we.registerError(t.ResourceConflictException$,Ie.ResourceConflictException);t.ResourceNotFoundException$=[-3,Ee,ce,{[me]:fe,[he]:404},[ge],[0]];we.registerError(t.ResourceNotFoundException$,Ie.ResourceNotFoundException);t.TooManyRequestsException$=[-3,Ee,pe,{[me]:fe,[he]:429},[ge],[0]];we.registerError(t.TooManyRequestsException$,Ie.TooManyRequestsException);t.errorTypeRegistries=[be,we];var Ae=[0,Ee,ne,8,0];var Re=[0,Ee,ue,8,0];t.Credentials$=[3,Ee,a,0,[i,le,de,f],[0,[()=>Re,0],0,4]];t.GetCredentialsForIdentityInput$=[3,Ee,C,0,[q,re,d],[0,[()=>Pe,0],0],1];t.GetCredentialsForIdentityResponse$=[3,Ee,P,0,[q,a],[0,[()=>t.Credentials$,0]]];t.GetIdInput$=[3,Ee,k,0,[te,o,re],[0,0,[()=>Pe,0]],1];t.GetIdResponse$=[3,Ee,L,0,[q],[0]];var Pe=[2,Ee,ie,0,[0,0],[()=>Ae,0]];t.GetCredentialsForIdentity$=[9,Ee,h,0,()=>t.GetCredentialsForIdentityInput$,()=>t.GetCredentialsForIdentityResponse$];t.GetId$=[9,Ee,D,0,()=>t.GetIdInput$,()=>t.GetIdResponse$]},5338:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultSSOHttpAuthSchemeProvider=t.defaultSSOHttpAuthSchemeParametersProvider=void 0;const o=n(8803);const i=n(5496);const defaultSSOHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultSSOHttpAuthSchemeParametersProvider=defaultSSOHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function createSmithyApiNoAuthHttpAuthOption(e){return{schemeId:"smithy.api#noAuth"}}const defaultSSOHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){case"GetRoleCredentials":{t.push(createSmithyApiNoAuthHttpAuthOption(e));break}default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultSSOHttpAuthSchemeProvider=defaultSSOHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},6884:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3237);const i=n(9356);const a=n(6809);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(a.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},6809:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",a="ref";const d=true,f="isSet",m="booleanEquals",h="error",C="endpoint",P="tree",D="PartitionResult",k="getAttr",L={[n]:false,type:"string"},F={[n]:true,default:false,type:"boolean"},q={[a]:"Endpoint"},V={[o]:m,[i]:[{[a]:"UseFIPS"},true]},ee={[o]:m,[i]:[{[a]:"UseDualStack"},true]},te={},ne={[o]:k,[i]:[{[a]:D},"supportsFIPS"]},re={[a]:D},oe={[o]:m,[i]:[true,{[o]:k,[i]:[re,"supportsDualStack"]}]},ie=[V],se=[ee],ae=[{[a]:"Region"}];const ce={version:"1.0",parameters:{Region:L,UseDualStack:F,UseFIPS:F,Endpoint:L},rules:[{conditions:[{[o]:f,[i]:[q]}],rules:[{conditions:ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:h},{conditions:se,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:h},{endpoint:{url:q,properties:te,headers:te},type:C}],type:P},{conditions:[{[o]:f,[i]:ae}],rules:[{conditions:[{[o]:"aws.partition",[i]:ae,assign:D}],rules:[{conditions:[V,ee],rules:[{conditions:[{[o]:m,[i]:[d,ne]},oe],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:h}],type:P},{conditions:ie,rules:[{conditions:[{[o]:m,[i]:[ne,d]}],rules:[{conditions:[{[o]:"stringEquals",[i]:[{[o]:k,[i]:[re,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:te,headers:te},type:C},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:h}],type:P},{conditions:se,rules:[{conditions:[oe],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:h}],type:P},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:te,headers:te},type:C}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:h}]};t.ruleSet=ce},1185:(e,t,n)=>{var o=n(4736);var i=n(6626);var a=n(2575);var d=n(4608);var f=n(6477);var m=n(4918);var h=n(2566);var C=n(5700);var P=n(8946);var D=n(4433);var k=n(4271);var L=n(5338);var F=n(3115);var q=n(2585);var V=n(9228);var ee=n(3721);var te=n(1069);var ne=n(6859);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});const re={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(q.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),V.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,q.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),V.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class SSOClient extends k.Client{config;constructor(...[e]){const t=F.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const q=D.resolveRetryConfig(k);const V=f.resolveRegionConfig(q);const ee=o.resolveHostHeaderConfig(V);const te=P.resolveEndpointConfig(ee);const ne=L.resolveHttpAuthSchemeConfig(te);const re=resolveRuntimeExtensions(ne,e?.extensions||[]);this.config=re;this.middlewareStack.use(h.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(C.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(a.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(m.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:L.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new m.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(m.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class GetRoleCredentialsCommand extends(k.Command.classBuilder().ep(re).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(ee.GetRoleCredentials$).build()){}const oe={GetRoleCredentialsCommand:GetRoleCredentialsCommand};class SSO extends SSOClient{}k.createAggregatedClient(oe,SSO);t.$Command=k.Command;t.__Client=k.Client;t.SSOServiceException=ne.SSOServiceException;t.GetRoleCredentialsCommand=GetRoleCredentialsCommand;t.SSO=SSO;t.SSOClient=SSOClient;Object.prototype.hasOwnProperty.call(ee,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ee["__proto__"]});Object.keys(ee).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ee[e]}));Object.prototype.hasOwnProperty.call(te,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:te["__proto__"]});Object.keys(te).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=te[e]}))},6859:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=t.__ServiceException=void 0;const o=n(4271);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class SSOServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}t.SSOServiceException=SSOServiceException},1069:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=void 0;const o=n(6859);class InvalidRequestException extends o.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidRequestException.prototype)}}t.InvalidRequestException=InvalidRequestException;class ResourceNotFoundException extends o.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}t.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends o.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}t.TooManyRequestsException=TooManyRequestsException;class UnauthorizedException extends o.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,UnauthorizedException.prototype)}}t.UnauthorizedException=UnauthorizedException},3115:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(7892);const i=o.__importDefault(n(5368));const a=n(9728);const d=n(8803);const f=n(1694);const m=n(6477);const h=n(8300);const C=n(4433);const P=n(1125);const D=n(5422);const k=n(4271);const L=n(6e3);const F=n(8322);const q=n(2346);const V=n(5560);const getRuntimeConfig=e=>{(0,k.emitWarningIfUnsupportedVersion)(process.version);const t=(0,F.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(k.loadConfigsForDefaultMode);const n=(0,V.getRuntimeConfig)(e);(0,a.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,P.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??L.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,f.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,P.loadConfig)(C.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,P.loadConfig)(m.NODE_REGION_CONFIG_OPTIONS,{...m.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:D.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,P.loadConfig)({...C.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||q.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??h.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??D.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,P.loadConfig)(m.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,P.loadConfig)(m.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,P.loadConfig)(f.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},5560:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8803);const i=n(4552);const a=n(4918);const d=n(4271);const f=n(4418);const m=n(3158);const h=n(8165);const C=n(5338);const P=n(6884);const D=n(3721);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??m.fromBase64,base64Encoder:e?.base64Encoder??m.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??P.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??C.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new a.NoAuthSigner}],logger:e?.logger??new d.NoOpLogger,protocol:e?.protocol??i.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:D.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??f.parseUrl,utf8Decoder:e?.utf8Decoder??h.fromUtf8,utf8Encoder:e?.utf8Encoder??h.toUtf8});t.getRuntimeConfig=getRuntimeConfig},3721:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentials$=t.RoleCredentials$=t.GetRoleCredentialsResponse$=t.GetRoleCredentialsRequest$=t.errorTypeRegistries=t.UnauthorizedException$=t.TooManyRequestsException$=t.ResourceNotFoundException$=t.InvalidRequestException$=t.SSOServiceException$=void 0;const o="AccessTokenType";const i="GetRoleCredentials";const a="GetRoleCredentialsRequest";const d="GetRoleCredentialsResponse";const f="InvalidRequestException";const m="RoleCredentials";const h="ResourceNotFoundException";const C="SecretAccessKeyType";const P="SessionTokenType";const D="TooManyRequestsException";const k="UnauthorizedException";const L="accountId";const F="accessKeyId";const q="accessToken";const V="account_id";const ee="client";const te="error";const ne="expiration";const re="http";const oe="httpError";const ie="httpHeader";const se="httpQuery";const ae="message";const ce="roleCredentials";const le="roleName";const ue="role_name";const de="smithy.ts.sdk.synthetic.com.amazonaws.sso";const pe="secretAccessKey";const fe="sessionToken";const me="x-amz-sso_bearer_token";const he="com.amazonaws.sso";const ge=n(2566);const ye=n(1069);const Se=n(6859);const Ee=ge.TypeRegistry.for(de);t.SSOServiceException$=[-3,de,"SSOServiceException",0,[],[]];Ee.registerError(t.SSOServiceException$,Se.SSOServiceException);const ve=ge.TypeRegistry.for(he);t.InvalidRequestException$=[-3,he,f,{[te]:ee,[oe]:400},[ae],[0]];ve.registerError(t.InvalidRequestException$,ye.InvalidRequestException);t.ResourceNotFoundException$=[-3,he,h,{[te]:ee,[oe]:404},[ae],[0]];ve.registerError(t.ResourceNotFoundException$,ye.ResourceNotFoundException);t.TooManyRequestsException$=[-3,he,D,{[te]:ee,[oe]:429},[ae],[0]];ve.registerError(t.TooManyRequestsException$,ye.TooManyRequestsException);t.UnauthorizedException$=[-3,he,k,{[te]:ee,[oe]:401},[ae],[0]];ve.registerError(t.UnauthorizedException$,ye.UnauthorizedException);t.errorTypeRegistries=[Ee,ve];var Ce=[0,he,o,8,0];var Ie=[0,he,C,8,0];var be=[0,he,P,8,0];t.GetRoleCredentialsRequest$=[3,he,a,0,[le,L,q],[[0,{[se]:ue}],[0,{[se]:V}],[()=>Ce,{[ie]:me}]],3];t.GetRoleCredentialsResponse$=[3,he,d,0,[ce],[[()=>t.RoleCredentials$,0]]];t.RoleCredentials$=[3,he,m,0,[F,pe,fe,ne],[0,[()=>Ie,0],[()=>be,0],1]];t.GetRoleCredentials$=[9,he,i,{[re]:["GET","/federation/credentials",200]},()=>t.GetRoleCredentialsRequest$,()=>t.GetRoleCredentialsResponse$]},7345:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.STSClient=t.__Client=void 0;const o=n(4736);const i=n(6626);const a=n(2575);const d=n(4608);const f=n(6477);const m=n(4918);const h=n(2566);const C=n(5700);const P=n(8946);const D=n(4433);const k=n(4271);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return k.Client}});const L=n(1437);const F=n(1417);const q=n(8548);const V=n(4240);class STSClient extends k.Client{config;constructor(...[e]){const t=(0,q.getRuntimeConfig)(e||{});super(t);this.initConfig=t;const n=(0,F.resolveClientEndpointParameters)(t);const k=(0,d.resolveUserAgentConfig)(n);const ee=(0,D.resolveRetryConfig)(k);const te=(0,f.resolveRegionConfig)(ee);const ne=(0,o.resolveHostHeaderConfig)(te);const re=(0,P.resolveEndpointConfig)(ne);const oe=(0,L.resolveHttpAuthSchemeConfig)(re);const ie=(0,V.resolveRuntimeExtensions)(oe,e?.extensions||[]);this.config=ie;this.middlewareStack.use((0,h.getSchemaSerdePlugin)(this.config));this.middlewareStack.use((0,d.getUserAgentPlugin)(this.config));this.middlewareStack.use((0,D.getRetryPlugin)(this.config));this.middlewareStack.use((0,C.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,o.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,i.getLoggerPlugin)(this.config));this.middlewareStack.use((0,a.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,m.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:L.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new m.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use((0,m.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},2838:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthRuntimeConfig=t.getHttpAuthExtensionConfiguration=void 0;const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};t.getHttpAuthExtensionConfiguration=getHttpAuthExtensionConfiguration;const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});t.resolveHttpAuthRuntimeConfig=resolveHttpAuthRuntimeConfig},1437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.resolveStsAuthConfig=t.defaultSTSHttpAuthSchemeProvider=t.defaultSTSHttpAuthSchemeParametersProvider=void 0;const o=n(8803);const i=n(5496);const a=n(7345);const defaultSTSHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultSTSHttpAuthSchemeParametersProvider=defaultSTSHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function createSmithyApiNoAuthHttpAuthOption(e){return{schemeId:"smithy.api#noAuth"}}const defaultSTSHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(createSmithyApiNoAuthHttpAuthOption(e));break}default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultSTSHttpAuthSchemeProvider=defaultSTSHttpAuthSchemeProvider;const resolveStsAuthConfig=e=>Object.assign(e,{stsClientCtor:a.STSClient});t.resolveStsAuthConfig=resolveStsAuthConfig;const resolveHttpAuthSchemeConfig=e=>{const n=(0,t.resolveStsAuthConfig)(e);const a=(0,o.resolveAwsSdkSigV4Config)(n);return Object.assign(a,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},1417:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.commonParams=t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,useGlobalEndpoint:e.useGlobalEndpoint??false,defaultSigningName:"sts"});t.resolveClientEndpointParameters=resolveClientEndpointParameters;t.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},3107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3237);const i=n(9356);const a=n(7608);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(a.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},7608:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="type",i="fn",a="argv",d="ref";const f=false,m=true,h="booleanEquals",C="stringEquals",P="sigv4",D="sts",k="us-east-1",L="endpoint",F="https://sts.{Region}.{PartitionResult#dnsSuffix}",q="tree",V="error",ee="getAttr",te={[n]:false,[o]:"string"},ne={[n]:true,default:false,[o]:"boolean"},re={[d]:"Endpoint"},oe={[i]:"isSet",[a]:[{[d]:"Region"}]},ie={[d]:"Region"},se={[i]:"aws.partition",[a]:[ie],assign:"PartitionResult"},ae={[d]:"UseFIPS"},ce={[d]:"UseDualStack"},le={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:P,signingName:D,signingRegion:k}]},headers:{}},ue={},de={conditions:[{[i]:C,[a]:[ie,"aws-global"]}],[L]:le,[o]:L},pe={[i]:h,[a]:[ae,true]},fe={[i]:h,[a]:[ce,true]},me={[i]:ee,[a]:[{[d]:"PartitionResult"},"supportsFIPS"]},he={[d]:"PartitionResult"},ge={[i]:h,[a]:[true,{[i]:ee,[a]:[he,"supportsDualStack"]}]},ye=[{[i]:"isSet",[a]:[re]}],Se=[pe],Ee=[fe];const ve={version:"1.0",parameters:{Region:te,UseDualStack:ne,UseFIPS:ne,Endpoint:te,UseGlobalEndpoint:ne},rules:[{conditions:[{[i]:h,[a]:[{[d]:"UseGlobalEndpoint"},m]},{[i]:"not",[a]:ye},oe,se,{[i]:h,[a]:[ae,f]},{[i]:h,[a]:[ce,f]}],rules:[{conditions:[{[i]:C,[a]:[ie,"ap-northeast-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"ap-south-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"ap-southeast-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"ap-southeast-2"]}],endpoint:le,[o]:L},de,{conditions:[{[i]:C,[a]:[ie,"ca-central-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"eu-central-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"eu-north-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"eu-west-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"eu-west-2"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"eu-west-3"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"sa-east-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,k]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"us-east-2"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"us-west-1"]}],endpoint:le,[o]:L},{conditions:[{[i]:C,[a]:[ie,"us-west-2"]}],endpoint:le,[o]:L},{endpoint:{url:F,properties:{authSchemes:[{name:P,signingName:D,signingRegion:"{Region}"}]},headers:ue},[o]:L}],[o]:q},{conditions:ye,rules:[{conditions:Se,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[o]:V},{conditions:Ee,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[o]:V},{endpoint:{url:re,properties:ue,headers:ue},[o]:L}],[o]:q},{conditions:[oe],rules:[{conditions:[se],rules:[{conditions:[pe,fe],rules:[{conditions:[{[i]:h,[a]:[m,me]},ge],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ue,headers:ue},[o]:L}],[o]:q},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[o]:V}],[o]:q},{conditions:Se,rules:[{conditions:[{[i]:h,[a]:[me,m]}],rules:[{conditions:[{[i]:C,[a]:[{[i]:ee,[a]:[he,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:ue,headers:ue},[o]:L},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ue,headers:ue},[o]:L}],[o]:q},{error:"FIPS is enabled but this partition does not support FIPS",[o]:V}],[o]:q},{conditions:Ee,rules:[{conditions:[ge],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ue,headers:ue},[o]:L}],[o]:q},{error:"DualStack is enabled but this partition does not support DualStack",[o]:V}],[o]:q},de,{endpoint:{url:F,properties:ue,headers:ue},[o]:L}],[o]:q}],[o]:q},{error:"Invalid Configuration: Missing Region",[o]:V}]};t.ruleSet=ve},3266:(e,t,n)=>{var o=n(7345);var i=n(4271);var a=n(8946);var d=n(1417);var f=n(2842);var m=n(3358);var h=n(9728);var C=n(2585);var P=n(9333);class AssumeRoleCommand extends(i.Command.classBuilder().ep(d.commonParams).m((function(e,t,n,o){return[a.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(f.AssumeRole$).build()){}class AssumeRoleWithWebIdentityCommand extends(i.Command.classBuilder().ep(d.commonParams).m((function(e,t,n,o){return[a.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(f.AssumeRoleWithWebIdentity$).build()){}const D={AssumeRoleCommand:AssumeRoleCommand,AssumeRoleWithWebIdentityCommand:AssumeRoleWithWebIdentityCommand};class STS extends o.STSClient{}i.createAggregatedClient(D,STS);const getAccountIdFromAssumedRoleUser=e=>{if(typeof e?.Arn==="string"){const t=e.Arn.split(":");if(t.length>4&&t[4]!==""){return t[4]}}return undefined};const resolveRegion=async(e,t,n,o={})=>{const i=typeof e==="function"?await e():e;const a=typeof t==="function"?await t():t;let d="";const f=i??a??(d=await C.stsRegionDefaultResolver(o)());n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${i} (credential provider clientConfig)`,`${a} (contextual client)`,`${d} (STS default: AWS_REGION, profile region, or us-east-1)`);return f};const getDefaultRoleAssumer$1=(e,t)=>{let n;let o;return async(i,a)=>{o=i;if(!n){const{logger:i=e?.parentClientConfig?.logger,profile:a=e?.parentClientConfig?.profile,region:d,requestHandler:f=e?.parentClientConfig?.requestHandler,credentialProviderLogger:m,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e;const C=await resolveRegion(d,e?.parentClientConfig?.region,m,{logger:i,profile:a});const P=!isH2(f);n=new t({...e,userAgentAppId:h,profile:a,credentialDefaultProvider:()=>async()=>o,region:C,requestHandler:P?f:undefined,logger:i})}const{Credentials:d,AssumedRoleUser:f}=await n.send(new AssumeRoleCommand(a));if(!d||!d.AccessKeyId||!d.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${a.RoleArn}`)}const m=getAccountIdFromAssumedRoleUser(f);const C={accessKeyId:d.AccessKeyId,secretAccessKey:d.SecretAccessKey,sessionToken:d.SessionToken,expiration:d.Expiration,...d.CredentialScope&&{credentialScope:d.CredentialScope},...m&&{accountId:m}};h.setCredentialFeature(C,"CREDENTIALS_STS_ASSUME_ROLE","i");return C}};const getDefaultRoleAssumerWithWebIdentity$1=(e,t)=>{let n;return async o=>{if(!n){const{logger:o=e?.parentClientConfig?.logger,profile:i=e?.parentClientConfig?.profile,region:a,requestHandler:d=e?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e;const h=await resolveRegion(a,e?.parentClientConfig?.region,f,{logger:o,profile:i});const C=!isH2(d);n=new t({...e,userAgentAppId:m,profile:i,region:h,requestHandler:C?d:undefined,logger:o})}const{Credentials:i,AssumedRoleUser:a}=await n.send(new AssumeRoleWithWebIdentityCommand(o));if(!i||!i.AccessKeyId||!i.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`)}const d=getAccountIdFromAssumedRoleUser(a);const f={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...d&&{accountId:d}};if(d){h.setCredentialFeature(f,"RESOLVED_ACCOUNT_ID","T")}h.setCredentialFeature(f,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return f}};const isH2=e=>e?.metadata?.handlerProtocol==="h2";const getCustomizableStsClientCtor=(e,t)=>{if(!t)return e;else return class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t){this.middlewareStack.use(e)}}}};const getDefaultRoleAssumer=(e={},t)=>getDefaultRoleAssumer$1(e,getCustomizableStsClientCtor(o.STSClient,t));const getDefaultRoleAssumerWithWebIdentity=(e={},t)=>getDefaultRoleAssumerWithWebIdentity$1(e,getCustomizableStsClientCtor(o.STSClient,t));const decorateDefaultCredentialProvider=e=>t=>e({roleAssumer:getDefaultRoleAssumer(t),roleAssumerWithWebIdentity:getDefaultRoleAssumerWithWebIdentity(t),...t});t.$Command=i.Command;t.STSServiceException=P.STSServiceException;t.AssumeRoleCommand=AssumeRoleCommand;t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand;t.STS=STS;t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider;t.getDefaultRoleAssumer=getDefaultRoleAssumer;t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(f,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:f["__proto__"]});Object.keys(f).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=f[e]}));Object.prototype.hasOwnProperty.call(m,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:m["__proto__"]});Object.keys(m).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=m[e]}))},9333:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=t.__ServiceException=void 0;const o=n(4271);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class STSServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}t.STSServiceException=STSServiceException},3358:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.IDPCommunicationErrorException=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=void 0;const o=n(9333);class ExpiredTokenException extends o.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}t.ExpiredTokenException=ExpiredTokenException;class MalformedPolicyDocumentException extends o.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}t.MalformedPolicyDocumentException=MalformedPolicyDocumentException;class PackedPolicyTooLargeException extends o.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}t.PackedPolicyTooLargeException=PackedPolicyTooLargeException;class RegionDisabledException extends o.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,RegionDisabledException.prototype)}}t.RegionDisabledException=RegionDisabledException;class IDPRejectedClaimException extends o.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}t.IDPRejectedClaimException=IDPRejectedClaimException;class InvalidIdentityTokenException extends o.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}t.InvalidIdentityTokenException=InvalidIdentityTokenException;class IDPCommunicationErrorException extends o.STSServiceException{name="IDPCommunicationErrorException";$fault="client";constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}t.IDPCommunicationErrorException=IDPCommunicationErrorException},8548:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(7892);const i=o.__importDefault(n(5368));const a=n(9728);const d=n(8803);const f=n(1694);const m=n(6477);const h=n(4918);const C=n(8300);const P=n(4433);const D=n(1125);const k=n(5422);const L=n(4271);const F=n(6e3);const q=n(8322);const V=n(2346);const ee=n(2562);const getRuntimeConfig=e=>{(0,L.emitWarningIfUnsupportedVersion)(process.version);const t=(0,q.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(L.loadConfigsForDefaultMode);const n=(0,ee.getRuntimeConfig)(e);(0,a.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,D.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??F.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,f.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4")||(async t=>await e.credentialDefaultProvider(t?.__config||{})()),signer:new d.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new h.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,D.loadConfig)(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,D.loadConfig)(m.NODE_REGION_CONFIG_OPTIONS,{...m.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:k.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,D.loadConfig)({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||V.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??k.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,D.loadConfig)(m.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,D.loadConfig)(m.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,D.loadConfig)(f.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},2562:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8803);const i=n(4552);const a=n(4918);const d=n(4271);const f=n(4418);const m=n(3158);const h=n(8165);const C=n(1437);const P=n(3107);const D=n(2842);const getRuntimeConfig=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??m.fromBase64,base64Encoder:e?.base64Encoder??m.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??P.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??C.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new a.NoAuthSigner}],logger:e?.logger??new d.NoOpLogger,protocol:e?.protocol??i.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:D.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??f.parseUrl,utf8Decoder:e?.utf8Decoder??h.fromUtf8,utf8Encoder:e?.utf8Encoder??h.toUtf8});t.getRuntimeConfig=getRuntimeConfig},4240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveRuntimeExtensions=void 0;const o=n(2585);const i=n(9228);const a=n(4271);const d=n(2838);const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign((0,o.getAwsRegionExtensionConfiguration)(e),(0,a.getDefaultExtensionConfiguration)(e),(0,i.getHttpHandlerExtensionConfiguration)(e),(0,d.getHttpAuthExtensionConfiguration)(e));t.forEach((e=>e.configure(n)));return Object.assign(e,(0,o.resolveAwsRegionExtensionConfiguration)(n),(0,a.resolveDefaultRuntimeConfig)(n),(0,i.resolveHttpHandlerRuntimeConfig)(n),(0,d.resolveHttpAuthRuntimeConfig)(n))};t.resolveRuntimeExtensions=resolveRuntimeExtensions},2842:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentity$=t.AssumeRole$=t.Tag$=t.ProvidedContext$=t.PolicyDescriptorType$=t.Credentials$=t.AssumeRoleWithWebIdentityResponse$=t.AssumeRoleWithWebIdentityRequest$=t.AssumeRoleResponse$=t.AssumeRoleRequest$=t.AssumedRoleUser$=t.errorTypeRegistries=t.RegionDisabledException$=t.PackedPolicyTooLargeException$=t.MalformedPolicyDocumentException$=t.InvalidIdentityTokenException$=t.IDPRejectedClaimException$=t.IDPCommunicationErrorException$=t.ExpiredTokenException$=t.STSServiceException$=void 0;const o="Arn";const i="AccessKeyId";const a="AssumeRole";const d="AssumedRoleId";const f="AssumeRoleRequest";const m="AssumeRoleResponse";const h="AssumedRoleUser";const C="AssumeRoleWithWebIdentity";const P="AssumeRoleWithWebIdentityRequest";const D="AssumeRoleWithWebIdentityResponse";const k="Audience";const L="Credentials";const F="ContextAssertion";const q="DurationSeconds";const V="Expiration";const ee="ExternalId";const te="ExpiredTokenException";const ne="IDPCommunicationErrorException";const re="IDPRejectedClaimException";const oe="InvalidIdentityTokenException";const ie="Key";const se="MalformedPolicyDocumentException";const ae="Policy";const ce="PolicyArns";const le="ProviderArn";const ue="ProvidedContexts";const de="ProvidedContextsListType";const pe="ProvidedContext";const fe="PolicyDescriptorType";const me="ProviderId";const he="PackedPolicySize";const ge="PackedPolicyTooLargeException";const ye="Provider";const Se="RoleArn";const Ee="RegionDisabledException";const ve="RoleSessionName";const Ce="SecretAccessKey";const Ie="SubjectFromWebIdentityToken";const be="SourceIdentity";const we="SerialNumber";const Ae="SessionToken";const Re="Tags";const Pe="TokenCode";const Te="TransitiveTagKeys";const xe="Tag";const _e="Value";const Oe="WebIdentityToken";const Me="arn";const De="accessKeySecretType";const $e="awsQueryError";const Ne="client";const ke="clientTokenType";const Le="error";const Ue="httpError";const Fe="message";const Be="policyDescriptorListType";const qe="smithy.ts.sdk.synthetic.com.amazonaws.sts";const je="tagListType";const ze="com.amazonaws.sts";const He=n(2566);const Ve=n(3358);const Ge=n(9333);const We=He.TypeRegistry.for(qe);t.STSServiceException$=[-3,qe,"STSServiceException",0,[],[]];We.registerError(t.STSServiceException$,Ge.STSServiceException);const Ke=He.TypeRegistry.for(ze);t.ExpiredTokenException$=[-3,ze,te,{[$e]:[`ExpiredTokenException`,400],[Le]:Ne,[Ue]:400},[Fe],[0]];Ke.registerError(t.ExpiredTokenException$,Ve.ExpiredTokenException);t.IDPCommunicationErrorException$=[-3,ze,ne,{[$e]:[`IDPCommunicationError`,400],[Le]:Ne,[Ue]:400},[Fe],[0]];Ke.registerError(t.IDPCommunicationErrorException$,Ve.IDPCommunicationErrorException);t.IDPRejectedClaimException$=[-3,ze,re,{[$e]:[`IDPRejectedClaim`,403],[Le]:Ne,[Ue]:403},[Fe],[0]];Ke.registerError(t.IDPRejectedClaimException$,Ve.IDPRejectedClaimException);t.InvalidIdentityTokenException$=[-3,ze,oe,{[$e]:[`InvalidIdentityToken`,400],[Le]:Ne,[Ue]:400},[Fe],[0]];Ke.registerError(t.InvalidIdentityTokenException$,Ve.InvalidIdentityTokenException);t.MalformedPolicyDocumentException$=[-3,ze,se,{[$e]:[`MalformedPolicyDocument`,400],[Le]:Ne,[Ue]:400},[Fe],[0]];Ke.registerError(t.MalformedPolicyDocumentException$,Ve.MalformedPolicyDocumentException);t.PackedPolicyTooLargeException$=[-3,ze,ge,{[$e]:[`PackedPolicyTooLarge`,400],[Le]:Ne,[Ue]:400},[Fe],[0]];Ke.registerError(t.PackedPolicyTooLargeException$,Ve.PackedPolicyTooLargeException);t.RegionDisabledException$=[-3,ze,Ee,{[$e]:[`RegionDisabledException`,403],[Le]:Ne,[Ue]:403},[Fe],[0]];Ke.registerError(t.RegionDisabledException$,Ve.RegionDisabledException);t.errorTypeRegistries=[We,Ke];var Qe=[0,ze,De,8,0];var Ye=[0,ze,ke,8,0];t.AssumedRoleUser$=[3,ze,h,0,[d,o],[0,0],2];t.AssumeRoleRequest$=[3,ze,f,0,[Se,ve,ce,ae,q,Re,Te,ee,we,Pe,be,ue],[0,0,()=>Je,0,1,()=>ht,64|0,0,0,0,0,()=>Xe],2];t.AssumeRoleResponse$=[3,ze,m,0,[L,h,he,be],[[()=>t.Credentials$,0],()=>t.AssumedRoleUser$,1,0]];t.AssumeRoleWithWebIdentityRequest$=[3,ze,P,0,[Se,ve,Oe,me,ce,ae,q],[0,0,[()=>Ye,0],0,()=>Je,0,1],3];t.AssumeRoleWithWebIdentityResponse$=[3,ze,D,0,[L,Ie,h,he,ye,k,be],[[()=>t.Credentials$,0],0,()=>t.AssumedRoleUser$,1,0,0,0]];t.Credentials$=[3,ze,L,0,[i,Ce,Ae,V],[0,[()=>Qe,0],0,4],4];t.PolicyDescriptorType$=[3,ze,fe,0,[Me],[0]];t.ProvidedContext$=[3,ze,pe,0,[le,F],[0,0]];t.Tag$=[3,ze,xe,0,[ie,_e],[0,0],2];var Je=[1,ze,Be,0,()=>t.PolicyDescriptorType$];var Xe=[1,ze,de,0,()=>t.ProvidedContext$];var Ze=null&&64|0;var ht=[1,ze,je,0,()=>t.Tag$];t.AssumeRole$=[9,ze,a,0,()=>t.AssumeRoleRequest$,()=>t.AssumeRoleResponse$];t.AssumeRoleWithWebIdentity$=[9,ze,C,0,()=>t.AssumeRoleWithWebIdentityRequest$,()=>t.AssumeRoleWithWebIdentityResponse$]},2585:(e,t,n)=>{var o=n(8337);var i=n(6477);const getAwsRegionExtensionConfiguration=e=>({setRegion(t){e.region=t},region(){return e.region}});const resolveAwsRegionExtensionConfiguration=e=>({region:e.region()});t.NODE_REGION_CONFIG_FILE_OPTIONS=i.NODE_REGION_CONFIG_FILE_OPTIONS;t.NODE_REGION_CONFIG_OPTIONS=i.NODE_REGION_CONFIG_OPTIONS;t.REGION_ENV_NAME=i.REGION_ENV_NAME;t.REGION_INI_NAME=i.REGION_INI_NAME;t.resolveRegionConfig=i.resolveRegionConfig;t.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;t.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},8337:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.warning=void 0;t.stsRegionDefaultResolver=stsRegionDefaultResolver;const o=n(6477);const i=n(1125);function stsRegionDefaultResolver(e={}){return(0,i.loadConfig)({...o.NODE_REGION_CONFIG_OPTIONS,async default(){if(!t.warning.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...o.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}t.warning={silence:false}},9387:(e,t,n)=>{var o=n(9728);var i=n(8803);var a=n(4036);var d=n(7016);var f=n(3024);const fromEnvSigningName=({logger:e,signingName:t}={})=>async()=>{e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");if(!t){throw new a.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e})}const n=i.getBearerTokenEnvKey(t);if(!(n in process.env)){throw new a.TokenProviderError(`Token not present in '${n}' environment variable`,{logger:e})}const d={token:process.env[n]};o.setTokenFeature(d,"BEARER_SERVICE_ENV_VARS","3");return d};const m=5*60*1e3;const h=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`;const getSsoOidcClient=async(e,t={},o)=>{const{SSOOIDCClient:i}=await n.e(765).then(n.t.bind(n,6765,23));const coalesce=e=>t.clientConfig?.[e]??t.parentClientConfig?.[e]??o?.[e];const a=new i(Object.assign({},t.clientConfig??{},{region:e??t.clientConfig?.region,logger:coalesce("logger"),userAgentAppId:coalesce("userAgentAppId")}));return a};const getNewSsoOidcToken=async(e,t,o={},i)=>{const{CreateTokenCommand:a}=await n.e(765).then(n.t.bind(n,6765,23));const d=await getSsoOidcClient(t,o,i);return d.send(new a({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};const validateTokenExpiry=e=>{if(e.expiration&&e.expiration.getTime()<Date.now()){throw new a.TokenProviderError(`Token is expired. ${h}`,false)}};const validateTokenKey=(e,t,n=false)=>{if(typeof t==="undefined"){throw new a.TokenProviderError(`Value not present for '${e}' in SSO Token${n?". Cannot refresh":""}. ${h}`,false)}};const{writeFile:C}=f.promises;const writeSSOTokenToFile=(e,t)=>{const n=d.getSSOTokenFilepath(e);const o=JSON.stringify(t,null,2);return C(n,o)};const P=new Date(0);const fromSso=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");const n=await d.parseKnownFiles(e);const o=d.getProfileName({profile:e.profile??t?.profile});const i=n[o];if(!i){throw new a.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,false)}else if(!i["sso_session"]){throw new a.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`)}const f=i["sso_session"];const C=await d.loadSsoSessionData(e);const D=C[f];if(!D){throw new a.TokenProviderError(`Sso session '${f}' could not be found in shared credentials file.`,false)}for(const e of["sso_start_url","sso_region"]){if(!D[e]){throw new a.TokenProviderError(`Sso session '${f}' is missing required property '${e}'.`,false)}}D["sso_start_url"];const k=D["sso_region"];let L;try{L=await d.getSSOTokenFromFile(f)}catch(e){throw new a.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${h}`,false)}validateTokenKey("accessToken",L.accessToken);validateTokenKey("expiresAt",L.expiresAt);const{accessToken:F,expiresAt:q}=L;const V={token:F,expiration:new Date(q)};if(V.expiration.getTime()-Date.now()>m){return V}if(Date.now()-P.getTime()<30*1e3){validateTokenExpiry(V);return V}validateTokenKey("clientId",L.clientId,true);validateTokenKey("clientSecret",L.clientSecret,true);validateTokenKey("refreshToken",L.refreshToken,true);try{P.setTime(Date.now());const n=await getNewSsoOidcToken(L,k,e,t);validateTokenKey("accessToken",n.accessToken);validateTokenKey("expiresIn",n.expiresIn);const o=new Date(Date.now()+n.expiresIn*1e3);try{await writeSSOTokenToFile(f,{...L,accessToken:n.accessToken,expiresAt:o.toISOString(),refreshToken:n.refreshToken})}catch(e){}return{token:n.accessToken,expiration:o}}catch(e){validateTokenExpiry(V);return V}};const fromStatic=({token:e,logger:t})=>async()=>{t?.debug("@aws-sdk/token-providers - fromStatic");if(!e||!e.token){throw new a.TokenProviderError(`Please pass a valid token to fromStatic`,false)}return e};const nodeProvider=(e={})=>a.memoize(a.chain(fromSso(e),(async()=>{throw new a.TokenProviderError("Could not load token from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.fromEnvSigningName=fromEnvSigningName;t.fromSso=fromSso;t.fromStatic=fromStatic;t.nodeProvider=nodeProvider},3237:(e,t,n)=>{var o=n(9356);var i=n(4418);const isVirtualHostableS3Bucket=(e,t=false)=>{if(t){for(const t of e.split(".")){if(!isVirtualHostableS3Bucket(t)){return false}}return true}if(!o.isValidHostLabel(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if(o.isIpAddress(e)){return false}return true};const a=":";const d="/";const parseArn=e=>{const t=e.split(a);if(t.length<6)return null;const[n,o,i,f,m,...h]=t;if(n!=="arn"||o===""||i===""||h.join(a)==="")return null;const C=h.map((e=>e.split(d))).flat();return{partition:o,service:i,region:f,accountId:m,resourceId:C}};var f=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}];var m="1.1";var h={partitions:f,version:m};let C=h;let P="";const partition=e=>{const{partitions:t}=C;for(const n of t){const{regions:t,outputs:o}=n;for(const[n,i]of Object.entries(t)){if(n===e){return{...o,...i}}}}for(const n of t){const{regionRegex:t,outputs:o}=n;if(new RegExp(t).test(e)){return{...o}}}const n=t.find((e=>e.id==="aws"));if(!n){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...n.outputs}};const setPartitionInfo=(e,t="")=>{C=e;P=t};const useDefaultPartitionInfo=()=>{setPartitionInfo(h,"")};const getUserAgentPrefix=()=>P;const D={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};o.customEndpointFunctions.aws=D;const resolveDefaultAwsRegionalEndpointsConfig=e=>{if(typeof e.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>toEndpointV1(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:undefined},{logger:e.logger}))}return e};const toEndpointV1=e=>i.parseUrl(e.url);t.EndpointError=o.EndpointError;t.isIpAddress=o.isIpAddress;t.resolveEndpoint=o.resolveEndpoint;t.awsEndpointFunctions=D;t.getUserAgentPrefix=getUserAgentPrefix;t.partition=partition;t.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;t.setPartitionInfo=setPartitionInfo;t.toEndpointV1=toEndpointV1;t.useDefaultPartitionInfo=useDefaultPartitionInfo},1694:(e,t,n)=>{var o=n(8161);var i=n(1708);var a=n(7883);var d=n(1455);var f=n(6760);var m=n(4608);const getRuntimeUserAgentPair=()=>{const e=["deno","bun","llrt"];for(const t of e){if(i.versions[t]){return[`md/${t}`,i.versions[t]]}}return["md/nodejs",i.versions.node]};const getNodeModulesParentDirs=e=>{const t=process.cwd();if(!e){return[t]}const n=f.normalize(e);const o=n.split(f.sep);const i=o.indexOf("node_modules");const a=i!==-1?o.slice(0,i).join(f.sep):n;if(t===a){return[t]}return[a,t]};const h=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;const getSanitizedTypeScriptVersion=(e="")=>{const t=e.match(h);if(!t){return undefined}const[n,o,i,a]=[t[1],t[2],t[3],t[4]];return a?`${n}.${o}.${i}-${a}`:`${n}.${o}.${i}`};const C=["^","~",">=","<=",">","<"];const P=["latest","beta","dev","rc","insiders","next"];const getSanitizedDevTypeScriptVersion=(e="")=>{if(P.includes(e)){return e}const t=C.find((t=>e.startsWith(t)))??"";const n=getSanitizedTypeScriptVersion(e.slice(t.length));if(!n){return undefined}return`${t}${n}`};let D;const k=f.join("node_modules","typescript","package.json");const getTypeScriptUserAgentPair=async()=>{if(D===null){return undefined}else if(typeof D==="string"){return["md/tsc",D]}let e=false;try{e=a.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",a.SelectorType.ENV)||false}catch{}if(e){D=null;return undefined}const t=typeof __dirname!=="undefined"?__dirname:undefined;const n=getNodeModulesParentDirs(t);let o;for(const e of n){try{const t=f.join(e,"package.json");const n=await d.readFile(t,"utf-8");const{dependencies:i,devDependencies:a}=JSON.parse(n);const m=a?.typescript??i?.typescript;if(typeof m!=="string"){continue}o=m;break}catch{}}if(!o){D=null;return undefined}let i;for(const e of n){try{const t=f.join(e,k);const n=await d.readFile(t,"utf-8");const{version:o}=JSON.parse(n);const a=getSanitizedTypeScriptVersion(o);if(typeof a!=="string"){continue}i=a;break}catch{}}if(i){D=i;return["md/tsc",D]}const m=getSanitizedDevTypeScriptVersion(o);if(typeof m!=="string"){D=null;return undefined}D=`dev_${m}`;return["md/tsc",D]};const L={isCrtAvailable:false};const isCrtAvailable=()=>{if(L.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:e,clientVersion:t})=>{const n=getRuntimeUserAgentPair();return async a=>{const d=[["aws-sdk-js",t],["ua","2.1"],[`os/${o.platform()}`,o.release()],["lang/js"],n];const f=await getTypeScriptUserAgentPair();if(f){d.push(f)}const m=isCrtAvailable();if(m){d.push(m)}if(e){d.push([`api/${e}`,t])}if(i.env.AWS_EXECUTION_ENV){d.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const h=await(a?.userAgentAppId?.());const C=h?[...d,[`app/${h}`]]:[...d];return C}};const F=createDefaultUserAgentProvider;const q="AWS_SDK_UA_APP_ID";const V="sdk_ua_app_id";const ee="sdk-ua-app-id";const te={environmentVariableSelector:e=>e[q],configFileSelector:e=>e[V]??e[ee],default:m.DEFAULT_UA_APP_ID};t.NODE_APP_ID_CONFIG_OPTIONS=te;t.UA_APP_ID_ENV_NAME=q;t.UA_APP_ID_INI_NAME=V;t.createDefaultUserAgentProvider=createDefaultUserAgentProvider;t.crtAvailability=L;t.defaultUserAgent=F},3955:(e,t,n)=>{var o=n(3936);const i=/[&<>"]/g;const a={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(e){return e.replace(i,(e=>a[e]))}const d=/[&"'<>\r\n\u0085\u2028]/g;const f={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","…":"…","\u2028":"
"};function escapeElement(e){return e.replace(d,(e=>f[e]))}class XmlText{value;constructor(e){this.value=e}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(e,t,n){const o=new XmlNode(e);if(t!==undefined){o.addChildNode(new XmlText(t))}if(n!==undefined){o.withName(n)}return o}constructor(e,t=[]){this.name=e;this.children=t}withName(e){this.name=e;return this}addAttribute(e,t){this.attributes[e]=t;return this}addChildNode(e){this.children.push(e);return this}removeAttribute(e){delete this.attributes[e];return this}n(e){this.name=e;return this}c(e){this.children.push(e);return this}a(e,t){if(t!=null){this.attributes[e]=t}return this}cc(e,t,n=t){if(e[t]!=null){const o=XmlNode.of(t,e[t]).withName(n);this.c(o)}}l(e,t,n,o){if(e[t]!=null){const e=o();e.map((e=>{e.withName(n);this.c(e)}))}}lc(e,t,n,o){if(e[t]!=null){const e=o();const t=new XmlNode(n);e.map((e=>{t.c(e)}));this.c(t)}}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const n=this.attributes;for(const e of Object.keys(n)){const o=n[e];if(o!=null){t+=` ${e}="${escapeAttribute(""+o)}"`}}return t+=!e?"/>":`>${this.children.map((e=>e.toString())).join("")}</${this.name}>`}}t.parseXML=o.parseXML;t.XmlNode=XmlNode;t.XmlText=XmlText},3936:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseXML=parseXML;const o=n(2227);const i=new o.XMLParser({attributeNamePrefix:"",processEntities:{enabled:true,maxTotalExpansions:Infinity},htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined,maxNestedTags:Infinity});i.addEntity("#xD","\r");i.addEntity("#10","\n");function parseXML(e){return i.parse(e,true)}},6477:(e,t,n)=>{var o=n(7883);var i=n(5496);var a=n(9356);const d="AWS_USE_DUALSTACK_ENDPOINT";const f="use_dualstack_endpoint";const m=false;const h={environmentVariableSelector:e=>o.booleanSelector(e,d,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,f,o.SelectorType.CONFIG),default:false};const C={environmentVariableSelector:e=>o.booleanSelector(e,d,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,f,o.SelectorType.CONFIG),default:undefined};const P="AWS_USE_FIPS_ENDPOINT";const D="use_fips_endpoint";const k=false;const L={environmentVariableSelector:e=>o.booleanSelector(e,P,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,D,o.SelectorType.CONFIG),default:false};const F={environmentVariableSelector:e=>o.booleanSelector(e,P,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,D,o.SelectorType.CONFIG),default:undefined};const resolveCustomEndpointsConfig=e=>{const{tls:t,endpoint:n,urlParser:o,useDualstackEndpoint:a}=e;return Object.assign(e,{tls:t??true,endpoint:i.normalizeProvider(typeof n==="string"?o(n):n),isCustomEndpoint:true,useDualstackEndpoint:i.normalizeProvider(a??false)})};const getEndpointFromRegion=async e=>{const{tls:t=true}=e;const n=await e.region();const o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!o.test(n)){throw new Error("Invalid region in client config")}const i=await e.useDualstackEndpoint();const a=await e.useFipsEndpoint();const{hostname:d}=await e.regionInfoProvider(n,{useDualstackEndpoint:i,useFipsEndpoint:a})??{};if(!d){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${t?"https:":"http:"}//${d}`)};const resolveEndpointsConfig=e=>{const t=i.normalizeProvider(e.useDualstackEndpoint??false);const{endpoint:n,useFipsEndpoint:o,urlParser:a,tls:d}=e;return Object.assign(e,{tls:d??true,endpoint:n?i.normalizeProvider(typeof n==="string"?a(n):n):()=>getEndpointFromRegion({...e,useDualstackEndpoint:t,useFipsEndpoint:o}),isCustomEndpoint:!!n,useDualstackEndpoint:t})};const q="AWS_REGION";const V="region";const ee={environmentVariableSelector:e=>e[q],configFileSelector:e=>e[V],default:()=>{throw new Error("Region is missing")}};const te={preferredFile:"credentials"};const ne=new Set;const checkRegion=(e,t=a.isValidHostLabel)=>{if(!ne.has(e)&&!t(e)){if(e==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`)}}else{ne.add(e)}};const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));const getRealRegion=e=>isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t){throw new Error("Region is missing")}return Object.assign(e,{region:async()=>{const e=typeof t==="function"?await t():t;const n=getRealRegion(e);checkRegion(n);return n},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(isFipsRegion(e)){return true}return typeof n!=="function"?Promise.resolve(!!n):n()}})};const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find((({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack")))?.hostname;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:n})=>t?t:n?n.replace("{region}",e):undefined;const getResolvedPartition=(e,{partitionHash:t})=>Object.keys(t||{}).find((n=>t[n].regions.includes(e)))??"aws";const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:o})=>{if(t){return t}else if(o){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=e.match(t);if(o){return o[0].slice(1,-1)}}};const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:o,regionHash:i,partitionHash:a})=>{const d=getResolvedPartition(e,{partitionHash:a});const f=e in i?e:a[d]?.endpoint??e;const m={useFipsEndpoint:t,useDualstackEndpoint:n};const h=getHostnameFromVariants(i[f]?.variants,m);const C=getHostnameFromVariants(a[d]?.variants,m);const P=getResolvedHostname(f,{regionHostname:h,partitionHostname:C});if(P===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:f,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const D=getResolvedSigningRegion(P,{signingRegion:i[f]?.signingRegion,regionRegex:a[d].regionRegex,useFipsEndpoint:t});return{partition:d,signingService:o,hostname:P,...D&&{signingRegion:D},...i[f]?.signingService&&{signingService:i[f].signingService}}};t.CONFIG_USE_DUALSTACK_ENDPOINT=f;t.CONFIG_USE_FIPS_ENDPOINT=D;t.DEFAULT_USE_DUALSTACK_ENDPOINT=m;t.DEFAULT_USE_FIPS_ENDPOINT=k;t.ENV_USE_DUALSTACK_ENDPOINT=d;t.ENV_USE_FIPS_ENDPOINT=P;t.NODE_REGION_CONFIG_FILE_OPTIONS=te;t.NODE_REGION_CONFIG_OPTIONS=ee;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=h;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=L;t.REGION_ENV_NAME=q;t.REGION_INI_NAME=V;t.getRegionInfo=getRegionInfo;t.nodeDualstackConfigSelectors=C;t.nodeFipsConfigSelectors=F;t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;t.resolveEndpointsConfig=resolveEndpointsConfig;t.resolveRegionConfig=resolveRegionConfig},4918:(e,t,n)=>{var o=n(5674);var i=n(5496);var a=n(9228);var d=n(5770);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const resolveAuthOptions=(e,t)=>{if(!t||t.length===0){return e}const n=[];for(const o of t){for(const t of e){const e=t.schemeId.split("#")[1];if(e===o){n.push(t)}}}for(const t of e){if(!n.find((({schemeId:e})=>e===t.schemeId))){n.push(t)}}return n};function convertHttpAuthSchemesToMap(e){const t=new Map;for(const n of e){t.set(n.schemeId,n)}return t}const httpAuthSchemeMiddleware=(e,t)=>(n,o)=>async a=>{const d=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,a.input));const f=e.authSchemePreference?await e.authSchemePreference():[];const m=resolveAuthOptions(d,f);const h=convertHttpAuthSchemesToMap(e.httpAuthSchemes);const C=i.getSmithyContext(o);const P=[];for(const n of m){const i=h.get(n.schemeId);if(!i){P.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){P.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:d={},signingProperties:f={}}=n.propertiesExtractor?.(e,o)||{};n.identityProperties=Object.assign(n.identityProperties||{},d);n.signingProperties=Object.assign(n.signingProperties||{},f);C.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!C.selectedHttpAuthScheme){throw new Error(P.join("\n"))}return n(a)};const f={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),f)}});const m={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"serializerMiddleware"};const getHttpAuthSchemePlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),m)}});const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,t)=>{};const httpSigningMiddleware=e=>(e,t)=>async n=>{if(!a.HttpRequest.isInstance(n.request)){return e(n)}const o=i.getSmithyContext(t);const d=o.selectedHttpAuthScheme;if(!d){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:f={}},identity:m,signer:h}=d;const C=await e({...n,request:await h.sign(n.request,m,f)}).catch((h.errorHandler||defaultErrorHandler)(f));(h.successHandler||defaultSuccessHandler)(C.response,f);return C};const h={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=e=>({applyToStack:e=>{e.addRelativeTo(httpSigningMiddleware(),h)}});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};const makePagedClientRequest=async(e,t,n,o=e=>e,...i)=>{let a=new e(n);a=o(a)??a;return await t.send(a,...i)};function createPaginator(e,t,n,o,i){return async function*paginateOperation(a,d,...f){const m=d;let h=a.startingToken??m[n];let C=true;let P;while(C){m[n]=h;if(i){m[i]=m[i]??a.pageSize}if(a.client instanceof e){P=await makePagedClientRequest(t,a.client,d,a.withCommand,...f)}else{throw new Error(`Invalid client, expected instance of ${e.name}`)}yield P;const D=h;h=get(P,o);C=!!(h&&(!a.stopOnSameToken||h!==D))}return undefined}}const get=(e,t)=>{let n=e;const o=t.split(".");for(const e of o){if(!n||typeof n!=="object"){return undefined}n=n[e]}return n};function setFeature(e,t,n){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[t]=n}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(e){for(const[t,n]of Object.entries(e)){if(n!==undefined){this.authSchemes.set(t,n)}}}getIdentityProvider(e){return this.authSchemes.get(e)}}class HttpApiKeyAuthSigner{async sign(e,t,n){if(!n){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!n.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!n.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!t.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const i=a.HttpRequest.clone(e);if(n.in===o.HttpApiKeyAuthLocation.QUERY){i.query[n.name]=t.apiKey}else if(n.in===o.HttpApiKeyAuthLocation.HEADER){i.headers[n.name]=n.scheme?`${n.scheme} ${t.apiKey}`:t.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+n.in+"`")}return i}}class HttpBearerAuthSigner{async sign(e,t,n){const o=a.HttpRequest.clone(e);if(!t.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}o.headers["Authorization"]=`Bearer ${t.token}`;return o}}class NoAuthSigner{async sign(e,t,n){return e}}const createIsIdentityExpiredFunction=e=>function isIdentityExpired(t){return doesIdentityRequireRefresh(t)&&t.expiration.getTime()-Date.now()<e};const C=3e5;const P=createIsIdentityExpiredFunction(C);const doesIdentityRequireRefresh=e=>e.expiration!==undefined;const memoizeIdentityProvider=(e,t,n)=>{if(e===undefined){return undefined}const o=typeof e!=="function"?async()=>Promise.resolve(e):e;let i;let a;let d;let f=false;const coalesceProvider=async e=>{if(!a){a=o(e)}try{i=await a;d=true;f=false}finally{a=undefined}return i};if(t===undefined){return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}return i}}return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}if(f){return i}if(!n(i)){f=true;return i}if(t(i)){await coalesceProvider(e);return i}return i}};t.requestBuilder=d.requestBuilder;t.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;t.EXPIRATION_MS=C;t.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;t.HttpBearerAuthSigner=HttpBearerAuthSigner;t.NoAuthSigner=NoAuthSigner;t.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;t.createPaginator=createPaginator;t.doesIdentityRequireRefresh=doesIdentityRequireRefresh;t.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;t.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;t.getHttpSigningPlugin=getHttpSigningPlugin;t.getSmithyContext=getSmithyContext;t.httpAuthSchemeEndpointRuleSetMiddlewareOptions=f;t.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;t.httpAuthSchemeMiddlewareOptions=m;t.httpSigningMiddleware=httpSigningMiddleware;t.httpSigningMiddlewareOptions=h;t.isIdentityExpired=P;t.memoizeIdentityProvider=memoizeIdentityProvider;t.normalizeProvider=normalizeProvider;t.setFeature=setFeature},7657:(e,t,n)=>{var o=n(8682);var i=n(8165);var a=n(5770);var d=n(9228);var f=n(3063);var m=n(2566);var h=n(5496);var C=n(3158);const P=0;const D=1;const k=2;const L=3;const F=4;const q=5;const V=6;const ee=7;const te=20;const ne=21;const re=22;const oe=23;const ie=24;const se=25;const ae=26;const ce=27;const le=31;function alloc(e){return typeof Buffer!=="undefined"?Buffer.alloc(e):new Uint8Array(e)}const ue=Symbol("@smithy/core/cbor::tagSymbol");function tag(e){e[ue]=true;return e}const de=typeof TextDecoder!=="undefined";const pe=typeof Buffer!=="undefined";let fe=alloc(0);let me=new DataView(fe.buffer,fe.byteOffset,fe.byteLength);const he=de?new TextDecoder:null;let ge=0;function setPayload(e){fe=e;me=new DataView(fe.buffer,fe.byteOffset,fe.byteLength)}function decode(e,t){if(e>=t){throw new Error("unexpected end of (decode) payload.")}const n=(fe[e]&224)>>5;const i=fe[e]&31;switch(n){case P:case D:case V:let a;let d;if(i<24){a=i;d=1}else{switch(i){case ie:case se:case ae:case ce:const n=ye[i];const o=n+1;d=o;if(t-e<o){throw new Error(`countLength ${n} greater than remaining buf len.`)}const f=e+1;if(n===1){a=fe[f]}else if(n===2){a=me.getUint16(f)}else if(n===4){a=me.getUint32(f)}else{a=me.getBigUint64(f)}break;default:throw new Error(`unexpected minor value ${i}.`)}}if(n===P){ge=d;return castBigInt(a)}else if(n===D){let e;if(typeof a==="bigint"){e=BigInt(-1)-a}else{e=-1-a}ge=d;return castBigInt(e)}else{if(i===2||i===3){const n=decodeCount(e+d,t);let o=BigInt(0);const a=e+d+ge;for(let e=a;e<a+n;++e){o=o<<BigInt(8)|BigInt(fe[e])}ge=d+ge+n;return i===3?-o-BigInt(1):o}else if(i===4){const n=decode(e+d,t);const[i,a]=n;const f=a<0?-1:1;const m="0".repeat(Math.abs(i)+1)+String(BigInt(f)*BigInt(a));let h;const C=a<0?"-":"";h=i===0?m:m.slice(0,m.length+i)+"."+m.slice(i);h=h.replace(/^0+/g,"");if(h===""){h="0"}if(h[0]==="."){h="0"+h}h=C+h;ge=d+ge;return o.nv(h)}else{const n=decode(e+d,t);const o=ge;ge=d+o;return tag({tag:castBigInt(a),value:n})}}case L:case q:case F:case k:if(i===le){switch(n){case L:return decodeUtf8StringIndefinite(e,t);case q:return decodeMapIndefinite(e,t);case F:return decodeListIndefinite(e,t);case k:return decodeUnstructuredByteStringIndefinite(e,t)}}else{switch(n){case L:return decodeUtf8String(e,t);case q:return decodeMap(e,t);case F:return decodeList(e,t);case k:return decodeUnstructuredByteString(e,t)}}default:return decodeSpecial(e,t)}}function bytesToUtf8(e,t,n){if(pe&&e.constructor?.name==="Buffer"){return e.toString("utf-8",t,n)}if(he){return he.decode(e.subarray(t,n))}return i.toUtf8(e.subarray(t,n))}function demote(e){const t=Number(e);if(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t){console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${e}) to ${t} with loss of precision.`))}return t}const ye={[ie]:1,[se]:2,[ae]:4,[ce]:8};function bytesToFloat16(e,t){const n=e>>7;const o=(e&124)>>2;const i=(e&3)<<8|t;const a=n===0?1:-1;let d;let f;if(o===0){if(i===0){return 0}else{d=Math.pow(2,1-15);f=0}}else if(o===31){if(i===0){return a*Infinity}else{return NaN}}else{d=Math.pow(2,o-15);f=1}f+=i/1024;return a*(d*f)}function decodeCount(e,t){const n=fe[e]&31;if(n<24){ge=1;return n}if(n===ie||n===se||n===ae||n===ce){const o=ye[n];ge=o+1;if(t-e<ge){throw new Error(`countLength ${o} greater than remaining buf len.`)}const i=e+1;if(o===1){return fe[i]}else if(o===2){return me.getUint16(i)}else if(o===4){return me.getUint32(i)}return demote(me.getBigUint64(i))}throw new Error(`unexpected minor value ${n}.`)}function decodeUtf8String(e,t){const n=decodeCount(e,t);const o=ge;e+=o;if(t-e<n){throw new Error(`string len ${n} greater than remaining buf len.`)}const i=bytesToUtf8(fe,e,e+n);ge=o+n;return i}function decodeUtf8StringIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(fe[e]===255){const t=alloc(n.length);t.set(n,0);ge=e-o+2;return bytesToUtf8(t,0,t.length)}const i=(fe[e]&224)>>5;const a=fe[e]&31;if(i!==L){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(a===le){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const f=ge;e+=f;for(let e=0;e<d.length;++e){n.push(d[e])}}throw new Error("expected break marker.")}function decodeUnstructuredByteString(e,t){const n=decodeCount(e,t);const o=ge;e+=o;if(t-e<n){throw new Error(`unstructured byte string len ${n} greater than remaining buf len.`)}const i=fe.subarray(e,e+n);ge=o+n;return i}function decodeUnstructuredByteStringIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(fe[e]===255){const t=alloc(n.length);t.set(n,0);ge=e-o+2;return t}const i=(fe[e]&224)>>5;const a=fe[e]&31;if(i!==k){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(a===le){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const f=ge;e+=f;for(let e=0;e<d.length;++e){n.push(d[e])}}throw new Error("expected break marker.")}function decodeList(e,t){const n=decodeCount(e,t);const o=ge;e+=o;const i=e;const a=Array(n);for(let o=0;o<n;++o){const n=decode(e,t);const i=ge;a[o]=n;e+=i}ge=o+(e-i);return a}function decodeListIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(fe[e]===255){ge=e-o+2;return n}const i=decode(e,t);const a=ge;e+=a;n.push(i)}throw new Error("expected break marker.")}function decodeMap(e,t){const n=decodeCount(e,t);const o=ge;e+=o;const i=e;const a={};for(let o=0;o<n;++o){if(e>=t){throw new Error("unexpected end of map payload.")}const n=(fe[e]&224)>>5;if(n!==L){throw new Error(`unexpected major type ${n} for map key at index ${e}.`)}const o=decode(e,t);e+=ge;const i=decode(e,t);e+=ge;a[o]=i}ge=o+(e-i);return a}function decodeMapIndefinite(e,t){e+=1;const n=e;const o={};for(;e<t;){if(e>=t){throw new Error("unexpected end of map payload.")}if(fe[e]===255){ge=e-n+2;return o}const i=(fe[e]&224)>>5;if(i!==L){throw new Error(`unexpected major type ${i} for map key.`)}const a=decode(e,t);e+=ge;const d=decode(e,t);e+=ge;o[a]=d}throw new Error("expected break marker.")}function decodeSpecial(e,t){const n=fe[e]&31;switch(n){case ne:case te:ge=1;return n===ne;case re:ge=1;return null;case oe:ge=1;return null;case se:if(t-e<3){throw new Error("incomplete float16 at end of buf.")}ge=3;return bytesToFloat16(fe[e+1],fe[e+2]);case ae:if(t-e<5){throw new Error("incomplete float32 at end of buf.")}ge=5;return me.getFloat32(e+1);case ce:if(t-e<9){throw new Error("incomplete float64 at end of buf.")}ge=9;return me.getFloat64(e+1);default:throw new Error(`unexpected minor value ${n}.`)}}function castBigInt(e){if(typeof e==="number"){return e}const t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER){return t}return e}const Se=typeof Buffer!=="undefined";const Ee=2048;let ve=alloc(Ee);let Ce=new DataView(ve.buffer,ve.byteOffset,ve.byteLength);let Ie=0;function ensureSpace(e){const t=ve.byteLength-Ie;if(t<e){if(Ie<16e6){resize(Math.max(ve.byteLength*4,ve.byteLength+e))}else{resize(ve.byteLength+e+16e6)}}}function toUint8Array(){const e=alloc(Ie);e.set(ve.subarray(0,Ie),0);Ie=0;return e}function resize(e){const t=ve;ve=alloc(e);if(t){if(t.copy){t.copy(ve,0,0,t.byteLength)}else{ve.set(t,0)}}Ce=new DataView(ve.buffer,ve.byteOffset,ve.byteLength)}function encodeHeader(e,t){if(t<24){ve[Ie++]=e<<5|t}else if(t<1<<8){ve[Ie++]=e<<5|24;ve[Ie++]=t}else if(t<1<<16){ve[Ie++]=e<<5|se;Ce.setUint16(Ie,t);Ie+=2}else if(t<2**32){ve[Ie++]=e<<5|ae;Ce.setUint32(Ie,t);Ie+=4}else{ve[Ie++]=e<<5|ce;Ce.setBigUint64(Ie,typeof t==="bigint"?t:BigInt(t));Ie+=8}}function encode(e){const t=[e];while(t.length){const e=t.pop();ensureSpace(typeof e==="string"?e.length*4:64);if(typeof e==="string"){if(Se){encodeHeader(L,Buffer.byteLength(e));Ie+=ve.write(e,Ie)}else{const t=i.fromUtf8(e);encodeHeader(L,t.byteLength);ve.set(t,Ie);Ie+=t.byteLength}continue}else if(typeof e==="number"){if(Number.isInteger(e)){const t=e>=0;const n=t?P:D;const o=t?e:-e-1;if(o<24){ve[Ie++]=n<<5|o}else if(o<256){ve[Ie++]=n<<5|24;ve[Ie++]=o}else if(o<65536){ve[Ie++]=n<<5|se;ve[Ie++]=o>>8;ve[Ie++]=o}else if(o<4294967296){ve[Ie++]=n<<5|ae;Ce.setUint32(Ie,o);Ie+=4}else{ve[Ie++]=n<<5|ce;Ce.setBigUint64(Ie,BigInt(o));Ie+=8}continue}ve[Ie++]=ee<<5|ce;Ce.setFloat64(Ie,e);Ie+=8;continue}else if(typeof e==="bigint"){const t=e>=0;const n=t?P:D;const o=t?e:-e-BigInt(1);const i=Number(o);if(i<24){ve[Ie++]=n<<5|i}else if(i<256){ve[Ie++]=n<<5|24;ve[Ie++]=i}else if(i<65536){ve[Ie++]=n<<5|se;ve[Ie++]=i>>8;ve[Ie++]=i&255}else if(i<4294967296){ve[Ie++]=n<<5|ae;Ce.setUint32(Ie,i);Ie+=4}else if(o<BigInt("18446744073709551616")){ve[Ie++]=n<<5|ce;Ce.setBigUint64(Ie,o);Ie+=8}else{const e=o.toString(2);const n=new Uint8Array(Math.ceil(e.length/8));let i=o;let a=0;while(n.byteLength-++a>=0){n[n.byteLength-a]=Number(i&BigInt(255));i>>=BigInt(8)}ensureSpace(n.byteLength*2);ve[Ie++]=t?194:195;if(Se){encodeHeader(k,Buffer.byteLength(n))}else{encodeHeader(k,n.byteLength)}ve.set(n,Ie);Ie+=n.byteLength}continue}else if(e===null){ve[Ie++]=ee<<5|re;continue}else if(typeof e==="boolean"){ve[Ie++]=ee<<5|(e?ne:te);continue}else if(typeof e==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(e)){for(let n=e.length-1;n>=0;--n){t.push(e[n])}encodeHeader(F,e.length);continue}else if(typeof e.byteLength==="number"){ensureSpace(e.length*2);encodeHeader(k,e.length);ve.set(e,Ie);Ie+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof o.NumericValue){const n=e.string.indexOf(".");const o=n===-1?0:n-e.string.length+1;const i=BigInt(e.string.replace(".",""));ve[Ie++]=196;t.push(i);t.push(o);encodeHeader(F,2);continue}if(e[ue]){if("tag"in e&&"value"in e){t.push(e.value);encodeHeader(V,e.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e))}}const n=Object.keys(e);for(let o=n.length-1;o>=0;--o){const i=n[o];t.push(e[i]);t.push(i)}encodeHeader(q,n.length);continue}throw new Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}const be={deserialize(e){setPayload(e);return decode(0,e.length)},serialize(e){try{encode(e);return toUint8Array()}catch(e){toUint8Array();throw e}},resizeEncodingBuffer(e){resize(e)}};const parseCborBody=(e,t)=>a.collectBody(e,t).then((async e=>{if(e.length){try{return be.deserialize(e)}catch(n){Object.defineProperty(n,"$responseBodyText",{value:t.utf8Encoder(e)});throw n}}return{}}));const dateToTag=e=>tag({tag:1,value:e.getTime()/1e3});const parseCborErrorBody=async(e,t)=>{const n=await parseCborBody(e,t);n.message=n.message??n.Message;return n};const loadSmithyRpcV2CborErrorCode=(e,t)=>{const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}const n=Object.keys(t).find((e=>e.toLowerCase()==="code"));if(n&&t[n]!==undefined){return sanitizeErrorCode(t[n])}};const checkCborResponse=e=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)}};const buildHttpRpcRequest=async(e,t,n,o,i)=>{const a=await e.endpoint();const{hostname:m,protocol:h="https",port:C,path:P}=a;const D={protocol:h,hostname:m,port:C,method:"POST",path:P.endsWith("/")?P.slice(0,-1)+n:P+n,headers:{...t}};if(o!==undefined){D.hostname=o}if(a.headers){for(const[e,t]of Object.entries(a.headers)){D.headers[e]=t}}if(i!==undefined){D.body=i;try{D.headers["content-length"]=String(f.calculateBodyLength(i))}catch(e){}}return new d.HttpRequest(D)};class CborCodec extends a.SerdeContext{createSerializer(){const e=new CborShapeSerializer;e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new CborShapeDeserializer;e.setSerdeContext(this.serdeContext);return e}}class CborShapeSerializer extends a.SerdeContext{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){const n=m.NormalizedSchema.of(e);if(t==null){if(n.isIdempotencyToken()){return o.generateIdempotencyToken()}return t}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??C.fromBase64)(t)}return t}if(n.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint"){return dateToTag(new Date(Number(t)/1e3|0))}return dateToTag(t)}if(typeof t==="function"||typeof t==="object"){const e=t;if(n.isListSchema()&&Array.isArray(e)){const t=!!n.getMergedTraits().sparse;const o=[];let i=0;for(const a of e){const e=this.serialize(n.getValueSchema(),a);if(e!=null||t){o[i++]=e}}return o}if(e instanceof Date){return dateToTag(e)}const o={};if(n.isMapSchema()){const t=!!n.getMergedTraits().sparse;for(const i of Object.keys(e)){const a=this.serialize(n.getValueSchema(),e[i]);if(a!=null||t){o[i]=a}}}else if(n.isStructSchema()){for(const[t,i]of n.structIterator()){const n=this.serialize(i,e[t]);if(n!=null){o[t]=n}}const t=n.isUnionSchema();if(t&&Array.isArray(e.$unknown)){const[t,n]=e.$unknown;o[t]=n}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){if(!(t in o)){o[t]=this.serialize(15,n)}}}}else if(n.isDocumentSchema()){for(const t of Object.keys(e)){o[t]=this.serialize(n.getValueSchema(),e[t])}}else if(n.isBigDecimalSchema()){return e}return o}return t}flush(){const e=be.serialize(this.value);this.value=undefined;return e}}class CborShapeDeserializer extends a.SerdeContext{read(e,t){const n=be.deserialize(t);return this.readValue(e,n)}readValue(e,t){const n=m.NormalizedSchema.of(e);if(n.isTimestampSchema()){if(typeof t==="number"){return o._parseEpochTimestamp(t)}if(typeof t==="object"){if(t.tag===1&&"value"in t){return o._parseEpochTimestamp(t.value)}}}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??C.fromBase64)(t)}return t}if(typeof t==="undefined"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol"){return t}else if(typeof t==="object"){if(t===null){return null}if("byteLength"in t){return t}if(t instanceof Date){return t}if(n.isDocumentSchema()){return t}if(n.isListSchema()){const e=[];const o=n.getValueSchema();for(const n of t){const t=this.readValue(o,n);e.push(t)}return e}const e={};if(n.isMapSchema()){const o=n.getValueSchema();for(const n of Object.keys(t)){const i=this.readValue(o,t[n]);e[n]=i}}else if(n.isStructSchema()){const o=n.isUnionSchema();let i;if(o){i=new Set(Object.keys(t).filter((e=>e!=="__type")))}for(const[a,d]of n.structIterator()){if(o){i.delete(a)}if(t[a]!=null){e[a]=this.readValue(d,t[a])}}if(o&&i?.size===1&&Object.keys(e).length===0){const n=i.values().next().value;e.$unknown=[n,t[n]]}else if(typeof t.__type==="string"){for(const[n,o]of Object.entries(t)){if(!(n in e)){e[n]=o}}}}else if(t instanceof o.NumericValue){return t}return e}else{return t}}}class SmithyRpcV2CborProtocol extends a.RpcProtocol{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(m.deref(e.input)==="unit"){delete o.body;delete o.headers["content-type"]}else{if(!o.body){this.serializer.write(15,{});o.body=this.serializer.flush()}try{o.headers["content-length"]=String(o.body.byteLength)}catch(e){}}const{service:i,operation:a}=h.getSmithyContext(n);const d=`/service/${i}/operation/${a}`;if(o.path.endsWith("/")){o.path+=d.slice(1)}else{o.path+=d}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const a=loadSmithyRpcV2CborErrorCode(n,o)??"Unknown";const d={$metadata:i,$fault:n.statusCode<=500?"client":"server"};let f=this.options.defaultNamespace;if(a.includes("#")){[f]=a.split("#")}const h=this.compositeErrorRegistry;const C=m.TypeRegistry.for(f);h.copyFrom(C);let P;try{P=h.getSchema(a)}catch(e){if(o.Message){o.message=o.Message}const t=m.TypeRegistry.for("smithy.ts.sdk.synthetic."+f);h.copyFrom(t);const n=h.getBaseException();if(n){const e=h.getErrorCtor(n);throw Object.assign(new e({name:a}),d,o)}throw Object.assign(new Error(a),d,o)}const D=m.NormalizedSchema.of(P);const k=h.getErrorCtor(P);const L=o.message??o.Message??"Unknown";const F=new k(L);const q={};for(const[e,t]of D.structIterator()){q[e]=this.deserializer.readValue(t,o[e])}throw Object.assign(F,d,{$fault:D.getMergedTraits().error,message:L},q)}getDefaultContentType(){return"application/cbor"}}t.CborCodec=CborCodec;t.CborShapeDeserializer=CborShapeDeserializer;t.CborShapeSerializer=CborShapeSerializer;t.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;t.buildHttpRpcRequest=buildHttpRpcRequest;t.cbor=be;t.checkCborResponse=checkCborResponse;t.dateToTag=dateToTag;t.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;t.parseCborBody=parseCborBody;t.parseCborErrorBody=parseCborErrorBody;t.tag=tag;t.tagSymbol=ue},4809:(e,t,n)=>{var o=n(4418);const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){const t=o.parseUrl(e.url);if(e.headers){t.headers={};for(const[n,o]of Object.entries(e.headers)){t.headers[n.toLowerCase()]=o.join(", ")}}return t}return e}return o.parseUrl(e)};t.toEndpointV1=toEndpointV1},5770:(e,t,n)=>{var o=n(6442);var i=n(2566);var a=n(8682);var d=n(9228);var f=n(3158);var m=n(8165);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return o.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return o.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const n=t.streamCollector(e);return o.Uint8ArrayBlobAdapter.mutate(await n)};function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}class SerdeContext{serdeContext;setSerdeContext(e){this.serdeContext=e}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(e){super();this.options=e;this.compositeErrorRegistry=i.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(t)}}getRequestType(){return d.HttpRequest}getResponseType(){return d.HttpResponse}setSerdeContext(e){this.serdeContext=e;this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(e)}}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol;e.hostname=t.url.hostname;e.port=t.url.port?Number(t.url.port):undefined;e.path=t.url.pathname;e.fragment=t.url.hash||void 0;e.username=t.url.username||void 0;e.password=t.url.password||void 0;if(!e.query){e.query={}}for(const[n,o]of t.url.searchParams.entries()){e.query[n]=o}if(t.headers){for(const[n,o]of Object.entries(t.headers)){e.headers[n]=o.join(", ")}}return e}else{e.protocol=t.protocol;e.hostname=t.hostname;e.port=t.port?Number(t.port):undefined;e.path=t.path;e.query={...t.query};if(t.headers){for(const[n,o]of Object.entries(t.headers)){e.headers[n]=o}}return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix){return}const o=i.NormalizedSchema.of(t.input);const a=i.translateTraits(t.traits??{});if(a.endpoint){let t=a.endpoint?.[0];if(typeof t==="string"){const i=[...o.structIterator()].filter((([,e])=>e.getMergedTraits().hostLabel));for(const[e]of i){const o=n[e];if(typeof o!=="string"){throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`)}t=t.replace(`{${e}}`,o)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){const o=await this.loadEventStreamCapability();return o.serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){const o=await this.loadEventStreamCapability();return o.deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await n.e(831).then(n.t.bind(n,831,19));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,o,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return e.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o={...t??{}};const a=this.serializer;const f={};const m={};const h=await n.endpoint();const C=i.NormalizedSchema.of(e?.input);const P=[];const D=[];let k=false;let L;const F=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:f,headers:m,body:undefined});if(h){this.updateServiceEndpoint(F,h);this.setHostPrefix(F,e,o);const t=i.translateTraits(e.traits);if(t.http){F.method=t.http[0];const[e,n]=t.http[1].split("?");if(F.path=="/"){F.path=e}else{F.path+=e}const o=new URLSearchParams(n??"");Object.assign(f,Object.fromEntries(o))}}for(const[e,t]of C.structIterator()){const n=t.getMergedTraits()??{};const i=o[e];if(i==null&&!t.isIdempotencyToken()){if(n.httpLabel){if(F.path.includes(`{${e}+}`)||F.path.includes(`{${e}}`)){throw new Error(`No value provided for input HTTP label: ${e}.`)}}continue}if(n.httpPayload){const n=t.isStreaming();if(n){const n=t.isStructSchema();if(n){if(o[e]){L=await this.serializeEventStream({eventStream:o[e],requestSchema:C})}}else{L=i}}else{a.write(t,i);L=a.flush()}delete o[e]}else if(n.httpLabel){a.write(t,i);const n=a.flush();if(F.path.includes(`{${e}+}`)){F.path=F.path.replace(`{${e}+}`,n.split("/").map(extendedEncodeURIComponent).join("/"))}else if(F.path.includes(`{${e}}`)){F.path=F.path.replace(`{${e}}`,extendedEncodeURIComponent(n))}delete o[e]}else if(n.httpHeader){a.write(t,i);m[n.httpHeader.toLowerCase()]=String(a.flush());delete o[e]}else if(typeof n.httpPrefixHeaders==="string"){for(const[e,o]of Object.entries(i)){const i=n.httpPrefixHeaders+e;a.write([t.getValueSchema(),{httpHeader:i}],o);m[i.toLowerCase()]=a.flush()}delete o[e]}else if(n.httpQuery||n.httpQueryParams){this.serializeQuery(t,i,f);delete o[e]}else{k=true;P.push(e);D.push(t)}}if(k&&o){const[e,t]=(C.getName(true)??"#Unknown").split("#");const n=C.getSchema()[6];const i=[3,e,t,C.getMergedTraits(),P,D,undefined];if(n){i[6]=n}else{i.pop()}a.write(i,o);L=a.flush()}F.headers=m;F.query=f;F.body=L;return F}serializeQuery(e,t,n){const o=this.serializer;const i=e.getMergedTraits();if(i.httpQueryParams){for(const[o,a]of Object.entries(t)){if(!(o in n)){const t=e.getValueSchema();Object.assign(t.getMergedTraits(),{...i,httpQuery:o,httpQueryParams:undefined});this.serializeQuery(t,a,n)}}return}if(e.isListSchema()){const a=!!e.getMergedTraits().sparse;const d=[];for(const n of t){o.write([e.getValueSchema(),i],n);const t=o.flush();if(a||t!==undefined){d.push(t)}}n[i.httpQuery]=d}else{o.write([e,i],t);n[i.httpQuery]=o.flush()}}async deserializeResponse(e,t,n){const o=this.deserializer;const a=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const f=await this.deserializeHttpMessage(a,t,n,d);if(f.length){const e=await collectBody(n.body,t);if(e.byteLength>0){const t=await o.read(a,e);for(const e of f){if(t[e]!=null){d[e]=t[e]}}}}else if(f.discardResponseBody){await collectBody(n.body,t)}d.$metadata=this.deserializeMetadata(n);return d}async deserializeHttpMessage(e,t,n,d,f){let m;if(d instanceof Set){m=f}else{m=d}let h=true;const C=this.deserializer;const P=i.NormalizedSchema.of(e);const D=[];for(const[e,i]of P.structIterator()){const d=i.getMemberTraits();if(d.httpPayload){h=false;const a=i.isStreaming();if(a){const t=i.isStructSchema();if(t){m[e]=await this.deserializeEventStream({response:n,responseSchema:P})}else{m[e]=o.sdkStreamMixin(n.body)}}else if(n.body){const o=await collectBody(n.body,t);if(o.byteLength>0){m[e]=await C.read(i,o)}}}else if(d.httpHeader){const t=String(d.httpHeader).toLowerCase();const o=n.headers[t];if(null!=o){if(i.isListSchema()){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;let d;if(n.isTimestampSchema()&&n.getSchema()===4){d=a.splitEvery(o,",",2)}else{d=a.splitHeader(o)}const f=[];for(const e of d){f.push(await C.read(n,e.trim()))}m[e]=f}else{m[e]=await C.read(i,o)}}}else if(d.httpPrefixHeaders!==undefined){m[e]={};for(const[t,o]of Object.entries(n.headers)){if(t.startsWith(d.httpPrefixHeaders)){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;m[e][t.slice(d.httpPrefixHeaders.length)]=await C.read(n,o)}}}else if(d.httpResponseCode){m[e]=n.statusCode}else{D.push(e)}}D.discardResponseBody=h;return D}}class RpcProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o=this.serializer;const a={};const f={};const m=await n.endpoint();const h=i.NormalizedSchema.of(e?.input);const C=h.getSchema();let P;const D=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:a,headers:f,body:undefined});if(m){this.updateServiceEndpoint(D,m);this.setHostPrefix(D,e,t)}const k={...t};if(t){const e=h.getEventStreamMember();if(e){if(k[e]){const t={};for(const[n,i]of h.structIterator()){if(n!==e&&k[n]){o.write(i,k[n]);t[n]=o.flush()}}P=await this.serializeEventStream({eventStream:k[e],requestSchema:h,initialRequest:t})}}else{o.write(C,k);P=o.flush()}}D.headers=Object.assign(D.headers,f);D.query=a;D.body=P;D.method="POST";return D}async deserializeResponse(e,t,n){const o=this.deserializer;const a=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const f=a.getEventStreamMember();if(f){d[f]=await this.deserializeEventStream({response:n,responseSchema:a,initialResponseContainer:d})}else{const e=await collectBody(n.body,t);if(e.byteLength>0){Object.assign(d,await o.read(a,e))}}d.$metadata=this.deserializeMetadata(n);return d}}const resolvedPath=(e,t,n,o,i,a)=>{if(t!=null&&t[n]!==undefined){const t=o();if(t==null||t.length<=0){throw new Error("Empty value provided for input HTTP label: "+n+".")}e=e.replace(i,a?t.split("/").map((e=>extendedEncodeURIComponent(e))).join("/"):extendedEncodeURIComponent(t))}else{throw new Error("No value provided for input HTTP label: "+n+".")}return e};function requestBuilder(e,t){return new RequestBuilder(e,t)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,t){this.input=e;this.context=t}async build(){const{hostname:e,protocol:t="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(const e of this.resolvePathStack){e(this.path)}return new d.HttpRequest({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){this.hostname=e;return this}bp(e){this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e}));return this}p(e,t,n,o){this.resolvePathStack.push((i=>{this.path=resolvedPath(i,this.input,e,t,n,o)}));return this}h(e){this.headers=e;return this}q(e){this.query=e;return this}b(e){this.body=e;return this}m(e){this.method=e;return this}}function determineTimestampFormat(e,t){if(t.timestampFormat.useTrait){if(e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7)){return e.getSchema()}}const{httpLabel:n,httpPrefixHeaders:o,httpHeader:i,httpQuery:a}=e.getMergedTraits();const d=t.httpBindings?typeof o==="string"||Boolean(i)?6:Boolean(a)||Boolean(n)?5:undefined:undefined;return d??t.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(e){super();this.settings=e}read(e,t){const n=i.NormalizedSchema.of(e);if(n.isListSchema()){return a.splitHeader(t).map((e=>this.read(n.getValueSchema(),e)))}if(n.isBlobSchema()){return(this.serdeContext?.base64Decoder??f.fromBase64)(t)}if(n.isTimestampSchema()){const e=determineTimestampFormat(n,this.settings);switch(e){case 5:return a._parseRfc3339DateTimeWithOffset(t);case 6:return a._parseRfc7231DateTime(t);case 7:return a._parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(n.isStringSchema()){const e=n.getMergedTraits().mediaType;let o=t;if(e){if(n.getMergedTraits().httpHeader){o=this.base64ToUtf8(o)}const t=e==="application/json"||e.endsWith("+json");if(t){o=a.LazyJsonString.from(o)}return o}}if(n.isNumericSchema()){return Number(t)}if(n.isBigIntegerSchema()){return BigInt(t)}if(n.isBigDecimalSchema()){return new a.NumericValue(t,"bigDecimal")}if(n.isBooleanSchema()){return String(t).toLowerCase()==="true"}return t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??m.toUtf8)((this.serdeContext?.base64Decoder??f.fromBase64)(e))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(e,t){super();this.codecDeserializer=e;this.stringDeserializer=new FromStringShapeDeserializer(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e);this.codecDeserializer.setSerdeContext(e);this.serdeContext=e}read(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();const a=this.serdeContext?.utf8Encoder??m.toUtf8;if(o.httpHeader||o.httpResponseCode){return this.stringDeserializer.read(n,a(t))}if(o.httpPayload){if(n.isBlobSchema()){const e=this.serdeContext?.utf8Decoder??m.fromUtf8;if(typeof t==="string"){return e(t)}return t}else if(n.isStringSchema()){if("byteLength"in t){return a(t)}return t}}return this.codecDeserializer.read(n,t)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);switch(typeof t){case"object":if(t===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(t instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(true)}`)}const e=determineTimestampFormat(n,this.settings);switch(e){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=a.dateToUtcString(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t);this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in t){this.stringBuffer=(this.serdeContext?.base64Encoder??f.toBase64)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e="";for(const o of t){this.write([n.getValueSchema(),n.getMergedTraits()],o);const t=this.flush();const i=n.getValueSchema().isTimestampSchema()?t:a.quoteHeader(t);if(e!==""){e+=", "}e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=n.getMergedTraits().mediaType;let o=t;if(e){const t=e==="application/json"||e.endsWith("+json");if(t){o=a.LazyJsonString.from(o)}if(n.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??f.toBase64)(o.toString());return}}this.stringBuffer=t;break;default:if(n.isIdempotencyToken()){this.stringBuffer=a.generateIdempotencyToken()}else{this.stringBuffer=String(t)}}}flush(){const e=this.stringBuffer;this.stringBuffer="";return e}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new ToStringShapeSerializer(t)){this.codecSerializer=e;this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e);this.stringSerializer.setSerdeContext(e)}write(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,t);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==undefined){const e=this.buffer;this.buffer=undefined;return e}return this.codecSerializer.flush()}}t.FromStringShapeDeserializer=FromStringShapeDeserializer;t.HttpBindingProtocol=HttpBindingProtocol;t.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;t.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;t.HttpProtocol=HttpProtocol;t.RequestBuilder=RequestBuilder;t.RpcProtocol=RpcProtocol;t.SerdeContext=SerdeContext;t.ToStringShapeSerializer=ToStringShapeSerializer;t.collectBody=collectBody;t.determineTimestampFormat=determineTimestampFormat;t.extendedEncodeURIComponent=extendedEncodeURIComponent;t.requestBuilder=requestBuilder;t.resolvedPath=resolvedPath},2566:(e,t,n)=>{var o=n(9228);var i=n(5496);var a=n(4809);const deref=e=>{if(typeof e==="function"){return e()}return e};const operation=(e,t,n,o,i)=>({name:t,namespace:e,traits:n,input:o,output:i});const schemaDeserializationMiddleware=e=>(t,n)=>async a=>{const{response:d}=await t(a);const{operationSchema:f}=i.getSmithyContext(n);const[,m,h,C,P,D]=f??[];try{const t=await e.protocol.deserializeResponse(operation(m,h,C,P,D),{...e,...n},d);return{response:d,output:t}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!n.logger||n.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{n.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const schemaSerializationMiddleware=e=>(t,n)=>async o=>{const{operationSchema:d}=i.getSmithyContext(n);const[,f,m,h,C,P]=d??[];const D=n.endpointV2?async()=>a.toEndpointV1(n.endpointV2):e.endpoint;const k=await e.protocol.serializeRequest(operation(f,m,h,C,P),o.input,{...e,...n,endpoint:D});return t({...o,request:k})};const d={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const f={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(e){return{applyToStack:t=>{t.add(schemaSerializationMiddleware(e),f);t.add(schemaDeserializationMiddleware(e),d);e.protocol.setSerdeContext(e)}}}class Schema{name;namespace;traits;static assign(e,t){const n=Object.assign(e,t);return n}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(e,t,n,o)=>Schema.assign(new ListSchema,{name:t,namespace:e,traits:n,valueSchema:o});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(e,t,n,o,i)=>Schema.assign(new MapSchema,{name:t,namespace:e,traits:n,keySchema:o,valueSchema:i});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(e,t,n,o,i)=>Schema.assign(new OperationSchema,{name:t,namespace:e,traits:n,input:o,output:i});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(e,t,n,o,i)=>Schema.assign(new StructureSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(e,t,n,o,i,a)=>Schema.assign(new ErrorSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i,ctor:null});const m=[];function translateTraits(e){if(typeof e==="object"){return e}e=e|0;if(m[e]){return m[e]}const t={};let n=0;for(const o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((e>>n++&1)===1){t[o]=1}}return m[e]=t}const h={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")};const C=[];const P={};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e;this.memberName=t;const n=[];let o=e;let i=e;this._isMemberSchema=false;while(isMemberSchema(o)){n.push(o[1]);o=o[0];i=deref(o);this._isMemberSchema=true}if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,translateTraits(t))}}else{this.memberTraits=0}if(i instanceof NormalizedSchema){const e=this.memberTraits;Object.assign(this,i);this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=t??i.memberName;return}this.schema=deref(i);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(i);this.traits=0}if(this._isMemberSchema&&!t){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}static of(e){const t=typeof e==="function"||typeof e==="object"&&e!==null;if(typeof e==="number"){if(C[e]){return C[e]}}else if(typeof e==="string"){if(P[e]){return P[e]}}else if(t){if(e[h.ns]){return e[h.ns]}}const n=deref(e);if(n instanceof NormalizedSchema){return n}if(isMemberSchema(n)){const[t,o]=n;if(t instanceof NormalizedSchema){Object.assign(t.getMergedTraits(),translateTraits(o));return t}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const o=new NormalizedSchema(n);if(t){return e[h.ns]=o}if(typeof n==="string"){return P[n]=o}if(typeof n==="number"){return C[n]=o}return o}getSchema(){const e=this.schema;if(Array.isArray(e)&&e[0]===0){return e[4]}return e}getName(e=false){const{name:t}=this;const n=!e&&t&&t.includes("#");return n?t.split("#")[1]:t||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e==="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e==="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}const t=e[0];return t===3||t===-3||t===4}isUnionSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}return e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e==="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const n=this.getSchema();const o=e?15:n[4]??0;return member([o,0],"key")}getValueSchema(){const e=this.getSchema();const[t,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const i=typeof e==="number"?63&e:e&&typeof e==="object"&&(n||o)?e[3+e[0]]:t?15:void 0;if(i!=null){return member([i,0],n?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const n=t[4].indexOf(e);const o=t[5][n];return member(isMemberSchema(o)?o:[o,0],e)}if(this.isDocumentSchema()){return member([15,0],e)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,n]of this.structIterator()){e[t]=n}}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,t]of this.structIterator()){if(t.isStreaming()&&t.isStructSchema()){return e}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const e=this.getSchema();const t=e[4].length;let n=e[h.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let o=0;o<t;++o){const t=e[4][o];const i=member([e[5][o],0],t);yield n[o]=[t,i]}e[h.it]=n}}function member(e,t){if(e instanceof NormalizedSchema){return Object.assign(e,{memberName:t,_isMemberSchema:true})}const n=NormalizedSchema;return new n(e,t)}const isMemberSchema=e=>Array.isArray(e)&&e.length===2;const isStaticSchema=e=>Array.isArray(e)&&e.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:o,schemaRef:n});const simAdapter=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:n,schemaRef:o});const D={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e;this.schemas=t;this.exceptions=n}static for(e){if(!TypeRegistry.registries.has(e)){TypeRegistry.registries.set(e,new TypeRegistry(e))}return TypeRegistry.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:n}=this;for(const[n,o]of e.schemas){if(!t.has(n)){t.set(n,o)}}for(const[t,o]of e.exceptions){if(!n.has(t)){n.set(t,o)}}}register(e,t){const n=this.normalizeShapeId(e);for(const e of[this,TypeRegistry.for(n.split("#")[0])]){e.schemas.set(n,t)}}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const n=e;const o=n[1];for(const e of[this,TypeRegistry.for(o)]){e.schemas.set(o+"#"+n[2],n);e.exceptions.set(n,t)}}getErrorCtor(e){const t=e;if(this.exceptions.has(t)){return this.exceptions.get(t)}const n=TypeRegistry.for(t[1]);return n.exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys()){if(Array.isArray(e)){const[,t,n]=e;const o=t+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException")){return e}}}return undefined}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(e){if(e.includes("#")){return e}return this.namespace+"#"+e}}t.ErrorSchema=ErrorSchema;t.ListSchema=ListSchema;t.MapSchema=MapSchema;t.NormalizedSchema=NormalizedSchema;t.OperationSchema=OperationSchema;t.SCHEMA=D;t.Schema=Schema;t.SimpleSchema=SimpleSchema;t.StructureSchema=StructureSchema;t.TypeRegistry=TypeRegistry;t.deref=deref;t.deserializerMiddlewareOption=d;t.error=error;t.getSchemaSerdePlugin=getSchemaSerdePlugin;t.isStaticSchema=isStaticSchema;t.list=list;t.map=map;t.op=op;t.operation=operation;t.serializerMiddlewareOption=f;t.sim=sim;t.simAdapter=simAdapter;t.simpleSchemaCacheN=C;t.simpleSchemaCacheS=P;t.struct=struct;t.traitsCache=m;t.translateTraits=translateTraits},8682:(e,t,n)=>{var o=n(8525);const copyDocumentWithTransform=(e,t,n=e=>e)=>e;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){P.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const t=e.toLowerCase();if(t==="false"||t==="true"){P.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(t==="false"){return false}if(t==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e)){P.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return t}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};const i=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const t=expectNumber(e);if(t!==undefined&&!Number.isNaN(t)&&t!==Infinity&&t!==-Infinity){if(Math.abs(t)>i){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return t};const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};const a=expectLong;const expectInt32=e=>expectSizedInt(e,32);const expectShort=e=>expectSizedInt(e,16);const expectByte=e=>expectSizedInt(e,8);const expectSizedInt=(e,t)=>{const n=expectLong(e);if(n!==undefined&&castInt(n,t)!==n){throw new TypeError(`Expected ${t}-bit integer, got ${e}`)}return n};const castInt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){P.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};const expectUnion=e=>{if(e===null||e===undefined){return undefined}const t=expectObject(e);const n=Object.entries(t).filter((([,e])=>e!=null)).map((([e])=>e));if(n.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(n.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`)}return t};const strictParseDouble=e=>{if(typeof e=="string"){return expectNumber(parseNumber(e))}return expectNumber(e)};const d=strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return expectFloat32(parseNumber(e))}return expectFloat32(e)};const f=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(f);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectNumber(e)};const m=limitedParseDouble;const h=limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectFloat32(e)};const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return expectLong(parseNumber(e))}return expectLong(e)};const C=strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return expectInt32(parseNumber(e))}return expectInt32(e)};const strictParseShort=e=>{if(typeof e==="string"){return expectShort(parseNumber(e))}return expectShort(e)};const strictParseByte=e=>{if(typeof e==="string"){return expectByte(parseNumber(e))}return expectByte(e)};const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");const P={warn:console.warn};const D=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const n=e.getUTCMonth();const o=e.getUTCDay();const i=e.getUTCDate();const a=e.getUTCHours();const d=e.getUTCMinutes();const f=e.getUTCSeconds();const m=i<10?`0${i}`:`${i}`;const h=a<10?`0${a}`:`${a}`;const C=d<10?`0${d}`:`${d}`;const P=f<10?`0${f}`:`${f}`;return`${D[o]}, ${m} ${k[n]} ${t} ${h}:${C}:${P} GMT`}const L=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=L.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,a,d,f,m,h]=t;const C=strictParseShort(stripLeadingZeroes(o));const P=parseDateValue(i,"month",1,12);const D=parseDateValue(a,"day",1,31);return buildDate(C,P,D,{hours:d,minutes:f,seconds:m,fractionalMilliseconds:h})};const F=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=F.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,a,d,f,m,h,C]=t;const P=strictParseShort(stripLeadingZeroes(o));const D=parseDateValue(i,"month",1,12);const k=parseDateValue(a,"day",1,31);const L=buildDate(P,D,k,{hours:d,minutes:f,seconds:m,fractionalMilliseconds:h});if(C.toUpperCase()!="Z"){L.setTime(L.getTime()-parseOffsetToMilliseconds(C))}return L};const q=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const V=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const ee=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=q.exec(e);if(t){const[e,n,o,i,a,d,f,m]=t;return buildDate(strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:a,minutes:d,seconds:f,fractionalMilliseconds:m})}t=V.exec(e);if(t){const[e,n,o,i,a,d,f,m]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(i),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:a,minutes:d,seconds:f,fractionalMilliseconds:m}))}t=ee.exec(e);if(t){const[e,n,o,i,a,d,f,m]=t;return buildDate(strictParseShort(stripLeadingZeroes(m)),parseMonthByShortName(n),parseDateValue(o.trimLeft(),"day",1,31),{hours:i,minutes:a,seconds:d,fractionalMilliseconds:f})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=strictParseDouble(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};const buildDate=(e,t,n,o)=>{const i=t-1;validateDayOfMonth(e,i,n);return new Date(Date.UTC(e,i,n,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const n=Math.floor(t/100)*100+strictParseShort(stripLeadingZeroes(e));if(n<t){return n+100}return n};const te=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>te){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=k.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const ne=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,n)=>{let o=ne[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${k[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,o)=>{const i=strictParseByte(stripLeadingZeroes(e));if(i<n||i>o){throw new TypeError(`${t} must be between ${n} and ${o}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return strictParseFloat32("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let n=1;if(t=="+"){n=1}else if(t=="-"){n=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const o=Number(e.substring(1,3));const i=Number(e.substring(4,6));return n*(o*60+i)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)};const re=function LazyJsonString(e){const t=Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}});return t};re.from=e=>{if(e&&typeof e==="object"&&(e instanceof re||"deserializeJSON"in e)){return e}else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype){return re(String(e))}return re(JSON.stringify(e))};re.fromObject=re.from;function quoteHeader(e){if(e.includes(",")||e.includes('"')){e=`"${e.replace(/"/g,'\\"')}"`}return e}const oe=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const ie=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const se=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const ae=`(\\d?\\d)`;const ce=`(\\d{4})`;const le=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const ue=new RegExp(`^${oe}, ${ae} ${ie} ${ce} ${se} GMT$`);const de=new RegExp(`^${oe}, ${ae}-${ie}-(\\d\\d) ${se} GMT$`);const pe=new RegExp(`^${oe} ${ie} ( [1-9]|\\d\\d) ${se} ${ce}$`);const fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=e=>{if(e==null){return void 0}let t=NaN;if(typeof e==="number"){t=e}else if(typeof e==="string"){if(!/^-?\d*\.?\d+$/.test(e)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}t=Number.parseFloat(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}if(isNaN(t)||Math.abs(t)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(t*1e3))};const _parseRfc3339DateTimeWithOffset=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const t=le.exec(e);if(!t){throw new TypeError(`Invalid RFC3339 timestamp format ${e}`)}const[,n,o,i,a,d,f,,m,h]=t;range(o,1,12);range(i,1,31);range(a,0,23);range(d,0,59);range(f,0,60);const C=new Date(Date.UTC(Number(n),Number(o)-1,Number(i),Number(a),Number(d),Number(f),Number(m)?Math.round(parseFloat(`0.${m}`)*1e3):0));C.setUTCFullYear(Number(n));if(h.toUpperCase()!="Z"){const[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(h)||[void 0,"+",0,0];const o=e==="-"?1:-1;C.setTime(C.getTime()+o*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return C};const _parseRfc7231DateTime=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let t;let n;let o;let i;let a;let d;let f;let m;if(m=ue.exec(e)){[,t,n,o,i,a,d,f]=m}else if(m=de.exec(e)){[,t,n,o,i,a,d,f]=m;o=(Number(o)+1900).toString()}else if(m=pe.exec(e)){[,n,t,i,a,d,f,o]=m}if(o&&d){const e=Date.UTC(Number(o),fe.indexOf(n),Number(t),Number(i),Number(a),Number(d),f?Math.round(parseFloat(`0.${f}`)*1e3):0);range(t,1,31);range(i,0,23);range(a,0,59);range(d,0,60);const m=new Date(e);m.setUTCFullYear(Number(o));return m}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function range(e,t,n){const o=Number(e);if(o<t||o>n){throw new Error(`Value ${o} out of range [${t}, ${n}]`)}}function splitEvery(e,t,n){if(n<=0||!Number.isInteger(n)){throw new Error("Invalid number of delimiters ("+n+") for splitEvery.")}const o=e.split(t);if(n===1){return o}const i=[];let a="";for(let e=0;e<o.length;e++){if(a===""){a=o[e]}else{a+=t+o[e]}if((e+1)%n===0){i.push(a);a=""}}if(a!==""){i.push(a)}return i}const splitHeader=e=>{const t=e.length;const n=[];let o=false;let i=undefined;let a=0;for(let d=0;d<t;++d){const t=e[d];switch(t){case`"`:if(i!=="\\"){o=!o}break;case",":if(!o){n.push(e.slice(a,d));a=d+1}break}i=t}n.push(e.slice(a));return n.map((e=>{e=e.trim();const t=e.length;if(t<2){return e}if(e[0]===`"`&&e[t-1]===`"`){e=e.slice(1,t-1)}return e.replace(/\\"/g,'"')}))};const me=/^-?\d*(\.\d+)?$/;class NumericValue{string;type;constructor(e,t){this.string=e;this.type=t;if(!me.test(e)){throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!=="object"){return false}const t=e;return NumericValue.prototype.isPrototypeOf(e)||t.type==="bigDecimal"&&me.test(t.string)}}function nv(e){return new NumericValue(String(e),"bigDecimal")}t.generateIdempotencyToken=o.v4;t.LazyJsonString=re;t.NumericValue=NumericValue;t._parseEpochTimestamp=_parseEpochTimestamp;t._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;t._parseRfc7231DateTime=_parseRfc7231DateTime;t.copyDocumentWithTransform=copyDocumentWithTransform;t.dateToUtcString=dateToUtcString;t.expectBoolean=expectBoolean;t.expectByte=expectByte;t.expectFloat32=expectFloat32;t.expectInt=a;t.expectInt32=expectInt32;t.expectLong=expectLong;t.expectNonNull=expectNonNull;t.expectNumber=expectNumber;t.expectObject=expectObject;t.expectShort=expectShort;t.expectString=expectString;t.expectUnion=expectUnion;t.handleFloat=m;t.limitedParseDouble=limitedParseDouble;t.limitedParseFloat=h;t.limitedParseFloat32=limitedParseFloat32;t.logger=P;t.nv=nv;t.parseBoolean=parseBoolean;t.parseEpochTimestamp=parseEpochTimestamp;t.parseRfc3339DateTime=parseRfc3339DateTime;t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;t.parseRfc7231DateTime=parseRfc7231DateTime;t.quoteHeader=quoteHeader;t.splitEvery=splitEvery;t.splitHeader=splitHeader;t.strictParseByte=strictParseByte;t.strictParseDouble=strictParseDouble;t.strictParseFloat=d;t.strictParseFloat32=strictParseFloat32;t.strictParseInt=C;t.strictParseInt32=strictParseInt32;t.strictParseLong=strictParseLong;t.strictParseShort=strictParseShort},5518:(e,t,n)=>{var o=n(4036);var i=n(4635);var a=n(181);var d=n(8611);var f=n(1125);var m=n(4418);function httpRequest(e){return new Promise(((t,n)=>{const i=d.request({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});i.on("error",(e=>{n(Object.assign(new o.ProviderError("Unable to connect to instance metadata service"),e));i.destroy()}));i.on("timeout",(()=>{n(new o.ProviderError("TimeoutError from instance metadata service"));i.destroy()}));i.on("response",(e=>{const{statusCode:d=400}=e;if(d<200||300<=d){n(Object.assign(new o.ProviderError("Error response received from instance metadata service"),{statusCode:d}));i.destroy()}const f=[];e.on("data",(e=>{f.push(e)}));e.on("end",(()=>{t(a.Buffer.concat(f));i.destroy()}))}));i.end()}))}const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}});const h=1e3;const C=0;const providerConfigFromInit=({maxRetries:e=C,timeout:t=h})=>({maxRetries:e,timeout:t});const retry=(e,t)=>{let n=e();for(let o=0;o<t;o++){n=n.catch(e)}return n};const P="AWS_CONTAINER_CREDENTIALS_FULL_URI";const D="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const k="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:n}=providerConfigFromInit(e);return()=>retry((async()=>{const n=await getCmdsUri({logger:e.logger});const i=JSON.parse(await requestFromEcsImds(t,n));if(!isImdsCredentials(i)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:e.logger})}return fromImdsCredentials(i)}),n)};const requestFromEcsImds=async(e,t)=>{if(process.env[k]){t.headers={...t.headers,Authorization:process.env[k]}}const n=await httpRequest({...t,timeout:e});return n.toString()};const L="169.254.170.2";const F={localhost:true,"127.0.0.1":true};const q={"http:":true,"https:":true};const getCmdsUri=async({logger:e})=>{if(process.env[D]){return{hostname:L,path:process.env[D]}}if(process.env[P]){const t=i.parse(process.env[P]);if(!t.hostname||!(t.hostname in F)){throw new o.CredentialsProviderError(`${t.hostname} is not a valid container metadata service hostname`,{tryNextLink:false,logger:e})}if(!t.protocol||!(t.protocol in q)){throw new o.CredentialsProviderError(`${t.protocol} is not a valid container metadata service protocol`,{tryNextLink:false,logger:e})}return{...t,port:t.port?parseInt(t.port,10):undefined}}throw new o.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${D} or ${P} environment`+" variable is set",{tryNextLink:false,logger:e})};class InstanceMetadataV1FallbackError extends o.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,t=true){super(e,t);this.tryNextLink=t;Object.setPrototypeOf(this,InstanceMetadataV1FallbackError.prototype)}}t.Endpoint=void 0;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(t.Endpoint||(t.Endpoint={}));const V="AWS_EC2_METADATA_SERVICE_ENDPOINT";const ee="ec2_metadata_service_endpoint";const te={environmentVariableSelector:e=>e[V],configFileSelector:e=>e[ee],default:undefined};var ne;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(ne||(ne={}));const re="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";const oe="ec2_metadata_service_endpoint_mode";const ie={environmentVariableSelector:e=>e[re],configFileSelector:e=>e[oe],default:ne.IPv4};const getInstanceMetadataEndpoint=async()=>m.parseUrl(await getFromEndpointConfig()||await getFromEndpointModeConfig());const getFromEndpointConfig=async()=>f.loadConfig(te)();const getFromEndpointModeConfig=async()=>{const e=await f.loadConfig(ie)();switch(e){case ne.IPv4:return t.Endpoint.IPv4;case ne.IPv6:return t.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(ne)}`)}};const se=5*60;const ae=5*60;const ce="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,t)=>{const n=se+Math.floor(Math.random()*ae);const o=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(o)}.\nFor more information, please visit: `+ce);const i=e.originalExpiration??e.expiration;return{...e,...i?{originalExpiration:i}:{},expiration:o}};const staticStabilityProvider=(e,t={})=>{const n=t?.logger||console;let o;return async()=>{let t;try{t=await e();if(t.expiration&&t.expiration.getTime()<Date.now()){t=getExtendedInstanceMetadataCredentials(t,n)}}catch(e){if(o){n.warn("Credential renew failed: ",e);t=getExtendedInstanceMetadataCredentials(o,n)}else{throw e}}o=t;return t}};const le="/latest/meta-data/iam/security-credentials/";const ue="/latest/api/token";const de="AWS_EC2_METADATA_V1_DISABLED";const pe="ec2_metadata_v1_disabled";const fe="x-aws-ec2-metadata-token";const fromInstanceMetadata=(e={})=>staticStabilityProvider(getInstanceMetadataProvider(e),{logger:e.logger});const getInstanceMetadataProvider=(e={})=>{let t=false;const{logger:n,profile:i}=e;const{timeout:a,maxRetries:d}=providerConfigFromInit(e);const getCredentials=async(n,a)=>{const d=t||a.headers?.[fe]==null;if(d){let t=false;let n=false;const a=await f.loadConfig({environmentVariableSelector:t=>{const i=t[de];n=!!i&&i!=="false";if(i===undefined){throw new o.CredentialsProviderError(`${de} not set in env, checking config file next.`,{logger:e.logger})}return n},configFileSelector:e=>{const n=e[pe];t=!!n&&n!=="false";return t},default:false},{profile:i})();if(e.ec2MetadataV1Disabled||a){const o=[];if(e.ec2MetadataV1Disabled)o.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(t)o.push(`config file profile (${pe})`);if(n)o.push(`process environment variable (${de})`);throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${o.join(", ")}].`)}}const m=(await retry((async()=>{let e;try{e=await getProfile(a)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),n)).trim();return retry((async()=>{let n;try{n=await getCredentialsFromProfile(m,a,e)}catch(e){if(e.statusCode===401){t=false}throw e}return n}),n)};return async()=>{const e=await getInstanceMetadataEndpoint();if(t){n?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)");return getCredentials(d,{...e,timeout:a})}else{let o;try{o=(await getMetadataToken({...e,timeout:a})).toString()}catch(o){if(o?.statusCode===400){throw Object.assign(o,{message:"EC2 Metadata token request returned error"})}else if(o.message==="TimeoutError"||[403,404,405].includes(o.statusCode)){t=true}n?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)");return getCredentials(d,{...e,timeout:a})}return getCredentials(d,{...e,headers:{[fe]:o},timeout:a})}}};const getMetadataToken=async e=>httpRequest({...e,path:ue,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await httpRequest({...e,path:le})).toString();const getCredentialsFromProfile=async(e,t,n)=>{const i=JSON.parse((await httpRequest({...t,path:le+e})).toString());if(!isImdsCredentials(i)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:n.logger})}return fromImdsCredentials(i)};t.DEFAULT_MAX_RETRIES=C;t.DEFAULT_TIMEOUT=h;t.ENV_CMDS_AUTH_TOKEN=k;t.ENV_CMDS_FULL_URI=P;t.ENV_CMDS_RELATIVE_URI=D;t.fromContainerMetadata=fromContainerMetadata;t.fromInstanceMetadata=fromInstanceMetadata;t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;t.httpRequest=httpRequest;t.providerConfigFromInit=providerConfigFromInit},3103:(e,t,n)=>{var o=n(9228);var i=n(6464);var a=n(3158);function createRequest(e,t){return new Request(e,t)}function requestTimeout(e=0){return new Promise(((t,n)=>{if(e){setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError";n(t)}),e)}}))}const d={supported:undefined};class FetchHttpHandler{config;configProvider;static create(e){if(typeof e?.handle==="function"){return e}return new FetchHttpHandler(e)}constructor(e){if(typeof e==="function"){this.configProvider=e().then((e=>e||{}))}else{this.config=e??{};this.configProvider=Promise.resolve(this.config)}if(d.supported===undefined){d.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in createRequest("https://[::1]"))}}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}const a=n??this.config.requestTimeout;const f=this.config.keepAlive===true;const m=this.config.credentials;if(t?.aborted){const e=buildAbortError(t);return Promise.reject(e)}let h=e.path;const C=i.buildQueryString(e.query||{});if(C){h+=`?${C}`}if(e.fragment){h+=`#${e.fragment}`}let P="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";P=`${t}:${n}@`}const{port:D,method:k}=e;const L=`${e.protocol}//${P}${e.hostname}${D?`:${D}`:""}${h}`;const F=k==="GET"||k==="HEAD"?undefined:e.body;const q={body:F,headers:new Headers(e.headers),method:k,credentials:m};if(this.config?.cache){q.cache=this.config.cache}if(F){q.duplex="half"}if(typeof AbortController!=="undefined"){q.signal=t}if(d.supported){q.keepalive=f}if(typeof this.config.requestInit==="function"){Object.assign(q,this.config.requestInit(e))}let removeSignalEventListener=()=>{};const V=createRequest(L,q);const ee=[fetch(V).then((e=>{const t=e.headers;const n={};for(const e of t.entries()){n[e[0]]=e[1]}const i=e.body!=undefined;if(!i){return e.blob().then((t=>({response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:t})})))}return{response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}})),requestTimeout(a)];if(t){ee.push(new Promise(((e,n)=>{const onAbort=()=>{const e=buildAbortError(t);n(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});removeSignalEventListener=()=>e.removeEventListener("abort",onAbort)}else{t.onabort=onAbort}})))}return Promise.race(ee).finally(removeSignalEventListener)}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>{n[e]=t;return n}))}httpHandlerConfigs(){return this.config??{}}}function buildAbortError(e){const t=e&&typeof e==="object"&&"reason"in e?e.reason:undefined;if(t){if(t instanceof Error){const e=new Error("Request aborted");e.name="AbortError";e.cause=t;return e}const e=new Error(String(t));e.name="AbortError";return e}const n=new Error("Request aborted");n.name="AbortError";return n}const streamCollector=async e=>{if(typeof Blob==="function"&&e instanceof Blob||e.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==undefined){return new Uint8Array(await e.arrayBuffer())}return collectBlob(e)}return collectStream(e)};async function collectBlob(e){const t=await readToBase64(e);const n=a.fromBase64(t);return new Uint8Array(n)}async function collectStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:a}=await n.read();if(a){t.push(a);i+=a.length}o=e}const a=new Uint8Array(i);let d=0;for(const e of t){a.set(e,d);d+=e.length}return a}function readToBase64(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{if(o.readyState!==2){return n(new Error("Reader aborted too early"))}const e=o.result??"";const i=e.indexOf(",");const a=i>-1?i+1:e.length;t(e.substring(a))};o.onabort=()=>n(new Error("Read aborted"));o.onerror=()=>n(o.error);o.readAsDataURL(e)}))}t.FetchHttpHandler=FetchHttpHandler;t.keepAliveSupport=d;t.streamCollector=streamCollector},8300:(e,t,n)=>{var o=n(1643);var i=n(8165);var a=n(181);var d=n(6982);class Hash{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update(i.toUint8Array(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?d.createHmac(this.algorithmIdentifier,castSourceData(this.secret)):d.createHash(this.algorithmIdentifier)}}function castSourceData(e,t){if(a.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return o.fromString(e,t)}if(ArrayBuffer.isView(e)){return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return o.fromArrayBuffer(e)}t.Hash=Hash},5031:(e,t)=>{const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},5700:(e,t,n)=>{var o=n(9228);const i="content-length";function contentLengthMiddleware(e){return t=>async n=>{const a=n.request;if(o.HttpRequest.isInstance(a)){const{body:t,headers:n}=a;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(i)===-1){try{const n=e(t);a.headers={...a.headers,[i]:String(n)}}catch(e){}}}return t({...n,request:a})}}const a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:t=>{t.add(contentLengthMiddleware(e.bodyLengthChecker),a)}});t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions=a;t.getContentLengthPlugin=getContentLengthPlugin},1318:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromConfig=void 0;const o=n(1125);const i=n(1085);const getEndpointFromConfig=async e=>(0,o.loadConfig)((0,i.getEndpointUrlConfig)(e??""))();t.getEndpointFromConfig=getEndpointFromConfig},1085:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrlConfig=void 0;const o=n(7016);const i="AWS_ENDPOINT_URL";const a="endpoint_url";const getEndpointUrlConfig=e=>({environmentVariableSelector:t=>{const n=e.split(" ").map((e=>e.toUpperCase()));const o=t[[i,...n].join("_")];if(o)return o;const a=t[i];if(a)return a;return undefined},configFileSelector:(t,n)=>{if(n&&t.services){const i=n[["services",t.services].join(o.CONFIG_PREFIX_SEPARATOR)];if(i){const t=e.split(" ").map((e=>e.toLowerCase()));const n=i[[t.join("_"),a].join(o.CONFIG_PREFIX_SEPARATOR)];if(n)return n}}const i=t[a];if(i)return i;return undefined},default:undefined});t.getEndpointUrlConfig=getEndpointUrlConfig},8946:(e,t,n)=>{var o=n(1318);var i=n(4418);var a=n(4918);var d=n(5496);var f=n(4851);const resolveParamsForS3=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket==="string"){e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(t)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};const m=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const h=/(\d+\.){3}\d+/;const C=/\.\./;const isDnsCompatibleBucketName=e=>m.test(e)&&!h.test(e)&&!C.test(e);const isArnBucketName=e=>{const[t,n,o,,,i]=e.split(":");const a=t==="arn"&&e.split(":").length>=6;const d=Boolean(a&&n&&o&&i);if(a&&!d){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return d};const createConfigValueProvider=(e,t,n,o=false)=>{const configProvider=async()=>{let i;if(o){const o=n.clientContextParams;const a=o?.[e];i=a??n[e]??n[t]}else{i=n[e]??n[t]}if(typeof i==="function"){return i()}return i};if(e==="credentialScope"||t==="CredentialScope"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.credentialScope??e?.CredentialScope;return t}}if(e==="accountId"||t==="AccountId"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.accountId??e?.AccountId;return t}}if(e==="endpoint"||t==="endpoint"){return async()=>{if(n.isCustomEndpoint===false){return undefined}const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:n,port:o,path:i}=e;return`${t}//${n}${o?":"+o:""}${i}`}}return e}}return configProvider};const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){const t=i.parseUrl(e.url);if(e.headers){t.headers={};for(const[n,o]of Object.entries(e.headers)){t.headers[n.toLowerCase()]=o.join(", ")}}return t}return e}return i.parseUrl(e)};const getEndpointFromInstructions=async(e,t,n,i)=>{if(!n.isCustomEndpoint){let e;if(n.serviceConfiguredEndpoint){e=await n.serviceConfiguredEndpoint()}else{e=await o.getEndpointFromConfig(n.serviceId)}if(e){n.endpoint=()=>Promise.resolve(toEndpointV1(e));n.isCustomEndpoint=true}}const a=await resolveParams(e,t,n);if(typeof n.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const d=n.endpointProvider(a,i);if(n.isCustomEndpoint&&n.endpoint){const e=await n.endpoint();if(e?.headers){d.headers??={};for(const[t,n]of Object.entries(e.headers)){d.headers[t]=Array.isArray(n)?n:[n]}}}return d};const resolveParams=async(e,t,n)=>{const o={};const i=t?.getEndpointParameterInstructions?.()||{};for(const[t,a]of Object.entries(i)){switch(a.type){case"staticContextParams":o[t]=a.value;break;case"contextParams":o[t]=e[a.name];break;case"clientContextParams":case"builtInParams":o[t]=await createConfigValueProvider(a.name,t,n,a.type!=="builtInParams")();break;case"operationContextParams":o[t]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}}if(Object.keys(i).length===0){Object.assign(o,n)}if(String(n.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(o)}return o};const endpointMiddleware=({config:e,instructions:t})=>(n,o)=>async i=>{if(e.isCustomEndpoint){a.setFeature(o,"ENDPOINT_OVERRIDE","N")}const f=await getEndpointFromInstructions(i.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=f;o.authSchemes=f.properties?.authSchemes;const m=o.authSchemes?.[0];if(m){o["signing_region"]=m.signingRegion;o["signing_service"]=m.signingName;const e=d.getSmithyContext(o);const t=e?.selectedHttpAuthScheme?.httpAuthOption;if(t){t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:m.signingRegion,signingRegion:m.signingRegion,signing_service:m.signingName,signingName:m.signingName,signingRegionSet:m.signingRegionSet},m.properties)}}return n({...i})};const P={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:f.serializerMiddlewareOption.name};const getEndpointPlugin=(e,t)=>({applyToStack:n=>{n.addRelativeTo(endpointMiddleware({config:e,instructions:t}),P)}});const resolveEndpointConfig=e=>{const t=e.tls??true;const{endpoint:n,useDualstackEndpoint:i,useFipsEndpoint:a}=e;const f=n!=null?async()=>toEndpointV1(await d.normalizeProvider(n)()):undefined;const m=!!n;const h=Object.assign(e,{endpoint:f,tls:t,isCustomEndpoint:m,useDualstackEndpoint:d.normalizeProvider(i??false),useFipsEndpoint:d.normalizeProvider(a??false)});let C=undefined;h.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!C){C=o.getEndpointFromConfig(e.serviceId)}return C};return h};const resolveEndpointRequiredConfig=e=>{const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return e};t.endpointMiddleware=endpointMiddleware;t.endpointMiddlewareOptions=P;t.getEndpointFromInstructions=getEndpointFromInstructions;t.getEndpointPlugin=getEndpointPlugin;t.resolveEndpointConfig=resolveEndpointConfig;t.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;t.resolveParams=resolveParams;t.toEndpointV1=toEndpointV1},4433:(e,t,n)=>{var o=n(2346);var i=n(9228);var a=n(518);var d=n(8525);var f=n(5496);var m=n(4271);var h=n(1576);const getDefaultRetryQuota=(e,t)=>{const n=e;const i=o.NO_RETRY_INCREMENT;const a=o.RETRY_COST;const d=o.TIMEOUT_RETRY_COST;let f=e;const getCapacityAmount=e=>e.name==="TimeoutError"?d:a;const hasRetryTokens=e=>getCapacityAmount(e)<=f;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);f-=t;return t};const releaseRetryTokens=e=>{f+=e??i;f=Math.min(f,n)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const defaultRetryDecider=e=>{if(!e){return false}return a.isRetryableByTrait(e)||a.isClockSkewError(e)||a.isThrottlingError(e)||a.isTransientError(e)};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=o.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e;this.retryDecider=t?.retryDecider??defaultRetryDecider;this.delayDecider=t?.delayDecider??defaultDelayDecider;this.retryQuota=t?.retryQuota??getDefaultRetryQuota(o.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=o.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,n){let f;let m=0;let h=0;const C=await this.getMaxAttempts();const{request:P}=t;if(i.HttpRequest.isInstance(P)){P.headers[o.INVOCATION_ID_HEADER]=d.v4()}while(true){try{if(i.HttpRequest.isInstance(P)){P.headers[o.REQUEST_HEADER]=`attempt=${m+1}; max=${C}`}if(n?.beforeRequest){await n.beforeRequest()}const{response:a,output:d}=await e(t);if(n?.afterRequest){n.afterRequest(a)}this.retryQuota.releaseRetryTokens(f);d.$metadata.attempts=m+1;d.$metadata.totalRetryDelay=h;return{response:a,output:d}}catch(e){const t=asSdkError(e);m++;if(this.shouldRetry(t,m,C)){f=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider(a.isThrottlingError(t)?o.THROTTLING_RETRY_DELAY_BASE:o.DEFAULT_RETRY_DELAY_BASE,m);const n=getDelayFromRetryAfterHeader(t.$response);const i=Math.max(n||0,e);h+=i;await new Promise((e=>setTimeout(e,i)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=m;t.$metadata.totalRetryDelay=h;throw t}}}}const getDelayFromRetryAfterHeader=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return o*1e3;const a=new Date(n);return a.getTime()-Date.now()};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(e,t){const{rateLimiter:n,...i}=t??{};super(e,i);this.rateLimiter=n??new o.DefaultRateLimiter;this.mode=o.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}const C="AWS_MAX_ATTEMPTS";const P="max_attempts";const D={environmentVariableSelector:e=>{const t=e[C];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Environment variable ${C} mast be a number, got "${t}"`)}return n},configFileSelector:e=>{const t=e[P];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Shared config file entry ${P} mast be a number, got "${t}"`)}return n},default:o.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{const{retryStrategy:t,retryMode:n}=e;const i=f.normalizeProvider(e.maxAttempts??o.DEFAULT_MAX_ATTEMPTS);let a=t?Promise.resolve(t):undefined;const getDefault=async()=>await f.normalizeProvider(n)()===o.RETRY_MODES.ADAPTIVE?new o.AdaptiveRetryStrategy(i):new o.StandardRetryStrategy(i);return Object.assign(e,{maxAttempts:i,retryStrategy:()=>a??=getDefault()})};const k="AWS_RETRY_MODE";const L="retry_mode";const F={environmentVariableSelector:e=>e[k],configFileSelector:e=>e[L],default:o.DEFAULT_RETRY_MODE};const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:n}=t;if(i.HttpRequest.isInstance(n)){delete n.headers[o.INVOCATION_ID_HEADER];delete n.headers[o.REQUEST_HEADER]}return e(t)};const q={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo(omitRetryHeadersMiddleware(),q)}});const retryMiddleware=e=>(t,n)=>async a=>{let f=await e.retryStrategy();const C=await e.maxAttempts();if(isRetryStrategyV2(f)){f=f;let e=await f.acquireInitialRetryToken(n["partition_id"]);let P=new Error;let D=0;let k=0;const{request:L}=a;const F=i.HttpRequest.isInstance(L);if(F){L.headers[o.INVOCATION_ID_HEADER]=d.v4()}while(true){try{if(F){L.headers[o.REQUEST_HEADER]=`attempt=${D+1}; max=${C}`}const{response:n,output:i}=await t(a);f.recordSuccess(e);i.$metadata.attempts=D+1;i.$metadata.totalRetryDelay=k;return{response:n,output:i}}catch(t){const o=getRetryErrorInfo(t);P=asSdkError(t);if(F&&h.isStreamingPayload(L)){(n.logger instanceof m.NoOpLogger?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw P}try{e=await f.refreshRetryTokenForRetry(e,o)}catch(e){if(!P.$metadata){P.$metadata={}}P.$metadata.attempts=D+1;P.$metadata.totalRetryDelay=k;throw P}D=e.getRetryCount();const i=e.getRetryDelay();k+=i;await new Promise((e=>setTimeout(e,i)))}}}else{f=f;if(f?.mode)n.userAgent=[...n.userAgent||[],["cfg/retry-mode",f.mode]];return f.retry(t,a)}};const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const t={error:e,errorType:getRetryErrorType(e)};const n=getRetryAfterHint(e.$response);if(n){t.retryAfterHint=n}return t};const getRetryErrorType=e=>{if(a.isThrottlingError(e))return"THROTTLING";if(a.isTransientError(e))return"TRANSIENT";if(a.isServerError(e))return"SERVER_ERROR";return"CLIENT_ERROR"};const V={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:t=>{t.add(retryMiddleware(e),V)}});const getRetryAfterHint=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return new Date(o*1e3);const a=new Date(n);return a};t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.CONFIG_MAX_ATTEMPTS=P;t.CONFIG_RETRY_MODE=L;t.ENV_MAX_ATTEMPTS=C;t.ENV_RETRY_MODE=k;t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=D;t.NODE_RETRY_MODE_CONFIG_OPTIONS=F;t.StandardRetryStrategy=StandardRetryStrategy;t.defaultDelayDecider=defaultDelayDecider;t.defaultRetryDecider=defaultRetryDecider;t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;t.getRetryAfterHint=getRetryAfterHint;t.getRetryPlugin=getRetryPlugin;t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions=q;t.resolveRetryConfig=resolveRetryConfig;t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions=V},1576:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.isStreamingPayload=void 0;const o=n(2203);const isStreamingPayload=e=>e?.body instanceof o.Readable||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;t.isStreamingPayload=isStreamingPayload},4851:(e,t,n)=>{var o=n(9228);var i=n(4809);const deserializerMiddleware=(e,t)=>(n,i)=>async a=>{const{response:d}=await n(a);try{const n=await t(d,e);return{response:d,output:n}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{i.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const serializerMiddleware=(e,t)=>(n,o)=>async a=>{const d=e;const f=o.endpointV2?async()=>i.toEndpointV1(o.endpointV2):d.endpoint;if(!f){throw new Error("No valid endpoint provider available.")}const m=await t(a.input,{...e,endpoint:f});return n({...a,request:m})};const a={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const d={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,t,n){return{applyToStack:o=>{o.add(deserializerMiddleware(e,n),a);o.add(serializerMiddleware(e,t),d)}}}t.deserializerMiddleware=deserializerMiddleware;t.deserializerMiddlewareOption=a;t.getSerdePlugin=getSerdePlugin;t.serializerMiddleware=serializerMiddleware;t.serializerMiddlewareOption=d},1218:(e,t)=>{const getAllAliases=(e,t)=>{const n=[];if(e){n.push(e)}if(t){for(const e of t){n.push(e)}}return n};const getMiddlewareNameWithAliases=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`;const constructStack=()=>{let e=[];let t=[];let i=false;const a=new Set;const sort=e=>e.sort(((e,t)=>n[t.step]-n[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]));const removeByName=n=>{let o=false;const filterCb=e=>{const t=getAllAliases(e.name,e.aliases);if(t.includes(n)){o=true;for(const e of t){a.delete(e)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const removeByReference=n=>{let o=false;const filterCb=e=>{if(e.middleware===n){o=true;for(const t of getAllAliases(e.name,e.aliases)){a.delete(t)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const cloneTo=n=>{e.forEach((e=>{n.add(e.middleware,{...e})}));t.forEach((e=>{n.addRelativeTo(e.middleware,{...e})}));n.identifyOnResolve?.(d.identifyOnResolve());return n};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(n=false)=>{const o=[];const i=[];const a={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){a[e]=t}o.push(t)}));t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){a[e]=t}i.push(t)}));i.forEach((e=>{if(e.toMiddleware){const t=a[e.toMiddleware];if(t===undefined){if(n){return}throw new Error(`${e.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(e.name,e.aliases)} `+`middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const d=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return d};const d={add:(t,n={})=>{const{name:o,override:i,aliases:d}=n;const f={step:"initialize",priority:"normal",middleware:t,...n};const m=getAllAliases(o,d);if(m.length>0){if(m.some((e=>a.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const t of m){const n=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(n===-1){continue}const i=e[n];if(i.step!==f.step||f.priority!==i.priority){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware with `+`${i.priority} priority in ${i.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(o,d)}" middleware with `+`${f.priority} priority in ${f.step} step.`)}e.splice(n,1)}}for(const e of m){a.add(e)}}e.push(f)},addRelativeTo:(e,n)=>{const{name:o,override:i,aliases:d}=n;const f={middleware:e,...n};const m=getAllAliases(o,d);if(m.length>0){if(m.some((e=>a.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const e of m){const n=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(n===-1){continue}const i=t[n];if(i.toMiddleware!==f.toMiddleware||i.relation!==f.relation){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware `+`${i.relation} "${i.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(o,d)}" middleware ${f.relation} `+`"${f.toMiddleware}" middleware.`)}t.splice(n,1)}}for(const e of m){a.add(e)}}t.push(f)},clone:()=>cloneTo(constructStack()),use:e=>{e.applyToStack(d)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:n=>{let o=false;const filterCb=e=>{const{tags:t,name:i,aliases:d}=e;if(t&&t.includes(n)){const e=getAllAliases(i,d);for(const t of e){a.delete(t)}o=true;return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o},concat:e=>{const t=cloneTo(constructStack());t.use(e);t.identifyOnResolve(i||t.identifyOnResolve()||(e.identifyOnResolve?.()??false));return t},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return getMiddlewareNameWithAliases(e.name,e.aliases)+" - "+t})),identifyOnResolve(e){if(typeof e==="boolean")i=e;return i},resolve:(e,t)=>{for(const n of getMiddlewareList().map((e=>e.middleware)).reverse()){e=n(e,t)}if(i){console.log(d.identify())}return e}};return d};const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1};t.constructStack=constructStack},1125:(e,t,n)=>{var o=n(4036);var i=n(7016);function getSelectorName(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));t.delete("CONFIG");t.delete("CONFIG_PREFIX_SEPARATOR");t.delete("ENV");return[...t].join(", ")}catch(t){return e}}const fromEnv=(e,t)=>async()=>{try{const n=e(process.env,t);if(n===undefined){throw new Error}return n}catch(n){throw new o.CredentialsProviderError(n.message||`Not found in ENV: ${getSelectorName(e.toString())}`,{logger:t?.logger})}};const fromSharedConfigFiles=(e,{preferredFile:t="config",...n}={})=>async()=>{const a=i.getProfileName(n);const{configFile:d,credentialsFile:f}=await i.loadSharedConfigFiles(n);const m=f[a]||{};const h=d[a]||{};const C=t==="config"?{...m,...h}:{...h,...m};try{const n=t==="config"?d:f;const o=e(C,n);if(o===undefined){throw new Error}return o}catch(t){throw new o.CredentialsProviderError(t.message||`Not found in config files w/ profile [${a}]: ${getSelectorName(e.toString())}`,{logger:n.logger})}};const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():o.fromStatic(e);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},i={})=>{const{signingName:a,logger:d}=i;const f={signingName:a,logger:d};return o.memoize(o.chain(fromEnv(e,f),fromSharedConfigFiles(t,i),fromStatic(n)))};t.loadConfig=loadConfig},5422:(e,t,n)=>{var o=n(9228);var i=n(6464);var a=n(4708);var d=n(7075);var f=n(2467);function buildAbortError(e){const t=e&&typeof e==="object"&&"reason"in e?e.reason:undefined;if(t){if(t instanceof Error){const e=new Error("Request aborted");e.name="AbortError";e.cause=t;return e}const e=new Error(String(t));e.name="AbortError";return e}const n=new Error("Request aborted");n.name="AbortError";return n}const m=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=e=>{const t={};for(const n of Object.keys(e)){const o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t};const h={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};const C=1e3;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return-1}const registerTimeout=o=>{const i=h.setTimeout((()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))}),n-o);const doWithSocket=e=>{if(e?.connecting){e.on("connect",(()=>{h.clearTimeout(i)}))}else{h.clearTimeout(i)}};if(e.socket){doWithSocket(e.socket)}else{e.on("socket",doWithSocket)}};if(n<2e3){registerTimeout(0);return 0}return h.setTimeout(registerTimeout.bind(null,C),C)};const setRequestTimeout=(e,t,n=0,o,i)=>{if(n){return h.setTimeout((()=>{let a=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){const n=Object.assign(new Error(a),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(n);t(n)}else{a+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;i?.warn?.(a)}}),n)}return-1};const P=3e3;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:n},o=P)=>{if(t!==true){return-1}const registerListener=()=>{if(e.socket){e.socket.setKeepAlive(t,n||0)}else{e.on("socket",(e=>{e.setKeepAlive(t,n||0)}))}};if(o===0){registerListener();return 0}return h.setTimeout(registerListener,o)};const D=3e3;const setSocketTimeout=(e,t,n=0)=>{const registerTimeout=o=>{const i=n-o;const onTimeout=()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket){e.socket.setTimeout(i,onTimeout);e.on("close",(()=>e.socket?.removeListener("timeout",onTimeout)))}else{e.setTimeout(i,onTimeout)}};if(0<n&&n<6e3){registerTimeout(0);return 0}return h.setTimeout(registerTimeout.bind(null,n===0?0:D),D)};const k=6e3;async function writeRequestBody(e,t,n=k,o=false){const i=t.headers??{};const a=i.Expect||i.expect;let d=-1;let f=true;if(!o&&a==="100-continue"){f=await Promise.race([new Promise((e=>{d=Number(h.setTimeout((()=>e(true)),Math.max(k,n)))})),new Promise((t=>{e.on("continue",(()=>{h.clearTimeout(d);t(true)}));e.on("response",(()=>{h.clearTimeout(d);t(false)}));e.on("error",(()=>{h.clearTimeout(d);t(false)}))}))])}if(f){writeBody(e,t.body)}}function writeBody(e,t){if(t instanceof d.Readable){t.pipe(e);return}if(t){const n=Buffer.isBuffer(t);const o=typeof t==="string";if(n||o){if(n&&t.byteLength===0){e.end()}else{e.end(t)}return}const i=t;if(typeof i==="object"&&i.buffer&&typeof i.byteOffset==="number"&&typeof i.byteLength==="number"){e.end(Buffer.from(i.buffer,i.byteOffset,i.byteLength));return}e.end(Buffer.from(t));return}e.end()}const L=0;let F=undefined;let q=undefined;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttpHandler(e)}static checkSocketUsage(e,t,n=console){const{sockets:o,requests:i,maxSockets:a}=e;if(typeof a!=="number"||a===Infinity){return t}const d=15e3;if(Date.now()-d<t){return t}if(o&&i){for(const e in o){const t=o[e]?.length??0;const d=i[e]?.length??0;if(t>=a&&d>=2*a){n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${d} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return t}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(n)}else{t(this.resolveDefaultConfig(e))}}))}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}const d=this.config;const f=e.protocol==="https:";if(!f&&!this.config.httpAgent){this.config.httpAgent=await this.config.httpAgentProvider()}return new Promise(((C,P)=>{let D=undefined;const k=[];const resolve=async e=>{await D;k.forEach(h.clearTimeout);C(e)};const reject=async e=>{await D;k.forEach(h.clearTimeout);P(e)};if(t?.aborted){const e=buildAbortError(t);reject(e);return}const L=e.headers??{};const V=(L.Expect??L.expect)==="100-continue";let ee=f?d.httpsAgent:d.httpAgent;if(V&&!this.externalAgent){ee=new(f?a.Agent:F)({keepAlive:false,maxSockets:Infinity})}k.push(h.setTimeout((()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(ee,this.socketWarningTimestamp,d.logger)}),d.socketAcquisitionWarningTimeout??(d.requestTimeout??2e3)+(d.connectionTimeout??1e3)));const te=i.buildQueryString(e.query||{});let ne=undefined;if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";ne=`${t}:${n}`}let re=e.path;if(te){re+=`?${te}`}if(e.fragment){re+=`#${e.fragment}`}let oe=e.hostname??"";if(oe[0]==="["&&oe.endsWith("]")){oe=e.hostname.slice(1,-1)}else{oe=e.hostname}const ie={headers:e.headers,host:oe,method:e.method,path:re,port:e.port,agent:ee,auth:ne};const se=f?a.request:q;const ae=se(ie,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:getTransformedHeaders(e.headers),body:e});resolve({response:t})}));ae.on("error",(e=>{if(m.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));if(t){const onAbort=()=>{ae.destroy();const e=buildAbortError(t);reject(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ae.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}const ce=n??d.requestTimeout;k.push(setConnectionTimeout(ae,reject,d.connectionTimeout));k.push(setRequestTimeout(ae,reject,ce,d.throwOnRequestTimeout,d.logger??console));k.push(setSocketTimeout(ae,reject,d.socketTimeout));const le=ie.agent;if(typeof le==="object"&&"keepAlive"in le){k.push(setSocketKeepAlive(ae,{keepAlive:le.keepAlive,keepAliveMsecs:le.keepAliveMsecs}))}D=writeRequestBody(ae,e,ce,this.externalAgent).catch((e=>{k.forEach(h.clearTimeout);return P(e)}))}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:o,socketTimeout:i,socketAcquisitionWarningTimeout:d,httpAgent:f,httpsAgent:m,throwOnRequestTimeout:h,logger:C}=e||{};const P=true;const D=50;return{connectionTimeout:o,requestTimeout:t,socketTimeout:i,socketAcquisitionWarningTimeout:d,throwOnRequestTimeout:h,httpAgentProvider:async()=>{const{Agent:e,request:t}=await Promise.resolve().then(n.t.bind(n,7067,23));q=t;F=e;if(f instanceof F||typeof f?.destroy==="function"){this.externalAgent=true;return f}return new F({keepAlive:P,maxSockets:D,...f})},httpsAgent:(()=>{if(m instanceof a.Agent||typeof m?.destroy==="function"){this.externalAgent=true;return m}return new a.Agent({keepAlive:P,maxSockets:D,...m})})(),logger:C}}}class NodeHttp2ConnectionPool{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t=>t!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const t of this.sessions){if(t===e){if(!t.destroyed){t.destroy()}}}}}class NodeHttp2ConnectionManager{constructor(e){this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}config;sessionCache=new Map;lease(e,t){const n=this.getUrlString(e);const o=this.sessionCache.get(n);if(o){const e=o.poll();if(e&&!this.config.disableConcurrency){return e}}const i=f.connect(n);if(this.config.maxConcurrency){i.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}i.unref();const destroySessionCb=()=>{i.destroy();this.deleteSession(n,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSession(n,i)));if(t.requestTimeout){i.setTimeout(t.requestTimeout,destroySessionCb)}const a=this.sessionCache.get(n)||new NodeHttp2ConnectionPool;a.offerLast(i);this.sessionCache.set(n,a);return i}deleteSession(e,t){const n=this.sessionCache.get(e);if(!n){return}if(!n.contains(t)){return}n.remove(t);this.sessionCache.set(e,n)}release(e,t){const n=this.getUrlString(e);this.sessionCache.get(n)?.offerLast(t)}destroy(){for(const[e,t]of this.sessionCache){for(const e of t){if(!e.destroyed){e.destroy()}t.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttp2Handler(e)}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(n)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:a,disableConcurrentStreams:d}=this.config;const m=n??a;return new Promise(((n,a)=>{let h=false;let C=undefined;const resolve=async e=>{await C;n(e)};const reject=async e=>{await C;a(e)};if(t?.aborted){h=true;const e=buildAbortError(t);reject(e);return}const{hostname:P,method:D,port:k,protocol:L,query:F}=e;let q="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";q=`${t}:${n}@`}const V=`${L}//${q}${P}${k?`:${k}`:""}`;const ee={destination:new URL(V)};const te=this.connectionManager.lease(ee,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:d||false});const rejectWithDestroy=e=>{if(d){this.destroySession(te)}h=true;reject(e)};const ne=i.buildQueryString(F||{});let re=e.path;if(ne){re+=`?${ne}`}if(e.fragment){re+=`#${e.fragment}`}const oe=te.request({...e.headers,[f.constants.HTTP2_HEADER_PATH]:re,[f.constants.HTTP2_HEADER_METHOD]:D});te.ref();oe.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:getTransformedHeaders(e),body:oe});h=true;resolve({response:t});if(d){te.close();this.connectionManager.deleteSession(V,te)}}));if(m){oe.setTimeout(m,(()=>{oe.close();const e=new Error(`Stream timed out because of no activity for ${m} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){const onAbort=()=>{oe.close();const e=buildAbortError(t);rejectWithDestroy(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});oe.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}oe.on("frameError",((e,t,n)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));oe.on("error",rejectWithDestroy);oe.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${oe.rstCode}.`))}));oe.on("close",(()=>{te.unref();if(d){te.destroy()}if(!h){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));C=writeRequestBody(oe,e,m)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed){e.destroy()}}}class Collector extends d.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e);n()}}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((t,n)=>{const o=new Collector;e.pipe(o);e.on("error",(e=>{o.end();n(e)}));o.on("error",n);o.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}))};const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:a}=await n.read();if(a){t.push(a);i+=a.length}o=e}const a=new Uint8Array(i);let d=0;for(const e of t){a.set(e,d);d+=e.length}return a}t.DEFAULT_REQUEST_TIMEOUT=L;t.NodeHttp2Handler=NodeHttp2Handler;t.NodeHttpHandler=NodeHttpHandler;t.streamCollector=streamCollector},4036:(e,t)=>{class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(e,t=true){let n;let o=true;if(typeof t==="boolean"){n=undefined;o=t}else if(t!=null&&typeof t==="object"){n=t.logger;o=t.tryNextLink??true}super(e);this.tryNextLink=o;Object.setPrototypeOf(this,ProviderError.prototype);n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...e)=>async()=>{if(e.length===0){throw new ProviderError("No providers in chain")}let t;for(const n of e){try{const e=await n();return e}catch(e){t=e;if(e?.tryNextLink){continue}throw e}}throw t};const fromStatic=e=>()=>Promise.resolve(e);const memoize=(e,t,n)=>{let o;let i;let a;let d=false;const coalesceProvider=async()=>{if(!i){i=e()}try{o=await i;a=true;d=false}finally{i=undefined}return o};if(t===undefined){return async e=>{if(!a||e?.forceRefresh){o=await coalesceProvider()}return o}}return async e=>{if(!a||e?.forceRefresh){o=await coalesceProvider()}if(d){return o}if(n&&!n(o)){d=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.CredentialsProviderError=CredentialsProviderError;t.ProviderError=ProviderError;t.TokenProviderError=TokenProviderError;t.chain=chain;t.fromStatic=fromStatic;t.memoize=memoize},9228:(e,t,n)=>{var o=n(5674);const getHttpHandlerExtensionConfiguration=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});class Field{name;kind;values;constructor({name:e,kind:t=o.FieldPosition.HEADER,values:n=[]}){this.name=e;this.kind=t;this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static clone(e){const t=new HttpRequest({...e,headers:{...e.headers}});if(t.query){t.query=cloneQuery(t.query)}return t}static isInstance(e){if(!e){return false}const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{})}class HttpResponse{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.Field=Field;t.Fields=Fields;t.HttpRequest=HttpRequest;t.HttpResponse=HttpResponse;t.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;t.isValidHostname=isValidHostname;t.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig},6464:(e,t,n)=>{var o=n(7015);function buildQueryString(e){const t=[];for(let n of Object.keys(e).sort()){const i=e[n];n=o.escapeUri(n);if(Array.isArray(i)){for(let e=0,a=i.length;e<a;e++){t.push(`${n}=${o.escapeUri(i[e])}`)}}else{let e=n;if(i||typeof i==="string"){e+=`=${o.escapeUri(i)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},3910:(e,t)=>{function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const n of e.split("&")){let[e,o=null]=n.split("=");e=decodeURIComponent(e);if(o){o=decodeURIComponent(o)}if(!(e in t)){t[e]=o}else if(Array.isArray(t[e])){t[e].push(o)}else{t[e]=[t[e],o]}}}return t}t.parseQueryString=parseQueryString},518:(e,t)=>{const n=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const o=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const i=["TimeoutError","RequestTimeout","RequestTimeoutException"];const a=[500,502,503,504];const d=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const f=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];const isRetryableByTrait=e=>e?.$retryable!==undefined;const isClockSkewError=e=>n.includes(e.name);const isClockSkewCorrectedError=e=>e.$metadata?.clockSkewCorrected;const isBrowserNetworkError=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const n=e&&e instanceof TypeError;if(!n){return false}return t.has(e.message)};const isThrottlingError=e=>e.$metadata?.httpStatusCode===429||o.includes(e.name)||e.$retryable?.throttling==true;const isTransientError=(e,t=0)=>isRetryableByTrait(e)||isClockSkewCorrectedError(e)||i.includes(e.name)||d.includes(e?.code||"")||f.includes(e?.code||"")||a.includes(e.$metadata?.httpStatusCode||0)||isBrowserNetworkError(e)||e.cause!==undefined&&t<=10&&isTransientError(e.cause,t+1);const isServerError=e=>{if(e.$metadata?.httpStatusCode!==undefined){const t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!isTransientError(e)){return true}return false}return false};t.isBrowserNetworkError=isBrowserNetworkError;t.isClockSkewCorrectedError=isClockSkewCorrectedError;t.isClockSkewError=isClockSkewError;t.isRetryableByTrait=isRetryableByTrait;t.isServerError=isServerError;t.isThrottlingError=isThrottlingError;t.isTransientError=isTransientError},1672:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const o=n(857);const i=n(6928);const a={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:d=`C:${i.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${d}${n}`;const f=getHomeDirCacheKey();if(!a[f])a[f]=(0,o.homedir)();return a[f]};t.getHomeDir=getHomeDir},4729:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const o=n(6982);const i=n(6928);const a=n(1672);const getSSOTokenFilepath=e=>{const t=(0,o.createHash)("sha1");const n=t.update(e).digest("hex");return(0,i.join)((0,a.getHomeDir)(),".aws","sso","cache",`${n}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},9642:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=t.tokenIntercept=void 0;const o=n(1943);const i=n(4729);t.tokenIntercept={};const getSSOTokenFromFile=async e=>{if(t.tokenIntercept[e]){return t.tokenIntercept[e]}const n=(0,i.getSSOTokenFilepath)(e);const a=await(0,o.readFile)(n,"utf8");return JSON.parse(a)};t.getSSOTokenFromFile=getSSOTokenFromFile},7016:(e,t,n)=>{var o=n(1672);var i=n(4729);var a=n(9642);var d=n(6928);var f=n(5674);var m=n(8360);const h="AWS_PROFILE";const C="default";const getProfileName=e=>e.profile||process.env[h]||C;const P=".";const getConfigData=e=>Object.entries(e).filter((([e])=>{const t=e.indexOf(P);if(t===-1){return false}return Object.values(f.IniSectionType).includes(e.substring(0,t))})).reduce(((e,[t,n])=>{const o=t.indexOf(P);const i=t.substring(0,o)===f.IniSectionType.PROFILE?t.substring(o+1):t;e[i]=n;return e}),{...e.default&&{default:e.default}});const D="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[D]||d.join(o.getHomeDir(),".aws","config");const k="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[k]||d.join(o.getHomeDir(),".aws","credentials");const L=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;const F=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let n;let o;for(const i of e.split(/\r?\n/)){const e=i.split(/(^|\s)[;#]/)[0].trim();const a=e[0]==="["&&e[e.length-1]==="]";if(a){n=undefined;o=undefined;const t=e.substring(1,e.length-1);const i=L.exec(t);if(i){const[,e,,t]=i;if(Object.values(f.IniSectionType).includes(e)){n=[e,t].join(P)}}else{n=t}if(F.includes(t)){throw new Error(`Found invalid profile name "${t}"`)}}else if(n){const a=e.indexOf("=");if(![0,-1].includes(a)){const[d,f]=[e.substring(0,a).trim(),e.substring(a+1).trim()];if(f===""){o=d}else{if(o&&i.trimStart()===i){o=undefined}t[n]=t[n]||{};const e=o?[o,d].join(P):d;t[n][e]=f}}}}return t};const swallowError$1=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=getCredentialsFilepath(),configFilepath:n=getConfigFilepath()}=e;const i=o.getHomeDir();const a="~/";let f=t;if(t.startsWith(a)){f=d.join(i,t.slice(2))}let h=n;if(n.startsWith(a)){h=d.join(i,n.slice(2))}const C=await Promise.all([m.readFile(h,{ignoreCache:e.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),m.readFile(f,{ignoreCache:e.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:C[0],credentialsFile:C[1]}};const getSsoSessionData=e=>Object.entries(e).filter((([e])=>e.startsWith(f.IniSectionType.SSO_SESSION+P))).reduce(((e,[t,n])=>({...e,[t.substring(t.indexOf(P)+1)]:n})),{});const swallowError=()=>({});const loadSsoSessionData=async(e={})=>m.readFile(e.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...e)=>{const t={};for(const n of e){for(const[e,o]of Object.entries(n)){if(t[e]!==undefined){Object.assign(t[e],o)}else{t[e]=o}}}return t};const parseKnownFiles=async e=>{const t=await loadSharedConfigFiles(e);return mergeConfigFiles(t.configFile,t.credentialsFile)};const q={getFileRecord(){return m.fileIntercept},interceptFile(e,t){m.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return a.tokenIntercept},interceptToken(e,t){a.tokenIntercept[e]=t}};t.getSSOTokenFromFile=a.getSSOTokenFromFile;t.readFile=m.readFile;t.CONFIG_PREFIX_SEPARATOR=P;t.DEFAULT_PROFILE=C;t.ENV_PROFILE=h;t.externalDataInterceptor=q;t.getProfileName=getProfileName;t.loadSharedConfigFiles=loadSharedConfigFiles;t.loadSsoSessionData=loadSsoSessionData;t.parseKnownFiles=parseKnownFiles;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},8360:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readFile=t.fileIntercept=t.filePromises=void 0;const o=n(1455);t.filePromises={};t.fileIntercept={};const readFile=(e,n)=>{if(t.fileIntercept[e]!==undefined){return t.fileIntercept[e]}if(!t.filePromises[e]||n?.ignoreCache){t.filePromises[e]=(0,o.readFile)(e,"utf8")}return t.filePromises[e]};t.readFile=readFile},7202:(e,t,n)=>{var o=n(7661);var i=n(8165);var a=n(5031);var d=n(9228);var f=n(5496);var m=n(7015);const h="X-Amz-Algorithm";const C="X-Amz-Credential";const P="X-Amz-Date";const D="X-Amz-SignedHeaders";const k="X-Amz-Expires";const L="X-Amz-Signature";const F="X-Amz-Security-Token";const q="X-Amz-Region-Set";const V="authorization";const ee=P.toLowerCase();const te="date";const ne=[V,ee,te];const re=L.toLowerCase();const oe="x-amz-content-sha256";const ie=F.toLowerCase();const se="host";const ae={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const ce=/^proxy-/;const le=/^sec-/;const ue=[/^proxy-/i,/^sec-/i];const de="AWS4-HMAC-SHA256";const pe="AWS4-ECDSA-P256-SHA256";const fe="AWS4-HMAC-SHA256-PAYLOAD";const me="UNSIGNED-PAYLOAD";const he=50;const ge="aws4_request";const ye=60*60*24*7;const Se={};const Ee=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${ge}`;const getSigningKey=async(e,t,n,i,a)=>{const d=await hmac(e,t.secretAccessKey,t.accessKeyId);const f=`${n}:${i}:${a}:${o.toHex(d)}:${t.sessionToken}`;if(f in Se){return Se[f]}Ee.push(f);while(Ee.length>he){delete Se[Ee.shift()]}let m=`AWS4${t.secretAccessKey}`;for(const t of[n,i,a,ge]){m=await hmac(e,m,t)}return Se[f]=m};const clearCredentialCache=()=>{Ee.length=0;Object.keys(Se).forEach((e=>{delete Se[e]}))};const hmac=(e,t,n)=>{const o=new e(t);o.update(i.toUint8Array(n));return o.digest()};const getCanonicalHeaders=({headers:e},t,n)=>{const o={};for(const i of Object.keys(e).sort()){if(e[i]==undefined){continue}const a=i.toLowerCase();if(a in ae||t?.has(a)||ce.test(a)||le.test(a)){if(!n||n&&!n.has(a)){continue}}o[a]=e[i].trim().replace(/\s+/g," ")}return o};const getPayloadHash=async({headers:e,body:t},n)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===oe){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||a.isArrayBuffer(t)){const e=new n;e.update(i.toUint8Array(t));return o.toHex(await e.digest())}return me};class HeaderFormatter{format(e){const t=[];for(const n of Object.keys(e)){const o=i.fromUtf8(n);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let o=0;for(const e of t){n.set(e,o);o+=e.byteLength}return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));n.setUint8(0,4);n.setInt32(1,e.value,false);return new Uint8Array(n.buffer);case"long":const a=new Uint8Array(9);a[0]=5;a.set(e.value.bytes,1);return a;case"binary":const d=new DataView(new ArrayBuffer(3+e.value.byteLength));d.setUint8(0,6);d.setUint16(1,e.value.byteLength,false);const f=new Uint8Array(d.buffer);f.set(e.value,3);return f;case"string":const m=i.fromUtf8(e.value);const h=new DataView(new ArrayBuffer(3+m.byteLength));h.setUint8(0,7);h.setUint16(1,m.byteLength,false);const C=new Uint8Array(h.buffer);C.set(m,3);return C;case"timestamp":const P=new Uint8Array(9);P[0]=8;P.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return P;case"uuid":if(!ve.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const D=new Uint8Array(17);D[0]=9;D.set(o.fromHex(e.value.replace(/\-/g,"")),1);return D}}}const ve=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256){t[n]=o}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt(o.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}const hasHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return true}}return false};const moveHeadersToQuery=(e,t={})=>{const{headers:n,query:o={}}=d.HttpRequest.clone(e);for(const e of Object.keys(n)){const i=e.toLowerCase();if(i.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i)){o[e]=n[e];delete n[e]}}return{...e,headers:n,query:o}};const prepareRequest=e=>{e=d.HttpRequest.clone(e);for(const t of Object.keys(e.headers)){if(ne.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const o of Object.keys(e)){if(o.toLowerCase()===re){continue}const i=m.escapeUri(o);t.push(i);const a=e[o];if(typeof a==="string"){n[i]=`${i}=${m.escapeUri(a)}`}else if(Array.isArray(a)){n[i]=a.slice(0).reduce(((e,t)=>e.concat([`${i}=${m.escapeUri(t)}`])),[]).sort().join("&")}}return t.sort().map((e=>n[e])).filter((e=>e)).join("&")};const iso8601=e=>toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:a=true}){this.service=o;this.sha256=i;this.uriEscapePath=a;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=f.normalizeProvider(n);this.credentialProvider=f.normalizeProvider(t)}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${getCanonicalQuery(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n,a){const d=new this.sha256;d.update(i.toUint8Array(n));const f=await d.digest();return`${a}\n${e}\n${t}\n${o.toHex(f)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/")){if(n?.length===0)continue;if(n===".")continue;if(n===".."){t.pop()}else{t.push(n)}}const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;const o=m.escapeUri(n);return o.replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(e){const t=iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:a=true}){super({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:a})}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:d,hoistableHeaders:f,signingRegion:m,signingService:q}=t;const V=await this.credentialProvider();this.validateResolvedCredentials(V);const ee=m??await this.regionProvider();const{longDate:te,shortDate:ne}=this.formatDate(n);if(o>ye){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const re=createScope(ne,ee,q??this.service);const oe=moveHeadersToQuery(prepareRequest(e),{unhoistableHeaders:a,hoistableHeaders:f});if(V.sessionToken){oe.query[F]=V.sessionToken}oe.query[h]=de;oe.query[C]=`${V.accessKeyId}/${re}`;oe.query[P]=te;oe.query[k]=o.toString(10);const ie=getCanonicalHeaders(oe,i,d);oe.query[D]=this.getCanonicalHeaderList(ie);oe.query[L]=await this.getSignature(te,re,this.getSigningKey(V,ee,ne,q),this.createCanonicalRequest(oe,ie,await getPayloadHash(e,this.sha256)));return oe}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:i,signingRegion:a,signingService:d}){const f=a??await this.regionProvider();const{shortDate:m,longDate:h}=this.formatDate(n);const C=createScope(m,f,d??this.service);const P=await getPayloadHash({headers:{},body:t},this.sha256);const D=new this.sha256;D.update(e);const k=o.toHex(await D.digest());const L=[fe,h,C,i,k,P].join("\n");return this.signString(L,{signingDate:n,signingRegion:f,signingService:d})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:o}){const i=this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:o,priorSignature:e.priorSignature});return i.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:a}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const f=n??await this.regionProvider();const{shortDate:m}=this.formatDate(t);const h=new this.sha256(await this.getSigningKey(d,f,m,a));h.update(i.toUint8Array(e));return o.toHex(await h.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:i,signingService:a}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const f=i??await this.regionProvider();const m=prepareRequest(e);const{longDate:h,shortDate:C}=this.formatDate(t);const P=createScope(C,f,a??this.service);m.headers[ee]=h;if(d.sessionToken){m.headers[ie]=d.sessionToken}const D=await getPayloadHash(m,this.sha256);if(!hasHeader(oe,m.headers)&&this.applyChecksum){m.headers[oe]=D}const k=getCanonicalHeaders(m,o,n);const L=await this.getSignature(h,P,this.getSigningKey(d,f,C,a),this.createCanonicalRequest(m,k,D));m.headers[V]=`${de} `+`Credential=${d.accessKeyId}/${P}, `+`SignedHeaders=${this.getCanonicalHeaderList(k)}, `+`Signature=${L}`;return m}async getSignature(e,t,n,a){const d=await this.createStringToSign(e,t,a,de);const f=new this.sha256(await n);f.update(i.toUint8Array(d));return o.toHex(await f.digest())}getSigningKey(e,t,n,o){return getSigningKey(this.sha256,e,n,t,o||this.service)}}const Ce={SignatureV4a:null};t.ALGORITHM_IDENTIFIER=de;t.ALGORITHM_IDENTIFIER_V4A=pe;t.ALGORITHM_QUERY_PARAM=h;t.ALWAYS_UNSIGNABLE_HEADERS=ae;t.AMZ_DATE_HEADER=ee;t.AMZ_DATE_QUERY_PARAM=P;t.AUTH_HEADER=V;t.CREDENTIAL_QUERY_PARAM=C;t.DATE_HEADER=te;t.EVENT_ALGORITHM_IDENTIFIER=fe;t.EXPIRES_QUERY_PARAM=k;t.GENERATED_HEADERS=ne;t.HOST_HEADER=se;t.KEY_TYPE_IDENTIFIER=ge;t.MAX_CACHE_SIZE=he;t.MAX_PRESIGNED_TTL=ye;t.PROXY_HEADER_PATTERN=ce;t.REGION_SET_PARAM=q;t.SEC_HEADER_PATTERN=le;t.SHA256_HEADER=oe;t.SIGNATURE_HEADER=re;t.SIGNATURE_QUERY_PARAM=L;t.SIGNED_HEADERS_QUERY_PARAM=D;t.SignatureV4=SignatureV4;t.SignatureV4Base=SignatureV4Base;t.TOKEN_HEADER=ie;t.TOKEN_QUERY_PARAM=F;t.UNSIGNABLE_PATTERNS=ue;t.UNSIGNED_PAYLOAD=me;t.clearCredentialCache=clearCredentialCache;t.createScope=createScope;t.getCanonicalHeaders=getCanonicalHeaders;t.getCanonicalQuery=getCanonicalQuery;t.getPayloadHash=getPayloadHash;t.getSigningKey=getSigningKey;t.hasHeader=hasHeader;t.moveHeadersToQuery=moveHeadersToQuery;t.prepareRequest=prepareRequest;t.signatureV4aContainer=Ce},4271:(e,t,n)=>{var o=n(1218);var i=n(5770);var a=n(5674);var d=n(2566);var f=n(8682);class Client{config;middlewareStack=o.constructStack();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:n}=e;if(n){if(typeof t==="function"){e.protocol=new t(n)}}}send(e,t,n){const o=typeof t!=="function"?t:undefined;const i=typeof t==="function"?t:n;const a=o===undefined&&this.config.cacheMiddleware===true;let d;if(a){if(!this.handlers){this.handlers=new WeakMap}const t=this.handlers;if(t.has(e.constructor)){d=t.get(e.constructor)}else{d=e.resolveMiddleware(this.middlewareStack,this.config,o);t.set(e.constructor,d)}}else{delete this.handlers;d=e.resolveMiddleware(this.middlewareStack,this.config,o)}if(i){d(e).then((e=>i(null,e.output)),(e=>i(e))).catch((()=>{}))}else{return d(e).then((e=>e.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const m="***SensitiveInformation***";function schemaLogFilter(e,t){if(t==null){return t}const n=d.NormalizedSchema.of(e);if(n.getMergedTraits().sensitive){return m}if(n.isListSchema()){const e=!!n.getValueSchema().getMergedTraits().sensitive;if(e){return m}}else if(n.isMapSchema()){const e=!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive;if(e){return m}}else if(n.isStructSchema()&&typeof t==="object"){const e=t;const o={};for(const[t,i]of n.structIterator()){if(e[t]!=null){o[t]=schemaLogFilter(i,e[t])}}return o}return t}class Command{middlewareStack=o.constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(e,t,n,{middlewareFn:o,clientName:i,commandName:d,inputFilterSensitiveLog:f,outputFilterSensitiveLog:m,smithyContext:h,additionalContext:C,CommandCtor:P}){for(const i of o.bind(this)(P,e,t,n)){this.middlewareStack.use(i)}const D=e.concat(this.middlewareStack);const{logger:k}=t;const L={logger:k,clientName:i,commandName:d,inputFilterSensitiveLog:f,outputFilterSensitiveLog:m,[a.SMITHY_CONTEXT_KEY]:{commandInstance:this,...h},...C};const{requestHandler:F}=t;return D.resolve((e=>F.handle(e.request,n||{})),L)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){this._ep=e;return this}m(e){this._middlewareFn=e;return this}s(e,t,n={}){this._smithyContext={service:e,operation:t,...n};return this}c(e={}){this._additionalContext=e;return this}n(e,t){this._clientName=e;this._commandName=t;return this}f(e=e=>e,t=e=>e){this._inputFilterSensitiveLog=e;this._outputFilterSensitiveLog=t;return this}ser(e){this._serializer=e;return this}de(e){this._deserializer=e;return this}sc(e){this._operationSchema=e;this._smithyContext.operationSchema=e;return this}build(){const e=this;let t;return t=class extends Command{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super();this.input=t??{};e._init(this);this.schema=e._operationSchema}resolveMiddleware(n,o,i){const a=e._operationSchema;const d=a?.[4]??a?.input;const f=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,o,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?schemaLogFilter.bind(null,d):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?schemaLogFilter.bind(null,f):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const h="***SensitiveInformation***";const createAggregatedClient=(e,t,n)=>{for(const[n,o]of Object.entries(e)){const methodImpl=async function(e,t,n){const i=new o(e);if(typeof t==="function"){this.send(i,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(i,t||{},n)}else{return this.send(i,t)}};const e=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[e]=methodImpl}const{paginators:o={},waiters:i={}}=n??{};for(const[e,n]of Object.entries(o)){if(t.prototype[e]===void 0){t.prototype[e]=function(e={},t,...o){return n({...t,client:this},e,...o)}}}for(const[e,n]of Object.entries(i)){if(t.prototype[e]===void 0){t.prototype[e]=async function(e={},t,...o){let i=t;if(typeof t==="number"){i={maxWaitTime:t}}return n({...i,client:this},e,...o)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}static isInstance(e){if(!e)return false;const t=e;return ServiceException.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return false;const t=e;if(this===ServiceException){return ServiceException.isInstance(e)}if(ServiceException.isInstance(e)){if(t.name&&this.name){return this.prototype.isPrototypeOf(e)||t.name===this.name}return this.prototype.isPrototypeOf(e)}return false}}const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,n])=>{if(e[t]==undefined||e[t]===""){e[t]=n}}));const n=e.message||e.Message||"UnknownError";e.message=n;delete e.Message;return e};const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:n,errorCode:o})=>{const i=deserializeMetadata(e);const a=i.httpStatusCode?i.httpStatusCode+"":undefined;const d=new n({name:t?.code||t?.Code||o||a||"UnknownError",$fault:"client",$metadata:i});throw decorateServiceException(d,t)};const withBaseException=e=>({output:t,parsedBody:n,errorCode:o})=>{throwDefaultError({output:t,parsedBody:n,exceptionCtor:e,errorCode:o})};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let C=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!C&&parseInt(e.substring(1,e.indexOf(".")))<16){C=true}};const P=Object.values(a.AlgorithmId);const getChecksumConfiguration=e=>{const t=[];for(const n in a.AlgorithmId){const o=a.AlgorithmId[n];if(e[o]===undefined){continue}t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}for(const[n,o]of Object.entries(e.checksumAlgorithms??{})){t.push({algorithmId:()=>n,checksumConstructor:()=>o})}return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const o=n.algorithmId();const i=n.checksumConstructor();if(P.includes(o)){e.checksumAlgorithms[o.toUpperCase()]=i}else{e.checksumAlgorithms[o]=i}t.push(n)},checksumAlgorithms(){return t}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{const n=e.algorithmId();if(P.includes(n)){t[n]=e.checksumConstructor()}}));return t};const getRetryConfiguration=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}});const resolveRetryRuntimeConfig=e=>{const t={};t.retryStrategy=e.retryStrategy();return t};const getDefaultExtensionConfiguration=e=>Object.assign(getChecksumConfiguration(e),getRetryConfiguration(e));const D=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>Object.assign(resolveChecksumRuntimeConfig(e),resolveRetryRuntimeConfig(e));const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];const getValueFromTextNode=e=>{const t="#text";for(const n in e){if(e.hasOwnProperty(n)&&e[n][t]!==undefined){e[n]=e[n][t]}else if(typeof e[n]==="object"&&e[n]!==null){e[n]=getValueFromTextNode(e[n])}}return e};const isSerializableHeaderValue=e=>e!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(e,t,n){let o;let i;let a;if(typeof t==="undefined"&&typeof n==="undefined"){o={};a=e}else{o=e;if(typeof t==="function"){i=t;a=n;return mapWithFilter(o,i,a)}else{a=t}}for(const e of Object.keys(a)){if(!Array.isArray(a[e])){o[e]=a[e];continue}applyInstruction(o,null,a,e)}return o}const convertMap=e=>{const t={};for(const[n,o]of Object.entries(e||{})){t[n]=[,o]}return t};const take=(e,t)=>{const n={};for(const o in t){applyInstruction(n,e,t,o)}return n};const mapWithFilter=(e,t,n)=>map(e,Object.entries(n).reduce(((e,[n,o])=>{if(Array.isArray(o)){e[n]=o}else{if(typeof o==="function"){e[n]=[t,o()]}else{e[n]=[t,o]}}return e}),{}));const applyInstruction=(e,t,n,o)=>{if(t!==null){let i=n[o];if(typeof i==="function"){i=[,i]}const[a=nonNullish,d=pass,f=o]=i;if(typeof a==="function"&&a(t[f])||typeof a!=="function"&&!!a){e[o]=d(t[f])}return}let[i,a]=n[o];if(typeof a==="function"){let t;const n=i===undefined&&(t=a())!=null;const d=typeof i==="function"&&!!i(void 0)||typeof i!=="function"&&!!i;if(n){e[o]=t}else if(d){e[o]=a()}}else{const t=i===undefined&&a!=null;const n=typeof i==="function"&&!!i(a)||typeof i!=="function"&&!!i;if(t||n){e[o]=a}}};const nonNullish=e=>e!=null;const pass=e=>e;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};const serializeDateTime=e=>e.toISOString().replace(".000Z","Z");const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null)).map(_json)}if(typeof e==="object"){const t={};for(const n of Object.keys(e)){if(e[n]==null){continue}t[n]=_json(e[n])}return t}return e};t.collectBody=i.collectBody;t.extendedEncodeURIComponent=i.extendedEncodeURIComponent;t.resolvedPath=i.resolvedPath;t.Client=Client;t.Command=Command;t.NoOpLogger=NoOpLogger;t.SENSITIVE_STRING=h;t.ServiceException=ServiceException;t._json=_json;t.convertMap=convertMap;t.createAggregatedClient=createAggregatedClient;t.decorateServiceException=decorateServiceException;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getArrayIfSingleItem=getArrayIfSingleItem;t.getDefaultClientConfiguration=D;t.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;t.getValueFromTextNode=getValueFromTextNode;t.isSerializableHeaderValue=isSerializableHeaderValue;t.loadConfigsForDefaultMode=loadConfigsForDefaultMode;t.map=map;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;t.serializeDateTime=serializeDateTime;t.serializeFloat=serializeFloat;t.take=take;t.throwDefaultError=throwDefaultError;t.withBaseException=withBaseException;Object.prototype.hasOwnProperty.call(f,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:f["__proto__"]});Object.keys(f).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=f[e]}))},5674:(e,t)=>{t.HttpAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpAuthLocation||(t.HttpAuthLocation={}));t.HttpApiKeyAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpApiKeyAuthLocation||(t.HttpApiKeyAuthLocation={}));t.EndpointURLScheme=void 0;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(t.EndpointURLScheme||(t.EndpointURLScheme={}));t.AlgorithmId=void 0;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(t.AlgorithmId||(t.AlgorithmId={}));const getChecksumConfiguration=e=>{const n=[];if(e.sha256!==undefined){n.push({algorithmId:()=>t.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){n.push({algorithmId:()=>t.AlgorithmId.MD5,checksumConstructor:()=>e.md5})}return{addChecksumAlgorithm(e){n.push(e)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};const getDefaultClientConfiguration=e=>getChecksumConfiguration(e);const resolveDefaultRuntimeConfig=e=>resolveChecksumRuntimeConfig(e);t.FieldPosition=void 0;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(t.FieldPosition||(t.FieldPosition={}));const n="__smithy_context";t.IniSectionType=void 0;(function(e){e["PROFILE"]="profile";e["SSO_SESSION"]="sso-session";e["SERVICES"]="services"})(t.IniSectionType||(t.IniSectionType={}));t.RequestHandlerProtocol=void 0;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}));t.SMITHY_CONTEXT_KEY=n;t.getDefaultClientConfiguration=getDefaultClientConfiguration;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},4418:(e,t,n)=>{var o=n(3910);const parseUrl=e=>{if(typeof e==="string"){return parseUrl(new URL(e))}const{hostname:t,pathname:n,port:i,protocol:a,search:d}=e;let f;if(d){f=o.parseQueryString(d)}return{hostname:t,port:i?parseInt(i):undefined,protocol:a,path:n,query:f}};t.parseUrl=parseUrl},8667:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const o=n(1643);const i=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!i.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,o.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},3158:(e,t,n)=>{var o=n(8667);var i=n(846);Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},846:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const o=n(1643);const i=n(8165);const toBase64=e=>{let t;if(typeof e==="string"){t=(0,i.fromUtf8)(e)}else{t=e}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return(0,o.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")};t.toBase64=toBase64},3063:(e,t)=>{const n=typeof TextEncoder=="function"?new TextEncoder:null;const calculateBodyLength=e=>{if(typeof e==="string"){if(n){return n.encode(e).byteLength}let t=e.length;for(let n=t-1;n>=0;n--){const o=e.charCodeAt(n);if(o>127&&o<=2047)t++;else if(o>2047&&o<=65535)t+=2;if(o>=56320&&o<=57343)n--}return t}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},6e3:(e,t,n)=>{var o=n(3024);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.byteLength(e)}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(e instanceof o.ReadStream){if(e.path!=null){return o.lstatSync(e.path).size}else if(typeof e.fd==="number"){return o.fstatSync(e.fd).size}}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},1643:(e,t,n)=>{var o=n(5031);var i=n(181);const fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!o.isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return i.Buffer.from(e,t,n)};const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?i.Buffer.from(e,t):i.Buffer.from(e)};t.fromArrayBuffer=fromArrayBuffer;t.fromString=fromString},7883:(e,t)=>{const booleanSelector=(e,t,n)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)};const numberSelector=(e,t,n)=>{if(!(t in e))return undefined;const o=parseInt(e[t],10);if(Number.isNaN(o)){throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`)}return o};t.SelectorType=void 0;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(t.SelectorType||(t.SelectorType={}));t.booleanSelector=booleanSelector;t.numberSelector=numberSelector},8322:(e,t,n)=>{var o=n(6477);var i=n(1125);var a=n(4036);const d="AWS_EXECUTION_ENV";const f="AWS_REGION";const m="AWS_DEFAULT_REGION";const h="AWS_EC2_METADATA_DISABLED";const C=["in-region","cross-region","mobile","standard","legacy"];const P="/latest/meta-data/placement/region";const D="AWS_DEFAULTS_MODE";const k="defaults_mode";const L={environmentVariableSelector:e=>e[D],configFileSelector:e=>e[k],default:"legacy"};const resolveDefaultsModeConfig=({region:e=i.loadConfig(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=i.loadConfig(L)}={})=>a.memoize((async()=>{const n=typeof t==="function"?await t():t;switch(n?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${C.join(", ")}, got ${n}`)}}));const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const n=await inferPhysicalRegion();if(!n){return"standard"}if(t===n){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[d]&&(process.env[f]||process.env[m])){return process.env[f]??process.env[m]}if(!process.env[h]){try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await Promise.resolve().then(n.t.bind(n,5518,19));const o=await e();return(await t({...o,path:P})).toString()}catch(e){}}};t.resolveDefaultsModeConfig=resolveDefaultsModeConfig},9356:(e,t,n)=>{var o=n(5674);class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50;if(t){this.parameters=t}}get(e,t){const n=this.hash(e);if(n===false){return t()}if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;while(true){const{value:n,done:o}=e.next();this.data.delete(n);if(o||++t>10){break}}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(n.length===0){return false}for(const o of n){const n=String(e[o]??"");if(n.includes("|;")){return false}t+=n+"|;"}return t}}const i=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=e=>i.test(e)||e.startsWith("[")&&e.endsWith("]");const a=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,t=false)=>{if(!t){return a.test(e)}const n=e.split(".");for(const e of n){if(!isValidHostLabel(e)){return false}}return true};const d={};const f="endpoints";function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}const booleanEquals=(e,t)=>e===t;const getAttrPathList=e=>{const t=e.split(".");const n=[];for(const o of t){const t=o.indexOf("[");if(t!==-1){if(o.indexOf("]")!==o.length-1){throw new EndpointError(`Path: '${e}' does not end with ']'`)}const i=o.slice(t+1,-1);if(Number.isNaN(parseInt(i))){throw new EndpointError(`Invalid array index: '${i}' in path: '${e}'`)}if(t!==0){n.push(o.slice(0,t))}n.push(i)}else{n.push(o)}}return n};const getAttr=(e,t)=>getAttrPathList(t).reduce(((n,o)=>{if(typeof n!=="object"){throw new EndpointError(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(n)){return n[parseInt(o)]}return n[o]}),e);const isSet=e=>e!=null;const not=e=>!e;const m={[o.EndpointURLScheme.HTTP]:80,[o.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:n,protocol:o="",path:i="",query:a={}}=e;const d=new URL(`${o}//${t}${n?`:${n}`:""}${i}`);d.search=Object.entries(a).map((([e,t])=>`${e}=${t}`)).join("&");return d}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const n=t.href;const{host:i,hostname:a,pathname:d,protocol:f,search:h}=t;if(h){return null}const C=f.slice(0,-1);if(!Object.values(o.EndpointURLScheme).includes(C)){return null}const P=isIpAddress(a);const D=n.includes(`${i}:${m[C]}`)||typeof e==="string"&&e.includes(`${i}:${m[C]}`);const k=`${i}${D?`:${m[C]}`:``}`;return{scheme:C,authority:k,path:d,normalizedPath:d.endsWith("/")?d:`${d}/`,isIp:P}};const stringEquals=(e,t)=>e===t;const substring=(e,t,n,o)=>{if(t>=n||e.length<n||/[^\u0000-\u007f]/.test(e)){return null}if(!o){return e.substring(t,n)}return e.substring(e.length-n,e.length-t)};const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));const h={booleanEquals:booleanEquals,getAttr:getAttr,isSet:isSet,isValidHostLabel:isValidHostLabel,not:not,parseURL:parseURL,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(e,t)=>{const n=[];const o={...t.endpointParams,...t.referenceRecord};let i=0;while(i<e.length){const t=e.indexOf("{",i);if(t===-1){n.push(e.slice(i));break}n.push(e.slice(i,t));const a=e.indexOf("}",t);if(a===-1){n.push(e.slice(t));break}if(e[t+1]==="{"&&e[a+1]==="}"){n.push(e.slice(t+1,a));i=a+2}const d=e.substring(t+1,a);if(d.includes("#")){const[e,t]=d.split("#");n.push(getAttr(o[e],t))}else{n.push(o[d])}i=a+1}return n.join("")};const getReferenceValue=({ref:e},t)=>{const n={...t.endpointParams,...t.referenceRecord};return n[e]};const evaluateExpression=(e,t,n)=>{if(typeof e==="string"){return evaluateTemplate(e,n)}else if(e["fn"]){return C.callFunction(e,n)}else if(e["ref"]){return getReferenceValue(e,n)}throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};const callFunction=({fn:e,argv:t},n)=>{const o=t.map((e=>["boolean","number"].includes(typeof e)?e:C.evaluateExpression(e,"arg",n)));const i=e.split(".");if(i[0]in d&&i[1]!=null){return d[i[0]][i[1]](...o)}return h[e](...o)};const C={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord){throw new EndpointError(`'${e}' is already defined in Reference Record.`)}const o=callFunction(t,n);n.logger?.debug?.(`${f} evaluateCondition: ${toDebugString(t)} = ${toDebugString(o)}`);return{result:o===""?true:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};const evaluateConditions=(e=[],t)=>{const n={};for(const o of e){const{result:e,toAssign:i}=evaluateCondition(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e){return{result:e}}if(i){n[i.name]=i.value;t.logger?.debug?.(`${f} assign: ${i.name} := ${toDebugString(i.value)}`)}}return{result:true,referenceRecord:n}};const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:o.map((e=>{const o=evaluateExpression(e,"Header value entry",t);if(typeof o!=="string"){throw new EndpointError(`Header '${n}' value '${o}' is not a string`)}return o}))})),{});const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:P.getEndpointProperty(o,t)})),{});const getEndpointProperty=(e,t)=>{if(Array.isArray(e)){return e.map((e=>getEndpointProperty(e,t)))}switch(typeof e){case"string":return evaluateTemplate(e,t);case"object":if(e===null){throw new EndpointError(`Unexpected endpoint property: ${e}`)}return P.getEndpointProperties(e,t);case"boolean":return e;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};const P={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(e,t)=>{const n=evaluateExpression(e,"Endpoint URL",t);if(typeof n==="string"){try{return new URL(n)}catch(e){console.error(`Failed to construct URL with ${n}`,e);throw e}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};const evaluateEndpointRule=(e,t)=>{const{conditions:n,endpoint:o}=e;const{result:i,referenceRecord:a}=evaluateConditions(n,t);if(!i){return}const d={...t,referenceRecord:{...t.referenceRecord,...a}};const{url:m,properties:h,headers:C}=o;t.logger?.debug?.(`${f} Resolving endpoint from template: ${toDebugString(o)}`);return{...C!=undefined&&{headers:getEndpointHeaders(C,d)},...h!=undefined&&{properties:getEndpointProperties(h,d)},url:getEndpointUrl(m,d)}};const evaluateErrorRule=(e,t)=>{const{conditions:n,error:o}=e;const{result:i,referenceRecord:a}=evaluateConditions(n,t);if(!i){return}throw new EndpointError(evaluateExpression(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...a}}))};const evaluateRules=(e,t)=>{for(const n of e){if(n.type==="endpoint"){const e=evaluateEndpointRule(n,t);if(e){return e}}else if(n.type==="error"){evaluateErrorRule(n,t)}else if(n.type==="tree"){const e=D.evaluateTreeRule(n,t);if(e){return e}}else{throw new EndpointError(`Unknown endpoint rule: ${n}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(e,t)=>{const{conditions:n,rules:o}=e;const{result:i,referenceRecord:a}=evaluateConditions(n,t);if(!i){return}return D.evaluateRules(o,{...t,referenceRecord:{...t.referenceRecord,...a}})};const D={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(e,t)=>{const{endpointParams:n,logger:o}=t;const{parameters:i,rules:a}=e;t.logger?.debug?.(`${f} Initial EndpointParams: ${toDebugString(n)}`);const d=Object.entries(i).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(d.length>0){for(const[e,t]of d){n[e]=n[e]??t}}const m=Object.entries(i).filter((([,e])=>e.required)).map((([e])=>e));for(const e of m){if(n[e]==null){throw new EndpointError(`Missing required parameter: '${e}'`)}}const h=evaluateRules(a,{endpointParams:n,logger:o,referenceRecord:{}});t.logger?.debug?.(`${f} Resolved endpoint: ${toDebugString(h)}`);return h};t.EndpointCache=EndpointCache;t.EndpointError=EndpointError;t.customEndpointFunctions=d;t.isIpAddress=isIpAddress;t.isValidHostLabel=isValidHostLabel;t.resolveEndpoint=resolveEndpoint},7661:(e,t)=>{const n={};const o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}n[e]=t;o[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2).toLowerCase();if(i in o){t[n/2]=o[i]}else{throw new Error(`Cannot decode unrecognized sequence ${i} as hexadecimal`)}}return t}function toHex(e){let t="";for(let o=0;o<e.byteLength;o++){t+=n[e[o]]}return t}t.fromHex=fromHex;t.toHex=toHex},5496:(e,t,n)=>{var o=n(5674);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.getSmithyContext=getSmithyContext;t.normalizeProvider=normalizeProvider},2346:(e,t,n)=>{var o=n(518);t.RETRY_MODES=void 0;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(t.RETRY_MODES||(t.RETRY_MODES={}));const i=3;const a=t.RETRY_MODES.STANDARD;class DefaultRateLimiter{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=false;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7;this.minCapacity=e?.minCapacity??1;this.minFillRate=e?.minFillRate??.5;this.scaleConstant=e?.scaleConstant??.4;this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>DefaultRateLimiter.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if(o.isThrottlingError(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const d=100;const f=20*1e3;const m=500;const h=500;const C=5;const P=10;const D=1;const k="amz-sdk-invocation-id";const L="amz-sdk-request";const getDefaultRetryBackoffStrategy=()=>{let e=d;const computeNextBackoffDelay=t=>Math.floor(Math.min(f,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};const createDefaultRetryToken=({retryDelay:e,retryCount:t,retryCost:n})=>{const getRetryCount=()=>t;const getRetryDelay=()=>Math.min(f,e);const getRetryCost=()=>n;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};class StandardRetryStrategy{maxAttempts;mode=t.RETRY_MODES.STANDARD;capacity=h;retryBackoffStrategy=getDefaultRetryBackoffStrategy();maxAttemptsProvider;constructor(e){this.maxAttempts=e;this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return createDefaultRetryToken({retryDelay:d,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?m:d);const o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,o):o;const a=this.getCapacityCost(n);this.capacity-=a;return createDefaultRetryToken({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(h,this.capacity+(e.getRetryCost()??D))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${i}`);return i}}shouldRetry(e,t,n){const o=e.getRetryCount()+1;return o<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?P:C}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class AdaptiveRetryStrategy{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=t.RETRY_MODES.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new DefaultRateLimiter;this.standardRetryStrategy=new StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}class ConfiguredRetryStrategy extends StandardRetryStrategy{computeNextBackoffDelay;constructor(e,t=d){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const n=await super.refreshRetryTokenForRetry(e,t);n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount());return n}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.ConfiguredRetryStrategy=ConfiguredRetryStrategy;t.DEFAULT_MAX_ATTEMPTS=i;t.DEFAULT_RETRY_DELAY_BASE=d;t.DEFAULT_RETRY_MODE=a;t.DefaultRateLimiter=DefaultRateLimiter;t.INITIAL_RETRY_TOKENS=h;t.INVOCATION_ID_HEADER=k;t.MAXIMUM_RETRY_DELAY=f;t.NO_RETRY_INCREMENT=D;t.REQUEST_HEADER=L;t.RETRY_COST=C;t.StandardRetryStrategy=StandardRetryStrategy;t.THROTTLING_RETRY_DELAY_BASE=m;t.TIMEOUT_RETRY_COST=P},1842:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ByteArrayCollector=void 0;class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e);this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const e=this.byteArrays[0];this.reset();return e}const e=this.allocByteArray(this.byteLength);let t=0;for(let n=0;n<this.byteArrays.length;++n){const o=this.byteArrays[n];e.set(o,t);t+=o.byteLength}this.reset();return e}reset(){this.byteArrays=[];this.byteLength=0}}t.ByteArrayCollector=ByteArrayCollector},2027:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const n=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends n{}t.ChecksumStream=ChecksumStream},4893:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const o=n(3158);const i=n(2203);class ChecksumStream extends i.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:i,base64Encoder:a}){super();if(typeof n.pipe==="function"){this.source=n}else{throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}this.base64Encoder=a??o.toBase64;this.expectedChecksum=e;this.checksum=t;this.checksumSourceLocation=i;this.source.pipe(this)}_read(e){if(this.pendingCallback){const e=this.pendingCallback;this.pendingCallback=null;e()}}_write(e,t,n){try{this.checksum.update(e);const t=this.push(e);if(!t){this.pendingCallback=n;return}}catch(e){return n(e)}return n()}async _final(e){try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(t){return e(t)}this.push(null);return e()}}t.ChecksumStream=ChecksumStream},7467:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=void 0;const o=n(3158);const i=n(2588);const a=n(2027);const createChecksumStream=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:d,base64Encoder:f})=>{if(!(0,i.isReadableStream)(n)){throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}const m=f??o.toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const h=new TransformStream({start(){},async transform(e,n){t.update(e);n.enqueue(e)},async flush(n){const o=await t.digest();const i=m(o);if(e!==i){const t=new Error(`Checksum mismatch: expected "${e}" but received "${i}"`+` in response header "${d}".`);n.error(t)}else{n.terminate()}}});n.pipeThrough(h);const C=h.readable;Object.setPrototypeOf(C,a.ChecksumStream.prototype);return C};t.createChecksumStream=createChecksumStream},7453:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=createChecksumStream;const o=n(2588);const i=n(4893);const a=n(7467);function createChecksumStream(e){if(typeof ReadableStream==="function"&&(0,o.isReadableStream)(e.source)){return(0,a.createChecksumStream)(e)}return new i.ChecksumStream(e)}},8771:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=createBufferedReadable;const o=n(7075);const i=n(1842);const a=n(9059);const d=n(2588);function createBufferedReadable(e,t,n){if((0,d.isReadableStream)(e)){return(0,a.createBufferedReadableStream)(e,t,n)}const f=new o.Readable({read(){}});let m=false;let h=0;const C=["",new i.ByteArrayCollector((e=>new Uint8Array(e))),new i.ByteArrayCollector((e=>Buffer.from(new Uint8Array(e))))];let P=-1;e.on("data",(e=>{const o=(0,a.modeOf)(e,true);if(P!==o){if(P>=0){f.push((0,a.flush)(C,P))}P=o}if(P===-1){f.push(e);return}const i=(0,a.sizeOf)(e);h+=i;const d=(0,a.sizeOf)(C[P]);if(i>=t&&d===0){f.push(e)}else{const o=(0,a.merge)(C,P,e);if(!m&&h>t*2){m=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){f.push((0,a.flush)(C,P))}}}));e.on("end",(()=>{if(P!==-1){const e=(0,a.flush)(C,P);if((0,a.sizeOf)(e)>0){f.push(e)}}f.push(null)}));return f}},9059:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=void 0;t.createBufferedReadableStream=createBufferedReadableStream;t.merge=merge;t.flush=flush;t.sizeOf=sizeOf;t.modeOf=modeOf;const o=n(1842);function createBufferedReadableStream(e,t,n){const i=e.getReader();let a=false;let d=0;const f=["",new o.ByteArrayCollector((e=>new Uint8Array(e)))];let m=-1;const pull=async e=>{const{value:o,done:h}=await i.read();const C=o;if(h){if(m!==-1){const t=flush(f,m);if(sizeOf(t)>0){e.enqueue(t)}}e.close()}else{const o=modeOf(C,false);if(m!==o){if(m>=0){e.enqueue(flush(f,m))}m=o}if(m===-1){e.enqueue(C);return}const i=sizeOf(C);d+=i;const h=sizeOf(f[m]);if(i>=t&&h===0){e.enqueue(C)}else{const o=merge(f,m,C);if(!a&&d>t*2){a=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){e.enqueue(flush(f,m))}else{await pull(e)}}}};return new ReadableStream({pull:pull})}t.createBufferedReadable=createBufferedReadableStream;function merge(e,t,n){switch(t){case 0:e[0]+=n;return sizeOf(e[0]);case 1:case 2:e[t].push(n);return sizeOf(e[t])}}function flush(e,t){switch(t){case 0:const n=e[0];e[0]="";return n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function sizeOf(e){return e?.byteLength??e?.length??0}function modeOf(e,t=true){if(t&&typeof Buffer!=="undefined"&&e instanceof Buffer){return 2}if(e instanceof Uint8Array){return 1}if(typeof e==="string"){return 0}return-1}},470:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=void 0;const getAwsChunkedEncodingStream=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:o,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:d}=t;const f=n!==undefined&&o!==undefined&&i!==undefined&&a!==undefined&&d!==undefined;const m=f?d(i,e):undefined;const h=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:i}=await h.read();if(i){e.enqueue(`0\r\n`);if(f){const t=n(await m);e.enqueue(`${a}:${t}\r\n`);e.enqueue(`\r\n`)}e.close()}else{e.enqueue(`${(o(t)||0).toString(16)}\r\n${t}\r\n`)}}})};t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},7872:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;const o=n(7075);const i=n(470);const a=n(2588);function getAwsChunkedEncodingStream(e,t){const n=e;const d=e;if((0,a.isReadableStream)(d)){return(0,i.getAwsChunkedEncodingStream)(d,t)}const{base64Encoder:f,bodyLengthChecker:m,checksumAlgorithmFn:h,checksumLocationName:C,streamHasher:P}=t;const D=f!==undefined&&h!==undefined&&C!==undefined&&P!==undefined;const k=D?P(h,n):undefined;const L=new o.Readable({read:()=>{}});n.on("data",(e=>{const t=m(e)||0;if(t===0){return}L.push(`${t.toString(16)}\r\n`);L.push(e);L.push("\r\n")}));n.on("end",(async()=>{L.push(`0\r\n`);if(D){const e=f(await k);L.push(`${C}:${e}\r\n`);L.push(`\r\n`)}L.push(null)}));return L}},1748:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=headStream;async function headStream(e,t){let n=0;const o=[];const i=e.getReader();let a=false;while(!a){const{done:e,value:d}=await i.read();if(d){o.push(d);n+=d?.byteLength??0}if(n>=t){break}a=e}i.releaseLock();const d=new Uint8Array(Math.min(t,n));let f=0;for(const e of o){if(e.byteLength>d.byteLength-f){d.set(e.subarray(0,d.byteLength-f),f);break}else{d.set(e,f)}f+=e.length}return d}},5450:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=void 0;const o=n(2203);const i=n(1748);const a=n(2588);const headStream=(e,t)=>{if((0,a.isReadableStream)(e)){return(0,i.headStream)(e,t)}return new Promise(((n,o)=>{const i=new Collector;i.limit=t;e.pipe(i);e.on("error",(e=>{i.end();o(e)}));i.on("error",o);i.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.buffers));n(e)}))}))};t.headStream=headStream;class Collector extends o.Writable{buffers=[];limit=Infinity;bytesBuffered=0;_write(e,t,n){this.buffers.push(e);this.bytesBuffered+=e.byteLength??0;if(this.bytesBuffered>=this.limit){const e=this.bytesBuffered-this.limit;const t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e);this.emit("finish")}n()}}},6442:(e,t,n)=>{var o=n(3158);var i=n(8165);var a=n(4893);var d=n(7453);var f=n(8771);var m=n(7872);var h=n(5450);var C=n(7299);var P=n(2018);var D=n(2588);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,t="utf-8"){if(typeof e==="string"){if(t==="base64"){return Uint8ArrayBlobAdapter.mutate(o.fromBase64(e))}return Uint8ArrayBlobAdapter.mutate(i.fromUtf8(e))}throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){if(e==="base64"){return o.toBase64(this)}return i.toUtf8(this)}}t.isBlob=D.isBlob;t.isReadableStream=D.isReadableStream;t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:a["__proto__"]});Object.keys(a).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=a[e]}));Object.prototype.hasOwnProperty.call(d,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:d["__proto__"]});Object.keys(d).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=d[e]}));Object.prototype.hasOwnProperty.call(f,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:f["__proto__"]});Object.keys(f).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=f[e]}));Object.prototype.hasOwnProperty.call(m,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:m["__proto__"]});Object.keys(m).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=m[e]}));Object.prototype.hasOwnProperty.call(h,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:h["__proto__"]});Object.keys(h).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=h[e]}));Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=C[e]}));Object.prototype.hasOwnProperty.call(P,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:P["__proto__"]});Object.keys(P).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=P[e]}))},3773:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(3103);const i=n(3158);const a=n(7661);const d=n(8165);const f=n(2588);const m="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!isBlobInstance(e)&&!(0,f.isReadableStream)(e)){const t=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(m)}t=true;return await(0,o.streamCollector)(e)};const blobToWebStream=e=>{if(typeof e.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return e.stream()};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e==="base64"){return(0,i.toBase64)(t)}else if(e==="hex"){return(0,a.toHex)(t)}else if(e===undefined||e==="utf8"||e==="utf-8"){return(0,d.toUtf8)(t)}else if(typeof TextDecoder==="function"){return new TextDecoder(e).decode(t)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(t){throw new Error(m)}t=true;if(isBlobInstance(e)){return blobToWebStream(e)}else if((0,f.isReadableStream)(e)){return e}else{throw new Error(`Cannot transform payload to web stream, got ${e}`)}}})};t.sdkStreamMixin=sdkStreamMixin;const isBlobInstance=e=>typeof Blob==="function"&&e instanceof Blob},7299:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(5422);const i=n(1643);const a=n(2203);const d=n(3773);const f="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!(e instanceof a.Readable)){try{return(0,d.sdkStreamMixin)(e)}catch(t){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(f)}t=true;return await(0,o.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,i.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const n=new TextDecoder(e);return n.decode(t)}},transformToWebStream:()=>{if(t){throw new Error(f)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof a.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}t=true;return a.Readable.toWeb(e)}})};t.sdkStreamMixin=sdkStreamMixin},5692:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;async function splitStream(e){if(typeof e.stream==="function"){e=e.stream()}const t=e;return t.tee()}},2018:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;const o=n(2203);const i=n(5692);const a=n(2588);async function splitStream(e){if((0,a.isReadableStream)(e)||(0,a.isBlob)(e)){return(0,i.splitStream)(e)}const t=new o.PassThrough;const n=new o.PassThrough;e.pipe(t);e.pipe(n);return[t,n]}},2588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isBlob=t.isReadableStream=void 0;const isReadableStream=e=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);t.isReadableStream=isReadableStream;const isBlob=e=>typeof Blob==="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);t.isBlob=isBlob},7015:(e,t)=>{const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=e=>e.split("/").map(escapeUri).join("/");t.escapeUri=escapeUri;t.escapeUriPath=escapeUriPath},8165:(e,t,n)=>{var o=n(1643);const fromUtf8=e=>{const t=o.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toUint8Array=e=>{if(typeof e==="string"){return fromUtf8(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};const toUtf8=e=>{if(typeof e==="string"){return e}if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};t.fromUtf8=fromUtf8;t.toUint8Array=toUint8Array;t.toUtf8=toUtf8},419:(e,t)=>{const getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if(typeof n==="object"&&n!==null){if(e.has(n)){return"[Circular]"}e.add(n)}return n}};const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));const n={minDelay:2,maxDelay:120};t.WaiterState=void 0;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===t.WaiterState.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},getCircularReplacer())}`);t.name="AbortError";throw t}else if(e.state===t.WaiterState.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},getCircularReplacer())}`);t.name="TimeoutError";throw t}else if(e.state!==t.WaiterState.SUCCESS){throw new Error(`${JSON.stringify(e,getCircularReplacer())}`)}return e};const exponentialBackoffWithJitter=(e,t,n,o)=>{if(o>n)return t;const i=e*2**(o-1);return randomInRange(e,i)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:n,maxWaitTime:o,abortController:i,client:a,abortSignal:d},f,m)=>{const h={};const{state:C,reason:P}=await m(a,f);if(P){const e=createMessageFromResponse(P);h[e]|=0;h[e]+=1}if(C!==t.WaiterState.RETRY){return{state:C,reason:P,observedResponses:h}}let D=1;const k=Date.now()+o*1e3;const L=Math.log(n/e)/Math.log(2)+1;while(true){if(i?.signal?.aborted||d?.aborted){const e="AbortController signal aborted.";h[e]|=0;h[e]+=1;return{state:t.WaiterState.ABORTED,observedResponses:h}}const o=exponentialBackoffWithJitter(e,n,L,D);if(Date.now()+o*1e3>k){return{state:t.WaiterState.TIMEOUT,observedResponses:h}}await sleep(o);const{state:C,reason:P}=await m(a,f);if(P){const e=createMessageFromResponse(P);h[e]|=0;h[e]+=1}if(C!==t.WaiterState.RETRY){return{state:C,reason:P,observedResponses:h}}D+=1}};const createMessageFromResponse=e=>{if(e?.$responseBodyText){return`Deserialization error for body: ${e.$responseBodyText}`}if(e?.$metadata?.httpStatusCode){if(e.$response||e.message){return`${e.$response?.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`}return`${e.$metadata.httpStatusCode}: OK`}return String(e?.message??JSON.stringify(e,getCircularReplacer())??"Unknown")};const validateWaiterOptions=e=>{if(e.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};const abortTimeout=e=>{let n;const o=new Promise((o=>{n=()=>o({state:t.WaiterState.ABORTED});if(typeof e.addEventListener==="function"){e.addEventListener("abort",n)}else{e.onabort=n}}));return{clearListener(){if(typeof e.removeEventListener==="function"){e.removeEventListener("abort",n)}},aborted:o}};const createWaiter=async(e,t,o)=>{const i={...n,...e};validateWaiterOptions(i);const a=[runPolling(i,t,o)];const d=[];if(e.abortSignal){const{aborted:t,clearListener:n}=abortTimeout(e.abortSignal);d.push(n);a.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:n}=abortTimeout(e.abortController.signal);d.push(n);a.push(t)}return Promise.race(a).then((e=>{for(const e of d){e()}return e}))};t.checkExceptions=checkExceptions;t.createWaiter=createWaiter;t.waiterServiceDefaults=n},8525:(e,t,n)=>{var o=n(7177);const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const v4=()=>{if(o.randomUUID){return o.randomUUID()}const e=new Uint8Array(16);crypto.getRandomValues(e);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return i[e[0]]+i[e[1]]+i[e[2]]+i[e[3]]+"-"+i[e[4]]+i[e[5]]+"-"+i[e[6]]+i[e[7]]+"-"+i[e[8]]+i[e[9]]+"-"+i[e[10]]+i[e[11]]+i[e[12]]+i[e[13]]+i[e[14]]+i[e[15]]};t.v4=v4},7177:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=void 0;const o=n(7892);const i=o.__importDefault(n(6982));t.randomUUID=i.default.randomUUID.bind(i.default)},4455:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const d=a(n(8611));const f=a(n(3311));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?f:d).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},646:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=a(n(9278));const m=a(n(8611));const h=n(3311);d(n(4455),t);const C=Symbol("AgentBaseInternalState");class Agent extends m.Agent{constructor(e){super(e);this[C]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new f.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return h.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const a=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((d=>{this.decrementSockets(i,a);if(d instanceof m.Agent){try{return d.addRequest(e,o)}catch(e){return n(e)}}this[C].currentSocket=d;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,a);n(e)}))}createConnection(){const e=this[C].currentSocket;this[C].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[C].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[C]){this[C].defaultPort=e}}get protocol(){return this[C].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[C]){this[C].protocol=e}}}t.Agent=Agent},715:(e,t,n)=>{var o=n(181).Buffer;var i=n(181).SlowBuffer;e.exports=bufferEq;function bufferEq(e,t){if(!o.isBuffer(e)||!o.isBuffer(t)){return false}if(e.length!==t.length){return false}var n=0;for(var i=0;i<e.length;i++){n|=e[i]^t[i]}return n===0}bufferEq.install=function(){o.prototype.equal=i.prototype.equal=function equal(e){return bufferEq(this,e)}};var a=o.prototype.equal;var d=i.prototype.equal;bufferEq.restore=function(){o.prototype.equal=a;i.prototype.equal=d}},7451:(e,t,n)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){i=o}}));t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(3350)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3350:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(6647);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let n=null;let o;let i;function debug(...e){if(!debug.enabled){return}const n=debug;const o=Number(new Date);const i=o-(t||o);n.diff=i;n.prev=t;n.curr=o;t=o;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,o)=>{if(t==="%%"){return"%"}a++;const i=createDebug.formatters[o];if(typeof i==="function"){const o=e[a];t=i.call(n,o);e.splice(a,1);a--}return t}));createDebug.formatArgs.call(n,e);const d=n.log||createDebug.log;d.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let n=0;let o=0;let i=-1;let a=0;while(n<e.length){if(o<t.length&&(t[o]===e[n]||t[o]==="*")){if(t[o]==="*"){i=o;a=n;o++}else{n++;o++}}else if(i!==-1){o=i+1;a++;n=a}else{return false}}while(o<t.length&&t[o]==="*"){o++}return o===t.length}function disable(){const e=[...createDebug.names,...createDebug.skips.map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},8263:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(7451)}else{e.exports=n(6423)}},6423:(e,t,n)=>{const o=n(9637);const i=n(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(6708);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const i="[3"+(o<8?o:"8;5;"+o);const a=` ${i};1m${n} `;t[0]=a+t[0].split("\n").join("\n"+a);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;o<n.length;o++){e.inspectOpts[n[o]]=t.inspectOpts[n[o]]}}e.exports=n(3350)(t);const{formatters:a}=e.exports;a.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},8358:(e,t,n)=>{const o=n(9896);const i=n(6928);const a=n(857);const d=n(6982);const f=n(9886);const m=f.version;const h=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","🤖 agentic secret storage: https://dotenvx.com/as2","⚡️ secrets for agents: https://dotenvx.com/as2","🛡️ auth for agents: https://vestauth.com","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function _getRandomTip(){return h[Math.floor(Math.random()*h.length)]}function parseBoolean(e){if(typeof e==="string"){return!["false","0","no","off",""].includes(e.toLowerCase())}return Boolean(e)}function supportsAnsi(){return process.stdout.isTTY}function dim(e){return supportsAnsi()?`${e}`:e}const C=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let n=e.toString();n=n.replace(/\r\n?/gm,"\n");let o;while((o=C.exec(n))!=null){const e=o[1];let n=o[2]||"";n=n.trim();const i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(i==='"'){n=n.replace(/\\n/g,"\n");n=n.replace(/\\r/g,"\r")}t[e]=n}return t}function _parseVault(e){e=e||{};const t=_vaultPath(e);e.path=t;const n=P.configDotenv(e);if(!n.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const o=_dotenvKey(e).split(",");const i=o.length;let a;for(let e=0;e<i;e++){try{const t=o[e].trim();const i=_instructions(n,t);a=P.decrypt(i.ciphertext,i.key);break}catch(t){if(e+1>=i){throw t}}}return P.parse(a)}function _warn(e){console.error(`[dotenv@${m}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${m}][DEBUG] ${e}`)}function _log(e){console.log(`[dotenv@${m}] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let n;try{n=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const o=n.password;if(!o){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const i=n.searchParams.get("environment");if(!i){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const a=`DOTENV_VAULT_${i.toUpperCase()}`;const d=e.parsed[a];if(!d){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:d,key:o}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const n of e.path){if(o.existsSync(n)){t=n.endsWith(".vault")?n:`${n}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=i.resolve(process.cwd(),".env.vault")}if(o.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?i.join(a.homedir(),e.slice(1)):e}function _configVault(e){const t=parseBoolean(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug);const n=parseBoolean(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);if(t||!n){_log("Loading env from encrypted .env.vault")}const o=P._parseVault(e);let i=process.env;if(e&&e.processEnv!=null){i=e.processEnv}P.populate(i,o,e);return{parsed:o}}function configDotenv(e){const t=i.resolve(process.cwd(),".env");let n="utf8";let a=process.env;if(e&&e.processEnv!=null){a=e.processEnv}let d=parseBoolean(a.DOTENV_CONFIG_DEBUG||e&&e.debug);let f=parseBoolean(a.DOTENV_CONFIG_QUIET||e&&e.quiet);if(e&&e.encoding){n=e.encoding}else{if(d){_debug("No encoding is specified. UTF-8 is used by default")}}let m=[t];if(e&&e.path){if(!Array.isArray(e.path)){m=[_resolveHome(e.path)]}else{m=[];for(const t of e.path){m.push(_resolveHome(t))}}}let h;const C={};for(const t of m){try{const i=P.parse(o.readFileSync(t,{encoding:n}));P.populate(C,i,e)}catch(e){if(d){_debug(`Failed to load ${t} ${e.message}`)}h=e}}const D=P.populate(a,C,e);d=parseBoolean(a.DOTENV_CONFIG_DEBUG||d);f=parseBoolean(a.DOTENV_CONFIG_QUIET||f);if(d||!f){const e=Object.keys(D).length;const t=[];for(const e of m){try{const n=i.relative(process.cwd(),e);t.push(n)}catch(t){if(d){_debug(`Failed to load ${e} ${t.message}`)}h=t}}_log(`injecting env (${e}) from ${t.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`)}if(h){return{parsed:C,error:h}}else{return{parsed:C}}}function config(e){if(_dotenvKey(e).length===0){return P.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return P.configDotenv(e)}return P._configVault(e)}function decrypt(e,t){const n=Buffer.from(t.slice(-64),"hex");let o=Buffer.from(e,"base64");const i=o.subarray(0,12);const a=o.subarray(-16);o=o.subarray(12,-16);try{const e=d.createDecipheriv("aes-256-gcm",n,i);e.setAuthTag(a);return`${e.update(o)}${e.final()}`}catch(e){const t=e instanceof RangeError;const n=e.message==="Invalid key length";const o=e.message==="Unsupported state or unable to authenticate data";if(t||n){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(o){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,n={}){const o=Boolean(n&&n.debug);const i=Boolean(n&&n.override);const a={};if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const n of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,n)){if(i===true){e[n]=t[n];a[n]=t[n]}if(o){if(i===true){_debug(`"${n}" is already defined and WAS overwritten`)}else{_debug(`"${n}" is already defined and was NOT overwritten`)}}}else{e[n]=t[n];a[n]=t[n]}}return a}const P={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=P.configDotenv;e.exports._configVault=P._configVault;e.exports._parseVault=P._parseVault;e.exports.config=P.config;e.exports.decrypt=P.decrypt;e.exports.parse=P.parse;e.exports.populate=P.populate;e.exports=P},1454:(e,t,n)=>{var o=n(5249).Buffer;var i=n(883);var a=128,d=0,f=32,m=16,h=2,C=m|f|d<<6,P=h|d<<6;function base64Url(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function signatureAsBuffer(e){if(o.isBuffer(e)){return e}else if("string"===typeof e){return o.from(e,"base64")}throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function derToJose(e,t){e=signatureAsBuffer(e);var n=i(t);var d=n+1;var f=e.length;var m=0;if(e[m++]!==C){throw new Error('Could not find expected "seq"')}var h=e[m++];if(h===(a|1)){h=e[m++]}if(f-m<h){throw new Error('"seq" specified length of "'+h+'", only "'+(f-m)+'" remaining')}if(e[m++]!==P){throw new Error('Could not find expected "int" for "r"')}var D=e[m++];if(f-m-2<D){throw new Error('"r" specified length of "'+D+'", only "'+(f-m-2)+'" available')}if(d<D){throw new Error('"r" specified length of "'+D+'", max of "'+d+'" is acceptable')}var k=m;m+=D;if(e[m++]!==P){throw new Error('Could not find expected "int" for "s"')}var L=e[m++];if(f-m!==L){throw new Error('"s" specified length of "'+L+'", expected "'+(f-m)+'"')}if(d<L){throw new Error('"s" specified length of "'+L+'", max of "'+d+'" is acceptable')}var F=m;m+=L;if(m!==f){throw new Error('Expected to consume entire buffer, but "'+(f-m)+'" bytes remain')}var q=n-D,V=n-L;var ee=o.allocUnsafe(q+D+V+L);for(m=0;m<q;++m){ee[m]=0}e.copy(ee,m,k+Math.max(-q,0),k+D);m=n;for(var te=m;m<te+V;++m){ee[m]=0}e.copy(ee,m,F+Math.max(-V,0),F+L);ee=ee.toString("base64");ee=base64Url(ee);return ee}function countPadding(e,t,n){var o=0;while(t+o<n&&e[t+o]===0){++o}var i=e[t+o]>=a;if(i){--o}return o}function joseToDer(e,t){e=signatureAsBuffer(e);var n=i(t);var d=e.length;if(d!==n*2){throw new TypeError('"'+t+'" signatures must be "'+n*2+'" bytes, saw "'+d+'"')}var f=countPadding(e,0,n);var m=countPadding(e,n,e.length);var h=n-f;var D=n-m;var k=1+1+h+1+1+D;var L=k<a;var F=o.allocUnsafe((L?2:3)+k);var q=0;F[q++]=C;if(L){F[q++]=k}else{F[q++]=a|1;F[q++]=k&255}F[q++]=P;F[q++]=h;if(f<0){F[q++]=0;q+=e.copy(F,q,0,n)}else{q+=e.copy(F,q,f,n)}F[q++]=P;F[q++]=D;if(m<0){F[q++]=0;e.copy(F,q,n)}else{e.copy(F,q,n+m)}return F}e.exports={derToJose:derToJose,joseToDer:joseToDer}},883:e=>{function getParamSize(e){var t=(e/8|0)+(e%8===0?0:1);return t}var t={ES256:getParamSize(256),ES384:getParamSize(384),ES512:getParamSize(521)};function getParamBytesForAlg(e){var n=t[e];if(n){return n}throw new Error('Unknown algorithm "'+e+'"')}e.exports=getParamBytesForAlg},7435:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const i=t.indexOf("--");return o!==-1&&(i===-1||o<i)}},4249:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpProxyAgent=void 0;const f=a(n(9278));const m=a(n(4756));const h=d(n(8263));const C=n(4434);const P=n(646);const D=n(4635);const k=(0,h.default)("http-proxy-agent");class HttpProxyAgent extends P.Agent{constructor(e,t){super(t);this.proxy=typeof e==="string"?new D.URL(e):e;this.proxyHeaders=t?.headers??{};k("Creating new HttpProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...t?omit(t,"headers"):null,host:n,port:o}}addRequest(e,t){e._header=null;this.setRequestProps(e,t);super.addRequest(e,t)}setRequestProps(e,t){const{proxy:n}=this;const o=t.secureEndpoint?"https:":"http:";const i=e.getHeader("host")||"localhost";const a=`${o}//${i}`;const d=new D.URL(e.path,a);if(t.port!==80){d.port=String(t.port)}e.path=String(d);const f=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;f["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!f["Proxy-Connection"]){f["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const t of Object.keys(f)){const n=f[t];if(n){e.setHeader(t,n)}}}async connect(e,t){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,t)}let n;let o;k("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){k("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);k("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){k("Creating `tls.Socket`: %o",this.connectOpts);i=m.connect(this.connectOpts)}else{k("Creating `net.Socket`: %o",this.connectOpts);i=f.connect(this.connectOpts)}await(0,C.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},1475:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const f=a(n(9278));const m=a(n(4756));const h=d(n(2613));const C=d(n(8263));const P=n(646);const D=n(4635);const k=n(625);const L=(0,C.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!f.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends P.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new D.URL(e):e;this.proxyHeaders=t?.headers??{};L("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){L("Creating `tls.Socket`: %o",this.connectOpts);o=m.connect(setServernameFromNonIpHost(this.connectOpts))}else{L("Creating `net.Socket`: %o",this.connectOpts);o=f.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const a=f.isIPv6(t.host)?`[${t.host}]`:t.host;let d=`CONNECT ${a}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${a}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){d+=`${e}: ${i[e]}\r\n`}const C=(0,k.parseProxyResponse)(o);o.write(`${d}\r\n`);const{connect:P,buffered:D}=await C;e.emit("proxyConnect",P);this.emit("proxyConnect",P,e);if(P.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){L("Upgrading socket connection to TLS");return m.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const F=new f.Socket({writable:false});F.readable=true;e.once("socket",(e=>{L("Replaying proxy buffer for failed request");(0,h.default)(e.listenerCount("data")>0);e.push(D);e.push(null)}));return F}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},625:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const i=o(n(8263));const a=(0,i.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();a("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();a("onerror %o",e);n(e)}function ondata(d){i.push(d);o+=d.length;const f=Buffer.concat(i,o);const m=f.indexOf("\r\n\r\n");if(m===-1){a("have not received end of HTTP headers yet...");read();return}const h=f.slice(0,m).toString("ascii").split("\r\n");const C=h.shift();if(!C){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const P=C.split(" ");const D=+P[1];const k=P.slice(2).join(" ");const L={};for(const t of h){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const a=t.slice(o+1).trimStart();const d=L[i];if(typeof d==="string"){L[i]=[d,a]}else if(Array.isArray(d)){d.push(a)}else{L[i]=a}}a("got proxy server response: %o %o",C,L);cleanup();t({connect:{statusCode:D,statusText:k,headers:L},buffered:f})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},3499:(e,t,n)=>{var o=n(3922);e.exports=function(e,t){t=t||{};var n=o.decode(e,t);if(!n){return null}var i=n.payload;if(typeof i==="string"){try{var a=JSON.parse(i);if(a!==null&&typeof a==="object"){i=a}}catch(e){}}if(t.complete===true){return{header:n.header,payload:i,signature:n.signature}}return i}},8457:(e,t,n)=>{e.exports={decode:n(3499),verify:n(5728),sign:n(8724),JsonWebTokenError:n(1892),NotBeforeError:n(4817),TokenExpiredError:n(8013)}},1892:e=>{var JsonWebTokenError=function(e,t){Error.call(this,e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="JsonWebTokenError";this.message=e;if(t)this.inner=t};JsonWebTokenError.prototype=Object.create(Error.prototype);JsonWebTokenError.prototype.constructor=JsonWebTokenError;e.exports=JsonWebTokenError},4817:(e,t,n)=>{var o=n(1892);var NotBeforeError=function(e,t){o.call(this,e);this.name="NotBeforeError";this.date=t};NotBeforeError.prototype=Object.create(o.prototype);NotBeforeError.prototype.constructor=NotBeforeError;e.exports=NotBeforeError},8013:(e,t,n)=>{var o=n(1892);var TokenExpiredError=function(e,t){o.call(this,e);this.name="TokenExpiredError";this.expiredAt=t};TokenExpiredError.prototype=Object.create(o.prototype);TokenExpiredError.prototype.constructor=TokenExpiredError;e.exports=TokenExpiredError},6988:(e,t,n)=>{const o=n(9419);e.exports=o.satisfies(process.version,">=15.7.0")},1344:(e,t,n)=>{var o=n(9419);e.exports=o.satisfies(process.version,"^6.12.0 || >=8.0.0")},8821:(e,t,n)=>{const o=n(9419);e.exports=o.satisfies(process.version,">=16.9.0")},2692:(e,t,n)=>{var o=n(6647);e.exports=function(e,t){var n=t||Math.floor(Date.now()/1e3);if(typeof e==="string"){var i=o(e);if(typeof i==="undefined"){return}return Math.floor(n+i/1e3)}else if(typeof e==="number"){return n+e}else{return}}},3578:(e,t,n)=>{const o=n(6988);const i=n(8821);const a={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]};const d={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,t){if(!e||!t)return;const n=t.asymmetricKeyType;if(!n)return;const f=a[n];if(!f){throw new Error(`Unknown key type "${n}".`)}if(!f.includes(e)){throw new Error(`"alg" parameter for "${n}" key type must be one of: ${f.join(", ")}.`)}if(o){switch(n){case"ec":const n=t.asymmetricKeyDetails.namedCurve;const o=d[e];if(n!==o){throw new Error(`"alg" parameter "${e}" requires curve "${o}".`)}break;case"rsa-pss":if(i){const n=parseInt(e.slice(-3),10);const{hashAlgorithm:o,mgf1HashAlgorithm:i,saltLength:a}=t.asymmetricKeyDetails;if(o!==`sha${n}`||i!==o){throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`)}if(a!==undefined&&a>n>>3){throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}break}}}},8724:(e,t,n)=>{const o=n(2692);const i=n(1344);const a=n(3578);const d=n(3922);const f=n(5252);const m=n(2771);const h=n(4367);const C=n(5011);const P=n(5341);const D=n(5250);const k=n(3839);const{KeyObject:L,createSecretKey:F,createPrivateKey:q}=n(6982);const V=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];if(i){V.splice(3,0,"PS256","PS384","PS512")}const ee={expiresIn:{isValid:function(e){return h(e)||D(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return h(e)||D(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return D(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:f.bind(null,V),message:'"algorithm" must be a valid string enum value'},header:{isValid:P,message:'"header" must be an object'},encoding:{isValid:D,message:'"encoding" must be a string'},issuer:{isValid:D,message:'"issuer" must be a string'},subject:{isValid:D,message:'"subject" must be a string'},jwtid:{isValid:D,message:'"jwtid" must be a string'},noTimestamp:{isValid:m,message:'"noTimestamp" must be a boolean'},keyid:{isValid:D,message:'"keyid" must be a string'},mutatePayload:{isValid:m,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:m,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:m,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}};const te={iat:{isValid:C,message:'"iat" should be a number of seconds'},exp:{isValid:C,message:'"exp" should be a number of seconds'},nbf:{isValid:C,message:'"nbf" should be a number of seconds'}};function validate(e,t,n,o){if(!P(n)){throw new Error('Expected "'+o+'" to be a plain object.')}Object.keys(n).forEach((function(i){const a=e[i];if(!a){if(!t){throw new Error('"'+i+'" is not allowed in "'+o+'"')}return}if(!a.isValid(n[i])){throw new Error(a.message)}}))}function validateOptions(e){return validate(ee,false,e,"options")}function validatePayload(e){return validate(te,true,e,"payload")}const ne={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"};const re=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];e.exports=function(e,t,n,i){if(typeof n==="function"){i=n;n={}}else{n=n||{}}const f=typeof e==="object"&&!Buffer.isBuffer(e);const m=Object.assign({alg:n.algorithm||"HS256",typ:f?"JWT":undefined,kid:n.keyid},n.header);function failure(e){if(i){return i(e)}throw e}if(!t&&n.algorithm!=="none"){return failure(new Error("secretOrPrivateKey must have a value"))}if(t!=null&&!(t instanceof L)){try{t=q(t)}catch(e){try{t=F(typeof t==="string"?Buffer.from(t):t)}catch(e){return failure(new Error("secretOrPrivateKey is not valid key material"))}}}if(m.alg.startsWith("HS")&&t.type!=="secret"){return failure(new Error(`secretOrPrivateKey must be a symmetric key when using ${m.alg}`))}else if(/^(?:RS|PS|ES)/.test(m.alg)){if(t.type!=="private"){return failure(new Error(`secretOrPrivateKey must be an asymmetric key when using ${m.alg}`))}if(!n.allowInsecureKeySizes&&!m.alg.startsWith("ES")&&t.asymmetricKeyDetails!==undefined&&t.asymmetricKeyDetails.modulusLength<2048){return failure(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${m.alg}`))}}if(typeof e==="undefined"){return failure(new Error("payload is required"))}else if(f){try{validatePayload(e)}catch(e){return failure(e)}if(!n.mutatePayload){e=Object.assign({},e)}}else{const t=re.filter((function(e){return typeof n[e]!=="undefined"}));if(t.length>0){return failure(new Error("invalid "+t.join(",")+" option for "+typeof e+" payload"))}}if(typeof e.exp!=="undefined"&&typeof n.expiresIn!=="undefined"){return failure(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'))}if(typeof e.nbf!=="undefined"&&typeof n.notBefore!=="undefined"){return failure(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'))}try{validateOptions(n)}catch(e){return failure(e)}if(!n.allowInvalidAsymmetricKeyTypes){try{a(m.alg,t)}catch(e){return failure(e)}}const h=e.iat||Math.floor(Date.now()/1e3);if(n.noTimestamp){delete e.iat}else if(f){e.iat=h}if(typeof n.notBefore!=="undefined"){try{e.nbf=o(n.notBefore,h)}catch(e){return failure(e)}if(typeof e.nbf==="undefined"){return failure(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}}if(typeof n.expiresIn!=="undefined"&&typeof e==="object"){try{e.exp=o(n.expiresIn,h)}catch(e){return failure(e)}if(typeof e.exp==="undefined"){return failure(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}}Object.keys(ne).forEach((function(t){const o=ne[t];if(typeof n[t]!=="undefined"){if(typeof e[o]!=="undefined"){return failure(new Error('Bad "options.'+t+'" option. The payload already has an "'+o+'" property.'))}e[o]=n[t]}}));const C=n.encoding||"utf8";if(typeof i==="function"){i=i&&k(i);d.createSign({header:m,privateKey:t,payload:e,encoding:C}).once("error",i).once("done",(function(e){if(!n.allowInsecureKeySizes&&/^(?:RS|PS)/.test(m.alg)&&e.length<256){return i(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${m.alg}`))}i(null,e)}))}else{let o=d.sign({header:m,payload:e,secret:t,encoding:C});if(!n.allowInsecureKeySizes&&/^(?:RS|PS)/.test(m.alg)&&o.length<256){throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${m.alg}`)}return o}}},5728:(e,t,n)=>{const o=n(1892);const i=n(4817);const a=n(8013);const d=n(3499);const f=n(2692);const m=n(3578);const h=n(1344);const C=n(3922);const{KeyObject:P,createSecretKey:D,createPublicKey:k}=n(6982);const L=["RS256","RS384","RS512"];const F=["ES256","ES384","ES512"];const q=["RS256","RS384","RS512"];const V=["HS256","HS384","HS512"];if(h){L.splice(L.length,0,"PS256","PS384","PS512");q.splice(q.length,0,"PS256","PS384","PS512")}e.exports=function(e,t,n,h){if(typeof n==="function"&&!h){h=n;n={}}if(!n){n={}}n=Object.assign({},n);let ee;if(h){ee=h}else{ee=function(e,t){if(e)throw e;return t}}if(n.clockTimestamp&&typeof n.clockTimestamp!=="number"){return ee(new o("clockTimestamp must be a number"))}if(n.nonce!==undefined&&(typeof n.nonce!=="string"||n.nonce.trim()==="")){return ee(new o("nonce must be a non-empty string"))}if(n.allowInvalidAsymmetricKeyTypes!==undefined&&typeof n.allowInvalidAsymmetricKeyTypes!=="boolean"){return ee(new o("allowInvalidAsymmetricKeyTypes must be a boolean"))}const te=n.clockTimestamp||Math.floor(Date.now()/1e3);if(!e){return ee(new o("jwt must be provided"))}if(typeof e!=="string"){return ee(new o("jwt must be a string"))}const ne=e.split(".");if(ne.length!==3){return ee(new o("jwt malformed"))}let re;try{re=d(e,{complete:true})}catch(e){return ee(e)}if(!re){return ee(new o("invalid token"))}const oe=re.header;let ie;if(typeof t==="function"){if(!h){return ee(new o("verify must be called asynchronous if secret or public key is provided as a callback"))}ie=t}else{ie=function(e,n){return n(null,t)}}return ie(oe,(function(t,d){if(t){return ee(new o("error in secret or public key callback: "+t.message))}const h=ne[2].trim()!=="";if(!h&&d){return ee(new o("jwt signature is required"))}if(h&&!d){return ee(new o("secret or public key must be provided"))}if(!h&&!n.algorithms){return ee(new o('please specify "none" in "algorithms" to verify unsigned tokens'))}if(d!=null&&!(d instanceof P)){try{d=k(d)}catch(e){try{d=D(typeof d==="string"?Buffer.from(d):d)}catch(e){return ee(new o("secretOrPublicKey is not valid key material"))}}}if(!n.algorithms){if(d.type==="secret"){n.algorithms=V}else if(["rsa","rsa-pss"].includes(d.asymmetricKeyType)){n.algorithms=q}else if(d.asymmetricKeyType==="ec"){n.algorithms=F}else{n.algorithms=L}}if(n.algorithms.indexOf(re.header.alg)===-1){return ee(new o("invalid algorithm"))}if(oe.alg.startsWith("HS")&&d.type!=="secret"){return ee(new o(`secretOrPublicKey must be a symmetric key when using ${oe.alg}`))}else if(/^(?:RS|PS|ES)/.test(oe.alg)&&d.type!=="public"){return ee(new o(`secretOrPublicKey must be an asymmetric key when using ${oe.alg}`))}if(!n.allowInvalidAsymmetricKeyTypes){try{m(oe.alg,d)}catch(e){return ee(e)}}let ie;try{ie=C.verify(e,re.header.alg,d)}catch(e){return ee(e)}if(!ie){return ee(new o("invalid signature"))}const se=re.payload;if(typeof se.nbf!=="undefined"&&!n.ignoreNotBefore){if(typeof se.nbf!=="number"){return ee(new o("invalid nbf value"))}if(se.nbf>te+(n.clockTolerance||0)){return ee(new i("jwt not active",new Date(se.nbf*1e3)))}}if(typeof se.exp!=="undefined"&&!n.ignoreExpiration){if(typeof se.exp!=="number"){return ee(new o("invalid exp value"))}if(te>=se.exp+(n.clockTolerance||0)){return ee(new a("jwt expired",new Date(se.exp*1e3)))}}if(n.audience){const e=Array.isArray(n.audience)?n.audience:[n.audience];const t=Array.isArray(se.aud)?se.aud:[se.aud];const i=t.some((function(t){return e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))}));if(!i){return ee(new o("jwt audience invalid. expected: "+e.join(" or ")))}}if(n.issuer){const e=typeof n.issuer==="string"&&se.iss!==n.issuer||Array.isArray(n.issuer)&&n.issuer.indexOf(se.iss)===-1;if(e){return ee(new o("jwt issuer invalid. expected: "+n.issuer))}}if(n.subject){if(se.sub!==n.subject){return ee(new o("jwt subject invalid. expected: "+n.subject))}}if(n.jwtid){if(se.jti!==n.jwtid){return ee(new o("jwt jwtid invalid. expected: "+n.jwtid))}}if(n.nonce){if(se.nonce!==n.nonce){return ee(new o("jwt nonce invalid. expected: "+n.nonce))}}if(n.maxAge){if(typeof se.iat!=="number"){return ee(new o("iat required when maxAge is specified"))}const e=f(n.maxAge,se.iat);if(typeof e==="undefined"){return ee(new o('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(te>=e+(n.clockTolerance||0)){return ee(new a("maxAge exceeded",new Date(e*1e3)))}}if(n.complete===true){const e=re.signature;return ee(null,{header:oe,payload:se,signature:e})}return ee(null,se)}))}},6308:(e,t,n)=>{var o=n(5249).Buffer;var i=n(6982);var a=n(1454);var d=n(9023);var f='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';var m="secret must be a string or buffer";var h="key must be a string or a buffer";var C="key must be a string, a buffer or an object";var P=typeof i.createPublicKey==="function";if(P){h+=" or a KeyObject";m+="or a KeyObject"}function checkIsPublicKey(e){if(o.isBuffer(e)){return}if(typeof e==="string"){return}if(!P){throw typeError(h)}if(typeof e!=="object"){throw typeError(h)}if(typeof e.type!=="string"){throw typeError(h)}if(typeof e.asymmetricKeyType!=="string"){throw typeError(h)}if(typeof e.export!=="function"){throw typeError(h)}}function checkIsPrivateKey(e){if(o.isBuffer(e)){return}if(typeof e==="string"){return}if(typeof e==="object"){return}throw typeError(C)}function checkIsSecretKey(e){if(o.isBuffer(e)){return}if(typeof e==="string"){return e}if(!P){throw typeError(m)}if(typeof e!=="object"){throw typeError(m)}if(e.type!=="secret"){throw typeError(m)}if(typeof e.export!=="function"){throw typeError(m)}}function fromBase64(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function toBase64(e){e=e.toString();var t=4-e.length%4;if(t!==4){for(var n=0;n<t;++n){e+="="}}return e.replace(/\-/g,"+").replace(/_/g,"/")}function typeError(e){var t=[].slice.call(arguments,1);var n=d.format.bind(d,e).apply(null,t);return new TypeError(n)}function bufferOrString(e){return o.isBuffer(e)||typeof e==="string"}function normalizeInput(e){if(!bufferOrString(e))e=JSON.stringify(e);return e}function createHmacSigner(e){return function sign(t,n){checkIsSecretKey(n);t=normalizeInput(t);var o=i.createHmac("sha"+e,n);var a=(o.update(t),o.digest("base64"));return fromBase64(a)}}var D;var k="timingSafeEqual"in i?function timingSafeEqual(e,t){if(e.byteLength!==t.byteLength){return false}return i.timingSafeEqual(e,t)}:function timingSafeEqual(e,t){if(!D){D=n(715)}return D(e,t)};function createHmacVerifier(e){return function verify(t,n,i){var a=createHmacSigner(e)(t,i);return k(o.from(n),o.from(a))}}function createKeySigner(e){return function sign(t,n){checkIsPrivateKey(n);t=normalizeInput(t);var o=i.createSign("RSA-SHA"+e);var a=(o.update(t),o.sign(n,"base64"));return fromBase64(a)}}function createKeyVerifier(e){return function verify(t,n,o){checkIsPublicKey(o);t=normalizeInput(t);n=toBase64(n);var a=i.createVerify("RSA-SHA"+e);a.update(t);return a.verify(o,n,"base64")}}function createPSSKeySigner(e){return function sign(t,n){checkIsPrivateKey(n);t=normalizeInput(t);var o=i.createSign("RSA-SHA"+e);var a=(o.update(t),o.sign({key:n,padding:i.constants.RSA_PKCS1_PSS_PADDING,saltLength:i.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return fromBase64(a)}}function createPSSKeyVerifier(e){return function verify(t,n,o){checkIsPublicKey(o);t=normalizeInput(t);n=toBase64(n);var a=i.createVerify("RSA-SHA"+e);a.update(t);return a.verify({key:o,padding:i.constants.RSA_PKCS1_PSS_PADDING,saltLength:i.constants.RSA_PSS_SALTLEN_DIGEST},n,"base64")}}function createECDSASigner(e){var t=createKeySigner(e);return function sign(){var n=t.apply(null,arguments);n=a.derToJose(n,"ES"+e);return n}}function createECDSAVerifer(e){var t=createKeyVerifier(e);return function verify(n,o,i){o=a.joseToDer(o,"ES"+e).toString("base64");var d=t(n,o,i);return d}}function createNoneSigner(){return function sign(){return""}}function createNoneVerifier(){return function verify(e,t){return t===""}}e.exports=function jwa(e){var t={hs:createHmacSigner,rs:createKeySigner,ps:createPSSKeySigner,es:createECDSASigner,none:createNoneSigner};var n={hs:createHmacVerifier,rs:createKeyVerifier,ps:createPSSKeyVerifier,es:createECDSAVerifer,none:createNoneVerifier};var o=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!o)throw typeError(f,e);var i=(o[1]||o[3]).toLowerCase();var a=o[2];return{sign:t[i](a),verify:n[i](a)}}},3922:(e,t,n)=>{var o=n(414);var i=n(9470);var a=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];t.ALGORITHMS=a;t.sign=o.sign;t.verify=i.verify;t.decode=i.decode;t.isValid=i.isValid;t.createSign=function createSign(e){return new o(e)};t.createVerify=function createVerify(e){return new i(e)}},8353:(e,t,n)=>{var o=n(5249).Buffer;var i=n(2203);var a=n(9023);function DataStream(e){this.buffer=null;this.writable=true;this.readable=true;if(!e){this.buffer=o.alloc(0);return this}if(typeof e.pipe==="function"){this.buffer=o.alloc(0);e.pipe(this);return this}if(e.length||typeof e==="object"){this.buffer=e;this.writable=false;process.nextTick(function(){this.emit("end",e);this.readable=false;this.emit("close")}.bind(this));return this}throw new TypeError("Unexpected data type ("+typeof e+")")}a.inherits(DataStream,i);DataStream.prototype.write=function write(e){this.buffer=o.concat([this.buffer,o.from(e)]);this.emit("data",e)};DataStream.prototype.end=function end(e){if(e)this.write(e);this.emit("end",e);this.emit("close");this.writable=false;this.readable=false};e.exports=DataStream},414:(e,t,n)=>{var o=n(5249).Buffer;var i=n(8353);var a=n(6308);var d=n(2203);var f=n(2176);var m=n(9023);function base64url(e,t){return o.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function jwsSecuredInput(e,t,n){n=n||"utf8";var o=base64url(f(e),"binary");var i=base64url(f(t),n);return m.format("%s.%s",o,i)}function jwsSign(e){var t=e.header;var n=e.payload;var o=e.secret||e.privateKey;var i=e.encoding;var d=a(t.alg);var f=jwsSecuredInput(t,n,i);var h=d.sign(f,o);return m.format("%s.%s",f,h)}function SignStream(e){var t=e.secret;t=t==null?e.privateKey:t;t=t==null?e.key:t;if(/^hs/i.test(e.header.alg)===true&&t==null){throw new TypeError("secret must be a string or buffer or a KeyObject")}var n=new i(t);this.readable=true;this.header=e.header;this.encoding=e.encoding;this.secret=this.privateKey=this.key=n;this.payload=new i(e.payload);this.secret.once("close",function(){if(!this.payload.writable&&this.readable)this.sign()}.bind(this));this.payload.once("close",function(){if(!this.secret.writable&&this.readable)this.sign()}.bind(this))}m.inherits(SignStream,d);SignStream.prototype.sign=function sign(){try{var e=jwsSign({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});this.emit("done",e);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};SignStream.sign=jwsSign;e.exports=SignStream},2176:(e,t,n)=>{var o=n(181).Buffer;e.exports=function toString(e){if(typeof e==="string")return e;if(typeof e==="number"||o.isBuffer(e))return e.toString();return JSON.stringify(e)}},9470:(e,t,n)=>{var o=n(5249).Buffer;var i=n(8353);var a=n(6308);var d=n(2203);var f=n(2176);var m=n(9023);var h=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function safeJsonParse(e){if(isObject(e))return e;try{return JSON.parse(e)}catch(e){return undefined}}function headerFromJWS(e){var t=e.split(".",1)[0];return safeJsonParse(o.from(t,"base64").toString("binary"))}function securedInputFromJWS(e){return e.split(".",2).join(".")}function signatureFromJWS(e){return e.split(".")[2]}function payloadFromJWS(e,t){t=t||"utf8";var n=e.split(".")[1];return o.from(n,"base64").toString(t)}function isValidJws(e){return h.test(e)&&!!headerFromJWS(e)}function jwsVerify(e,t,n){if(!t){var o=new Error("Missing algorithm parameter for jws.verify");o.code="MISSING_ALGORITHM";throw o}e=f(e);var i=signatureFromJWS(e);var d=securedInputFromJWS(e);var m=a(t);return m.verify(d,i,n)}function jwsDecode(e,t){t=t||{};e=f(e);if(!isValidJws(e))return null;var n=headerFromJWS(e);if(!n)return null;var o=payloadFromJWS(e);if(n.typ==="JWT"||t.json)o=JSON.parse(o,t.encoding);return{header:n,payload:o,signature:signatureFromJWS(e)}}function VerifyStream(e){e=e||{};var t=e.secret;t=t==null?e.publicKey:t;t=t==null?e.key:t;if(/^hs/i.test(e.algorithm)===true&&t==null){throw new TypeError("secret must be a string or buffer or a KeyObject")}var n=new i(t);this.readable=true;this.algorithm=e.algorithm;this.encoding=e.encoding;this.secret=this.publicKey=this.key=n;this.signature=new i(e.signature);this.secret.once("close",function(){if(!this.signature.writable&&this.readable)this.verify()}.bind(this));this.signature.once("close",function(){if(!this.secret.writable&&this.readable)this.verify()}.bind(this))}m.inherits(VerifyStream,d);VerifyStream.prototype.verify=function verify(){try{var e=jwsVerify(this.signature.buffer,this.algorithm,this.key.buffer);var t=jwsDecode(this.signature.buffer,this.encoding);this.emit("done",e,t);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};VerifyStream.decode=jwsDecode;VerifyStream.isValid=isValidJws;VerifyStream.verify=jwsVerify;e.exports=VerifyStream},5252:e=>{var t=1/0,n=9007199254740991,o=17976931348623157e292,i=0/0;var a="[object Arguments]",d="[object Function]",f="[object GeneratorFunction]",m="[object String]",h="[object Symbol]";var C=/^\s+|\s+$/g;var P=/^[-+]0x[0-9a-f]+$/i;var D=/^0b[01]+$/i;var k=/^0o[0-7]+$/i;var L=/^(?:0|[1-9]\d*)$/;var F=parseInt;function arrayMap(e,t){var n=-1,o=e?e.length:0,i=Array(o);while(++n<o){i[n]=t(e[n],n,e)}return i}function baseFindIndex(e,t,n,o){var i=e.length,a=n+(o?1:-1);while(o?a--:++a<i){if(t(e[a],a,e)){return a}}return-1}function baseIndexOf(e,t,n){if(t!==t){return baseFindIndex(e,baseIsNaN,n)}var o=n-1,i=e.length;while(++o<i){if(e[o]===t){return o}}return-1}function baseIsNaN(e){return e!==e}function baseTimes(e,t){var n=-1,o=Array(e);while(++n<e){o[n]=t(n)}return o}function baseValues(e,t){return arrayMap(t,(function(t){return e[t]}))}function overArg(e,t){return function(n){return e(t(n))}}var q=Object.prototype;var V=q.hasOwnProperty;var ee=q.toString;var te=q.propertyIsEnumerable;var ne=overArg(Object.keys,Object),re=Math.max;function arrayLikeKeys(e,t){var n=oe(e)||isArguments(e)?baseTimes(e.length,String):[];var o=n.length,i=!!o;for(var a in e){if((t||V.call(e,a))&&!(i&&(a=="length"||isIndex(a,o)))){n.push(a)}}return n}function baseKeys(e){if(!isPrototype(e)){return ne(e)}var t=[];for(var n in Object(e)){if(V.call(e,n)&&n!="constructor"){t.push(n)}}return t}function isIndex(e,t){t=t==null?n:t;return!!t&&(typeof e=="number"||L.test(e))&&(e>-1&&e%1==0&&e<t)}function isPrototype(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||q;return e===n}function includes(e,t,n,o){e=isArrayLike(e)?e:values(e);n=n&&!o?toInteger(n):0;var i=e.length;if(n<0){n=re(i+n,0)}return isString(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&baseIndexOf(e,t,n)>-1}function isArguments(e){return isArrayLikeObject(e)&&V.call(e,"callee")&&(!te.call(e,"callee")||ee.call(e)==a)}var oe=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?ee.call(e):"";return t==d||t==f}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=n}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isString(e){return typeof e=="string"||!oe(e)&&isObjectLike(e)&&ee.call(e)==m}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&ee.call(e)==h}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===t||e===-t){var n=e<0?-1:1;return n*o}return e===e?e:0}function toInteger(e){var t=toFinite(e),n=t%1;return t===t?n?t-n:t:0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return i}if(isObject(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=e.replace(C,"");var n=D.test(e);return n||k.test(e)?F(e.slice(2),n?2:8):P.test(e)?i:+e}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function values(e){return e?baseValues(e,keys(e)):[]}e.exports=includes},2771:e=>{var t="[object Boolean]";var n=Object.prototype;var o=n.toString;function isBoolean(e){return e===true||e===false||isObjectLike(e)&&o.call(e)==t}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=isBoolean},4367:e=>{var t=1/0,n=17976931348623157e292,o=0/0;var i="[object Symbol]";var a=/^\s+|\s+$/g;var d=/^[-+]0x[0-9a-f]+$/i;var f=/^0b[01]+$/i;var m=/^0o[0-7]+$/i;var h=parseInt;var C=Object.prototype;var P=C.toString;function isInteger(e){return typeof e=="number"&&e==toInteger(e)}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&P.call(e)==i}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===t||e===-t){var o=e<0?-1:1;return o*n}return e===e?e:0}function toInteger(e){var t=toFinite(e),n=t%1;return t===t?n?t-n:t:0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return o}if(isObject(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=e.replace(a,"");var n=f.test(e);return n||m.test(e)?h(e.slice(2),n?2:8):d.test(e)?o:+e}e.exports=isInteger},5011:e=>{var t="[object Number]";var n=Object.prototype;var o=n.toString;function isObjectLike(e){return!!e&&typeof e=="object"}function isNumber(e){return typeof e=="number"||isObjectLike(e)&&o.call(e)==t}e.exports=isNumber},5341:e=>{var t="[object Object]";function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function overArg(e,t){return function(n){return e(t(n))}}var n=Function.prototype,o=Object.prototype;var i=n.toString;var a=o.hasOwnProperty;var d=i.call(Object);var f=o.toString;var m=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&typeof e=="object"}function isPlainObject(e){if(!isObjectLike(e)||f.call(e)!=t||isHostObject(e)){return false}var n=m(e);if(n===null){return true}var o=a.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&i.call(o)==d}e.exports=isPlainObject},5250:e=>{var t="[object String]";var n=Object.prototype;var o=n.toString;var i=Array.isArray;function isObjectLike(e){return!!e&&typeof e=="object"}function isString(e){return typeof e=="string"||!i(e)&&isObjectLike(e)&&o.call(e)==t}e.exports=isString},3839:e=>{var t="Expected a function";var n=1/0,o=17976931348623157e292,i=0/0;var a="[object Symbol]";var d=/^\s+|\s+$/g;var f=/^[-+]0x[0-9a-f]+$/i;var m=/^0b[01]+$/i;var h=/^0o[0-7]+$/i;var C=parseInt;var P=Object.prototype;var D=P.toString;function before(e,n){var o;if(typeof n!="function"){throw new TypeError(t)}e=toInteger(e);return function(){if(--e>0){o=n.apply(this,arguments)}if(e<=1){n=undefined}return o}}function once(e){return before(2,e)}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&D.call(e)==a}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===n||e===-n){var t=e<0?-1:1;return t*o}return e===e?e:0}function toInteger(e){var t=toFinite(e),n=t%1;return t===t?n?t-n:t:0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return i}if(isObject(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=e.replace(d,"");var n=m.test(e);return n||h.test(e)?C(e.slice(2),n?2:8):f.test(e)?i:+e}e.exports=once},6647:e=>{var t=1e3;var n=t*60;var o=n*60;var i=o*24;var a=i*7;var d=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!f){return}var m=parseFloat(f[1]);var h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return m*d;case"weeks":case"week":case"w":return m*a;case"days":case"day":case"d":return m*i;case"hours":case"hour":case"hrs":case"hr":case"h":return m*o;case"minutes":case"minute":case"mins":case"min":case"m":return m*n;case"seconds":case"second":case"secs":case"sec":case"s":return m*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return undefined}}function fmtShort(e){var a=Math.abs(e);if(a>=i){return Math.round(e/i)+"d"}if(a>=o){return Math.round(e/o)+"h"}if(a>=n){return Math.round(e/n)+"m"}if(a>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var a=Math.abs(e);if(a>=i){return plural(e,a,i,"day")}if(a>=o){return plural(e,a,o,"hour")}if(a>=n){return plural(e,a,n,"minute")}if(a>=t){return plural(e,a,t,"second")}return e+" ms"}function plural(e,t,n,o){var i=t>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}},5249:(e,t,n)=>{ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ -var C=h(181);var q=C.Buffer;function copyProps(e,m){for(var h in e){m[h]=e[h]}}if(q.from&&q.alloc&&q.allocUnsafe&&q.allocUnsafeSlow){e.exports=C}else{copyProps(C,m);m.Buffer=SafeBuffer}function SafeBuffer(e,m,h){return q(e,m,h)}SafeBuffer.prototype=Object.create(q.prototype);copyProps(q,SafeBuffer);SafeBuffer.from=function(e,m,h){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return q(e,m,h)};SafeBuffer.alloc=function(e,m,h){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var C=q(e);if(m!==undefined){if(typeof h==="string"){C.fill(m,h)}else{C.fill(m)}}else{C.fill(0)}return C};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return q(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return C.SlowBuffer(e)}},6222:(e,m,h)=>{const C=Symbol("SemVer ANY");class Comparator{static get ANY(){return C}constructor(e,m){m=q(m);if(e instanceof Comparator){if(e.loose===!!m.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");he("comparator",e,m);this.options=m;this.loose=!!m.loose;this.parse(e);if(this.semver===C){this.value=""}else{this.value=this.operator+this.semver.version}he("comp",this)}parse(e){const m=this.options.loose?V[le.COMPARATORLOOSE]:V[le.COMPARATOR];const h=e.match(m);if(!h){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=h[1]!==undefined?h[1]:"";if(this.operator==="="){this.operator=""}if(!h[2]){this.semver=C}else{this.semver=new ye(h[2],this.options.loose)}}toString(){return this.value}test(e){he("Comparator.test",e,this.options.loose);if(this.semver===C||e===C){return true}if(typeof e==="string"){try{e=new ye(e,this.options)}catch(e){return false}}return fe(e,this.operator,this.semver,this.options)}intersects(e,m){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new ve(e.value,m).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new ve(this.value,m).test(e.semver)}m=q(m);if(m.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!m.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(fe(this.semver,"<",e.semver,m)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(fe(this.semver,">",e.semver,m)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const q=h(977);const{safeRe:V,t:le}=h(5580);const fe=h(2977);const he=h(1542);const ye=h(4154);const ve=h(3137)},3137:(e,m,h)=>{const C=/\s+/g;class Range{constructor(e,m){m=le(m);if(e instanceof Range){if(e.loose===!!m.loose&&e.includePrerelease===!!m.includePrerelease){return e}else{return new Range(e.raw,m)}}if(e instanceof fe){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=m;this.loose=!!m.loose;this.includePrerelease=!!m.includePrerelease;this.raw=e.trim().replace(C," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0){this.formatted+="||"}const m=this.set[e];for(let e=0;e<m.length;e++){if(e>0){this.formatted+=" "}this.formatted+=m[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const m=(this.options.includePrerelease&&He)|(this.options.loose&&We);const h=m+":"+e;const C=V.get(h);if(C){return C}const q=this.options.loose;const le=q?ve[Le.HYPHENRANGELOOSE]:ve[Le.HYPHENRANGE];e=e.replace(le,hyphenReplace(this.options.includePrerelease));he("hyphen replace",e);e=e.replace(ve[Le.COMPARATORTRIM],Ue);he("comparator trim",e);e=e.replace(ve[Le.TILDETRIM],qe);he("tilde trim",e);e=e.replace(ve[Le.CARETTRIM],ze);he("caret trim",e);let ye=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(q){ye=ye.filter((e=>{he("loose invalid filter",e,this.options);return!!e.match(ve[Le.COMPARATORLOOSE])}))}he("range list",ye);const Qe=new Map;const Je=ye.map((e=>new fe(e,this.options)));for(const e of Je){if(isNullSet(e)){return[e]}Qe.set(e.value,e)}if(Qe.size>1&&Qe.has("")){Qe.delete("")}const It=[...Qe.values()];V.set(h,It);return It}intersects(e,m){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((h=>isSatisfiable(h,m)&&e.set.some((e=>isSatisfiable(e,m)&&h.every((h=>e.every((e=>h.intersects(e,m)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new ye(e,this.options)}catch(e){return false}}for(let m=0;m<this.set.length;m++){if(testSet(this.set[m],e,this.options)){return true}}return false}}e.exports=Range;const q=h(5088);const V=new q;const le=h(977);const fe=h(6222);const he=h(1542);const ye=h(4154);const{safeRe:ve,t:Le,comparatorTrimReplace:Ue,tildeTrimReplace:qe,caretTrimReplace:ze}=h(5580);const{FLAG_INCLUDE_PRERELEASE:He,FLAG_LOOSE:We}=h(4256);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,m)=>{let h=true;const C=e.slice();let q=C.pop();while(h&&C.length){h=C.every((e=>q.intersects(e,m)));q=C.pop()}return h};const parseComparator=(e,m)=>{e=e.replace(ve[Le.BUILD],"");he("comp",e,m);e=replaceCarets(e,m);he("caret",e);e=replaceTildes(e,m);he("tildes",e);e=replaceXRanges(e,m);he("xrange",e);e=replaceStars(e,m);he("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,m)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,m))).join(" ");const replaceTilde=(e,m)=>{const h=m.loose?ve[Le.TILDELOOSE]:ve[Le.TILDE];return e.replace(h,((m,h,C,q,V)=>{he("tilde",e,m,h,C,q,V);let le;if(isX(h)){le=""}else if(isX(C)){le=`>=${h}.0.0 <${+h+1}.0.0-0`}else if(isX(q)){le=`>=${h}.${C}.0 <${h}.${+C+1}.0-0`}else if(V){he("replaceTilde pr",V);le=`>=${h}.${C}.${q}-${V} <${h}.${+C+1}.0-0`}else{le=`>=${h}.${C}.${q} <${h}.${+C+1}.0-0`}he("tilde return",le);return le}))};const replaceCarets=(e,m)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,m))).join(" ");const replaceCaret=(e,m)=>{he("caret",e,m);const h=m.loose?ve[Le.CARETLOOSE]:ve[Le.CARET];const C=m.includePrerelease?"-0":"";return e.replace(h,((m,h,q,V,le)=>{he("caret",e,m,h,q,V,le);let fe;if(isX(h)){fe=""}else if(isX(q)){fe=`>=${h}.0.0${C} <${+h+1}.0.0-0`}else if(isX(V)){if(h==="0"){fe=`>=${h}.${q}.0${C} <${h}.${+q+1}.0-0`}else{fe=`>=${h}.${q}.0${C} <${+h+1}.0.0-0`}}else if(le){he("replaceCaret pr",le);if(h==="0"){if(q==="0"){fe=`>=${h}.${q}.${V}-${le} <${h}.${q}.${+V+1}-0`}else{fe=`>=${h}.${q}.${V}-${le} <${h}.${+q+1}.0-0`}}else{fe=`>=${h}.${q}.${V}-${le} <${+h+1}.0.0-0`}}else{he("no pr");if(h==="0"){if(q==="0"){fe=`>=${h}.${q}.${V}${C} <${h}.${q}.${+V+1}-0`}else{fe=`>=${h}.${q}.${V}${C} <${h}.${+q+1}.0-0`}}else{fe=`>=${h}.${q}.${V} <${+h+1}.0.0-0`}}he("caret return",fe);return fe}))};const replaceXRanges=(e,m)=>{he("replaceXRanges",e,m);return e.split(/\s+/).map((e=>replaceXRange(e,m))).join(" ")};const replaceXRange=(e,m)=>{e=e.trim();const h=m.loose?ve[Le.XRANGELOOSE]:ve[Le.XRANGE];return e.replace(h,((h,C,q,V,le,fe)=>{he("xRange",e,h,C,q,V,le,fe);const ye=isX(q);const ve=ye||isX(V);const Le=ve||isX(le);const Ue=Le;if(C==="="&&Ue){C=""}fe=m.includePrerelease?"-0":"";if(ye){if(C===">"||C==="<"){h="<0.0.0-0"}else{h="*"}}else if(C&&Ue){if(ve){V=0}le=0;if(C===">"){C=">=";if(ve){q=+q+1;V=0;le=0}else{V=+V+1;le=0}}else if(C==="<="){C="<";if(ve){q=+q+1}else{V=+V+1}}if(C==="<"){fe="-0"}h=`${C+q}.${V}.${le}${fe}`}else if(ve){h=`>=${q}.0.0${fe} <${+q+1}.0.0-0`}else if(Le){h=`>=${q}.${V}.0${fe} <${q}.${+V+1}.0-0`}he("xRange return",h);return h}))};const replaceStars=(e,m)=>{he("replaceStars",e,m);return e.trim().replace(ve[Le.STAR],"")};const replaceGTE0=(e,m)=>{he("replaceGTE0",e,m);return e.trim().replace(ve[m.includePrerelease?Le.GTE0PRE:Le.GTE0],"")};const hyphenReplace=e=>(m,h,C,q,V,le,fe,he,ye,ve,Le,Ue)=>{if(isX(C)){h=""}else if(isX(q)){h=`>=${C}.0.0${e?"-0":""}`}else if(isX(V)){h=`>=${C}.${q}.0${e?"-0":""}`}else if(le){h=`>=${h}`}else{h=`>=${h}${e?"-0":""}`}if(isX(ye)){he=""}else if(isX(ve)){he=`<${+ye+1}.0.0-0`}else if(isX(Le)){he=`<${ye}.${+ve+1}.0-0`}else if(Ue){he=`<=${ye}.${ve}.${Le}-${Ue}`}else if(e){he=`<${ye}.${ve}.${+Le+1}-0`}else{he=`<=${he}`}return`${h} ${he}`.trim()};const testSet=(e,m,h)=>{for(let h=0;h<e.length;h++){if(!e[h].test(m)){return false}}if(m.prerelease.length&&!h.includePrerelease){for(let h=0;h<e.length;h++){he(e[h].semver);if(e[h].semver===fe.ANY){continue}if(e[h].semver.prerelease.length>0){const C=e[h].semver;if(C.major===m.major&&C.minor===m.minor&&C.patch===m.patch){return true}}}return false}return true}},4154:(e,m,h)=>{const C=h(1542);const{MAX_LENGTH:q,MAX_SAFE_INTEGER:V}=h(4256);const{safeRe:le,t:fe}=h(5580);const he=h(977);const{compareIdentifiers:ye}=h(1713);class SemVer{constructor(e,m){m=he(m);if(e instanceof SemVer){if(e.loose===!!m.loose&&e.includePrerelease===!!m.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>q){throw new TypeError(`version is longer than ${q} characters`)}C("SemVer",e,m);this.options=m;this.loose=!!m.loose;this.includePrerelease=!!m.includePrerelease;const h=e.trim().match(m.loose?le[fe.LOOSE]:le[fe.FULL]);if(!h){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+h[1];this.minor=+h[2];this.patch=+h[3];if(this.major>V||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>V||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>V||this.patch<0){throw new TypeError("Invalid patch version")}if(!h[4]){this.prerelease=[]}else{this.prerelease=h[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const m=+e;if(m>=0&&m<V){return m}}return e}))}this.build=h[5]?h[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){C("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.major<e.major){return-1}if(this.major>e.major){return 1}if(this.minor<e.minor){return-1}if(this.minor>e.minor){return 1}if(this.patch<e.patch){return-1}if(this.patch>e.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let m=0;do{const h=this.prerelease[m];const q=e.prerelease[m];C("prerelease compare",m,h,q);if(h===undefined&&q===undefined){return 0}else if(q===undefined){return 1}else if(h===undefined){return-1}else if(h===q){continue}else{return ye(h,q)}}while(++m)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let m=0;do{const h=this.build[m];const q=e.build[m];C("build compare",m,h,q);if(h===undefined&&q===undefined){return 0}else if(q===undefined){return 1}else if(h===undefined){return-1}else if(h===q){continue}else{return ye(h,q)}}while(++m)}inc(e,m,h){if(e.startsWith("pre")){if(!m&&h===false){throw new Error("invalid increment argument: identifier is empty")}if(m){const e=`-${m}`.match(this.options.loose?le[fe.PRERELEASELOOSE]:le[fe.PRERELEASE]);if(!e||e[1]!==m){throw new Error(`invalid identifier: ${m}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",m,h);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",m,h);break;case"prepatch":this.prerelease.length=0;this.inc("patch",m,h);this.inc("pre",m,h);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",m,h)}this.inc("pre",m,h);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(h)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let C=this.prerelease.length;while(--C>=0){if(typeof this.prerelease[C]==="number"){this.prerelease[C]++;C=-2}}if(C===-1){if(m===this.prerelease.join(".")&&h===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(m){let C=[m,e];if(h===false){C=[m]}if(ye(this.prerelease[0],m)===0){if(isNaN(this.prerelease[1])){this.prerelease=C}}else{this.prerelease=C}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},9956:(e,m,h)=>{const C=h(3854);const clean=(e,m)=>{const h=C(e.trim().replace(/^[=v]+/,""),m);return h?h.version:null};e.exports=clean},2977:(e,m,h)=>{const C=h(2563);const q=h(5969);const V=h(2098);const le=h(5851);const fe=h(5045);const he=h(5462);const cmp=(e,m,h,ye)=>{switch(m){case"===":if(typeof e==="object"){e=e.version}if(typeof h==="object"){h=h.version}return e===h;case"!==":if(typeof e==="object"){e=e.version}if(typeof h==="object"){h=h.version}return e!==h;case"":case"=":case"==":return C(e,h,ye);case"!=":return q(e,h,ye);case">":return V(e,h,ye);case">=":return le(e,h,ye);case"<":return fe(e,h,ye);case"<=":return he(e,h,ye);default:throw new TypeError(`Invalid operator: ${m}`)}};e.exports=cmp},7420:(e,m,h)=>{const C=h(4154);const q=h(3854);const{safeRe:V,t:le}=h(5580);const coerce=(e,m)=>{if(e instanceof C){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}m=m||{};let h=null;if(!m.rtl){h=e.match(m.includePrerelease?V[le.COERCEFULL]:V[le.COERCE])}else{const C=m.includePrerelease?V[le.COERCERTLFULL]:V[le.COERCERTL];let q;while((q=C.exec(e))&&(!h||h.index+h[0].length!==e.length)){if(!h||q.index+q[0].length!==h.index+h[0].length){h=q}C.lastIndex=q.index+q[1].length+q[2].length}C.lastIndex=-1}if(h===null){return null}const fe=h[2];const he=h[3]||"0";const ye=h[4]||"0";const ve=m.includePrerelease&&h[5]?`-${h[5]}`:"";const Le=m.includePrerelease&&h[6]?`+${h[6]}`:"";return q(`${fe}.${he}.${ye}${ve}${Le}`,m)};e.exports=coerce},7083:(e,m,h)=>{const C=h(4154);const compareBuild=(e,m,h)=>{const q=new C(e,h);const V=new C(m,h);return q.compare(V)||q.compareBuild(V)};e.exports=compareBuild},825:(e,m,h)=>{const C=h(1306);const compareLoose=(e,m)=>C(e,m,true);e.exports=compareLoose},1306:(e,m,h)=>{const C=h(4154);const compare=(e,m,h)=>new C(e,h).compare(new C(m,h));e.exports=compare},4962:(e,m,h)=>{const C=h(3854);const diff=(e,m)=>{const h=C(e,null,true);const q=C(m,null,true);const V=h.compare(q);if(V===0){return null}const le=V>0;const fe=le?h:q;const he=le?q:h;const ye=!!fe.prerelease.length;const ve=!!he.prerelease.length;if(ve&&!ye){if(!he.patch&&!he.minor){return"major"}if(he.compareMain(fe)===0){if(he.minor&&!he.patch){return"minor"}return"patch"}}const Le=ye?"pre":"";if(h.major!==q.major){return Le+"major"}if(h.minor!==q.minor){return Le+"minor"}if(h.patch!==q.patch){return Le+"patch"}return"prerelease"};e.exports=diff},2563:(e,m,h)=>{const C=h(1306);const eq=(e,m,h)=>C(e,m,h)===0;e.exports=eq},2098:(e,m,h)=>{const C=h(1306);const gt=(e,m,h)=>C(e,m,h)>0;e.exports=gt},5851:(e,m,h)=>{const C=h(1306);const gte=(e,m,h)=>C(e,m,h)>=0;e.exports=gte},2341:(e,m,h)=>{const C=h(4154);const inc=(e,m,h,q,V)=>{if(typeof h==="string"){V=q;q=h;h=undefined}try{return new C(e instanceof C?e.version:e,h).inc(m,q,V).version}catch(e){return null}};e.exports=inc},5045:(e,m,h)=>{const C=h(1306);const lt=(e,m,h)=>C(e,m,h)<0;e.exports=lt},5462:(e,m,h)=>{const C=h(1306);const lte=(e,m,h)=>C(e,m,h)<=0;e.exports=lte},6468:(e,m,h)=>{const C=h(4154);const major=(e,m)=>new C(e,m).major;e.exports=major},7032:(e,m,h)=>{const C=h(4154);const minor=(e,m)=>new C(e,m).minor;e.exports=minor},5969:(e,m,h)=>{const C=h(1306);const neq=(e,m,h)=>C(e,m,h)!==0;e.exports=neq},3854:(e,m,h)=>{const C=h(4154);const parse=(e,m,h=false)=>{if(e instanceof C){return e}try{return new C(e,m)}catch(e){if(!h){return null}throw e}};e.exports=parse},6447:(e,m,h)=>{const C=h(4154);const patch=(e,m)=>new C(e,m).patch;e.exports=patch},8359:(e,m,h)=>{const C=h(3854);const prerelease=(e,m)=>{const h=C(e,m);return h&&h.prerelease.length?h.prerelease:null};e.exports=prerelease},6156:(e,m,h)=>{const C=h(1306);const rcompare=(e,m,h)=>C(m,e,h);e.exports=rcompare},2659:(e,m,h)=>{const C=h(7083);const rsort=(e,m)=>e.sort(((e,h)=>C(h,e,m)));e.exports=rsort},7575:(e,m,h)=>{const C=h(3137);const satisfies=(e,m,h)=>{try{m=new C(m,h)}catch(e){return false}return m.test(e)};e.exports=satisfies},2397:(e,m,h)=>{const C=h(7083);const sort=(e,m)=>e.sort(((e,h)=>C(e,h,m)));e.exports=sort},8691:(e,m,h)=>{const C=h(3854);const valid=(e,m)=>{const h=C(e,m);return h?h.version:null};e.exports=valid},9419:(e,m,h)=>{const C=h(5580);const q=h(4256);const V=h(4154);const le=h(1713);const fe=h(3854);const he=h(8691);const ye=h(9956);const ve=h(2341);const Le=h(4962);const Ue=h(6468);const qe=h(7032);const ze=h(6447);const He=h(8359);const We=h(1306);const Qe=h(6156);const Je=h(825);const It=h(7083);const _t=h(2397);const Mt=h(2659);const Lt=h(2098);const Ut=h(5045);const qt=h(2563);const Gt=h(5969);const zt=h(5851);const Ht=h(5462);const Wt=h(2977);const Kt=h(7420);const Yt=h(6222);const Qt=h(3137);const Jt=h(7575);const Xt=h(4377);const Zt=h(4150);const en=h(2420);const tn=h(7815);const nn=h(8072);const rn=h(4421);const on=h(7173);const sn=h(2156);const an=h(2150);const cn=h(3963);const ln=h(826);e.exports={parse:fe,valid:he,clean:ye,inc:ve,diff:Le,major:Ue,minor:qe,patch:ze,prerelease:He,compare:We,rcompare:Qe,compareLoose:Je,compareBuild:It,sort:_t,rsort:Mt,gt:Lt,lt:Ut,eq:qt,neq:Gt,gte:zt,lte:Ht,cmp:Wt,coerce:Kt,Comparator:Yt,Range:Qt,satisfies:Jt,toComparators:Xt,maxSatisfying:Zt,minSatisfying:en,minVersion:tn,validRange:nn,outside:rn,gtr:on,ltr:sn,intersects:an,simplifyRange:cn,subset:ln,SemVer:V,re:C.re,src:C.src,tokens:C.t,SEMVER_SPEC_VERSION:q.SEMVER_SPEC_VERSION,RELEASE_TYPES:q.RELEASE_TYPES,compareIdentifiers:le.compareIdentifiers,rcompareIdentifiers:le.rcompareIdentifiers}},4256:e=>{const m="2.0.0";const h=256;const C=Number.MAX_SAFE_INTEGER||9007199254740991;const q=16;const V=h-6;const le=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:h,MAX_SAFE_COMPONENT_LENGTH:q,MAX_SAFE_BUILD_LENGTH:V,MAX_SAFE_INTEGER:C,RELEASE_TYPES:le,SEMVER_SPEC_VERSION:m,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1542:e=>{const m=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=m},1713:e=>{const m=/^[0-9]+$/;const compareIdentifiers=(e,h)=>{if(typeof e==="number"&&typeof h==="number"){return e===h?0:e<h?-1:1}const C=m.test(e);const q=m.test(h);if(C&&q){e=+e;h=+h}return e===h?0:C&&!q?-1:q&&!C?1:e<h?-1:1};const rcompareIdentifiers=(e,m)=>compareIdentifiers(m,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},5088:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const m=this.map.get(e);if(m===undefined){return undefined}else{this.map.delete(e);this.map.set(e,m);return m}}delete(e){return this.map.delete(e)}set(e,m){const h=this.delete(e);if(!h&&m!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,m)}return this}}e.exports=LRUCache},977:e=>{const m=Object.freeze({loose:true});const h=Object.freeze({});const parseOptions=e=>{if(!e){return h}if(typeof e!=="object"){return m}return e};e.exports=parseOptions},5580:(e,m,h)=>{const{MAX_SAFE_COMPONENT_LENGTH:C,MAX_SAFE_BUILD_LENGTH:q,MAX_LENGTH:V}=h(4256);const le=h(1542);m=e.exports={};const fe=m.re=[];const he=m.safeRe=[];const ye=m.src=[];const ve=m.safeSrc=[];const Le=m.t={};let Ue=0;const qe="[a-zA-Z0-9-]";const ze=[["\\s",1],["\\d",V],[qe,q]];const makeSafeRegex=e=>{for(const[m,h]of ze){e=e.split(`${m}*`).join(`${m}{0,${h}}`).split(`${m}+`).join(`${m}{1,${h}}`)}return e};const createToken=(e,m,h)=>{const C=makeSafeRegex(m);const q=Ue++;le(e,q,m);Le[e]=q;ye[q]=m;ve[q]=C;fe[q]=new RegExp(m,h?"g":undefined);he[q]=new RegExp(C,h?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${qe}*`);createToken("MAINVERSION",`(${ye[Le.NUMERICIDENTIFIER]})\\.`+`(${ye[Le.NUMERICIDENTIFIER]})\\.`+`(${ye[Le.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${ye[Le.NUMERICIDENTIFIERLOOSE]})\\.`+`(${ye[Le.NUMERICIDENTIFIERLOOSE]})\\.`+`(${ye[Le.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${ye[Le.NONNUMERICIDENTIFIER]}|${ye[Le.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${ye[Le.NONNUMERICIDENTIFIER]}|${ye[Le.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${ye[Le.PRERELEASEIDENTIFIER]}(?:\\.${ye[Le.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${ye[Le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ye[Le.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${qe}+`);createToken("BUILD",`(?:\\+(${ye[Le.BUILDIDENTIFIER]}(?:\\.${ye[Le.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${ye[Le.MAINVERSION]}${ye[Le.PRERELEASE]}?${ye[Le.BUILD]}?`);createToken("FULL",`^${ye[Le.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${ye[Le.MAINVERSIONLOOSE]}${ye[Le.PRERELEASELOOSE]}?${ye[Le.BUILD]}?`);createToken("LOOSE",`^${ye[Le.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${ye[Le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${ye[Le.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${ye[Le.XRANGEIDENTIFIER]})`+`(?:\\.(${ye[Le.XRANGEIDENTIFIER]})`+`(?:\\.(${ye[Le.XRANGEIDENTIFIER]})`+`(?:${ye[Le.PRERELEASE]})?${ye[Le.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${ye[Le.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${ye[Le.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${ye[Le.XRANGEIDENTIFIERLOOSE]})`+`(?:${ye[Le.PRERELEASELOOSE]})?${ye[Le.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${ye[Le.GTLT]}\\s*${ye[Le.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${ye[Le.GTLT]}\\s*${ye[Le.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${C}})`+`(?:\\.(\\d{1,${C}}))?`+`(?:\\.(\\d{1,${C}}))?`);createToken("COERCE",`${ye[Le.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",ye[Le.COERCEPLAIN]+`(?:${ye[Le.PRERELEASE]})?`+`(?:${ye[Le.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",ye[Le.COERCE],true);createToken("COERCERTLFULL",ye[Le.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${ye[Le.LONETILDE]}\\s+`,true);m.tildeTrimReplace="$1~";createToken("TILDE",`^${ye[Le.LONETILDE]}${ye[Le.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${ye[Le.LONETILDE]}${ye[Le.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${ye[Le.LONECARET]}\\s+`,true);m.caretTrimReplace="$1^";createToken("CARET",`^${ye[Le.LONECARET]}${ye[Le.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${ye[Le.LONECARET]}${ye[Le.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${ye[Le.GTLT]}\\s*(${ye[Le.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${ye[Le.GTLT]}\\s*(${ye[Le.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${ye[Le.GTLT]}\\s*(${ye[Le.LOOSEPLAIN]}|${ye[Le.XRANGEPLAIN]})`,true);m.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${ye[Le.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${ye[Le.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${ye[Le.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${ye[Le.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7173:(e,m,h)=>{const C=h(4421);const gtr=(e,m,h)=>C(e,m,">",h);e.exports=gtr},2150:(e,m,h)=>{const C=h(3137);const intersects=(e,m,h)=>{e=new C(e,h);m=new C(m,h);return e.intersects(m,h)};e.exports=intersects},2156:(e,m,h)=>{const C=h(4421);const ltr=(e,m,h)=>C(e,m,"<",h);e.exports=ltr},4150:(e,m,h)=>{const C=h(4154);const q=h(3137);const maxSatisfying=(e,m,h)=>{let V=null;let le=null;let fe=null;try{fe=new q(m,h)}catch(e){return null}e.forEach((e=>{if(fe.test(e)){if(!V||le.compare(e)===-1){V=e;le=new C(V,h)}}}));return V};e.exports=maxSatisfying},2420:(e,m,h)=>{const C=h(4154);const q=h(3137);const minSatisfying=(e,m,h)=>{let V=null;let le=null;let fe=null;try{fe=new q(m,h)}catch(e){return null}e.forEach((e=>{if(fe.test(e)){if(!V||le.compare(e)===1){V=e;le=new C(V,h)}}}));return V};e.exports=minSatisfying},7815:(e,m,h)=>{const C=h(4154);const q=h(3137);const V=h(2098);const minVersion=(e,m)=>{e=new q(e,m);let h=new C("0.0.0");if(e.test(h)){return h}h=new C("0.0.0-0");if(e.test(h)){return h}h=null;for(let m=0;m<e.set.length;++m){const q=e.set[m];let le=null;q.forEach((e=>{const m=new C(e.semver.version);switch(e.operator){case">":if(m.prerelease.length===0){m.patch++}else{m.prerelease.push(0)}m.raw=m.format();case"":case">=":if(!le||V(m,le)){le=m}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(le&&(!h||V(h,le))){h=le}}if(h&&e.test(h)){return h}return null};e.exports=minVersion},4421:(e,m,h)=>{const C=h(4154);const q=h(6222);const{ANY:V}=q;const le=h(3137);const fe=h(7575);const he=h(2098);const ye=h(5045);const ve=h(5462);const Le=h(5851);const outside=(e,m,h,Ue)=>{e=new C(e,Ue);m=new le(m,Ue);let qe,ze,He,We,Qe;switch(h){case">":qe=he;ze=ve;He=ye;We=">";Qe=">=";break;case"<":qe=ye;ze=Le;He=he;We="<";Qe="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(fe(e,m,Ue)){return false}for(let h=0;h<m.set.length;++h){const C=m.set[h];let le=null;let fe=null;C.forEach((e=>{if(e.semver===V){e=new q(">=0.0.0")}le=le||e;fe=fe||e;if(qe(e.semver,le.semver,Ue)){le=e}else if(He(e.semver,fe.semver,Ue)){fe=e}}));if(le.operator===We||le.operator===Qe){return false}if((!fe.operator||fe.operator===We)&&ze(e,fe.semver)){return false}else if(fe.operator===Qe&&He(e,fe.semver)){return false}}return true};e.exports=outside},3963:(e,m,h)=>{const C=h(7575);const q=h(1306);e.exports=(e,m,h)=>{const V=[];let le=null;let fe=null;const he=e.sort(((e,m)=>q(e,m,h)));for(const e of he){const q=C(e,m,h);if(q){fe=e;if(!le){le=e}}else{if(fe){V.push([le,fe])}fe=null;le=null}}if(le){V.push([le,null])}const ye=[];for(const[e,m]of V){if(e===m){ye.push(e)}else if(!m&&e===he[0]){ye.push("*")}else if(!m){ye.push(`>=${e}`)}else if(e===he[0]){ye.push(`<=${m}`)}else{ye.push(`${e} - ${m}`)}}const ve=ye.join(" || ");const Le=typeof m.raw==="string"?m.raw:String(m);return ve.length<Le.length?ve:m}},826:(e,m,h)=>{const C=h(3137);const q=h(6222);const{ANY:V}=q;const le=h(7575);const fe=h(1306);const subset=(e,m,h={})=>{if(e===m){return true}e=new C(e,h);m=new C(m,h);let q=false;e:for(const C of e.set){for(const e of m.set){const m=simpleSubset(C,e,h);q=q||m!==null;if(m){continue e}}if(q){return false}}return true};const he=[new q(">=0.0.0-0")];const ye=[new q(">=0.0.0")];const simpleSubset=(e,m,h)=>{if(e===m){return true}if(e.length===1&&e[0].semver===V){if(m.length===1&&m[0].semver===V){return true}else if(h.includePrerelease){e=he}else{e=ye}}if(m.length===1&&m[0].semver===V){if(h.includePrerelease){return true}else{m=ye}}const C=new Set;let q,ve;for(const m of e){if(m.operator===">"||m.operator===">="){q=higherGT(q,m,h)}else if(m.operator==="<"||m.operator==="<="){ve=lowerLT(ve,m,h)}else{C.add(m.semver)}}if(C.size>1){return null}let Le;if(q&&ve){Le=fe(q.semver,ve.semver,h);if(Le>0){return null}else if(Le===0&&(q.operator!==">="||ve.operator!=="<=")){return null}}for(const e of C){if(q&&!le(e,String(q),h)){return null}if(ve&&!le(e,String(ve),h)){return null}for(const C of m){if(!le(e,String(C),h)){return false}}return true}let Ue,qe;let ze,He;let We=ve&&!h.includePrerelease&&ve.semver.prerelease.length?ve.semver:false;let Qe=q&&!h.includePrerelease&&q.semver.prerelease.length?q.semver:false;if(We&&We.prerelease.length===1&&ve.operator==="<"&&We.prerelease[0]===0){We=false}for(const e of m){He=He||e.operator===">"||e.operator===">=";ze=ze||e.operator==="<"||e.operator==="<=";if(q){if(Qe){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===Qe.major&&e.semver.minor===Qe.minor&&e.semver.patch===Qe.patch){Qe=false}}if(e.operator===">"||e.operator===">="){Ue=higherGT(q,e,h);if(Ue===e&&Ue!==q){return false}}else if(q.operator===">="&&!le(q.semver,String(e),h)){return false}}if(ve){if(We){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===We.major&&e.semver.minor===We.minor&&e.semver.patch===We.patch){We=false}}if(e.operator==="<"||e.operator==="<="){qe=lowerLT(ve,e,h);if(qe===e&&qe!==ve){return false}}else if(ve.operator==="<="&&!le(ve.semver,String(e),h)){return false}}if(!e.operator&&(ve||q)&&Le!==0){return false}}if(q&&ze&&!ve&&Le!==0){return false}if(ve&&He&&!q&&Le!==0){return false}if(Qe||We){return false}return true};const higherGT=(e,m,h)=>{if(!e){return m}const C=fe(e.semver,m.semver,h);return C>0?e:C<0?m:m.operator===">"&&e.operator===">="?m:e};const lowerLT=(e,m,h)=>{if(!e){return m}const C=fe(e.semver,m.semver,h);return C<0?e:C>0?m:m.operator==="<"&&e.operator==="<="?m:e};e.exports=subset},4377:(e,m,h)=>{const C=h(3137);const toComparators=(e,m)=>new C(e,m).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},8072:(e,m,h)=>{const C=h(3137);const validRange=(e,m)=>{try{return new C(e,m).range||"*"}catch(e){return null}};e.exports=validRange},6708:(e,m,h)=>{const C=h(857);const q=h(9637);const V=h(7435);const{env:le}=process;let fe;if(V("no-color")||V("no-colors")||V("color=false")||V("color=never")){fe=0}else if(V("color")||V("colors")||V("color=true")||V("color=always")){fe=1}if("FORCE_COLOR"in le){if(le.FORCE_COLOR==="true"){fe=1}else if(le.FORCE_COLOR==="false"){fe=0}else{fe=le.FORCE_COLOR.length===0?1:Math.min(parseInt(le.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,m){if(fe===0){return 0}if(V("color=16m")||V("color=full")||V("color=truecolor")){return 3}if(V("color=256")){return 2}if(e&&!m&&fe===undefined){return 0}const h=fe||0;if(le.TERM==="dumb"){return h}if(process.platform==="win32"){const e=C.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in le){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in le))||le.CI_NAME==="codeship"){return 1}return h}if("TEAMCITY_VERSION"in le){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0}if(le.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in le){const e=parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(le.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)){return 1}if("COLORTERM"in le){return 1}return h}function getSupportLevel(e){const m=supportsColor(e,e&&e.isTTY);return translateLevel(m)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,q.isatty(1))),stderr:translateLevel(supportsColor(true,q.isatty(2)))}},7892:e=>{var m;var h;var C;var q;var V;var le;var fe;var he;var ye;var ve;var Le;var Ue;var qe;var ze;var He;var We;var Qe;var Je;var It;var _t;var Mt;var Lt;var Ut;var qt;var Gt;var zt;var Ht;var Wt;var Kt;var Yt;var Qt;var Jt;(function(m){var h=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){m(createExporter(h,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){m(createExporter(h,createExporter(e.exports)))}else{m(createExporter(h))}function createExporter(e,m){if(e!==h){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(h,C){return e[h]=m?m(h,C):C}}})((function(e){var Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,m){e.__proto__=m}||function(e,m){for(var h in m)if(Object.prototype.hasOwnProperty.call(m,h))e[h]=m[h]};m=function(e,m){if(typeof m!=="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");Xt(e,m);function __(){this.constructor=e}e.prototype=m===null?Object.create(m):(__.prototype=m.prototype,new __)};h=Object.assign||function(e){for(var m,h=1,C=arguments.length;h<C;h++){m=arguments[h];for(var q in m)if(Object.prototype.hasOwnProperty.call(m,q))e[q]=m[q]}return e};C=function(e,m){var h={};for(var C in e)if(Object.prototype.hasOwnProperty.call(e,C)&&m.indexOf(C)<0)h[C]=e[C];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var q=0,C=Object.getOwnPropertySymbols(e);q<C.length;q++){if(m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(e,C[q]))h[C[q]]=e[C[q]]}return h};q=function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};V=function(e,m){return function(h,C){m(h,C,e)}};le=function(e,m,h,C,q,V){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var le=C.kind,fe=le==="getter"?"get":le==="setter"?"set":"value";var he=!m&&e?C["static"]?e:e.prototype:null;var ye=m||(he?Object.getOwnPropertyDescriptor(he,C.name):{});var ve,Le=false;for(var Ue=h.length-1;Ue>=0;Ue--){var qe={};for(var ze in C)qe[ze]=ze==="access"?{}:C[ze];for(var ze in C.access)qe.access[ze]=C.access[ze];qe.addInitializer=function(e){if(Le)throw new TypeError("Cannot add initializers after decoration has completed");V.push(accept(e||null))};var He=(0,h[Ue])(le==="accessor"?{get:ye.get,set:ye.set}:ye[fe],qe);if(le==="accessor"){if(He===void 0)continue;if(He===null||typeof He!=="object")throw new TypeError("Object expected");if(ve=accept(He.get))ye.get=ve;if(ve=accept(He.set))ye.set=ve;if(ve=accept(He.init))q.unshift(ve)}else if(ve=accept(He)){if(le==="field")q.unshift(ve);else ye[fe]=ve}}if(he)Object.defineProperty(he,C.name,ye);Le=true};fe=function(e,m,h){var C=arguments.length>2;for(var q=0;q<m.length;q++){h=C?m[q].call(e,h):m[q].call(e)}return C?h:void 0};he=function(e){return typeof e==="symbol"?e:"".concat(e)};ye=function(e,m,h){if(typeof m==="symbol")m=m.description?"[".concat(m.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:h?"".concat(h," ",m):m})};ve=function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};Le=function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};Ue=function(e,m){var h={label:0,sent:function(){if(V[0]&1)throw V[1];return V[1]},trys:[],ops:[]},C,q,V,le=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return le.next=verb(0),le["throw"]=verb(1),le["return"]=verb(2),typeof Symbol==="function"&&(le[Symbol.iterator]=function(){return this}),le;function verb(e){return function(m){return step([e,m])}}function step(fe){if(C)throw new TypeError("Generator is already executing.");while(le&&(le=0,fe[0]&&(h=0)),h)try{if(C=1,q&&(V=fe[0]&2?q["return"]:fe[0]?q["throw"]||((V=q["return"])&&V.call(q),0):q.next)&&!(V=V.call(q,fe[1])).done)return V;if(q=0,V)fe=[fe[0]&2,V.value];switch(fe[0]){case 0:case 1:V=fe;break;case 4:h.label++;return{value:fe[1],done:false};case 5:h.label++;q=fe[1];fe=[0];continue;case 7:fe=h.ops.pop();h.trys.pop();continue;default:if(!(V=h.trys,V=V.length>0&&V[V.length-1])&&(fe[0]===6||fe[0]===2)){h=0;continue}if(fe[0]===3&&(!V||fe[1]>V[0]&&fe[1]<V[3])){h.label=fe[1];break}if(fe[0]===6&&h.label<V[1]){h.label=V[1];V=fe;break}if(V&&h.label<V[2]){h.label=V[2];h.ops.push(fe);break}if(V[2])h.ops.pop();h.trys.pop();continue}fe=m.call(e,h)}catch(e){fe=[6,e];q=0}finally{C=V=0}if(fe[0]&5)throw fe[1];return{value:fe[0]?fe[1]:void 0,done:true}}};qe=function(e,m){for(var h in e)if(h!=="default"&&!Object.prototype.hasOwnProperty.call(m,h))Kt(m,e,h)};Kt=Object.create?function(e,m,h,C){if(C===undefined)C=h;var q=Object.getOwnPropertyDescriptor(m,h);if(!q||("get"in q?!m.__esModule:q.writable||q.configurable)){q={enumerable:true,get:function(){return m[h]}}}Object.defineProperty(e,C,q)}:function(e,m,h,C){if(C===undefined)C=h;e[C]=m[h]};ze=function(e){var m=typeof Symbol==="function"&&Symbol.iterator,h=m&&e[m],C=0;if(h)return h.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&C>=e.length)e=void 0;return{value:e&&e[C++],done:!e}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};He=function(e,m){var h=typeof Symbol==="function"&&e[Symbol.iterator];if(!h)return e;var C=h.call(e),q,V=[],le;try{while((m===void 0||m-- >0)&&!(q=C.next()).done)V.push(q.value)}catch(e){le={error:e}}finally{try{if(q&&!q.done&&(h=C["return"]))h.call(C)}finally{if(le)throw le.error}}return V};We=function(){for(var e=[],m=0;m<arguments.length;m++)e=e.concat(He(arguments[m]));return e};Qe=function(){for(var e=0,m=0,h=arguments.length;m<h;m++)e+=arguments[m].length;for(var C=Array(e),q=0,m=0;m<h;m++)for(var V=arguments[m],le=0,fe=V.length;le<fe;le++,q++)C[q]=V[le];return C};Je=function(e,m,h){if(h||arguments.length===2)for(var C=0,q=m.length,V;C<q;C++){if(V||!(C in m)){if(!V)V=Array.prototype.slice.call(m,0,C);V[C]=m[C]}}return e.concat(V||Array.prototype.slice.call(m))};It=function(e){return this instanceof It?(this.v=e,this):new It(e)};_t=function(e,m,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var C=h.apply(e,m||[]),q,V=[];return q=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),q[Symbol.asyncIterator]=function(){return this},q;function awaitReturn(e){return function(m){return Promise.resolve(m).then(e,reject)}}function verb(e,m){if(C[e]){q[e]=function(m){return new Promise((function(h,C){V.push([e,m,h,C])>1||resume(e,m)}))};if(m)q[e]=m(q[e])}}function resume(e,m){try{step(C[e](m))}catch(e){settle(V[0][3],e)}}function step(e){e.value instanceof It?Promise.resolve(e.value.v).then(fulfill,reject):settle(V[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,m){if(e(m),V.shift(),V.length)resume(V[0][0],V[0][1])}};Mt=function(e){var m,h;return m={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),m[Symbol.iterator]=function(){return this},m;function verb(C,q){m[C]=e[C]?function(m){return(h=!h)?{value:It(e[C](m)),done:false}:q?q(m):m}:q}};Lt=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=e[Symbol.asyncIterator],h;return m?m.call(e):(e=typeof ze==="function"?ze(e):e[Symbol.iterator](),h={},verb("next"),verb("throw"),verb("return"),h[Symbol.asyncIterator]=function(){return this},h);function verb(m){h[m]=e[m]&&function(h){return new Promise((function(C,q){h=e[m](h),settle(C,q,h.done,h.value)}))}}function settle(e,m,h,C){Promise.resolve(C).then((function(m){e({value:m,done:h})}),m)}};Ut=function(e,m){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:m})}else{e.raw=m}return e};var Zt=Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:true,value:m})}:function(e,m){e["default"]=m};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var m=[];for(var h in e)if(Object.prototype.hasOwnProperty.call(e,h))m[m.length]=h;return m};return ownKeys(e)};qt=function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var h=ownKeys(e),C=0;C<h.length;C++)if(h[C]!=="default")Kt(m,e,h[C]);Zt(m,e);return m};Gt=function(e){return e&&e.__esModule?e:{default:e}};zt=function(e,m,h,C){if(h==="a"&&!C)throw new TypeError("Private accessor was defined without a getter");if(typeof m==="function"?e!==m||!C:!m.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return h==="m"?C:h==="a"?C.call(e):C?C.value:m.get(e)};Ht=function(e,m,h,C,q){if(C==="m")throw new TypeError("Private method is not writable");if(C==="a"&&!q)throw new TypeError("Private accessor was defined without a setter");if(typeof m==="function"?e!==m||!q:!m.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return C==="a"?q.call(e,h):q?q.value=h:m.set(e,h),h};Wt=function(e,m){if(m===null||typeof m!=="object"&&typeof m!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?m===e:e.has(m)};Yt=function(e,m,h){if(m!==null&&m!==void 0){if(typeof m!=="object"&&typeof m!=="function")throw new TypeError("Object expected.");var C,q;if(h){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");C=m[Symbol.asyncDispose]}if(C===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");C=m[Symbol.dispose];if(h)q=C}if(typeof C!=="function")throw new TypeError("Object not disposable.");if(q)C=function(){try{q.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:m,dispose:C,async:h})}else if(h){e.stack.push({async:true})}return m};var en=typeof SuppressedError==="function"?SuppressedError:function(e,m,h){var C=new Error(h);return C.name="SuppressedError",C.error=e,C.suppressed=m,C};Qt=function(e){function fail(m){e.error=e.hasError?new en(m,e.error,"An error was suppressed during disposal."):m;e.hasError=true}var m,h=0;function next(){while(m=e.stack.pop()){try{if(!m.async&&h===1)return h=0,e.stack.push(m),Promise.resolve().then(next);if(m.dispose){var C=m.dispose.call(m.value);if(m.async)return h|=2,Promise.resolve(C).then(next,(function(e){fail(e);return next()}))}else h|=1}catch(e){fail(e)}}if(h===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};Jt=function(e,m){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,h,C,q,V){return h?m?".jsx":".js":C&&(!q||!V)?e:C+q+"."+V.toLowerCase()+"js"}))}return e};e("__extends",m);e("__assign",h);e("__rest",C);e("__decorate",q);e("__param",V);e("__esDecorate",le);e("__runInitializers",fe);e("__propKey",he);e("__setFunctionName",ye);e("__metadata",ve);e("__awaiter",Le);e("__generator",Ue);e("__exportStar",qe);e("__createBinding",Kt);e("__values",ze);e("__read",He);e("__spread",We);e("__spreadArrays",Qe);e("__spreadArray",Je);e("__await",It);e("__asyncGenerator",_t);e("__asyncDelegator",Mt);e("__asyncValues",Lt);e("__makeTemplateObject",Ut);e("__importStar",qt);e("__importDefault",Gt);e("__classPrivateFieldGet",zt);e("__classPrivateFieldSet",Ht);e("__classPrivateFieldIn",Wt);e("__addDisposableResource",Yt);e("__disposeResources",Qt);e("__rewriteRelativeImportExtension",Jt)}));0&&0},4345:(e,m,h)=>{var C;C={value:true};Object.defineProperty(m,"v1",{enumerable:true,get:function(){return q.default}});Object.defineProperty(m,"v3",{enumerable:true,get:function(){return V.default}});Object.defineProperty(m,"v4",{enumerable:true,get:function(){return le.default}});Object.defineProperty(m,"v5",{enumerable:true,get:function(){return fe.default}});Object.defineProperty(m,"wD",{enumerable:true,get:function(){return he.default}});Object.defineProperty(m,"rE",{enumerable:true,get:function(){return ye.default}});Object.defineProperty(m,"tf",{enumerable:true,get:function(){return ve.default}});Object.defineProperty(m,"As",{enumerable:true,get:function(){return Le.default}});Object.defineProperty(m,"qg",{enumerable:true,get:function(){return Ue.default}});var q=_interopRequireDefault(h(4212));var V=_interopRequireDefault(h(2414));var le=_interopRequireDefault(h(3679));var fe=_interopRequireDefault(h(5416));var he=_interopRequireDefault(h(9706));var ye=_interopRequireDefault(h(8857));var ve=_interopRequireDefault(h(5139));var Le=_interopRequireDefault(h(8832));var Ue=_interopRequireDefault(h(2014));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},581:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return C.default.createHash("md5").update(e).digest()}var q=md5;m["default"]=q},9706:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var h="00000000-0000-0000-0000-000000000000";m["default"]=h},2014:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(5139));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,C.default)(e)){throw TypeError("Invalid UUID")}let m;const h=new Uint8Array(16);h[0]=(m=parseInt(e.slice(0,8),16))>>>24;h[1]=m>>>16&255;h[2]=m>>>8&255;h[3]=m&255;h[4]=(m=parseInt(e.slice(9,13),16))>>>8;h[5]=m&255;h[6]=(m=parseInt(e.slice(14,18),16))>>>8;h[7]=m&255;h[8]=(m=parseInt(e.slice(19,23),16))>>>8;h[9]=m&255;h[10]=(m=parseInt(e.slice(24,36),16))/1099511627776&255;h[11]=m/4294967296&255;h[12]=m>>>24&255;h[13]=m>>>16&255;h[14]=m>>>8&255;h[15]=m&255;return h}var q=parse;m["default"]=q},3174:(e,m)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;m["default"]=h},7700:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=rng;var C=_interopRequireDefault(h(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const q=new Uint8Array(256);let V=q.length;function rng(){if(V>q.length-16){C.default.randomFillSync(q);V=0}return q.slice(V,V+=16)}},832:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return C.default.createHash("sha1").update(e).digest()}var q=sha1;m["default"]=q},8832:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(5139));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const q=[];for(let e=0;e<256;++e){q.push((e+256).toString(16).substr(1))}function stringify(e,m=0){const h=(q[e[m+0]]+q[e[m+1]]+q[e[m+2]]+q[e[m+3]]+"-"+q[e[m+4]]+q[e[m+5]]+"-"+q[e[m+6]]+q[e[m+7]]+"-"+q[e[m+8]]+q[e[m+9]]+"-"+q[e[m+10]]+q[e[m+11]]+q[e[m+12]]+q[e[m+13]]+q[e[m+14]]+q[e[m+15]]).toLowerCase();if(!(0,C.default)(h)){throw TypeError("Stringified UUID is invalid")}return h}var V=stringify;m["default"]=V},4212:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(7700));var q=_interopRequireDefault(h(8832));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let V;let le;let fe=0;let he=0;function v1(e,m,h){let ye=m&&h||0;const ve=m||new Array(16);e=e||{};let Le=e.node||V;let Ue=e.clockseq!==undefined?e.clockseq:le;if(Le==null||Ue==null){const m=e.random||(e.rng||C.default)();if(Le==null){Le=V=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]}if(Ue==null){Ue=le=(m[6]<<8|m[7])&16383}}let qe=e.msecs!==undefined?e.msecs:Date.now();let ze=e.nsecs!==undefined?e.nsecs:he+1;const He=qe-fe+(ze-he)/1e4;if(He<0&&e.clockseq===undefined){Ue=Ue+1&16383}if((He<0||qe>fe)&&e.nsecs===undefined){ze=0}if(ze>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}fe=qe;he=ze;le=Ue;qe+=122192928e5;const We=((qe&268435455)*1e4+ze)%4294967296;ve[ye++]=We>>>24&255;ve[ye++]=We>>>16&255;ve[ye++]=We>>>8&255;ve[ye++]=We&255;const Qe=qe/4294967296*1e4&268435455;ve[ye++]=Qe>>>8&255;ve[ye++]=Qe&255;ve[ye++]=Qe>>>24&15|16;ve[ye++]=Qe>>>16&255;ve[ye++]=Ue>>>8|128;ve[ye++]=Ue&255;for(let e=0;e<6;++e){ve[ye+e]=Le[e]}return m||(0,q.default)(ve)}var ye=v1;m["default"]=ye},2414:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(9991));var q=_interopRequireDefault(h(581));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const V=(0,C.default)("v3",48,q.default);var le=V;m["default"]=le},9991:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=_default;m.URL=m.DNS=void 0;var C=_interopRequireDefault(h(8832));var q=_interopRequireDefault(h(2014));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const m=[];for(let h=0;h<e.length;++h){m.push(e.charCodeAt(h))}return m}const V="6ba7b810-9dad-11d1-80b4-00c04fd430c8";m.DNS=V;const le="6ba7b811-9dad-11d1-80b4-00c04fd430c8";m.URL=le;function _default(e,m,h){function generateUUID(e,V,le,fe){if(typeof e==="string"){e=stringToBytes(e)}if(typeof V==="string"){V=(0,q.default)(V)}if(V.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let he=new Uint8Array(16+e.length);he.set(V);he.set(e,V.length);he=h(he);he[6]=he[6]&15|m;he[8]=he[8]&63|128;if(le){fe=fe||0;for(let e=0;e<16;++e){le[fe+e]=he[e]}return le}return(0,C.default)(he)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=V;generateUUID.URL=le;return generateUUID}},3679:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(7700));var q=_interopRequireDefault(h(8832));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,m,h){e=e||{};const V=e.random||(e.rng||C.default)();V[6]=V[6]&15|64;V[8]=V[8]&63|128;if(m){h=h||0;for(let e=0;e<16;++e){m[h+e]=V[e]}return m}return(0,q.default)(V)}var V=v4;m["default"]=V},5416:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(9991));var q=_interopRequireDefault(h(832));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const V=(0,C.default)("v5",80,q.default);var le=V;m["default"]=le},5139:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(3174));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&C.default.test(e)}var q=validate;m["default"]=q},8857:(e,m,h)=>{Object.defineProperty(m,"__esModule",{value:true});m["default"]=void 0;var C=_interopRequireDefault(h(5139));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,C.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var q=version;m["default"]=q},2613:e=>{e.exports=m(import.meta.url)("assert")},181:e=>{e.exports=m(import.meta.url)("buffer")},6982:e=>{e.exports=m(import.meta.url)("crypto")},4434:e=>{e.exports=m(import.meta.url)("events")},9896:e=>{e.exports=m(import.meta.url)("fs")},1943:e=>{e.exports=m(import.meta.url)("fs/promises")},8611:e=>{e.exports=m(import.meta.url)("http")},3311:e=>{e.exports=m(import.meta.url)("https")},9278:e=>{e.exports=m(import.meta.url)("net")},6698:e=>{e.exports=m(import.meta.url)("node:async_hooks")},4573:e=>{e.exports=m(import.meta.url)("node:buffer")},1421:e=>{e.exports=m(import.meta.url)("node:child_process")},7598:e=>{e.exports=m(import.meta.url)("node:crypto")},3024:e=>{e.exports=m(import.meta.url)("node:fs")},1455:e=>{e.exports=m(import.meta.url)("node:fs/promises")},7067:e=>{e.exports=m(import.meta.url)("node:http")},2467:e=>{e.exports=m(import.meta.url)("node:http2")},4708:e=>{e.exports=m(import.meta.url)("node:https")},8161:e=>{e.exports=m(import.meta.url)("node:os")},6760:e=>{e.exports=m(import.meta.url)("node:path")},1708:e=>{e.exports=m(import.meta.url)("node:process")},7075:e=>{e.exports=m(import.meta.url)("node:stream")},3136:e=>{e.exports=m(import.meta.url)("node:url")},7975:e=>{e.exports=m(import.meta.url)("node:util")},857:e=>{e.exports=m(import.meta.url)("os")},6928:e=>{e.exports=m(import.meta.url)("path")},2203:e=>{e.exports=m(import.meta.url)("stream")},4756:e=>{e.exports=m(import.meta.url)("tls")},9637:e=>{e.exports=m(import.meta.url)("tty")},4635:e=>{e.exports=m(import.meta.url)("url")},9023:e=>{e.exports=m(import.meta.url)("util")},9582:(e,m)=>{var h;h={value:true};m.w=void 0;m.w={operationRequestMap:new WeakMap}},4480:(e,m)=>{var h;h={value:true};m.w=void 0;m.w={instrumenterImplementation:undefined}},4539:()=>{ +var o=n(181);var i=o.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=o}else{copyProps(o,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return i(e,t,n)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var o=i(e);if(t!==undefined){if(typeof n==="string"){o.fill(t,n)}else{o.fill(t)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(e)}},6222:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");m("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}m("comp",this)}parse(e){const t=this.options.loose?a[d.COMPARATORLOOSE]:a[d.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new h(n[2],this.options.loose)}}toString(){return this.value}test(e){m("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new h(e,this.options)}catch(e){return false}}return f(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new C(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new C(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(f(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(f(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(977);const{safeRe:a,t:d}=n(5580);const f=n(2977);const m=n(1542);const h=n(4154);const C=n(3137)},3137:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=d(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof f){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0){this.formatted+="||"}const t=this.set[e];for(let e=0;e<t.length;e++){if(e>0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&F)|(this.options.loose&&q);const n=t+":"+e;const o=a.get(n);if(o){return o}const i=this.options.loose;const d=i?C[P.HYPHENRANGELOOSE]:C[P.HYPHENRANGE];e=e.replace(d,hyphenReplace(this.options.includePrerelease));m("hyphen replace",e);e=e.replace(C[P.COMPARATORTRIM],D);m("comparator trim",e);e=e.replace(C[P.TILDETRIM],k);m("tilde trim",e);e=e.replace(C[P.CARETTRIM],L);m("caret trim",e);let h=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){h=h.filter((e=>{m("loose invalid filter",e,this.options);return!!e.match(C[P.COMPARATORLOOSE])}))}m("range list",h);const V=new Map;const ee=h.map((e=>new f(e,this.options)));for(const e of ee){if(isNullSet(e)){return[e]}V.set(e.value,e)}if(V.size>1&&V.has("")){V.delete("")}const te=[...V.values()];a.set(n,te);return te}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new h(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const i=n(5088);const a=new i;const d=n(977);const f=n(6222);const m=n(1542);const h=n(4154);const{safeRe:C,t:P,comparatorTrimReplace:D,tildeTrimReplace:k,caretTrimReplace:L}=n(5580);const{FLAG_INCLUDE_PRERELEASE:F,FLAG_LOOSE:q}=n(4256);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(C[P.BUILD],"");m("comp",e,t);e=replaceCarets(e,t);m("caret",e);e=replaceTildes(e,t);m("tildes",e);e=replaceXRanges(e,t);m("xrange",e);e=replaceStars(e,t);m("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?C[P.TILDELOOSE]:C[P.TILDE];return e.replace(n,((t,n,o,i,a)=>{m("tilde",e,t,n,o,i,a);let d;if(isX(n)){d=""}else if(isX(o)){d=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){d=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(a){m("replaceTilde pr",a);d=`>=${n}.${o}.${i}-${a} <${n}.${+o+1}.0-0`}else{d=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}m("tilde return",d);return d}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{m("caret",e,t);const n=t.loose?C[P.CARETLOOSE]:C[P.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,d)=>{m("caret",e,t,n,i,a,d);let f;if(isX(n)){f=""}else if(isX(i)){f=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(a)){if(n==="0"){f=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{f=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(d){m("replaceCaret pr",d);if(n==="0"){if(i==="0"){f=`>=${n}.${i}.${a}-${d} <${n}.${i}.${+a+1}-0`}else{f=`>=${n}.${i}.${a}-${d} <${n}.${+i+1}.0-0`}}else{f=`>=${n}.${i}.${a}-${d} <${+n+1}.0.0-0`}}else{m("no pr");if(n==="0"){if(i==="0"){f=`>=${n}.${i}.${a}${o} <${n}.${i}.${+a+1}-0`}else{f=`>=${n}.${i}.${a}${o} <${n}.${+i+1}.0-0`}}else{f=`>=${n}.${i}.${a} <${+n+1}.0.0-0`}}m("caret return",f);return f}))};const replaceXRanges=(e,t)=>{m("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?C[P.XRANGELOOSE]:C[P.XRANGE];return e.replace(n,((n,o,i,a,d,f)=>{m("xRange",e,n,o,i,a,d,f);const h=isX(i);const C=h||isX(a);const P=C||isX(d);const D=P;if(o==="="&&D){o=""}f=t.includePrerelease?"-0":"";if(h){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&D){if(C){a=0}d=0;if(o===">"){o=">=";if(C){i=+i+1;a=0;d=0}else{a=+a+1;d=0}}else if(o==="<="){o="<";if(C){i=+i+1}else{a=+a+1}}if(o==="<"){f="-0"}n=`${o+i}.${a}.${d}${f}`}else if(C){n=`>=${i}.0.0${f} <${+i+1}.0.0-0`}else if(P){n=`>=${i}.${a}.0${f} <${i}.${+a+1}.0-0`}m("xRange return",n);return n}))};const replaceStars=(e,t)=>{m("replaceStars",e,t);return e.trim().replace(C[P.STAR],"")};const replaceGTE0=(e,t)=>{m("replaceGTE0",e,t);return e.trim().replace(C[t.includePrerelease?P.GTE0PRE:P.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,a,d,f,m,h,C,P,D)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(a)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(d){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(h)){m=""}else if(isX(C)){m=`<${+h+1}.0.0-0`}else if(isX(P)){m=`<${h}.${+C+1}.0-0`}else if(D){m=`<=${h}.${C}.${P}-${D}`}else if(e){m=`<${h}.${C}.${+P+1}-0`}else{m=`<=${m}`}return`${n} ${m}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++){m(e[n].semver);if(e[n].semver===f.ANY){continue}if(e[n].semver.prerelease.length>0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},4154:(e,t,n)=>{const o=n(1542);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=n(4256);const{safeRe:d,t:f}=n(5580);const m=n(977);const{compareIdentifiers:h}=n(1713);class SemVer{constructor(e,t){t=m(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?d[f.LOOSE]:d[f.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a){return t}}return e}))}this.build=n[5]?n[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){o("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.major<e.major){return-1}if(this.major>e.major){return 1}if(this.minor<e.minor){return-1}if(this.minor>e.minor){return 1}if(this.patch<e.patch){return-1}if(this.patch>e.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return h(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return h(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?d[f.PRERELEASELOOSE]:d[f.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(h(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},9956:(e,t,n)=>{const o=n(3854);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},2977:(e,t,n)=>{const o=n(2563);const i=n(5969);const a=n(2098);const d=n(5851);const f=n(5045);const m=n(5462);const cmp=(e,t,n,h)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,h);case"!=":return i(e,n,h);case">":return a(e,n,h);case">=":return d(e,n,h);case"<":return f(e,n,h);case"<=":return m(e,n,h);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},7420:(e,t,n)=>{const o=n(4154);const i=n(3854);const{safeRe:a,t:d}=n(5580);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?a[d.COERCEFULL]:a[d.COERCE])}else{const o=t.includePrerelease?a[d.COERCERTLFULL]:a[d.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const f=n[2];const m=n[3]||"0";const h=n[4]||"0";const C=t.includePrerelease&&n[5]?`-${n[5]}`:"";const P=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${f}.${m}.${h}${C}${P}`,t)};e.exports=coerce},7083:(e,t,n)=>{const o=n(4154);const compareBuild=(e,t,n)=>{const i=new o(e,n);const a=new o(t,n);return i.compare(a)||i.compareBuild(a)};e.exports=compareBuild},825:(e,t,n)=>{const o=n(1306);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},1306:(e,t,n)=>{const o=n(4154);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},4962:(e,t,n)=>{const o=n(3854);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const a=n.compare(i);if(a===0){return null}const d=a>0;const f=d?n:i;const m=d?i:n;const h=!!f.prerelease.length;const C=!!m.prerelease.length;if(C&&!h){if(!m.patch&&!m.minor){return"major"}if(m.compareMain(f)===0){if(m.minor&&!m.patch){return"minor"}return"patch"}}const P=h?"pre":"";if(n.major!==i.major){return P+"major"}if(n.minor!==i.minor){return P+"minor"}if(n.patch!==i.patch){return P+"patch"}return"prerelease"};e.exports=diff},2563:(e,t,n)=>{const o=n(1306);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},2098:(e,t,n)=>{const o=n(1306);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},5851:(e,t,n)=>{const o=n(1306);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2341:(e,t,n)=>{const o=n(4154);const inc=(e,t,n,i,a)=>{if(typeof n==="string"){a=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,a).version}catch(e){return null}};e.exports=inc},5045:(e,t,n)=>{const o=n(1306);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},5462:(e,t,n)=>{const o=n(1306);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},6468:(e,t,n)=>{const o=n(4154);const major=(e,t)=>new o(e,t).major;e.exports=major},7032:(e,t,n)=>{const o=n(4154);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},5969:(e,t,n)=>{const o=n(1306);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},3854:(e,t,n)=>{const o=n(4154);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},6447:(e,t,n)=>{const o=n(4154);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},8359:(e,t,n)=>{const o=n(3854);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},6156:(e,t,n)=>{const o=n(1306);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},2659:(e,t,n)=>{const o=n(7083);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},7575:(e,t,n)=>{const o=n(3137);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},2397:(e,t,n)=>{const o=n(7083);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},8691:(e,t,n)=>{const o=n(3854);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},9419:(e,t,n)=>{const o=n(5580);const i=n(4256);const a=n(4154);const d=n(1713);const f=n(3854);const m=n(8691);const h=n(9956);const C=n(2341);const P=n(4962);const D=n(6468);const k=n(7032);const L=n(6447);const F=n(8359);const q=n(1306);const V=n(6156);const ee=n(825);const te=n(7083);const ne=n(2397);const re=n(2659);const oe=n(2098);const ie=n(5045);const se=n(2563);const ae=n(5969);const ce=n(5851);const le=n(5462);const ue=n(2977);const de=n(7420);const pe=n(6222);const fe=n(3137);const me=n(7575);const he=n(4377);const ge=n(4150);const ye=n(2420);const Se=n(7815);const Ee=n(8072);const ve=n(4421);const Ce=n(7173);const Ie=n(2156);const be=n(2150);const we=n(3963);const Ae=n(826);e.exports={parse:f,valid:m,clean:h,inc:C,diff:P,major:D,minor:k,patch:L,prerelease:F,compare:q,rcompare:V,compareLoose:ee,compareBuild:te,sort:ne,rsort:re,gt:oe,lt:ie,eq:se,neq:ae,gte:ce,lte:le,cmp:ue,coerce:de,Comparator:pe,Range:fe,satisfies:me,toComparators:he,maxSatisfying:ge,minSatisfying:ye,minVersion:Se,validRange:Ee,outside:ve,gtr:Ce,ltr:Ie,intersects:be,simplifyRange:we,subset:Ae,SemVer:a,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},4256:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const a=n-6;const d=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:o,RELEASE_TYPES:d,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1542:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1713:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:e<n?-1:1}const o=t.test(e);const i=t.test(n);if(o&&i){e=+e;n=+n}return e===n?0:o&&!i?-1:i&&!o?1:e<n?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},5088:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},977:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5580:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=n(4256);const d=n(1542);t=e.exports={};const f=t.re=[];const m=t.safeRe=[];const h=t.src=[];const C=t.safeSrc=[];const P=t.t={};let D=0;const k="[a-zA-Z0-9-]";const L=[["\\s",1],["\\d",a],[k,i]];const makeSafeRegex=e=>{for(const[t,n]of L){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=D++;d(e,i,t);P[e]=i;h[i]=t;C[i]=o;f[i]=new RegExp(t,n?"g":undefined);m[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k}*`);createToken("MAINVERSION",`(${h[P.NUMERICIDENTIFIER]})\\.`+`(${h[P.NUMERICIDENTIFIER]})\\.`+`(${h[P.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${h[P.NUMERICIDENTIFIERLOOSE]})\\.`+`(${h[P.NUMERICIDENTIFIERLOOSE]})\\.`+`(${h[P.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${h[P.NONNUMERICIDENTIFIER]}|${h[P.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${h[P.NONNUMERICIDENTIFIER]}|${h[P.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${h[P.PRERELEASEIDENTIFIER]}(?:\\.${h[P.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${h[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[P.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${k}+`);createToken("BUILD",`(?:\\+(${h[P.BUILDIDENTIFIER]}(?:\\.${h[P.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${h[P.MAINVERSION]}${h[P.PRERELEASE]}?${h[P.BUILD]}?`);createToken("FULL",`^${h[P.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${h[P.MAINVERSIONLOOSE]}${h[P.PRERELEASELOOSE]}?${h[P.BUILD]}?`);createToken("LOOSE",`^${h[P.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${h[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${h[P.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${h[P.XRANGEIDENTIFIER]})`+`(?:\\.(${h[P.XRANGEIDENTIFIER]})`+`(?:\\.(${h[P.XRANGEIDENTIFIER]})`+`(?:${h[P.PRERELEASE]})?${h[P.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${h[P.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${h[P.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${h[P.XRANGEIDENTIFIERLOOSE]})`+`(?:${h[P.PRERELEASELOOSE]})?${h[P.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${h[P.GTLT]}\\s*${h[P.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${h[P.GTLT]}\\s*${h[P.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${h[P.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",h[P.COERCEPLAIN]+`(?:${h[P.PRERELEASE]})?`+`(?:${h[P.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",h[P.COERCE],true);createToken("COERCERTLFULL",h[P.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${h[P.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${h[P.LONETILDE]}${h[P.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${h[P.LONETILDE]}${h[P.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${h[P.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${h[P.LONECARET]}${h[P.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${h[P.LONECARET]}${h[P.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${h[P.GTLT]}\\s*(${h[P.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${h[P.GTLT]}\\s*(${h[P.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${h[P.GTLT]}\\s*(${h[P.LOOSEPLAIN]}|${h[P.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${h[P.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${h[P.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${h[P.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${h[P.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7173:(e,t,n)=>{const o=n(4421);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},2150:(e,t,n)=>{const o=n(3137);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},2156:(e,t,n)=>{const o=n(4421);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},4150:(e,t,n)=>{const o=n(4154);const i=n(3137);const maxSatisfying=(e,t,n)=>{let a=null;let d=null;let f=null;try{f=new i(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!a||d.compare(e)===-1){a=e;d=new o(a,n)}}}));return a};e.exports=maxSatisfying},2420:(e,t,n)=>{const o=n(4154);const i=n(3137);const minSatisfying=(e,t,n)=>{let a=null;let d=null;let f=null;try{f=new i(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!a||d.compare(e)===1){a=e;d=new o(a,n)}}}));return a};e.exports=minSatisfying},7815:(e,t,n)=>{const o=n(4154);const i=n(3137);const a=n(2098);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let d=null;i.forEach((e=>{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!d||a(t,d)){d=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(d&&(!n||a(n,d))){n=d}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},4421:(e,t,n)=>{const o=n(4154);const i=n(6222);const{ANY:a}=i;const d=n(3137);const f=n(7575);const m=n(2098);const h=n(5045);const C=n(5462);const P=n(5851);const outside=(e,t,n,D)=>{e=new o(e,D);t=new d(t,D);let k,L,F,q,V;switch(n){case">":k=m;L=C;F=h;q=">";V=">=";break;case"<":k=h;L=P;F=m;q="<";V="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(e,t,D)){return false}for(let n=0;n<t.set.length;++n){const o=t.set[n];let d=null;let f=null;o.forEach((e=>{if(e.semver===a){e=new i(">=0.0.0")}d=d||e;f=f||e;if(k(e.semver,d.semver,D)){d=e}else if(F(e.semver,f.semver,D)){f=e}}));if(d.operator===q||d.operator===V){return false}if((!f.operator||f.operator===q)&&L(e,f.semver)){return false}else if(f.operator===V&&F(e,f.semver)){return false}}return true};e.exports=outside},3963:(e,t,n)=>{const o=n(7575);const i=n(1306);e.exports=(e,t,n)=>{const a=[];let d=null;let f=null;const m=e.sort(((e,t)=>i(e,t,n)));for(const e of m){const i=o(e,t,n);if(i){f=e;if(!d){d=e}}else{if(f){a.push([d,f])}f=null;d=null}}if(d){a.push([d,null])}const h=[];for(const[e,t]of a){if(e===t){h.push(e)}else if(!t&&e===m[0]){h.push("*")}else if(!t){h.push(`>=${e}`)}else if(e===m[0]){h.push(`<=${t}`)}else{h.push(`${e} - ${t}`)}}const C=h.join(" || ");const P=typeof t.raw==="string"?t.raw:String(t);return C.length<P.length?C:t}},826:(e,t,n)=>{const o=n(3137);const i=n(6222);const{ANY:a}=i;const d=n(7575);const f=n(1306);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const m=[new i(">=0.0.0-0")];const h=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===a){if(t.length===1&&t[0].semver===a){return true}else if(n.includePrerelease){e=m}else{e=h}}if(t.length===1&&t[0].semver===a){if(n.includePrerelease){return true}else{t=h}}const o=new Set;let i,C;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){C=lowerLT(C,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let P;if(i&&C){P=f(i.semver,C.semver,n);if(P>0){return null}else if(P===0&&(i.operator!==">="||C.operator!=="<=")){return null}}for(const e of o){if(i&&!d(e,String(i),n)){return null}if(C&&!d(e,String(C),n)){return null}for(const o of t){if(!d(e,String(o),n)){return false}}return true}let D,k;let L,F;let q=C&&!n.includePrerelease&&C.semver.prerelease.length?C.semver:false;let V=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(q&&q.prerelease.length===1&&C.operator==="<"&&q.prerelease[0]===0){q=false}for(const e of t){F=F||e.operator===">"||e.operator===">=";L=L||e.operator==="<"||e.operator==="<=";if(i){if(V){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===V.major&&e.semver.minor===V.minor&&e.semver.patch===V.patch){V=false}}if(e.operator===">"||e.operator===">="){D=higherGT(i,e,n);if(D===e&&D!==i){return false}}else if(i.operator===">="&&!d(i.semver,String(e),n)){return false}}if(C){if(q){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===q.major&&e.semver.minor===q.minor&&e.semver.patch===q.patch){q=false}}if(e.operator==="<"||e.operator==="<="){k=lowerLT(C,e,n);if(k===e&&k!==C){return false}}else if(C.operator==="<="&&!d(C.semver,String(e),n)){return false}}if(!e.operator&&(C||i)&&P!==0){return false}}if(i&&L&&!C&&P!==0){return false}if(C&&F&&!i&&P!==0){return false}if(V||q){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=f(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=f(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4377:(e,t,n)=>{const o=n(3137);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},8072:(e,t,n)=>{const o=n(3137);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},6708:(e,t,n)=>{const o=n(857);const i=n(9637);const a=n(7435);const{env:d}=process;let f;if(a("no-color")||a("no-colors")||a("color=false")||a("color=never")){f=0}else if(a("color")||a("colors")||a("color=true")||a("color=always")){f=1}if("FORCE_COLOR"in d){if(d.FORCE_COLOR==="true"){f=1}else if(d.FORCE_COLOR==="false"){f=0}else{f=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(f===0){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(e&&!t&&f===undefined){return 0}const n=f||0;if(d.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in d){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in d))||d.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in d){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0}if(d.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in d){const e=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(d.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)){return 1}if("COLORTERM"in d){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},7892:e=>{var t;var n;var o;var i;var a;var d;var f;var m;var h;var C;var P;var D;var k;var L;var F;var q;var V;var ee;var te;var ne;var re;var oe;var ie;var se;var ae;var ce;var le;var ue;var de;var pe;var fe;var me;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");he(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};o=function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++){if(t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i]))n[o[i]]=e[o[i]]}return n};i=function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};a=function(e,t){return function(n,o){t(n,o,e)}};d=function(e,t,n,o,i,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var d=o.kind,f=d==="getter"?"get":d==="setter"?"set":"value";var m=!t&&e?o["static"]?e:e.prototype:null;var h=t||(m?Object.getOwnPropertyDescriptor(m,o.name):{});var C,P=false;for(var D=n.length-1;D>=0;D--){var k={};for(var L in o)k[L]=L==="access"?{}:o[L];for(var L in o.access)k.access[L]=o.access[L];k.addInitializer=function(e){if(P)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var F=(0,n[D])(d==="accessor"?{get:h.get,set:h.set}:h[f],k);if(d==="accessor"){if(F===void 0)continue;if(F===null||typeof F!=="object")throw new TypeError("Object expected");if(C=accept(F.get))h.get=C;if(C=accept(F.set))h.set=C;if(C=accept(F.init))i.unshift(C)}else if(C=accept(F)){if(d==="field")i.unshift(C);else h[f]=C}}if(m)Object.defineProperty(m,o.name,h);P=true};f=function(e,t,n){var o=arguments.length>2;for(var i=0;i<t.length;i++){n=o?t[i].call(e,n):t[i].call(e)}return o?n:void 0};m=function(e){return typeof e==="symbol"?e:"".concat(e)};h=function(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})};C=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};P=function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};D=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,d=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return d.next=verb(0),d["throw"]=verb(1),d["return"]=verb(2),typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function verb(e){return function(t){return step([e,t])}}function step(f){if(o)throw new TypeError("Generator is already executing.");while(d&&(d=0,f[0]&&(n=0)),n)try{if(o=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;i=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1];a=f;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(f);break}if(a[2])n.ops.pop();n.trys.pop();continue}f=t.call(e,n)}catch(e){f=[6,e];i=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};k=function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))de(t,e,n)};de=Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]};L=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&o>=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};F=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,a=[],d;try{while((t===void 0||t-- >0)&&!(i=o.next()).done)a.push(i.value)}catch(e){d={error:e}}finally{try{if(i&&!i.done&&(n=o["return"]))n.call(o)}finally{if(d)throw d.error}}return a};q=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(F(arguments[t]));return e};V=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],d=0,f=a.length;d<f;d++,i++)o[i]=a[d];return o};ee=function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,a;o<i;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};te=function(e){return this instanceof te?(this.v=e,this):new te(e)};ne=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),i[Symbol.asyncIterator]=function(){return this},i;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(o[e]){i[e]=function(t){return new Promise((function(n,o){a.push([e,t,n,o])>1||resume(e,t)}))};if(t)i[e]=t(i[e])}}function resume(e,t){try{step(o[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof te?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};re=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:te(e[o](t)),done:false}:i?i(t):t}:i}};oe=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof L==="function"?L(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};ie=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var ge=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};se=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),o=0;o<n.length;o++)if(n[o]!=="default")de(t,e,n[o]);ge(t,e);return t};ae=function(e){return e&&e.__esModule?e:{default:e}};ce=function(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)};le=function(e,t,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n};ue=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};pe=function(e,t,n){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var o,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose];if(n)i=o}if(typeof o!=="function")throw new TypeError("Object not disposable.");if(i)o=function(){try{i.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:o,async:n})}else if(n){e.stack.push({async:true})}return t};var ye=typeof SuppressedError==="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};fe=function(e){function fail(t){e.error=e.hasError?new ye(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,n=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&n===1)return n=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var o=t.dispose.call(t.value);if(t.async)return n|=2,Promise.resolve(o).then(next,(function(e){fail(e);return next()}))}else n|=1}catch(e){fail(e)}}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};me=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,n,o,i,a){return n?t?".jsx":".js":o&&(!i||!a)?e:o+i+"."+a.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",n);e("__rest",o);e("__decorate",i);e("__param",a);e("__esDecorate",d);e("__runInitializers",f);e("__propKey",m);e("__setFunctionName",h);e("__metadata",C);e("__awaiter",P);e("__generator",D);e("__exportStar",k);e("__createBinding",de);e("__values",L);e("__read",F);e("__spread",q);e("__spreadArrays",V);e("__spreadArray",ee);e("__await",te);e("__asyncGenerator",ne);e("__asyncDelegator",re);e("__asyncValues",oe);e("__makeTemplateObject",ie);e("__importStar",se);e("__importDefault",ae);e("__classPrivateFieldGet",ce);e("__classPrivateFieldSet",le);e("__classPrivateFieldIn",ue);e("__addDisposableResource",pe);e("__disposeResources",fe);e("__rewriteRelativeImportExtension",me)}));0&&0},4345:(e,t,n)=>{var o;o={value:true};Object.defineProperty(t,"v1",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return f.default}});Object.defineProperty(t,"wD",{enumerable:true,get:function(){return m.default}});Object.defineProperty(t,"rE",{enumerable:true,get:function(){return h.default}});Object.defineProperty(t,"tf",{enumerable:true,get:function(){return C.default}});Object.defineProperty(t,"As",{enumerable:true,get:function(){return P.default}});Object.defineProperty(t,"qg",{enumerable:true,get:function(){return D.default}});var i=_interopRequireDefault(n(4212));var a=_interopRequireDefault(n(2414));var d=_interopRequireDefault(n(3679));var f=_interopRequireDefault(n(5416));var m=_interopRequireDefault(n(9706));var h=_interopRequireDefault(n(8857));var C=_interopRequireDefault(n(5139));var P=_interopRequireDefault(n(8832));var D=_interopRequireDefault(n(2014));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},581:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return o.default.createHash("md5").update(e).digest()}var i=md5;t["default"]=i},9706:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n="00000000-0000-0000-0000-000000000000";t["default"]=n},2014:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(5139));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,o.default)(e)){throw TypeError("Invalid UUID")}let t;const n=new Uint8Array(16);n[0]=(t=parseInt(e.slice(0,8),16))>>>24;n[1]=t>>>16&255;n[2]=t>>>8&255;n[3]=t&255;n[4]=(t=parseInt(e.slice(9,13),16))>>>8;n[5]=t&255;n[6]=(t=parseInt(e.slice(14,18),16))>>>8;n[7]=t&255;n[8]=(t=parseInt(e.slice(19,23),16))>>>8;n[9]=t&255;n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;n[11]=t/4294967296&255;n[12]=t>>>24&255;n[13]=t>>>16&255;n[14]=t>>>8&255;n[15]=t&255;return n}var i=parse;t["default"]=i},3174:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=n},7700:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var o=_interopRequireDefault(n(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=new Uint8Array(256);let a=i.length;function rng(){if(a>i.length-16){o.default.randomFillSync(i);a=0}return i.slice(a,a+=16)}},832:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(6982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return o.default.createHash("sha1").update(e).digest()}var i=sha1;t["default"]=i},8832:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(5139));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=[];for(let e=0;e<256;++e){i.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,o.default)(n)){throw TypeError("Stringified UUID is invalid")}return n}var a=stringify;t["default"]=a},4212:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(7700));var i=_interopRequireDefault(n(8832));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let a;let d;let f=0;let m=0;function v1(e,t,n){let h=t&&n||0;const C=t||new Array(16);e=e||{};let P=e.node||a;let D=e.clockseq!==undefined?e.clockseq:d;if(P==null||D==null){const t=e.random||(e.rng||o.default)();if(P==null){P=a=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(D==null){D=d=(t[6]<<8|t[7])&16383}}let k=e.msecs!==undefined?e.msecs:Date.now();let L=e.nsecs!==undefined?e.nsecs:m+1;const F=k-f+(L-m)/1e4;if(F<0&&e.clockseq===undefined){D=D+1&16383}if((F<0||k>f)&&e.nsecs===undefined){L=0}if(L>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}f=k;m=L;d=D;k+=122192928e5;const q=((k&268435455)*1e4+L)%4294967296;C[h++]=q>>>24&255;C[h++]=q>>>16&255;C[h++]=q>>>8&255;C[h++]=q&255;const V=k/4294967296*1e4&268435455;C[h++]=V>>>8&255;C[h++]=V&255;C[h++]=V>>>24&15|16;C[h++]=V>>>16&255;C[h++]=D>>>8|128;C[h++]=D&255;for(let e=0;e<6;++e){C[h+e]=P[e]}return t||(0,i.default)(C)}var h=v1;t["default"]=h},2414:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(9991));var i=_interopRequireDefault(n(581));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,o.default)("v3",48,i.default);var d=a;t["default"]=d},9991:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var o=_interopRequireDefault(n(8832));var i=_interopRequireDefault(n(2014));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n){t.push(e.charCodeAt(n))}return t}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const d="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=d;function _default(e,t,n){function generateUUID(e,a,d,f){if(typeof e==="string"){e=stringToBytes(e)}if(typeof a==="string"){a=(0,i.default)(a)}if(a.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let m=new Uint8Array(16+e.length);m.set(a);m.set(e,a.length);m=n(m);m[6]=m[6]&15|t;m[8]=m[8]&63|128;if(d){f=f||0;for(let e=0;e<16;++e){d[f+e]=m[e]}return d}return(0,o.default)(m)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=a;generateUUID.URL=d;return generateUUID}},3679:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(7700));var i=_interopRequireDefault(n(8832));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,n){e=e||{};const a=e.random||(e.rng||o.default)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){n=n||0;for(let e=0;e<16;++e){t[n+e]=a[e]}return t}return(0,i.default)(a)}var a=v4;t["default"]=a},5416:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(9991));var i=_interopRequireDefault(n(832));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,o.default)("v5",80,i.default);var d=a;t["default"]=d},5139:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(3174));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&o.default.test(e)}var i=validate;t["default"]=i},8857:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(5139));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,o.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var i=version;t["default"]=i},2613:t=>{t.exports=e(import.meta.url)("assert")},181:t=>{t.exports=e(import.meta.url)("buffer")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},1943:t=>{t.exports=e(import.meta.url)("fs/promises")},8611:t=>{t.exports=e(import.meta.url)("http")},3311:t=>{t.exports=e(import.meta.url)("https")},9278:t=>{t.exports=e(import.meta.url)("net")},6698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},1421:t=>{t.exports=e(import.meta.url)("node:child_process")},7598:t=>{t.exports=e(import.meta.url)("node:crypto")},3024:t=>{t.exports=e(import.meta.url)("node:fs")},1455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},7067:t=>{t.exports=e(import.meta.url)("node:http")},2467:t=>{t.exports=e(import.meta.url)("node:http2")},4708:t=>{t.exports=e(import.meta.url)("node:https")},8161:t=>{t.exports=e(import.meta.url)("node:os")},6760:t=>{t.exports=e(import.meta.url)("node:path")},1708:t=>{t.exports=e(import.meta.url)("node:process")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},4756:t=>{t.exports=e(import.meta.url)("tls")},9637:t=>{t.exports=e(import.meta.url)("tty")},4635:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},9582:(e,t)=>{var n;n={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},4480:(e,t)=>{var n;n={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},4539:()=>{ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -16,7 +16,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var e;(function(e){(function(m){var h=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:sloppyModeThis();var C=makeExporter(e);if(typeof h.Reflect!=="undefined"){C=makeExporter(h.Reflect,C)}m(C,h);if(typeof h.Reflect==="undefined"){h.Reflect=e}function makeExporter(e,m){return function(h,C){Object.defineProperty(e,h,{configurable:true,writable:true,value:C});if(m)m(h,C)}}function functionThis(){try{return Function("return this;")()}catch(e){}}function indirectEvalThis(){try{return(void 0,eval)("(function() { return this; })()")}catch(e){}}function sloppyModeThis(){return functionThis()||indirectEvalThis()}})((function(e,m){var h=Object.prototype.hasOwnProperty;var C=typeof Symbol==="function";var q=C&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive";var V=C&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator";var le=typeof Object.create==="function";var fe={__proto__:[]}instanceof Array;var he=!le&&!fe;var ye={create:le?function(){return MakeDictionary(Object.create(null))}:fe?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:he?function(e,m){return h.call(e,m)}:function(e,m){return m in e},get:he?function(e,m){return h.call(e,m)?e[m]:undefined}:function(e,m){return e[m]}};var ve=Object.getPrototypeOf(Function);var Le=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:CreateMapPolyfill();var Ue=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:CreateSetPolyfill();var qe=typeof WeakMap==="function"?WeakMap:CreateWeakMapPolyfill();var ze=C?Symbol.for("@reflect-metadata:registry"):undefined;var He=GetOrCreateMetadataRegistry();var We=CreateMetadataProvider(He);function decorate(e,m,h,C){if(!IsUndefined(h)){if(!IsArray(e))throw new TypeError;if(!IsObject(m))throw new TypeError;if(!IsObject(C)&&!IsUndefined(C)&&!IsNull(C))throw new TypeError;if(IsNull(C))C=undefined;h=ToPropertyKey(h);return DecorateProperty(e,m,h,C)}else{if(!IsArray(e))throw new TypeError;if(!IsConstructor(m))throw new TypeError;return DecorateConstructor(e,m)}}e("decorate",decorate);function metadata(e,m){function decorator(h,C){if(!IsObject(h))throw new TypeError;if(!IsUndefined(C)&&!IsPropertyKey(C))throw new TypeError;OrdinaryDefineOwnMetadata(e,m,h,C)}return decorator}e("metadata",metadata);function defineMetadata(e,m,h,C){if(!IsObject(h))throw new TypeError;if(!IsUndefined(C))C=ToPropertyKey(C);return OrdinaryDefineOwnMetadata(e,m,h,C)}e("defineMetadata",defineMetadata);function hasMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryHasMetadata(e,m,h)}e("hasMetadata",hasMetadata);function hasOwnMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryHasOwnMetadata(e,m,h)}e("hasOwnMetadata",hasOwnMetadata);function getMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryGetMetadata(e,m,h)}e("getMetadata",getMetadata);function getOwnMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryGetOwnMetadata(e,m,h)}e("getOwnMetadata",getOwnMetadata);function getMetadataKeys(e,m){if(!IsObject(e))throw new TypeError;if(!IsUndefined(m))m=ToPropertyKey(m);return OrdinaryMetadataKeys(e,m)}e("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(e,m){if(!IsObject(e))throw new TypeError;if(!IsUndefined(m))m=ToPropertyKey(m);return OrdinaryOwnMetadataKeys(e,m)}e("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);var C=GetMetadataProvider(m,h,false);if(IsUndefined(C))return false;return C.OrdinaryDeleteMetadata(e,m,h)}e("deleteMetadata",deleteMetadata);function DecorateConstructor(e,m){for(var h=e.length-1;h>=0;--h){var C=e[h];var q=C(m);if(!IsUndefined(q)&&!IsNull(q)){if(!IsConstructor(q))throw new TypeError;m=q}}return m}function DecorateProperty(e,m,h,C){for(var q=e.length-1;q>=0;--q){var V=e[q];var le=V(m,h,C);if(!IsUndefined(le)&&!IsNull(le)){if(!IsObject(le))throw new TypeError;C=le}}return C}function OrdinaryHasMetadata(e,m,h){var C=OrdinaryHasOwnMetadata(e,m,h);if(C)return true;var q=OrdinaryGetPrototypeOf(m);if(!IsNull(q))return OrdinaryHasMetadata(e,q,h);return false}function OrdinaryHasOwnMetadata(e,m,h){var C=GetMetadataProvider(m,h,false);if(IsUndefined(C))return false;return ToBoolean(C.OrdinaryHasOwnMetadata(e,m,h))}function OrdinaryGetMetadata(e,m,h){var C=OrdinaryHasOwnMetadata(e,m,h);if(C)return OrdinaryGetOwnMetadata(e,m,h);var q=OrdinaryGetPrototypeOf(m);if(!IsNull(q))return OrdinaryGetMetadata(e,q,h);return undefined}function OrdinaryGetOwnMetadata(e,m,h){var C=GetMetadataProvider(m,h,false);if(IsUndefined(C))return;return C.OrdinaryGetOwnMetadata(e,m,h)}function OrdinaryDefineOwnMetadata(e,m,h,C){var q=GetMetadataProvider(h,C,true);q.OrdinaryDefineOwnMetadata(e,m,h,C)}function OrdinaryMetadataKeys(e,m){var h=OrdinaryOwnMetadataKeys(e,m);var C=OrdinaryGetPrototypeOf(e);if(C===null)return h;var q=OrdinaryMetadataKeys(C,m);if(q.length<=0)return h;if(h.length<=0)return q;var V=new Ue;var le=[];for(var fe=0,he=h;fe<he.length;fe++){var ye=he[fe];var ve=V.has(ye);if(!ve){V.add(ye);le.push(ye)}}for(var Le=0,qe=q;Le<qe.length;Le++){var ye=qe[Le];var ve=V.has(ye);if(!ve){V.add(ye);le.push(ye)}}return le}function OrdinaryOwnMetadataKeys(e,m){var h=GetMetadataProvider(e,m,false);if(!h){return[]}return h.OrdinaryOwnMetadataKeys(e,m)}function Type(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsSymbol(e){return typeof e==="symbol"}function IsObject(e){return typeof e==="object"?e!==null:typeof e==="function"}function ToPrimitive(e,m){switch(Type(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var h=m===3?"string":m===5?"number":"default";var C=GetMethod(e,q);if(C!==undefined){var V=C.call(e,h);if(IsObject(V))throw new TypeError;return V}return OrdinaryToPrimitive(e,h==="default"?"number":h)}function OrdinaryToPrimitive(e,m){if(m==="string"){var h=e.toString;if(IsCallable(h)){var C=h.call(e);if(!IsObject(C))return C}var q=e.valueOf;if(IsCallable(q)){var C=q.call(e);if(!IsObject(C))return C}}else{var q=e.valueOf;if(IsCallable(q)){var C=q.call(e);if(!IsObject(C))return C}var V=e.toString;if(IsCallable(V)){var C=V.call(e);if(!IsObject(C))return C}}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var m=ToPrimitive(e,3);if(IsSymbol(m))return m;return ToString(m)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}function IsCallable(e){return typeof e==="function"}function IsConstructor(e){return typeof e==="function"}function IsPropertyKey(e){switch(Type(e)){case 3:return true;case 4:return true;default:return false}}function SameValueZero(e,m){return e===m||e!==e&&m!==m}function GetMethod(e,m){var h=e[m];if(h===undefined||h===null)return undefined;if(!IsCallable(h))throw new TypeError;return h}function GetIterator(e){var m=GetMethod(e,V);if(!IsCallable(m))throw new TypeError;var h=m.call(e);if(!IsObject(h))throw new TypeError;return h}function IteratorValue(e){return e.value}function IteratorStep(e){var m=e.next();return m.done?false:m}function IteratorClose(e){var m=e["return"];if(m)m.call(e)}function OrdinaryGetPrototypeOf(e){var m=Object.getPrototypeOf(e);if(typeof e!=="function"||e===ve)return m;if(m!==ve)return m;var h=e.prototype;var C=h&&Object.getPrototypeOf(h);if(C==null||C===Object.prototype)return m;var q=C.constructor;if(typeof q!=="function")return m;if(q===e)return m;return q}function CreateMetadataRegistry(){var e;if(!IsUndefined(ze)&&typeof m.Reflect!=="undefined"&&!(ze in m.Reflect)&&typeof m.Reflect.defineMetadata==="function"){e=CreateFallbackProvider(m.Reflect)}var h;var C;var q;var V=new qe;var le={registerProvider:registerProvider,getProvider:getProvider,setProvider:setProvider};return le;function registerProvider(m){if(!Object.isExtensible(le)){throw new Error("Cannot add provider to a frozen registry.")}switch(true){case e===m:break;case IsUndefined(h):h=m;break;case h===m:break;case IsUndefined(C):C=m;break;case C===m:break;default:if(q===undefined)q=new Ue;q.add(m);break}}function getProviderNoCache(m,V){if(!IsUndefined(h)){if(h.isProviderFor(m,V))return h;if(!IsUndefined(C)){if(C.isProviderFor(m,V))return h;if(!IsUndefined(q)){var le=GetIterator(q);while(true){var fe=IteratorStep(le);if(!fe){return undefined}var he=IteratorValue(fe);if(he.isProviderFor(m,V)){IteratorClose(le);return he}}}}}if(!IsUndefined(e)&&e.isProviderFor(m,V)){return e}return undefined}function getProvider(e,m){var h=V.get(e);var C;if(!IsUndefined(h)){C=h.get(m)}if(!IsUndefined(C)){return C}C=getProviderNoCache(e,m);if(!IsUndefined(C)){if(IsUndefined(h)){h=new Le;V.set(e,h)}h.set(m,C)}return C}function hasProvider(e){if(IsUndefined(e))throw new TypeError;return h===e||C===e||!IsUndefined(q)&&q.has(e)}function setProvider(e,m,h){if(!hasProvider(h)){throw new Error("Metadata provider not registered.")}var C=getProvider(e,m);if(C!==h){if(!IsUndefined(C)){return false}var q=V.get(e);if(IsUndefined(q)){q=new Le;V.set(e,q)}q.set(m,h)}return true}}function GetOrCreateMetadataRegistry(){var e;if(!IsUndefined(ze)&&IsObject(m.Reflect)&&Object.isExtensible(m.Reflect)){e=m.Reflect[ze]}if(IsUndefined(e)){e=CreateMetadataRegistry()}if(!IsUndefined(ze)&&IsObject(m.Reflect)&&Object.isExtensible(m.Reflect)){Object.defineProperty(m.Reflect,ze,{enumerable:false,configurable:false,writable:false,value:e})}return e}function CreateMetadataProvider(e){var m=new qe;var h={isProviderFor:function(e,h){var C=m.get(e);if(IsUndefined(C))return false;return C.has(h)},OrdinaryDefineOwnMetadata:OrdinaryDefineOwnMetadata,OrdinaryHasOwnMetadata:OrdinaryHasOwnMetadata,OrdinaryGetOwnMetadata:OrdinaryGetOwnMetadata,OrdinaryOwnMetadataKeys:OrdinaryOwnMetadataKeys,OrdinaryDeleteMetadata:OrdinaryDeleteMetadata};He.registerProvider(h);return h;function GetOrCreateMetadataMap(C,q,V){var le=m.get(C);var fe=false;if(IsUndefined(le)){if(!V)return undefined;le=new Le;m.set(C,le);fe=true}var he=le.get(q);if(IsUndefined(he)){if(!V)return undefined;he=new Le;le.set(q,he);if(!e.setProvider(C,q,h)){le.delete(q);if(fe){m.delete(C)}throw new Error("Wrong provider for target.")}}return he}function OrdinaryHasOwnMetadata(e,m,h){var C=GetOrCreateMetadataMap(m,h,false);if(IsUndefined(C))return false;return ToBoolean(C.has(e))}function OrdinaryGetOwnMetadata(e,m,h){var C=GetOrCreateMetadataMap(m,h,false);if(IsUndefined(C))return undefined;return C.get(e)}function OrdinaryDefineOwnMetadata(e,m,h,C){var q=GetOrCreateMetadataMap(h,C,true);q.set(e,m)}function OrdinaryOwnMetadataKeys(e,m){var h=[];var C=GetOrCreateMetadataMap(e,m,false);if(IsUndefined(C))return h;var q=C.keys();var V=GetIterator(q);var le=0;while(true){var fe=IteratorStep(V);if(!fe){h.length=le;return h}var he=IteratorValue(fe);try{h[le]=he}catch(e){try{IteratorClose(V)}finally{throw e}}le++}}function OrdinaryDeleteMetadata(e,h,C){var q=GetOrCreateMetadataMap(h,C,false);if(IsUndefined(q))return false;if(!q.delete(e))return false;if(q.size===0){var V=m.get(h);if(!IsUndefined(V)){V.delete(C);if(V.size===0){m.delete(V)}}}return true}}function CreateFallbackProvider(e){var m=e.defineMetadata,h=e.hasOwnMetadata,C=e.getOwnMetadata,q=e.getOwnMetadataKeys,V=e.deleteMetadata;var le=new qe;var fe={isProviderFor:function(e,m){var h=le.get(e);if(!IsUndefined(h)&&h.has(m)){return true}if(q(e,m).length){if(IsUndefined(h)){h=new Ue;le.set(e,h)}h.add(m);return true}return false},OrdinaryDefineOwnMetadata:m,OrdinaryHasOwnMetadata:h,OrdinaryGetOwnMetadata:C,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:V};return fe}function GetMetadataProvider(e,m,h){var C=He.getProvider(e,m);if(!IsUndefined(C)){return C}if(h){if(He.setProvider(e,m,We)){return We}throw new Error("Illegal state.")}return undefined}function CreateMapPolyfill(){var e={};var m=[];var h=function(){function MapIterator(e,m,h){this._index=0;this._keys=e;this._values=m;this._selector=h}MapIterator.prototype["@@iterator"]=function(){return this};MapIterator.prototype[V]=function(){return this};MapIterator.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var h=this._selector(this._keys[e],this._values[e]);if(e+1>=this._keys.length){this._index=-1;this._keys=m;this._values=m}else{this._index++}return{value:h,done:false}}return{value:undefined,done:true}};MapIterator.prototype.throw=function(e){if(this._index>=0){this._index=-1;this._keys=m;this._values=m}throw e};MapIterator.prototype.return=function(e){if(this._index>=0){this._index=-1;this._keys=m;this._values=m}return{value:e,done:true}};return MapIterator}();var C=function(){function Map(){this._keys=[];this._values=[];this._cacheKey=e;this._cacheIndex=-2}Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:true,configurable:true});Map.prototype.has=function(e){return this._find(e,false)>=0};Map.prototype.get=function(e){var m=this._find(e,false);return m>=0?this._values[m]:undefined};Map.prototype.set=function(e,m){var h=this._find(e,true);this._values[h]=m;return this};Map.prototype.delete=function(m){var h=this._find(m,false);if(h>=0){var C=this._keys.length;for(var q=h+1;q<C;q++){this._keys[q-1]=this._keys[q];this._values[q-1]=this._values[q]}this._keys.length--;this._values.length--;if(SameValueZero(m,this._cacheKey)){this._cacheKey=e;this._cacheIndex=-2}return true}return false};Map.prototype.clear=function(){this._keys.length=0;this._values.length=0;this._cacheKey=e;this._cacheIndex=-2};Map.prototype.keys=function(){return new h(this._keys,this._values,getKey)};Map.prototype.values=function(){return new h(this._keys,this._values,getValue)};Map.prototype.entries=function(){return new h(this._keys,this._values,getEntry)};Map.prototype["@@iterator"]=function(){return this.entries()};Map.prototype[V]=function(){return this.entries()};Map.prototype._find=function(e,m){if(!SameValueZero(this._cacheKey,e)){this._cacheIndex=-1;for(var h=0;h<this._keys.length;h++){if(SameValueZero(this._keys[h],e)){this._cacheIndex=h;break}}}if(this._cacheIndex<0&&m){this._cacheIndex=this._keys.length;this._keys.push(e);this._values.push(undefined)}return this._cacheIndex};return Map}();return C;function getKey(e,m){return e}function getValue(e,m){return m}function getEntry(e,m){return[e,m]}}function CreateSetPolyfill(){var e=function(){function Set(){this._map=new Le}Object.defineProperty(Set.prototype,"size",{get:function(){return this._map.size},enumerable:true,configurable:true});Set.prototype.has=function(e){return this._map.has(e)};Set.prototype.add=function(e){return this._map.set(e,e),this};Set.prototype.delete=function(e){return this._map.delete(e)};Set.prototype.clear=function(){this._map.clear()};Set.prototype.keys=function(){return this._map.keys()};Set.prototype.values=function(){return this._map.keys()};Set.prototype.entries=function(){return this._map.entries()};Set.prototype["@@iterator"]=function(){return this.keys()};Set.prototype[V]=function(){return this.keys()};return Set}();return e}function CreateWeakMapPolyfill(){var e=16;var m=ye.create();var C=CreateUniqueKey();return function(){function WeakMap(){this._key=CreateUniqueKey()}WeakMap.prototype.has=function(e){var m=GetOrCreateWeakMapTable(e,false);return m!==undefined?ye.has(m,this._key):false};WeakMap.prototype.get=function(e){var m=GetOrCreateWeakMapTable(e,false);return m!==undefined?ye.get(m,this._key):undefined};WeakMap.prototype.set=function(e,m){var h=GetOrCreateWeakMapTable(e,true);h[this._key]=m;return this};WeakMap.prototype.delete=function(e){var m=GetOrCreateWeakMapTable(e,false);return m!==undefined?delete m[this._key]:false};WeakMap.prototype.clear=function(){this._key=CreateUniqueKey()};return WeakMap}();function CreateUniqueKey(){var e;do{e="@@WeakMap@@"+CreateUUID()}while(ye.has(m,e));m[e]=true;return e}function GetOrCreateWeakMapTable(e,m){if(!h.call(e,C)){if(!m)return undefined;Object.defineProperty(e,C,{value:ye.create()})}return e[C]}function FillRandomBytes(e,m){for(var h=0;h<m;++h)e[h]=Math.random()*255|0;return e}function GenRandomBytes(e){if(typeof Uint8Array==="function"){var m=new Uint8Array(e);if(typeof crypto!=="undefined"){crypto.getRandomValues(m)}else if(typeof msCrypto!=="undefined"){msCrypto.getRandomValues(m)}else{FillRandomBytes(m,e)}return m}return FillRandomBytes(new Array(e),e)}function CreateUUID(){var m=GenRandomBytes(e);m[6]=m[6]&79|64;m[8]=m[8]&191|128;var h="";for(var C=0;C<e;++C){var q=m[C];if(C===4||C===6||C===8)h+="-";if(q<16)h+="0";h+=q.toString(16).toLowerCase()}return h}}function MakeDictionary(e){e.__=undefined;delete e.__;return e}}))})(e||(e={}))},2535:()=>{ +var e;(function(e){(function(t){var n=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:sloppyModeThis();var o=makeExporter(e);if(typeof n.Reflect!=="undefined"){o=makeExporter(n.Reflect,o)}t(o,n);if(typeof n.Reflect==="undefined"){n.Reflect=e}function makeExporter(e,t){return function(n,o){Object.defineProperty(e,n,{configurable:true,writable:true,value:o});if(t)t(n,o)}}function functionThis(){try{return Function("return this;")()}catch(e){}}function indirectEvalThis(){try{return(void 0,eval)("(function() { return this; })()")}catch(e){}}function sloppyModeThis(){return functionThis()||indirectEvalThis()}})((function(e,t){var n=Object.prototype.hasOwnProperty;var o=typeof Symbol==="function";var i=o&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive";var a=o&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator";var d=typeof Object.create==="function";var f={__proto__:[]}instanceof Array;var m=!d&&!f;var h={create:d?function(){return MakeDictionary(Object.create(null))}:f?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:m?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:m?function(e,t){return n.call(e,t)?e[t]:undefined}:function(e,t){return e[t]}};var C=Object.getPrototypeOf(Function);var P=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:CreateMapPolyfill();var D=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:CreateSetPolyfill();var k=typeof WeakMap==="function"?WeakMap:CreateWeakMapPolyfill();var L=o?Symbol.for("@reflect-metadata:registry"):undefined;var F=GetOrCreateMetadataRegistry();var q=CreateMetadataProvider(F);function decorate(e,t,n,o){if(!IsUndefined(n)){if(!IsArray(e))throw new TypeError;if(!IsObject(t))throw new TypeError;if(!IsObject(o)&&!IsUndefined(o)&&!IsNull(o))throw new TypeError;if(IsNull(o))o=undefined;n=ToPropertyKey(n);return DecorateProperty(e,t,n,o)}else{if(!IsArray(e))throw new TypeError;if(!IsConstructor(t))throw new TypeError;return DecorateConstructor(e,t)}}e("decorate",decorate);function metadata(e,t){function decorator(n,o){if(!IsObject(n))throw new TypeError;if(!IsUndefined(o)&&!IsPropertyKey(o))throw new TypeError;OrdinaryDefineOwnMetadata(e,t,n,o)}return decorator}e("metadata",metadata);function defineMetadata(e,t,n,o){if(!IsObject(n))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);return OrdinaryDefineOwnMetadata(e,t,n,o)}e("defineMetadata",defineMetadata);function hasMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryHasMetadata(e,t,n)}e("hasMetadata",hasMetadata);function hasOwnMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryHasOwnMetadata(e,t,n)}e("hasOwnMetadata",hasOwnMetadata);function getMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryGetMetadata(e,t,n)}e("getMetadata",getMetadata);function getOwnMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryGetOwnMetadata(e,t,n)}e("getOwnMetadata",getOwnMetadata);function getMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;if(!IsUndefined(t))t=ToPropertyKey(t);return OrdinaryMetadataKeys(e,t)}e("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;if(!IsUndefined(t))t=ToPropertyKey(t);return OrdinaryOwnMetadataKeys(e,t)}e("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);var o=GetMetadataProvider(t,n,false);if(IsUndefined(o))return false;return o.OrdinaryDeleteMetadata(e,t,n)}e("deleteMetadata",deleteMetadata);function DecorateConstructor(e,t){for(var n=e.length-1;n>=0;--n){var o=e[n];var i=o(t);if(!IsUndefined(i)&&!IsNull(i)){if(!IsConstructor(i))throw new TypeError;t=i}}return t}function DecorateProperty(e,t,n,o){for(var i=e.length-1;i>=0;--i){var a=e[i];var d=a(t,n,o);if(!IsUndefined(d)&&!IsNull(d)){if(!IsObject(d))throw new TypeError;o=d}}return o}function OrdinaryHasMetadata(e,t,n){var o=OrdinaryHasOwnMetadata(e,t,n);if(o)return true;var i=OrdinaryGetPrototypeOf(t);if(!IsNull(i))return OrdinaryHasMetadata(e,i,n);return false}function OrdinaryHasOwnMetadata(e,t,n){var o=GetMetadataProvider(t,n,false);if(IsUndefined(o))return false;return ToBoolean(o.OrdinaryHasOwnMetadata(e,t,n))}function OrdinaryGetMetadata(e,t,n){var o=OrdinaryHasOwnMetadata(e,t,n);if(o)return OrdinaryGetOwnMetadata(e,t,n);var i=OrdinaryGetPrototypeOf(t);if(!IsNull(i))return OrdinaryGetMetadata(e,i,n);return undefined}function OrdinaryGetOwnMetadata(e,t,n){var o=GetMetadataProvider(t,n,false);if(IsUndefined(o))return;return o.OrdinaryGetOwnMetadata(e,t,n)}function OrdinaryDefineOwnMetadata(e,t,n,o){var i=GetMetadataProvider(n,o,true);i.OrdinaryDefineOwnMetadata(e,t,n,o)}function OrdinaryMetadataKeys(e,t){var n=OrdinaryOwnMetadataKeys(e,t);var o=OrdinaryGetPrototypeOf(e);if(o===null)return n;var i=OrdinaryMetadataKeys(o,t);if(i.length<=0)return n;if(n.length<=0)return i;var a=new D;var d=[];for(var f=0,m=n;f<m.length;f++){var h=m[f];var C=a.has(h);if(!C){a.add(h);d.push(h)}}for(var P=0,k=i;P<k.length;P++){var h=k[P];var C=a.has(h);if(!C){a.add(h);d.push(h)}}return d}function OrdinaryOwnMetadataKeys(e,t){var n=GetMetadataProvider(e,t,false);if(!n){return[]}return n.OrdinaryOwnMetadataKeys(e,t)}function Type(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsSymbol(e){return typeof e==="symbol"}function IsObject(e){return typeof e==="object"?e!==null:typeof e==="function"}function ToPrimitive(e,t){switch(Type(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?"string":t===5?"number":"default";var o=GetMethod(e,i);if(o!==undefined){var a=o.call(e,n);if(IsObject(a))throw new TypeError;return a}return OrdinaryToPrimitive(e,n==="default"?"number":n)}function OrdinaryToPrimitive(e,t){if(t==="string"){var n=e.toString;if(IsCallable(n)){var o=n.call(e);if(!IsObject(o))return o}var i=e.valueOf;if(IsCallable(i)){var o=i.call(e);if(!IsObject(o))return o}}else{var i=e.valueOf;if(IsCallable(i)){var o=i.call(e);if(!IsObject(o))return o}var a=e.toString;if(IsCallable(a)){var o=a.call(e);if(!IsObject(o))return o}}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var t=ToPrimitive(e,3);if(IsSymbol(t))return t;return ToString(t)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}function IsCallable(e){return typeof e==="function"}function IsConstructor(e){return typeof e==="function"}function IsPropertyKey(e){switch(Type(e)){case 3:return true;case 4:return true;default:return false}}function SameValueZero(e,t){return e===t||e!==e&&t!==t}function GetMethod(e,t){var n=e[t];if(n===undefined||n===null)return undefined;if(!IsCallable(n))throw new TypeError;return n}function GetIterator(e){var t=GetMethod(e,a);if(!IsCallable(t))throw new TypeError;var n=t.call(e);if(!IsObject(n))throw new TypeError;return n}function IteratorValue(e){return e.value}function IteratorStep(e){var t=e.next();return t.done?false:t}function IteratorClose(e){var t=e["return"];if(t)t.call(e)}function OrdinaryGetPrototypeOf(e){var t=Object.getPrototypeOf(e);if(typeof e!=="function"||e===C)return t;if(t!==C)return t;var n=e.prototype;var o=n&&Object.getPrototypeOf(n);if(o==null||o===Object.prototype)return t;var i=o.constructor;if(typeof i!=="function")return t;if(i===e)return t;return i}function CreateMetadataRegistry(){var e;if(!IsUndefined(L)&&typeof t.Reflect!=="undefined"&&!(L in t.Reflect)&&typeof t.Reflect.defineMetadata==="function"){e=CreateFallbackProvider(t.Reflect)}var n;var o;var i;var a=new k;var d={registerProvider:registerProvider,getProvider:getProvider,setProvider:setProvider};return d;function registerProvider(t){if(!Object.isExtensible(d)){throw new Error("Cannot add provider to a frozen registry.")}switch(true){case e===t:break;case IsUndefined(n):n=t;break;case n===t:break;case IsUndefined(o):o=t;break;case o===t:break;default:if(i===undefined)i=new D;i.add(t);break}}function getProviderNoCache(t,a){if(!IsUndefined(n)){if(n.isProviderFor(t,a))return n;if(!IsUndefined(o)){if(o.isProviderFor(t,a))return n;if(!IsUndefined(i)){var d=GetIterator(i);while(true){var f=IteratorStep(d);if(!f){return undefined}var m=IteratorValue(f);if(m.isProviderFor(t,a)){IteratorClose(d);return m}}}}}if(!IsUndefined(e)&&e.isProviderFor(t,a)){return e}return undefined}function getProvider(e,t){var n=a.get(e);var o;if(!IsUndefined(n)){o=n.get(t)}if(!IsUndefined(o)){return o}o=getProviderNoCache(e,t);if(!IsUndefined(o)){if(IsUndefined(n)){n=new P;a.set(e,n)}n.set(t,o)}return o}function hasProvider(e){if(IsUndefined(e))throw new TypeError;return n===e||o===e||!IsUndefined(i)&&i.has(e)}function setProvider(e,t,n){if(!hasProvider(n)){throw new Error("Metadata provider not registered.")}var o=getProvider(e,t);if(o!==n){if(!IsUndefined(o)){return false}var i=a.get(e);if(IsUndefined(i)){i=new P;a.set(e,i)}i.set(t,n)}return true}}function GetOrCreateMetadataRegistry(){var e;if(!IsUndefined(L)&&IsObject(t.Reflect)&&Object.isExtensible(t.Reflect)){e=t.Reflect[L]}if(IsUndefined(e)){e=CreateMetadataRegistry()}if(!IsUndefined(L)&&IsObject(t.Reflect)&&Object.isExtensible(t.Reflect)){Object.defineProperty(t.Reflect,L,{enumerable:false,configurable:false,writable:false,value:e})}return e}function CreateMetadataProvider(e){var t=new k;var n={isProviderFor:function(e,n){var o=t.get(e);if(IsUndefined(o))return false;return o.has(n)},OrdinaryDefineOwnMetadata:OrdinaryDefineOwnMetadata,OrdinaryHasOwnMetadata:OrdinaryHasOwnMetadata,OrdinaryGetOwnMetadata:OrdinaryGetOwnMetadata,OrdinaryOwnMetadataKeys:OrdinaryOwnMetadataKeys,OrdinaryDeleteMetadata:OrdinaryDeleteMetadata};F.registerProvider(n);return n;function GetOrCreateMetadataMap(o,i,a){var d=t.get(o);var f=false;if(IsUndefined(d)){if(!a)return undefined;d=new P;t.set(o,d);f=true}var m=d.get(i);if(IsUndefined(m)){if(!a)return undefined;m=new P;d.set(i,m);if(!e.setProvider(o,i,n)){d.delete(i);if(f){t.delete(o)}throw new Error("Wrong provider for target.")}}return m}function OrdinaryHasOwnMetadata(e,t,n){var o=GetOrCreateMetadataMap(t,n,false);if(IsUndefined(o))return false;return ToBoolean(o.has(e))}function OrdinaryGetOwnMetadata(e,t,n){var o=GetOrCreateMetadataMap(t,n,false);if(IsUndefined(o))return undefined;return o.get(e)}function OrdinaryDefineOwnMetadata(e,t,n,o){var i=GetOrCreateMetadataMap(n,o,true);i.set(e,t)}function OrdinaryOwnMetadataKeys(e,t){var n=[];var o=GetOrCreateMetadataMap(e,t,false);if(IsUndefined(o))return n;var i=o.keys();var a=GetIterator(i);var d=0;while(true){var f=IteratorStep(a);if(!f){n.length=d;return n}var m=IteratorValue(f);try{n[d]=m}catch(e){try{IteratorClose(a)}finally{throw e}}d++}}function OrdinaryDeleteMetadata(e,n,o){var i=GetOrCreateMetadataMap(n,o,false);if(IsUndefined(i))return false;if(!i.delete(e))return false;if(i.size===0){var a=t.get(n);if(!IsUndefined(a)){a.delete(o);if(a.size===0){t.delete(a)}}}return true}}function CreateFallbackProvider(e){var t=e.defineMetadata,n=e.hasOwnMetadata,o=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata;var d=new k;var f={isProviderFor:function(e,t){var n=d.get(e);if(!IsUndefined(n)&&n.has(t)){return true}if(i(e,t).length){if(IsUndefined(n)){n=new D;d.set(e,n)}n.add(t);return true}return false},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a};return f}function GetMetadataProvider(e,t,n){var o=F.getProvider(e,t);if(!IsUndefined(o)){return o}if(n){if(F.setProvider(e,t,q)){return q}throw new Error("Illegal state.")}return undefined}function CreateMapPolyfill(){var e={};var t=[];var n=function(){function MapIterator(e,t,n){this._index=0;this._keys=e;this._values=t;this._selector=n}MapIterator.prototype["@@iterator"]=function(){return this};MapIterator.prototype[a]=function(){return this};MapIterator.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);if(e+1>=this._keys.length){this._index=-1;this._keys=t;this._values=t}else{this._index++}return{value:n,done:false}}return{value:undefined,done:true}};MapIterator.prototype.throw=function(e){if(this._index>=0){this._index=-1;this._keys=t;this._values=t}throw e};MapIterator.prototype.return=function(e){if(this._index>=0){this._index=-1;this._keys=t;this._values=t}return{value:e,done:true}};return MapIterator}();var o=function(){function Map(){this._keys=[];this._values=[];this._cacheKey=e;this._cacheIndex=-2}Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:true,configurable:true});Map.prototype.has=function(e){return this._find(e,false)>=0};Map.prototype.get=function(e){var t=this._find(e,false);return t>=0?this._values[t]:undefined};Map.prototype.set=function(e,t){var n=this._find(e,true);this._values[n]=t;return this};Map.prototype.delete=function(t){var n=this._find(t,false);if(n>=0){var o=this._keys.length;for(var i=n+1;i<o;i++){this._keys[i-1]=this._keys[i];this._values[i-1]=this._values[i]}this._keys.length--;this._values.length--;if(SameValueZero(t,this._cacheKey)){this._cacheKey=e;this._cacheIndex=-2}return true}return false};Map.prototype.clear=function(){this._keys.length=0;this._values.length=0;this._cacheKey=e;this._cacheIndex=-2};Map.prototype.keys=function(){return new n(this._keys,this._values,getKey)};Map.prototype.values=function(){return new n(this._keys,this._values,getValue)};Map.prototype.entries=function(){return new n(this._keys,this._values,getEntry)};Map.prototype["@@iterator"]=function(){return this.entries()};Map.prototype[a]=function(){return this.entries()};Map.prototype._find=function(e,t){if(!SameValueZero(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++){if(SameValueZero(this._keys[n],e)){this._cacheIndex=n;break}}}if(this._cacheIndex<0&&t){this._cacheIndex=this._keys.length;this._keys.push(e);this._values.push(undefined)}return this._cacheIndex};return Map}();return o;function getKey(e,t){return e}function getValue(e,t){return t}function getEntry(e,t){return[e,t]}}function CreateSetPolyfill(){var e=function(){function Set(){this._map=new P}Object.defineProperty(Set.prototype,"size",{get:function(){return this._map.size},enumerable:true,configurable:true});Set.prototype.has=function(e){return this._map.has(e)};Set.prototype.add=function(e){return this._map.set(e,e),this};Set.prototype.delete=function(e){return this._map.delete(e)};Set.prototype.clear=function(){this._map.clear()};Set.prototype.keys=function(){return this._map.keys()};Set.prototype.values=function(){return this._map.keys()};Set.prototype.entries=function(){return this._map.entries()};Set.prototype["@@iterator"]=function(){return this.keys()};Set.prototype[a]=function(){return this.keys()};return Set}();return e}function CreateWeakMapPolyfill(){var e=16;var t=h.create();var o=CreateUniqueKey();return function(){function WeakMap(){this._key=CreateUniqueKey()}WeakMap.prototype.has=function(e){var t=GetOrCreateWeakMapTable(e,false);return t!==undefined?h.has(t,this._key):false};WeakMap.prototype.get=function(e){var t=GetOrCreateWeakMapTable(e,false);return t!==undefined?h.get(t,this._key):undefined};WeakMap.prototype.set=function(e,t){var n=GetOrCreateWeakMapTable(e,true);n[this._key]=t;return this};WeakMap.prototype.delete=function(e){var t=GetOrCreateWeakMapTable(e,false);return t!==undefined?delete t[this._key]:false};WeakMap.prototype.clear=function(){this._key=CreateUniqueKey()};return WeakMap}();function CreateUniqueKey(){var e;do{e="@@WeakMap@@"+CreateUUID()}while(h.has(t,e));t[e]=true;return e}function GetOrCreateWeakMapTable(e,t){if(!n.call(e,o)){if(!t)return undefined;Object.defineProperty(e,o,{value:h.create()})}return e[o]}function FillRandomBytes(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function GenRandomBytes(e){if(typeof Uint8Array==="function"){var t=new Uint8Array(e);if(typeof crypto!=="undefined"){crypto.getRandomValues(t)}else if(typeof msCrypto!=="undefined"){msCrypto.getRandomValues(t)}else{FillRandomBytes(t,e)}return t}return FillRandomBytes(new Array(e),e)}function CreateUUID(){var t=GenRandomBytes(e);t[6]=t[6]&79|64;t[8]=t[8]&191|128;var n="";for(var o=0;o<e;++o){var i=t[o];if(o===4||o===6||o===8)n+="-";if(i<16)n+="0";n+=i.toString(16).toLowerCase()}return n}}function MakeDictionary(e){e.__=undefined;delete e.__;return e}}))})(e||(e={}))},2535:()=>{ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -31,210 +31,218 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var e;(function(e){(function(m){var h=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:sloppyModeThis();var C=makeExporter(e);if(typeof h.Reflect!=="undefined"){C=makeExporter(h.Reflect,C)}m(C,h);if(typeof h.Reflect==="undefined"){h.Reflect=e}function makeExporter(e,m){return function(h,C){Object.defineProperty(e,h,{configurable:true,writable:true,value:C});if(m)m(h,C)}}function sloppyModeThis(){throw new ReferenceError("globalThis could not be found. Please polyfill globalThis before loading this module.")}})((function(e,m){var h=typeof Symbol==="function";var C=h&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:fail("Symbol.toPrimitive not found.");var q=h&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:fail("Symbol.iterator not found.");var V=Object.getPrototypeOf(Function);var le=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:fail("A valid Map constructor could not be found.");var fe=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:fail("A valid Set constructor could not be found.");var he=typeof WeakMap==="function"?WeakMap:fail("A valid WeakMap constructor could not be found.");var ye=h?Symbol.for("@reflect-metadata:registry"):undefined;var ve=GetOrCreateMetadataRegistry();var Le=CreateMetadataProvider(ve);function decorate(e,m,h,C){if(!IsUndefined(h)){if(!IsArray(e))throw new TypeError;if(!IsObject(m))throw new TypeError;if(!IsObject(C)&&!IsUndefined(C)&&!IsNull(C))throw new TypeError;if(IsNull(C))C=undefined;h=ToPropertyKey(h);return DecorateProperty(e,m,h,C)}else{if(!IsArray(e))throw new TypeError;if(!IsConstructor(m))throw new TypeError;return DecorateConstructor(e,m)}}e("decorate",decorate);function metadata(e,m){function decorator(h,C){if(!IsObject(h))throw new TypeError;if(!IsUndefined(C)&&!IsPropertyKey(C))throw new TypeError;OrdinaryDefineOwnMetadata(e,m,h,C)}return decorator}e("metadata",metadata);function defineMetadata(e,m,h,C){if(!IsObject(h))throw new TypeError;if(!IsUndefined(C))C=ToPropertyKey(C);return OrdinaryDefineOwnMetadata(e,m,h,C)}e("defineMetadata",defineMetadata);function hasMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryHasMetadata(e,m,h)}e("hasMetadata",hasMetadata);function hasOwnMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryHasOwnMetadata(e,m,h)}e("hasOwnMetadata",hasOwnMetadata);function getMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryGetMetadata(e,m,h)}e("getMetadata",getMetadata);function getOwnMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);return OrdinaryGetOwnMetadata(e,m,h)}e("getOwnMetadata",getOwnMetadata);function getMetadataKeys(e,m){if(!IsObject(e))throw new TypeError;if(!IsUndefined(m))m=ToPropertyKey(m);return OrdinaryMetadataKeys(e,m)}e("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(e,m){if(!IsObject(e))throw new TypeError;if(!IsUndefined(m))m=ToPropertyKey(m);return OrdinaryOwnMetadataKeys(e,m)}e("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(e,m,h){if(!IsObject(m))throw new TypeError;if(!IsUndefined(h))h=ToPropertyKey(h);var C=GetMetadataProvider(m,h,false);if(IsUndefined(C))return false;return C.OrdinaryDeleteMetadata(e,m,h)}e("deleteMetadata",deleteMetadata);function DecorateConstructor(e,m){for(var h=e.length-1;h>=0;--h){var C=e[h];var q=C(m);if(!IsUndefined(q)&&!IsNull(q)){if(!IsConstructor(q))throw new TypeError;m=q}}return m}function DecorateProperty(e,m,h,C){for(var q=e.length-1;q>=0;--q){var V=e[q];var le=V(m,h,C);if(!IsUndefined(le)&&!IsNull(le)){if(!IsObject(le))throw new TypeError;C=le}}return C}function OrdinaryHasMetadata(e,m,h){var C=OrdinaryHasOwnMetadata(e,m,h);if(C)return true;var q=OrdinaryGetPrototypeOf(m);if(!IsNull(q))return OrdinaryHasMetadata(e,q,h);return false}function OrdinaryHasOwnMetadata(e,m,h){var C=GetMetadataProvider(m,h,false);if(IsUndefined(C))return false;return ToBoolean(C.OrdinaryHasOwnMetadata(e,m,h))}function OrdinaryGetMetadata(e,m,h){var C=OrdinaryHasOwnMetadata(e,m,h);if(C)return OrdinaryGetOwnMetadata(e,m,h);var q=OrdinaryGetPrototypeOf(m);if(!IsNull(q))return OrdinaryGetMetadata(e,q,h);return undefined}function OrdinaryGetOwnMetadata(e,m,h){var C=GetMetadataProvider(m,h,false);if(IsUndefined(C))return;return C.OrdinaryGetOwnMetadata(e,m,h)}function OrdinaryDefineOwnMetadata(e,m,h,C){var q=GetMetadataProvider(h,C,true);q.OrdinaryDefineOwnMetadata(e,m,h,C)}function OrdinaryMetadataKeys(e,m){var h=OrdinaryOwnMetadataKeys(e,m);var C=OrdinaryGetPrototypeOf(e);if(C===null)return h;var q=OrdinaryMetadataKeys(C,m);if(q.length<=0)return h;if(h.length<=0)return q;var V=new fe;var le=[];for(var he=0,ye=h;he<ye.length;he++){var ve=ye[he];var Le=V.has(ve);if(!Le){V.add(ve);le.push(ve)}}for(var Ue=0,qe=q;Ue<qe.length;Ue++){var ve=qe[Ue];var Le=V.has(ve);if(!Le){V.add(ve);le.push(ve)}}return le}function OrdinaryOwnMetadataKeys(e,m){var h=GetMetadataProvider(e,m,false);if(!h){return[]}return h.OrdinaryOwnMetadataKeys(e,m)}function Type(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsSymbol(e){return typeof e==="symbol"}function IsObject(e){return typeof e==="object"?e!==null:typeof e==="function"}function ToPrimitive(e,m){switch(Type(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var h=m===3?"string":m===5?"number":"default";var q=GetMethod(e,C);if(q!==undefined){var V=q.call(e,h);if(IsObject(V))throw new TypeError;return V}return OrdinaryToPrimitive(e,h==="default"?"number":h)}function OrdinaryToPrimitive(e,m){if(m==="string"){var h=e.toString;if(IsCallable(h)){var C=h.call(e);if(!IsObject(C))return C}var q=e.valueOf;if(IsCallable(q)){var C=q.call(e);if(!IsObject(C))return C}}else{var q=e.valueOf;if(IsCallable(q)){var C=q.call(e);if(!IsObject(C))return C}var V=e.toString;if(IsCallable(V)){var C=V.call(e);if(!IsObject(C))return C}}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var m=ToPrimitive(e,3);if(IsSymbol(m))return m;return ToString(m)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}function IsCallable(e){return typeof e==="function"}function IsConstructor(e){return typeof e==="function"}function IsPropertyKey(e){switch(Type(e)){case 3:return true;case 4:return true;default:return false}}function GetMethod(e,m){var h=e[m];if(h===undefined||h===null)return undefined;if(!IsCallable(h))throw new TypeError;return h}function GetIterator(e){var m=GetMethod(e,q);if(!IsCallable(m))throw new TypeError;var h=m.call(e);if(!IsObject(h))throw new TypeError;return h}function IteratorValue(e){return e.value}function IteratorStep(e){var m=e.next();return m.done?false:m}function IteratorClose(e){var m=e["return"];if(m)m.call(e)}function OrdinaryGetPrototypeOf(e){var m=Object.getPrototypeOf(e);if(typeof e!=="function"||e===V)return m;if(m!==V)return m;var h=e.prototype;var C=h&&Object.getPrototypeOf(h);if(C==null||C===Object.prototype)return m;var q=C.constructor;if(typeof q!=="function")return m;if(q===e)return m;return q}function fail(e){throw e}function CreateMetadataRegistry(){var e;if(!IsUndefined(ye)&&typeof m.Reflect!=="undefined"&&!(ye in m.Reflect)&&typeof m.Reflect.defineMetadata==="function"){e=CreateFallbackProvider(m.Reflect)}var h;var C;var q;var V=new he;var ve={registerProvider:registerProvider,getProvider:getProvider,setProvider:setProvider};return ve;function registerProvider(m){if(!Object.isExtensible(ve)){throw new Error("Cannot add provider to a frozen registry.")}switch(true){case e===m:break;case IsUndefined(h):h=m;break;case h===m:break;case IsUndefined(C):C=m;break;case C===m:break;default:if(q===undefined)q=new fe;q.add(m);break}}function getProviderNoCache(m,V){if(!IsUndefined(h)){if(h.isProviderFor(m,V))return h;if(!IsUndefined(C)){if(C.isProviderFor(m,V))return h;if(!IsUndefined(q)){var le=GetIterator(q);while(true){var fe=IteratorStep(le);if(!fe){return undefined}var he=IteratorValue(fe);if(he.isProviderFor(m,V)){IteratorClose(le);return he}}}}}if(!IsUndefined(e)&&e.isProviderFor(m,V)){return e}return undefined}function getProvider(e,m){var h=V.get(e);var C;if(!IsUndefined(h)){C=h.get(m)}if(!IsUndefined(C)){return C}C=getProviderNoCache(e,m);if(!IsUndefined(C)){if(IsUndefined(h)){h=new le;V.set(e,h)}h.set(m,C)}return C}function hasProvider(e){if(IsUndefined(e))throw new TypeError;return h===e||C===e||!IsUndefined(q)&&q.has(e)}function setProvider(e,m,h){if(!hasProvider(h)){throw new Error("Metadata provider not registered.")}var C=getProvider(e,m);if(C!==h){if(!IsUndefined(C)){return false}var q=V.get(e);if(IsUndefined(q)){q=new le;V.set(e,q)}q.set(m,h)}return true}}function GetOrCreateMetadataRegistry(){var e;if(!IsUndefined(ye)&&IsObject(m.Reflect)&&Object.isExtensible(m.Reflect)){e=m.Reflect[ye]}if(IsUndefined(e)){e=CreateMetadataRegistry()}if(!IsUndefined(ye)&&IsObject(m.Reflect)&&Object.isExtensible(m.Reflect)){Object.defineProperty(m.Reflect,ye,{enumerable:false,configurable:false,writable:false,value:e})}return e}function CreateMetadataProvider(e){var m=new he;var h={isProviderFor:function(e,h){var C=m.get(e);if(IsUndefined(C))return false;return C.has(h)},OrdinaryDefineOwnMetadata:OrdinaryDefineOwnMetadata,OrdinaryHasOwnMetadata:OrdinaryHasOwnMetadata,OrdinaryGetOwnMetadata:OrdinaryGetOwnMetadata,OrdinaryOwnMetadataKeys:OrdinaryOwnMetadataKeys,OrdinaryDeleteMetadata:OrdinaryDeleteMetadata};ve.registerProvider(h);return h;function GetOrCreateMetadataMap(C,q,V){var fe=m.get(C);var he=false;if(IsUndefined(fe)){if(!V)return undefined;fe=new le;m.set(C,fe);he=true}var ye=fe.get(q);if(IsUndefined(ye)){if(!V)return undefined;ye=new le;fe.set(q,ye);if(!e.setProvider(C,q,h)){fe.delete(q);if(he){m.delete(C)}throw new Error("Wrong provider for target.")}}return ye}function OrdinaryHasOwnMetadata(e,m,h){var C=GetOrCreateMetadataMap(m,h,false);if(IsUndefined(C))return false;return ToBoolean(C.has(e))}function OrdinaryGetOwnMetadata(e,m,h){var C=GetOrCreateMetadataMap(m,h,false);if(IsUndefined(C))return undefined;return C.get(e)}function OrdinaryDefineOwnMetadata(e,m,h,C){var q=GetOrCreateMetadataMap(h,C,true);q.set(e,m)}function OrdinaryOwnMetadataKeys(e,m){var h=[];var C=GetOrCreateMetadataMap(e,m,false);if(IsUndefined(C))return h;var q=C.keys();var V=GetIterator(q);var le=0;while(true){var fe=IteratorStep(V);if(!fe){h.length=le;return h}var he=IteratorValue(fe);try{h[le]=he}catch(e){try{IteratorClose(V)}finally{throw e}}le++}}function OrdinaryDeleteMetadata(e,h,C){var q=GetOrCreateMetadataMap(h,C,false);if(IsUndefined(q))return false;if(!q.delete(e))return false;if(q.size===0){var V=m.get(h);if(!IsUndefined(V)){V.delete(C);if(V.size===0){m.delete(V)}}}return true}}function CreateFallbackProvider(e){var m=e.defineMetadata,h=e.hasOwnMetadata,C=e.getOwnMetadata,q=e.getOwnMetadataKeys,V=e.deleteMetadata;var le=new he;var ye={isProviderFor:function(e,m){var h=le.get(e);if(!IsUndefined(h)&&h.has(m)){return true}if(q(e,m).length){if(IsUndefined(h)){h=new fe;le.set(e,h)}h.add(m);return true}return false},OrdinaryDefineOwnMetadata:m,OrdinaryHasOwnMetadata:h,OrdinaryGetOwnMetadata:C,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:V};return ye}function GetMetadataProvider(e,m,h){var C=ve.getProvider(e,m);if(!IsUndefined(C)){return C}if(h){if(ve.setProvider(e,m,Le)){return Le}throw new Error("Illegal state.")}return undefined}}))})(e||(e={}))},4608:e=>{(()=>{"use strict";var m={d:(e,h)=>{for(var C in h)m.o(h,C)&&!m.o(e,C)&&Object.defineProperty(e,C,{enumerable:!0,get:h[C]})},o:(e,m)=>Object.prototype.hasOwnProperty.call(e,m),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},h={};m.r(h),m.d(h,{XMLBuilder:()=>Mt,XMLParser:()=>gt,XMLValidator:()=>Lt});const C=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",q=new RegExp("^["+C+"]["+C+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,m){const h=[];let C=m.exec(e);for(;C;){const q=[];q.startIndex=m.lastIndex-C[0].length;const V=C.length;for(let e=0;e<V;e++)q.push(C[e]);h.push(q),C=m.exec(e)}return h}const r=function(e){return!(null==q.exec(e))},V=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],le=["__proto__","constructor","prototype"],fe={allowBooleanAttributes:!1,unpairedTags:[]};function l(e,m){m=Object.assign({},fe,m);const h=[];let C=!1,q=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let V=0;V<e.length;V++)if("<"===e[V]&&"?"===e[V+1]){if(V+=2,V=u(e,V),V.err)return V}else{if("<"!==e[V]){if(p(e[V]))continue;return b("InvalidChar","char '"+e[V]+"' is not expected.",w(e,V))}{let le=V;if(V++,"!"===e[V]){V=c(e,V);continue}{let fe=!1;"/"===e[V]&&(fe=!0,V++);let he="";for(;V<e.length&&">"!==e[V]&&" "!==e[V]&&"\t"!==e[V]&&"\n"!==e[V]&&"\r"!==e[V];V++)he+=e[V];if(he=he.trim(),"/"===he[he.length-1]&&(he=he.substring(0,he.length-1),V--),!y(he)){let m;return m=0===he.trim().length?"Invalid space after '<'.":"Tag '"+he+"' is an invalid name.",b("InvalidTag",m,w(e,V))}const ye=g(e,V);if(!1===ye)return b("InvalidAttr","Attributes for '"+he+"' have open quote.",w(e,V));let ve=ye.value;if(V=ye.index,"/"===ve[ve.length-1]){const h=V-ve.length;ve=ve.substring(0,ve.length-1);const q=x(ve,m);if(!0!==q)return b(q.err.code,q.err.msg,w(e,h+q.err.line));C=!0}else if(fe){if(!ye.tagClosed)return b("InvalidTag","Closing tag '"+he+"' doesn't have proper closing.",w(e,V));if(ve.trim().length>0)return b("InvalidTag","Closing tag '"+he+"' can't have attributes or invalid starting.",w(e,le));if(0===h.length)return b("InvalidTag","Closing tag '"+he+"' has not been opened.",w(e,le));{const m=h.pop();if(he!==m.tagName){let h=w(e,m.tagStartPos);return b("InvalidTag","Expected closing tag '"+m.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+he+"'.",w(e,le))}0==h.length&&(q=!0)}}else{const fe=x(ve,m);if(!0!==fe)return b(fe.err.code,fe.err.msg,w(e,V-ve.length+fe.err.line));if(!0===q)return b("InvalidXml","Multiple possible root nodes found.",w(e,V));-1!==m.unpairedTags.indexOf(he)||h.push({tagName:he,tagStartPos:le}),C=!0}for(V++;V<e.length;V++)if("<"===e[V]){if("!"===e[V+1]){V++,V=c(e,V);continue}if("?"!==e[V+1])break;if(V=u(e,++V),V.err)return V}else if("&"===e[V]){const m=N(e,V);if(-1==m)return b("InvalidChar","char '&' is not expected.",w(e,V));V=m}else if(!0===q&&!p(e[V]))return b("InvalidXml","Extra text at the end",w(e,V));"<"===e[V]&&V--}}}return C?1==h.length?b("InvalidTag","Unclosed tag '"+h[0].tagName+"'.",w(e,h[0].tagStartPos)):!(h.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(h.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)}function p(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,m){const h=m;for(;m<e.length;m++)if("?"==e[m]||" "==e[m]){const C=e.substr(h,m-h);if(m>5&&"xml"===C)return b("InvalidXml","XML declaration allowed only at the start of the document.",w(e,m));if("?"==e[m]&&">"==e[m+1]){m++;break}continue}return m}function c(e,m){if(e.length>m+5&&"-"===e[m+1]&&"-"===e[m+2]){for(m+=3;m<e.length;m++)if("-"===e[m]&&"-"===e[m+1]&&">"===e[m+2]){m+=2;break}}else if(e.length>m+8&&"D"===e[m+1]&&"O"===e[m+2]&&"C"===e[m+3]&&"T"===e[m+4]&&"Y"===e[m+5]&&"P"===e[m+6]&&"E"===e[m+7]){let h=1;for(m+=8;m<e.length;m++)if("<"===e[m])h++;else if(">"===e[m]&&(h--,0===h))break}else if(e.length>m+9&&"["===e[m+1]&&"C"===e[m+2]&&"D"===e[m+3]&&"A"===e[m+4]&&"T"===e[m+5]&&"A"===e[m+6]&&"["===e[m+7])for(m+=8;m<e.length;m++)if("]"===e[m]&&"]"===e[m+1]&&">"===e[m+2]){m+=2;break}return m}const he='"',ye="'";function g(e,m){let h="",C="",q=!1;for(;m<e.length;m++){if(e[m]===he||e[m]===ye)""===C?C=e[m]:C!==e[m]||(C="");else if(">"===e[m]&&""===C){q=!0;break}h+=e[m]}return""===C&&{value:h,index:m,tagClosed:q}}const ve=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function x(e,m){const h=s(e,ve),C={};for(let e=0;e<h.length;e++){if(0===h[e][1].length)return b("InvalidAttr","Attribute '"+h[e][2]+"' has no space in starting.",v(h[e]));if(void 0!==h[e][3]&&void 0===h[e][4])return b("InvalidAttr","Attribute '"+h[e][2]+"' is without value.",v(h[e]));if(void 0===h[e][3]&&!m.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+h[e][2]+"' is not allowed.",v(h[e]));const q=h[e][2];if(!E(q))return b("InvalidAttr","Attribute '"+q+"' is an invalid name.",v(h[e]));if(Object.prototype.hasOwnProperty.call(C,q))return b("InvalidAttr","Attribute '"+q+"' is repeated.",v(h[e]));C[q]=1}return!0}function N(e,m){if(";"===e[++m])return-1;if("#"===e[m])return function(e,m){let h=/\d/;for("x"===e[m]&&(m++,h=/[\da-fA-F]/);m<e.length;m++){if(";"===e[m])return m;if(!e[m].match(h))break}return-1}(e,++m);let h=0;for(;m<e.length;m++,h++)if(!(e[m].match(/\w/)&&h<20)){if(";"===e[m])break;return-1}return m}function b(e,m,h){return{err:{code:e,msg:m,line:h.line||h,col:h.col}}}function E(e){return r(e)}function y(e){return r(e)}function w(e,m){const h=e.substring(0,m).split(/\r?\n/);return{line:h.length,col:h[h.length-1].length+1}}function v(e){return e.startIndex+e[1].length}const T=e=>V.includes(e)?"__"+e:e,Le={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,m){return m},attributeValueProcessor:function(e,m){return m},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,m,h){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:T};function S(e,m){if("string"!=typeof e)return;const h=e.toLowerCase();if(V.some((e=>h===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${m}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(le.some((e=>h===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${m}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function A(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:A(!0)}const O=function(e){const m=Object.assign({},Le,e),h=[{value:m.attributeNamePrefix,name:"attributeNamePrefix"},{value:m.attributesGroupName,name:"attributesGroupName"},{value:m.textNodeName,name:"textNodeName"},{value:m.cdataPropName,name:"cdataPropName"},{value:m.commentPropName,name:"commentPropName"}];for(const{value:e,name:m}of h)e&&S(e,m);return null===m.onDangerousProperty&&(m.onDangerousProperty=T),m.processEntities=A(m.processEntities),m.stopNodes&&Array.isArray(m.stopNodes)&&(m.stopNodes=m.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),m};let Ue;Ue="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class ${constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,m){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:m})}addChild(e,m){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==m&&(this.child[this.child.length-1][Ue]={startIndex:m})}static getMetaDataSymbol(){return Ue}}class I{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,m){const h=Object.create(null);let C=0;if("O"!==e[m+3]||"C"!==e[m+4]||"T"!==e[m+5]||"Y"!==e[m+6]||"P"!==e[m+7]||"E"!==e[m+8])throw new Error("Invalid Tag instead of DOCTYPE");{m+=9;let q=1,V=!1,le=!1,fe="";for(;m<e.length;m++)if("<"!==e[m]||le)if(">"===e[m]){if(le?"-"===e[m-1]&&"-"===e[m-2]&&(le=!1,q--):q--,0===q)break}else"["===e[m]?V=!0:fe+=e[m];else{if(V&&M(e,"!ENTITY",m)){let q,V;if(m+=7,[q,V,m]=this.readEntityExp(e,m+1,this.suppressValidationErr),-1===V.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&C>=this.options.maxEntityCount)throw new Error(`Entity count (${C+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const e=q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");h[q]={regx:RegExp(`&${e};`,"g"),val:V},C++}}else if(V&&M(e,"!ELEMENT",m)){m+=8;const{index:h}=this.readElementExp(e,m+1);m=h}else if(V&&M(e,"!ATTLIST",m))m+=8;else if(V&&M(e,"!NOTATION",m)){m+=9;const{index:h}=this.readNotationExp(e,m+1,this.suppressValidationErr);m=h}else{if(!M(e,"!--",m))throw new Error("Invalid DOCTYPE");le=!0}q++,fe=""}if(0!==q)throw new Error("Unclosed DOCTYPE")}return{entities:h,i:m}}readEntityExp(e,m){const h=m=j(e,m);for(;m<e.length&&!/\s/.test(e[m])&&'"'!==e[m]&&"'"!==e[m];)m++;let C=e.substring(h,m);if(_(C),m=j(e,m),!this.suppressValidationErr){if("SYSTEM"===e.substring(m,m+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[m])throw new Error("Parameter entities are not supported")}let q="";if([m,q]=this.readIdentifierVal(e,m,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&q.length>this.options.maxEntitySize)throw new Error(`Entity "${C}" size (${q.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[C,q,--m]}readNotationExp(e,m){const h=m=j(e,m);for(;m<e.length&&!/\s/.test(e[m]);)m++;let C=e.substring(h,m);!this.suppressValidationErr&&_(C),m=j(e,m);const q=e.substring(m,m+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==q&&"PUBLIC"!==q)throw new Error(`Expected SYSTEM or PUBLIC, found "${q}"`);m+=q.length,m=j(e,m);let V=null,le=null;if("PUBLIC"===q)[m,V]=this.readIdentifierVal(e,m,"publicIdentifier"),'"'!==e[m=j(e,m)]&&"'"!==e[m]||([m,le]=this.readIdentifierVal(e,m,"systemIdentifier"));else if("SYSTEM"===q&&([m,le]=this.readIdentifierVal(e,m,"systemIdentifier"),!this.suppressValidationErr&&!le))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:C,publicIdentifier:V,systemIdentifier:le,index:--m}}readIdentifierVal(e,m,h){let C="";const q=e[m];if('"'!==q&&"'"!==q)throw new Error(`Expected quoted string, found "${q}"`);const V=++m;for(;m<e.length&&e[m]!==q;)m++;if(C=e.substring(V,m),e[m]!==q)throw new Error(`Unterminated ${h} value`);return[++m,C]}readElementExp(e,m){const h=m=j(e,m);for(;m<e.length&&!/\s/.test(e[m]);)m++;let C=e.substring(h,m);if(!this.suppressValidationErr&&!r(C))throw new Error(`Invalid element name: "${C}"`);let q="";if("E"===e[m=j(e,m)]&&M(e,"MPTY",m))m+=4;else if("A"===e[m]&&M(e,"NY",m))m+=2;else if("("===e[m]){const h=++m;for(;m<e.length&&")"!==e[m];)m++;if(q=e.substring(h,m),")"!==e[m])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[m]}"`);return{elementName:C,contentModel:q.trim(),index:m}}readAttlistExp(e,m){let h=m=j(e,m);for(;m<e.length&&!/\s/.test(e[m]);)m++;let C=e.substring(h,m);for(_(C),h=m=j(e,m);m<e.length&&!/\s/.test(e[m]);)m++;let q=e.substring(h,m);if(!_(q))throw new Error(`Invalid attribute name: "${q}"`);m=j(e,m);let V="";if("NOTATION"===e.substring(m,m+8).toUpperCase()){if(V="NOTATION","("!==e[m=j(e,m+=8)])throw new Error(`Expected '(', found "${e[m]}"`);m++;let h=[];for(;m<e.length&&")"!==e[m];){const C=m;for(;m<e.length&&"|"!==e[m]&&")"!==e[m];)m++;let q=e.substring(C,m);if(q=q.trim(),!_(q))throw new Error(`Invalid notation name: "${q}"`);h.push(q),"|"===e[m]&&(m++,m=j(e,m))}if(")"!==e[m])throw new Error("Unterminated list of notations");m++,V+=" ("+h.join("|")+")"}else{const h=m;for(;m<e.length&&!/\s/.test(e[m]);)m++;V+=e.substring(h,m);const C=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!C.includes(V.toUpperCase()))throw new Error(`Invalid attribute type: "${V}"`)}m=j(e,m);let le="";return"#REQUIRED"===e.substring(m,m+8).toUpperCase()?(le="#REQUIRED",m+=8):"#IMPLIED"===e.substring(m,m+7).toUpperCase()?(le="#IMPLIED",m+=7):[m,le]=this.readIdentifierVal(e,m,"ATTLIST"),{elementName:C,attributeName:q,attributeType:V,defaultValue:le,index:m}}}const j=(e,m)=>{for(;m<e.length&&/\s/.test(e[m]);)m++;return m};function M(e,m,h){for(let C=0;C<m.length;C++)if(m[C]!==e[h+C+1])return!1;return!0}function _(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const qe=/^[-+]?0x[a-fA-F0-9]+$/,ze=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,He={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};const We=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/,Qe=new Set(["push","pop","reset","updateCurrent","restore"]);class G{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[]}push(e,m=null,h=null){this.path.length>0&&(this.path[this.path.length-1].values=void 0);const C=this.path.length;this.siblingStacks[C]||(this.siblingStacks[C]=new Map);const q=this.siblingStacks[C],V=h?`${h}:${e}`:e,le=q.get(V)||0;let fe=0;for(const e of q.values())fe+=e;q.set(V,le+1);const he={tag:e,position:fe,counter:le};null!=h&&(he.namespace=h),null!=m&&(he.values=m),this.path.push(he)}pop(){if(0===this.path.length)return;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const m=this.path[this.path.length-1];null!=e&&(m.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0===this.path.length)return;const m=this.path[this.path.length-1];return m.values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const m=this.path[this.path.length-1];return void 0!==m.values&&e in m.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,m=!0){const h=e||this.separator;return this.path.map((e=>m&&e.namespace?`${e.namespace}:${e.tag}`:e.tag)).join(h)}toArray(){return this.path.map((e=>e.tag))}reset(){this.path=[],this.siblingStacks=[]}matches(e){const m=e.segments;return 0!==m.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(m):this._matchSimple(m))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let m=0;m<e.length;m++){const h=e[m],C=this.path[m],q=m===this.path.length-1;if(!this._matchSegment(h,C,q))return!1}return!0}_matchWithDeepWildcard(e){let m=this.path.length-1,h=e.length-1;for(;h>=0&&m>=0;){const C=e[h];if("deep-wildcard"===C.type){if(h--,h<0)return!0;const C=e[h];let q=!1;for(let e=m;e>=0;e--){const V=e===this.path.length-1;if(this._matchSegment(C,this.path[e],V)){m=e-1,h--,q=!0;break}}if(!q)return!1}else{const e=m===this.path.length-1;if(!this._matchSegment(C,this.path[m],e))return!1;m--,h--}}return h<0}_matchSegment(e,m,h){if("*"!==e.tag&&e.tag!==m.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==m.namespace)return!1;if(void 0!==e.attrName){if(!h)return!1;if(!m.values||!(e.attrName in m.values))return!1;if(void 0!==e.attrValue){const h=m.values[e.attrName];if(String(h)!==String(e.attrValue))return!1}}if(void 0!==e.position){if(!h)return!1;const C=m.counter??0;if("first"===e.position&&0!==C)return!1;if("odd"===e.position&&C%2!=1)return!1;if("even"===e.position&&C%2!=0)return!1;if("nth"===e.position&&C!==e.positionValue)return!1}return!0}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this.path=e.path.map((e=>({...e}))),this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){return new Proxy(this,{get(e,m,h){if(Qe.has(m))return()=>{throw new TypeError(`Cannot call '${m}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};const C=Reflect.get(e,m,h);return"path"===m||"siblingStacks"===m?Object.freeze(Array.isArray(C)?C.map((e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e}))):C):"function"==typeof C?C.bind(e):C},set(e,m){throw new TypeError(`Cannot set property '${String(m)}' on a read-only Matcher.`)},deleteProperty(e,m){throw new TypeError(`Cannot delete property '${String(m)}' from a read-only Matcher.`)}})}}class R{constructor(e,m={}){this.pattern=e,this.separator=m.separator||".",this.segments=this._parse(e),this._hasDeepWildcard=this.segments.some((e=>"deep-wildcard"===e.type)),this._hasAttributeCondition=this.segments.some((e=>void 0!==e.attrName)),this._hasPositionSelector=this.segments.some((e=>void 0!==e.position))}_parse(e){const m=[];let h=0,C="";for(;h<e.length;)e[h]===this.separator?h+1<e.length&&e[h+1]===this.separator?(C.trim()&&(m.push(this._parseSegment(C.trim())),C=""),m.push({type:"deep-wildcard"}),h+=2):(C.trim()&&m.push(this._parseSegment(C.trim())),C="",h++):(C+=e[h],h++);return C.trim()&&m.push(this._parseSegment(C.trim())),m}_parseSegment(e){const m={type:"tag"};let h=null,C=e;const q=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(q&&(C=q[1]+q[3],q[2])){const e=q[2].slice(1,-1);e&&(h=e)}let V,le,fe=C;if(C.includes("::")){const m=C.indexOf("::");if(V=C.substring(0,m).trim(),fe=C.substring(m+2).trim(),!V)throw new Error(`Invalid namespace in pattern: ${e}`)}let he=null;if(fe.includes(":")){const e=fe.lastIndexOf(":"),m=fe.substring(0,e).trim(),h=fe.substring(e+1).trim();["first","last","odd","even"].includes(h)||/^nth\(\d+\)$/.test(h)?(le=m,he=h):le=fe}else le=fe;if(!le)throw new Error(`Invalid segment pattern: ${e}`);if(m.tag=le,V&&(m.namespace=V),h)if(h.includes("=")){const e=h.indexOf("=");m.attrName=h.substring(0,e).trim(),m.attrValue=h.substring(e+1).trim()}else m.attrName=h.trim();if(he){const e=he.match(/^nth\((\d+)\)$/);e?(m.position="nth",m.positionValue=parseInt(e[1],10)):m.position=he}return m}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}function U(e,m){if(!e)return{};const h=m.attributesGroupName?e[m.attributesGroupName]:e;if(!h)return{};const C={};for(const e in h)e.startsWith(m.attributeNamePrefix)?C[e.substring(m.attributeNamePrefix.length)]=h[e]:C[e]=h[e];return C}function B(e){if(!e||"string"!=typeof e)return;const m=e.indexOf(":");if(-1!==m&&m>0){const h=e.substring(0,m);if("xmlns"!==h)return h}}class W{constructor(e){var m;if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,m)=>rt(m,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,m)=>rt(m,16,"&#x")}},this.addExternalEntities=Y,this.parseXml=J,this.parseTextData=z,this.resolveNameSpace=X,this.buildAttributesMap=Z,this.isItStopNode=tt,this.replaceEntitiesValue=Q,this.readStopNodeData=nt,this.saveTextToParentTag=H,this.addChild=K,this.ignoreAttributesFn="function"==typeof(m=this.options.ignoreAttributes)?m:Array.isArray(m)?e=>{for(const h of m){if("string"==typeof h&&e===h)return!0;if(h instanceof RegExp&&h.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.matcher=new G,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e<this.options.stopNodes.length;e++){const m=this.options.stopNodes[e];"string"==typeof m?this.stopNodeExpressions.push(new R(m)):m instanceof R&&this.stopNodeExpressions.push(m)}}}}function Y(e){const m=Object.keys(e);for(let h=0;h<m.length;h++){const C=m[h],q=C.replace(/[.\-+*:]/g,"\\.");this.lastEntities[C]={regex:new RegExp("&"+q+";","g"),val:e[C]}}}function z(e,m,h,C,q,V,le){if(void 0!==e&&(this.options.trimValues&&!C&&(e=e.trim()),e.length>0)){le||(e=this.replaceEntitiesValue(e,m,h));const C=this.options.jPath?h.toString():h,fe=this.options.tagValueProcessor(m,e,C,q,V);return null==fe?e:typeof fe!=typeof e||fe!==e?fe:this.options.trimValues||e.trim()===e?st(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function X(e){if(this.options.removeNSPrefix){const m=e.split(":"),h="/"===e.charAt(0)?"/":"";if("xmlns"===m[0])return"";2===m.length&&(e=h+m[1])}return e}const Je=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function Z(e,m,h){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const C=s(e,Je),q=C.length,V={},le={};for(let e=0;e<q;e++){const m=this.resolveNameSpace(C[e][1]),q=C[e][4];if(m.length&&void 0!==q){let e=q;this.options.trimValues&&(e=e.trim()),e=this.replaceEntitiesValue(e,h,this.readonlyMatcher),le[m]=e}}Object.keys(le).length>0&&"object"==typeof m&&m.updateCurrent&&m.updateCurrent(le);for(let e=0;e<q;e++){const q=this.resolveNameSpace(C[e][1]),le=this.options.jPath?m.toString():this.readonlyMatcher;if(this.ignoreAttributesFn(q,le))continue;let fe=C[e][4],he=this.options.attributeNamePrefix+q;if(q.length)if(this.options.transformAttributeName&&(he=this.options.transformAttributeName(he)),he=at(he,this.options),void 0!==fe){this.options.trimValues&&(fe=fe.trim()),fe=this.replaceEntitiesValue(fe,h,this.readonlyMatcher);const e=this.options.jPath?m.toString():this.readonlyMatcher,C=this.options.attributeValueProcessor(q,fe,e);V[he]=null==C?fe:typeof C!=typeof fe||C!==fe?C:st(fe,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(V[he]=!0)}if(!Object.keys(V).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=V,e}return V}}const J=function(e){e=e.replace(/\r\n?/g,"\n");const m=new $("!xml");let h=m,C="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const q=new I(this.options.processEntities);for(let V=0;V<e.length;V++)if("<"===e[V])if("/"===e[V+1]){const m=et(e,">",V,"Closing Tag is not closed.");let q=e.substring(V+2,m).trim();if(this.options.removeNSPrefix){const e=q.indexOf(":");-1!==e&&(q=q.substr(e+1))}q=ot(this.options.transformTagName,q,"",this.options).tagName,h&&(C=this.saveTextToParentTag(C,h,this.readonlyMatcher));const le=this.matcher.getCurrentTag();if(q&&-1!==this.options.unpairedTags.indexOf(q))throw new Error(`Unpaired tag can not be used as closing tag: </${q}>`);le&&-1!==this.options.unpairedTags.indexOf(le)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,h=this.tagsNodeStack.pop(),C="",V=m}else if("?"===e[V+1]){let m=it(e,V,!1,"?>");if(!m)throw new Error("Pi Tag is not closed.");if(C=this.saveTextToParentTag(C,h,this.readonlyMatcher),this.options.ignoreDeclaration&&"?xml"===m.tagName||this.options.ignorePiTags);else{const e=new $(m.tagName);e.add(this.options.textNodeName,""),m.tagName!==m.tagExp&&m.attrExpPresent&&(e[":@"]=this.buildAttributesMap(m.tagExp,this.matcher,m.tagName)),this.addChild(h,e,this.readonlyMatcher,V)}V=m.closeIndex+1}else if("!--"===e.substr(V+1,3)){const m=et(e,"--\x3e",V+4,"Comment is not closed.");if(this.options.commentPropName){const q=e.substring(V+4,m-2);C=this.saveTextToParentTag(C,h,this.readonlyMatcher),h.add(this.options.commentPropName,[{[this.options.textNodeName]:q}])}V=m}else if("!D"===e.substr(V+1,2)){const m=q.readDocType(e,V);this.docTypeEntities=m.entities,V=m.i}else if("!["===e.substr(V+1,2)){const m=et(e,"]]>",V,"CDATA is not closed.")-2,q=e.substring(V+9,m);C=this.saveTextToParentTag(C,h,this.readonlyMatcher);let le=this.parseTextData(q,h.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==le&&(le=""),this.options.cdataPropName?h.add(this.options.cdataPropName,[{[this.options.textNodeName]:q}]):h.add(this.options.textNodeName,le),V=m+2}else{let q=it(e,V,this.options.removeNSPrefix);if(!q){const m=e.substring(Math.max(0,V-50),Math.min(e.length,V+50));throw new Error(`readTagExp returned undefined at position ${V}. Context: "${m}"`)}let le=q.tagName;const fe=q.rawTagName;let he=q.tagExp,ye=q.attrExpPresent,ve=q.closeIndex;if(({tagName:le,tagExp:he}=ot(this.options.transformTagName,le,he,this.options)),this.options.strictReservedNames&&(le===this.options.commentPropName||le===this.options.cdataPropName||le===this.options.textNodeName||le===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${le}`);h&&C&&"!xml"!==h.tagname&&(C=this.saveTextToParentTag(C,h,this.readonlyMatcher,!1));const Le=h;Le&&-1!==this.options.unpairedTags.indexOf(Le.tagname)&&(h=this.tagsNodeStack.pop(),this.matcher.pop());let Ue=!1;he.length>0&&he.lastIndexOf("/")===he.length-1&&(Ue=!0,"/"===le[le.length-1]?(le=le.substr(0,le.length-1),he=le):he=he.substr(0,he.length-1),ye=le!==he);let qe,ze=null,He={};qe=B(fe),le!==m.tagname&&this.matcher.push(le,{},qe),le!==he&&ye&&(ze=this.buildAttributesMap(he,this.matcher,le),ze&&(He=U(ze,this.options))),le!==m.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));const We=V;if(this.isCurrentNodeStopNode){let m="";if(Ue)V=q.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(le))V=q.closeIndex;else{const h=this.readStopNodeData(e,fe,ve+1);if(!h)throw new Error(`Unexpected end of ${fe}`);V=h.i,m=h.tagContent}const C=new $(le);ze&&(C[":@"]=ze),C.add(this.options.textNodeName,m),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(h,C,this.readonlyMatcher,We)}else{if(Ue){({tagName:le,tagExp:he}=ot(this.options.transformTagName,le,he,this.options));const e=new $(le);ze&&(e[":@"]=ze),this.addChild(h,e,this.readonlyMatcher,We),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(-1!==this.options.unpairedTags.indexOf(le)){const e=new $(le);ze&&(e[":@"]=ze),this.addChild(h,e,this.readonlyMatcher,We),this.matcher.pop(),this.isCurrentNodeStopNode=!1,V=q.closeIndex;continue}{const e=new $(le);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(h),ze&&(e[":@"]=ze),this.addChild(h,e,this.readonlyMatcher,We),h=e}}C="",V=ve}}else C+=e[V];return m.child};function K(e,m,h,C){this.options.captureMetaData||(C=void 0);const q=this.options.jPath?h.toString():h,V=this.options.updateTag(m.tagname,q,m[":@"]);!1===V||("string"==typeof V?(m.tagname=V,e.addChild(m,C)):e.addChild(m,C))}function Q(e,m,h){const C=this.options.processEntities;if(!C||!C.enabled)return e;if(C.allowedTags){const q=this.options.jPath?h.toString():h;if(!(Array.isArray(C.allowedTags)?C.allowedTags.includes(m):C.allowedTags(m,q)))return e}if(C.tagFilter){const q=this.options.jPath?h.toString():h;if(!C.tagFilter(m,q))return e}for(const m of Object.keys(this.docTypeEntities)){const h=this.docTypeEntities[m],q=e.match(h.regx);if(q){if(this.entityExpansionCount+=q.length,C.maxTotalExpansions&&this.entityExpansionCount>C.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${C.maxTotalExpansions}`);const m=e.length;if(e=e.replace(h.regx,h.val),C.maxExpandedLength&&(this.currentExpandedLength+=e.length-m,this.currentExpandedLength>C.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${C.maxExpandedLength}`)}}for(const m of Object.keys(this.lastEntities)){const h=this.lastEntities[m],q=e.match(h.regex);if(q&&(this.entityExpansionCount+=q.length,C.maxTotalExpansions&&this.entityExpansionCount>C.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${C.maxTotalExpansions}`);e=e.replace(h.regex,h.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(const m of Object.keys(this.htmlEntities)){const h=this.htmlEntities[m],q=e.match(h.regex);if(q&&(this.entityExpansionCount+=q.length,C.maxTotalExpansions&&this.entityExpansionCount>C.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${C.maxTotalExpansions}`);e=e.replace(h.regex,h.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)}function H(e,m,h,C){return e&&(void 0===C&&(C=0===m.child.length),void 0!==(e=this.parseTextData(e,m.tagname,h,!1,!!m[":@"]&&0!==Object.keys(m[":@"]).length,C))&&""!==e&&m.add(this.options.textNodeName,e),e=""),e}function tt(e,m){if(!e||0===e.length)return!1;for(let h=0;h<e.length;h++)if(m.matches(e[h]))return!0;return!1}function et(e,m,h,C){const q=e.indexOf(m,h);if(-1===q)throw new Error(C);return q+m.length-1}function it(e,m,h,C=">"){const q=function(e,m,h=">"){let C,q="";for(let V=m;V<e.length;V++){let m=e[V];if(C)m===C&&(C="");else if('"'===m||"'"===m)C=m;else if(m===h[0]){if(!h[1])return{data:q,index:V};if(e[V+1]===h[1])return{data:q,index:V}}else"\t"===m&&(m=" ");q+=m}}(e,m+1,C);if(!q)return;let V=q.data;const le=q.index,fe=V.search(/\s/);let he=V,ye=!0;-1!==fe&&(he=V.substring(0,fe),V=V.substring(fe+1).trimStart());const ve=he;if(h){const e=he.indexOf(":");-1!==e&&(he=he.substr(e+1),ye=he!==q.data.substr(e+1))}return{tagName:he,tagExp:V,closeIndex:le,attrExpPresent:ye,rawTagName:ve}}function nt(e,m,h){const C=h;let q=1;for(;h<e.length;h++)if("<"===e[h])if("/"===e[h+1]){const V=et(e,">",h,`${m} is not closed`);if(e.substring(h+2,V).trim()===m&&(q--,0===q))return{tagContent:e.substring(C,h),i:V};h=V}else if("?"===e[h+1])h=et(e,"?>",h+1,"StopNode is not closed.");else if("!--"===e.substr(h+1,3))h=et(e,"--\x3e",h+3,"StopNode is not closed.");else if("!["===e.substr(h+1,2))h=et(e,"]]>",h,"StopNode is not closed.")-2;else{const C=it(e,h,">");C&&((C&&C.tagName)===m&&"/"!==C.tagExp[C.tagExp.length-1]&&q++,h=C.closeIndex)}}function st(e,m,h){if(m&&"string"==typeof e){const m=e.trim();return"true"===m||"false"!==m&&function(e,m={}){if(m=Object.assign({},He,m),!e||"string"!=typeof e)return e;let h=e.trim();if(void 0!==m.skipLike&&m.skipLike.test(h))return e;if("0"===e)return 0;if(m.hex&&qe.test(h))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(h);if(isFinite(h)){if(h.includes("e")||h.includes("E"))return function(e,m,h){if(!h.eNotation)return e;const C=m.match(We);if(C){let q=C[1]||"";const V=-1===C[3].indexOf("e")?"E":"e",le=C[2],fe=q?e[le.length+1]===V:e[le.length]===V;return le.length>1&&fe?e:(1!==le.length||!C[3].startsWith(`.${V}`)&&C[3][0]!==V)&&le.length>0?h.leadingZeros&&!fe?(m=(C[1]||"")+C[3],Number(m)):e:Number(m)}return e}(e,h,m);{const q=ze.exec(h);if(q){const V=q[1]||"",le=q[2];let fe=(C=q[3])&&-1!==C.indexOf(".")?("."===(C=C.replace(/0+$/,""))?C="0":"."===C[0]?C="0"+C:"."===C[C.length-1]&&(C=C.substring(0,C.length-1)),C):C;const he=V?"."===e[le.length+1]:"."===e[le.length];if(!m.leadingZeros&&(le.length>1||1===le.length&&!he))return e;{const C=Number(h),q=String(C);if(0===C)return C;if(-1!==q.search(/[eE]/))return m.eNotation?C:e;if(-1!==h.indexOf("."))return"0"===q||q===fe||q===`${V}${fe}`?C:e;let he=le?fe:h;return le?he===q||V+he===q?C:e:he===q||he===V+q?C:e}}return e}}var C;return function(e,m,h){const C=m===1/0;switch(h.infinity.toLowerCase()){case"null":return null;case"infinity":return m;case"string":return C?"Infinity":"-Infinity";default:return e}}(e,Number(h),m)}(e,h)}return void 0!==e?e:""}function rt(e,m,h){const C=Number.parseInt(e,m);return C>=0&&C<=1114111?String.fromCodePoint(C):h+e+";"}function ot(e,m,h,C){if(e){const C=e(m);h===m&&(h=C),m=C}return{tagName:m=at(m,C),tagExp:h}}function at(e,m){if(le.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return V.includes(e)?m.onDangerousProperty(e):e}const It=$.getMetaDataSymbol();function lt(e,m){if(!e||"object"!=typeof e)return{};if(!m)return e;const h={};for(const C in e)C.startsWith(m)?h[C.substring(m.length)]=e[C]:h[C]=e[C];return h}function pt(e,m,h,C){return ut(e,m,h,C)}function ut(e,m,h,C){let q;const V={};for(let le=0;le<e.length;le++){const fe=e[le],he=ct(fe);if(void 0!==he&&he!==m.textNodeName){const e=lt(fe[":@"]||{},m.attributeNamePrefix);h.push(he,e)}if(he===m.textNodeName)void 0===q?q=fe[he]:q+=""+fe[he];else{if(void 0===he)continue;if(fe[he]){let e=ut(fe[he],m,h,C);const q=ft(e,m);if(fe[":@"]?dt(e,fe[":@"],C,m):1!==Object.keys(e).length||void 0===e[m.textNodeName]||m.alwaysCreateTextNode?0===Object.keys(e).length&&(m.alwaysCreateTextNode?e[m.textNodeName]="":e=""):e=e[m.textNodeName],void 0!==fe[It]&&"object"==typeof e&&null!==e&&(e[It]=fe[It]),void 0!==V[he]&&Object.prototype.hasOwnProperty.call(V,he))Array.isArray(V[he])||(V[he]=[V[he]]),V[he].push(e);else{const h=m.jPath?C.toString():C;m.isArray(he,h,q)?V[he]=[e]:V[he]=e}void 0!==he&&he!==m.textNodeName&&h.pop()}}}return"string"==typeof q?q.length>0&&(V[m.textNodeName]=q):void 0!==q&&(V[m.textNodeName]=q),V}function ct(e){const m=Object.keys(e);for(let e=0;e<m.length;e++){const h=m[e];if(":@"!==h)return h}}function dt(e,m,h,C){if(m){const q=Object.keys(m),V=q.length;for(let le=0;le<V;le++){const V=q[le],fe=V.startsWith(C.attributeNamePrefix)?V.substring(C.attributeNamePrefix.length):V,he=C.jPath?h.toString()+"."+fe:h;C.isArray(V,he,!0,!0)?e[V]=[m[V]]:e[V]=m[V]}}}function ft(e,m){const{textNodeName:h}=m,C=Object.keys(e).length;return 0===C||!(1!==C||!e[h]&&"boolean"!=typeof e[h]&&0!==e[h])}class gt{constructor(e){this.externalEntities={},this.options=O(e)}parse(e,m){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(m){!0===m&&(m={});const h=l(e,m);if(!0!==h)throw Error(`${h.err.msg}:${h.err.line}:${h.err.col}`)}const h=new W(this.options);h.addExternalEntities(this.externalEntities);const C=h.parseXml(e);return this.options.preserveOrder||void 0===C?C:pt(C,this.options,h.matcher,h.readonlyMatcher)}addEntity(e,m){if(-1!==m.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===m)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=m}static getMetaDataSymbol(){return $.getMetaDataSymbol()}}function mt(e,m){let h="";m.format&&m.indentBy.length>0&&(h="\n");const C=[];if(m.stopNodes&&Array.isArray(m.stopNodes))for(let e=0;e<m.stopNodes.length;e++){const h=m.stopNodes[e];"string"==typeof h?C.push(new R(h)):h instanceof R&&C.push(h)}return xt(e,m,h,new G,C)}function xt(e,m,h,C,q){let V="",le=!1;if(m.maxNestedTags&&C.getDepth()>m.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let h=e.toString();return h=Tt(h,m),h}return""}for(let fe=0;fe<e.length;fe++){const he=e[fe],ye=yt(he);if(void 0===ye)continue;const ve=Nt(he[":@"],m);C.push(ye,ve);const Le=vt(C,q);if(ye===m.textNodeName){let e=he[ye];Le||(e=m.tagValueProcessor(ye,e),e=Tt(e,m)),le&&(V+=h),V+=e,le=!1,C.pop();continue}if(ye===m.cdataPropName){le&&(V+=h),V+=`<![CDATA[${he[ye][0][m.textNodeName]}]]>`,le=!1,C.pop();continue}if(ye===m.commentPropName){V+=h+`\x3c!--${he[ye][0][m.textNodeName]}--\x3e`,le=!0,C.pop();continue}if("?"===ye[0]){const e=wt(he[":@"],m,Le),q="?xml"===ye?"":h;let fe=he[ye][0][m.textNodeName];fe=0!==fe.length?" "+fe:"",V+=q+`<${ye}${fe}${e}?>`,le=!0,C.pop();continue}let Ue=h;""!==Ue&&(Ue+=m.indentBy);const qe=h+`<${ye}${wt(he[":@"],m,Le)}`;let ze;ze=Le?bt(he[ye],m):xt(he[ye],m,Ue,C,q),-1!==m.unpairedTags.indexOf(ye)?m.suppressUnpairedNode?V+=qe+">":V+=qe+"/>":ze&&0!==ze.length||!m.suppressEmptyNode?ze&&ze.endsWith(">")?V+=qe+`>${ze}${h}</${ye}>`:(V+=qe+">",ze&&""!==h&&(ze.includes("/>")||ze.includes("</"))?V+=h+m.indentBy+ze+h:V+=ze,V+=`</${ye}>`):V+=qe+"/>",le=!0,C.pop()}return V}function Nt(e,m){if(!e||m.ignoreAttributes)return null;const h={};let C=!1;for(let q in e)Object.prototype.hasOwnProperty.call(e,q)&&(h[q.startsWith(m.attributeNamePrefix)?q.substr(m.attributeNamePrefix.length):q]=e[q],C=!0);return C?h:null}function bt(e,m){if(!Array.isArray(e))return null!=e?e.toString():"";let h="";for(let C=0;C<e.length;C++){const q=e[C],V=yt(q);if(V===m.textNodeName)h+=q[V];else if(V===m.cdataPropName)h+=q[V][0][m.textNodeName];else if(V===m.commentPropName)h+=q[V][0][m.textNodeName];else{if(V&&"?"===V[0])continue;if(V){const e=Et(q[":@"],m),C=bt(q[V],m);C&&0!==C.length?h+=`<${V}${e}>${C}</${V}>`:h+=`<${V}${e}/>`}}}return h}function Et(e,m){let h="";if(e&&!m.ignoreAttributes)for(let C in e){if(!Object.prototype.hasOwnProperty.call(e,C))continue;let q=e[C];!0===q&&m.suppressBooleanAttributes?h+=` ${C.substr(m.attributeNamePrefix.length)}`:h+=` ${C.substr(m.attributeNamePrefix.length)}="${q}"`}return h}function yt(e){const m=Object.keys(e);for(let h=0;h<m.length;h++){const C=m[h];if(Object.prototype.hasOwnProperty.call(e,C)&&":@"!==C)return C}}function wt(e,m,h){let C="";if(e&&!m.ignoreAttributes)for(let q in e){if(!Object.prototype.hasOwnProperty.call(e,q))continue;let V;h?V=e[q]:(V=m.attributeValueProcessor(q,e[q]),V=Tt(V,m)),!0===V&&m.suppressBooleanAttributes?C+=` ${q.substr(m.attributeNamePrefix.length)}`:C+=` ${q.substr(m.attributeNamePrefix.length)}="${V}"`}return C}function vt(e,m){if(!m||0===m.length)return!1;for(let h=0;h<m.length;h++)if(e.matches(m[h]))return!0;return!1}function Tt(e,m){if(e&&e.length>0&&m.processEntities)for(let h=0;h<m.entities.length;h++){const C=m.entities[h];e=e.replace(C.regex,C.val)}return e}const _t={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,m){return m},attributeValueProcessor:function(e,m){return m},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function St(e){if(this.options=Object.assign({},_t,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const m=this.options.stopNodes[e];"string"==typeof m?this.stopNodeExpressions.push(new R(m)):m instanceof R&&this.stopNodeExpressions.push(m)}var m;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(m=this.options.ignoreAttributes)?m:Array.isArray(m)?e=>{for(const h of m){if("string"==typeof h&&e===h)return!0;if(h instanceof RegExp&&h.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ct),this.processTextOrObjNode=At,this.options.format?(this.indentate=Ot,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function At(e,m,h,C){const q=this.extractAttributes(e);if(C.push(m,q),this.checkStopNode(C)){const q=this.buildRawContent(e),V=this.buildAttributesForStopNode(e);return C.pop(),this.buildObjectNode(q,m,V,h)}const V=this.j2x(e,h+1,C);return C.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],m,V.attrStr,h,C):this.buildObjectNode(V.val,m,V.attrStr,h)}function Ot(e){return this.options.indentBy.repeat(e)}function Ct(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}St.prototype.build=function(e){if(this.options.preserveOrder)return mt(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const m=new G;return this.j2x(e,0,m).val}},St.prototype.j2x=function(e,m,h){let C="",q="";if(this.options.maxNestedTags&&h.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const V=this.options.jPath?h.toString():h,le=this.checkStopNode(h);for(let fe in e)if(Object.prototype.hasOwnProperty.call(e,fe))if(void 0===e[fe])this.isAttribute(fe)&&(q+="");else if(null===e[fe])this.isAttribute(fe)||fe===this.options.cdataPropName?q+="":"?"===fe[0]?q+=this.indentate(m)+"<"+fe+"?"+this.tagEndChar:q+=this.indentate(m)+"<"+fe+"/"+this.tagEndChar;else if(e[fe]instanceof Date)q+=this.buildTextValNode(e[fe],fe,"",m,h);else if("object"!=typeof e[fe]){const he=this.isAttribute(fe);if(he&&!this.ignoreAttributesFn(he,V))C+=this.buildAttrPairStr(he,""+e[fe],le);else if(!he)if(fe===this.options.textNodeName){let m=this.options.tagValueProcessor(fe,""+e[fe]);q+=this.replaceEntitiesValue(m)}else{h.push(fe);const C=this.checkStopNode(h);if(h.pop(),C){const h=""+e[fe];q+=""===h?this.indentate(m)+"<"+fe+this.closeTag(fe)+this.tagEndChar:this.indentate(m)+"<"+fe+">"+h+"</"+fe+this.tagEndChar}else q+=this.buildTextValNode(e[fe],fe,"",m,h)}}else if(Array.isArray(e[fe])){const C=e[fe].length;let V="",le="";for(let he=0;he<C;he++){const C=e[fe][he];if(void 0===C);else if(null===C)"?"===fe[0]?q+=this.indentate(m)+"<"+fe+"?"+this.tagEndChar:q+=this.indentate(m)+"<"+fe+"/"+this.tagEndChar;else if("object"==typeof C)if(this.options.oneListGroup){h.push(fe);const e=this.j2x(C,m+1,h);h.pop(),V+=e.val,this.options.attributesGroupName&&C.hasOwnProperty(this.options.attributesGroupName)&&(le+=e.attrStr)}else V+=this.processTextOrObjNode(C,fe,m,h);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(fe,C);e=this.replaceEntitiesValue(e),V+=e}else{h.push(fe);const e=this.checkStopNode(h);if(h.pop(),e){const e=""+C;V+=""===e?this.indentate(m)+"<"+fe+this.closeTag(fe)+this.tagEndChar:this.indentate(m)+"<"+fe+">"+e+"</"+fe+this.tagEndChar}else V+=this.buildTextValNode(C,fe,"",m,h)}}this.options.oneListGroup&&(V=this.buildObjectNode(V,fe,le,m)),q+=V}else if(this.options.attributesGroupName&&fe===this.options.attributesGroupName){const m=Object.keys(e[fe]),h=m.length;for(let q=0;q<h;q++)C+=this.buildAttrPairStr(m[q],""+e[fe][m[q]],le)}else q+=this.processTextOrObjNode(e[fe],fe,m,h);return{attrStr:C,val:q}},St.prototype.buildAttrPairStr=function(e,m,h){return h||(m=this.options.attributeValueProcessor(e,""+m),m=this.replaceEntitiesValue(m)),this.options.suppressBooleanAttributes&&"true"===m?" "+e:" "+e+'="'+m+'"'},St.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const m={};let h=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const C=e[this.options.attributesGroupName];for(let e in C)Object.prototype.hasOwnProperty.call(C,e)&&(m[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=C[e],h=!0)}else for(let C in e){if(!Object.prototype.hasOwnProperty.call(e,C))continue;const q=this.isAttribute(C);q&&(m[q]=e[C],h=!0)}return h?m:null},St.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let m="";for(let h in e){if(!Object.prototype.hasOwnProperty.call(e,h))continue;if(this.isAttribute(h))continue;if(this.options.attributesGroupName&&h===this.options.attributesGroupName)continue;const C=e[h];if(h===this.options.textNodeName)m+=C;else if(Array.isArray(C)){for(let e of C)if("string"==typeof e||"number"==typeof e)m+=`<${h}>${e}</${h}>`;else if("object"==typeof e&&null!==e){const C=this.buildRawContent(e),q=this.buildAttributesForStopNode(e);m+=""===C?`<${h}${q}/>`:`<${h}${q}>${C}</${h}>`}}else if("object"==typeof C&&null!==C){const e=this.buildRawContent(C),q=this.buildAttributesForStopNode(C);m+=""===e?`<${h}${q}/>`:`<${h}${q}>${e}</${h}>`}else m+=`<${h}>${C}</${h}>`}return m},St.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let m="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const h=e[this.options.attributesGroupName];for(let e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;const C=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,q=h[e];!0===q&&this.options.suppressBooleanAttributes?m+=" "+C:m+=" "+C+'="'+q+'"'}}else for(let h in e){if(!Object.prototype.hasOwnProperty.call(e,h))continue;const C=this.isAttribute(h);if(C){const q=e[h];!0===q&&this.options.suppressBooleanAttributes?m+=" "+C:m+=" "+C+'="'+q+'"'}}return m},St.prototype.buildObjectNode=function(e,m,h,C){if(""===e)return"?"===m[0]?this.indentate(C)+"<"+m+h+"?"+this.tagEndChar:this.indentate(C)+"<"+m+h+this.closeTag(m)+this.tagEndChar;{let q="</"+m+this.tagEndChar,V="";return"?"===m[0]&&(V="?",q=""),!h&&""!==h||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&m===this.options.commentPropName&&0===V.length?this.indentate(C)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(C)+"<"+m+h+V+this.tagEndChar+e+this.indentate(C)+q:this.indentate(C)+"<"+m+h+V+">"+e+q}},St.prototype.closeTag=function(e){let m="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(m="/"):m=this.options.suppressEmptyNode?"/":`></${e}`,m},St.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let m=0;m<this.stopNodeExpressions.length;m++)if(e.matches(this.stopNodeExpressions[m]))return!0;return!1},St.prototype.buildTextValNode=function(e,m,h,C,q){if(!1!==this.options.cdataPropName&&m===this.options.cdataPropName)return this.indentate(C)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&m===this.options.commentPropName)return this.indentate(C)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===m[0])return this.indentate(C)+"<"+m+h+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(m,e);return q=this.replaceEntitiesValue(q),""===q?this.indentate(C)+"<"+m+h+this.closeTag(m)+this.tagEndChar:this.indentate(C)+"<"+m+h+">"+q+"</"+m+this.tagEndChar}},St.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let m=0;m<this.options.entities.length;m++){const h=this.options.entities[m];e=e.replace(h.regex,h.val)}return e};const Mt=St,Lt={validate:l};e.exports=h})()},8153:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/client-ssm","description":"AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native","version":"3.1014.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ssm","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ssm","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.23","@aws-sdk/credential-provider-node":"^3.972.24","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.8","@aws-sdk/middleware-user-agent":"^3.972.24","@aws-sdk/region-config-resolver":"^3.972.9","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.10","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.12","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.27","@smithy/middleware-retry":"^4.4.44","@smithy/middleware-serde":"^4.2.15","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.0","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.7","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.43","@smithy/util-defaults-mode-node":"^4.2.47","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@smithy/util-utf8":"^4.2.2","@smithy/util-waiter":"^4.2.13","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ssm"}}')},4361:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.996.13","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.23","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.8","@aws-sdk/middleware-user-agent":"^3.972.24","@aws-sdk/region-config-resolver":"^3.972.9","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.10","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.12","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.27","@smithy/middleware-retry":"^4.4.44","@smithy/middleware-serde":"^4.2.15","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.0","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.7","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.43","@smithy/util-defaults-mode-node":"^4.2.47","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@smithy/util-utf8":"^4.2.2","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}')},9886:e=>{e.exports=JSON.parse('{"name":"dotenv","version":"17.3.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var C={};function __nccwpck_require__(e){var m=C[e];if(m!==undefined){return m.exports}var q=C[e]={exports:{}};var V=true;try{h[e].call(q.exports,q,q.exports,__nccwpck_require__);V=false}finally{if(V)delete C[e]}return q.exports}__nccwpck_require__.m=h;(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var m;__nccwpck_require__.t=function(h,C){if(C&1)h=this(h);if(C&8)return h;if(typeof h==="object"&&h){if(C&4&&h.__esModule)return h;if(C&16&&typeof h.then==="function")return h}var q=Object.create(null);__nccwpck_require__.r(q);var V={};m=m||[null,e({}),e([]),e(e)];for(var le=C&2&&h;typeof le=="object"&&!~m.indexOf(le);le=e(le)){Object.getOwnPropertyNames(le).forEach((e=>V[e]=()=>h[e]))}V["default"]=()=>h;__nccwpck_require__.d(q,V);return q}})();(()=>{__nccwpck_require__.d=(e,m)=>{for(var h in m){if(__nccwpck_require__.o(m,h)&&!__nccwpck_require__.o(e,h)){Object.defineProperty(e,h,{enumerable:true,get:m[h]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((m,h)=>{__nccwpck_require__.f[h](e,m);return m}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,m)=>Object.prototype.hasOwnProperty.call(e,m)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";(()=>{var e={792:0};var installChunk=m=>{var{ids:h,modules:C,runtime:q}=m;var V,le,fe=0;for(V in C){if(__nccwpck_require__.o(C,V)){__nccwpck_require__.m[V]=C[V]}}if(q)q(__nccwpck_require__);for(;fe<h.length;fe++){le=h[fe];if(__nccwpck_require__.o(e,le)&&e[le]){e[le][0]()}e[h[fe]]=0}};__nccwpck_require__.f.j=(m,h)=>{var C=__nccwpck_require__.o(e,m)?e[m]:undefined;if(C!==0){if(C){h.push(C[1])}else{if(true){var q=import("./"+__nccwpck_require__.u(m)).then(installChunk,(h=>{if(e[m]!==0)e[m]=undefined;throw h}));var q=Promise.race([q,new Promise((h=>C=e[m]=[h]))]);h.push(C[1]=q)}}}}})();var q={};var V=__nccwpck_require__(4539);var le;(function(e){e["PUSH_SINGLE"]="PUSH_SINGLE";e["PUSH_ENV_TO_SECRETS"]="PUSH_ENV_TO_SECRETS";e["PULL_SECRETS_TO_ENV"]="PULL_SECRETS_TO_ENV"})(le||(le={}));class DispatchActionCommand{constructor(e,m,h,C,q,V,fe=le.PULL_SECRETS_TO_ENV){this.map=e;this.envfile=m;this.key=h;this.value=C;this.secretPath=q;this.profile=V;this.mode=fe}static fromCliOptions(e){const m=DispatchActionCommand.determineOperationMode(e);return new DispatchActionCommand(e.map,e.envfile,e.key,e.value,e.secretPath,e.profile,m)}static determineOperationMode(e){if(e.key&&e.value&&e.secretPath){return le.PUSH_SINGLE}if(e.push){return le.PUSH_ENV_TO_SECRETS}return le.PULL_SECRETS_TO_ENV}}function esm_e(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&"function"==typeof e.then}function esm_t(e){switch(typeof e){case"string":case"symbol":return e.toString();case"function":return e.name;default:throw new Error(`Unexpected ${typeof e} service id type`)}}const fe=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");class r{[fe];#e;constructor(e){this.#e=e,this[fe]=!0}static is(e){return"object"==typeof e&&null!==e&&!0===e[fe]}unwrap(){return this.#e()}}var he=__nccwpck_require__(2535);function t(e){return m=>(m.push(...e),m)}function lib_esm_n(e){return m=>(m.push(e),m)}function lib_esm_e(e,m){return h=>(h[m]=e,h)}function u(){return[]}function f(){return new Map}function esm_r(){return new Set}function c(e,m,h){return Reflect.getOwnMetadata(m,e,h)}function o(e,m,h){return Reflect.getMetadata(m,e,h)}function a(e,m,h,C){Reflect.defineMetadata(m,h,e,C)}function esm_i(e,m,h,C,q){const V=C(c(e,m,q)??h());Reflect.defineMetadata(m,V,e,q)}function d(e,m,h,C,q){const V=C(o(e,m,q)??h());Reflect.defineMetadata(m,V,e,q)}function M(e){return m=>{for(const h of e)m.add(h);return m}}const ye="@inversifyjs/container/bindingId";function esm_c(){const e=c(Object,ye)??0;return e===Number.MAX_SAFE_INTEGER?a(Object,ye,Number.MIN_SAFE_INTEGER):esm_i(Object,ye,(()=>e),(e=>e+1)),e}const ve={Request:"Request",Singleton:"Singleton",Transient:"Transient"},Le={ConstantValue:"ConstantValue",DynamicValue:"DynamicValue",Factory:"Factory",Instance:"Instance",Provider:"Provider",ResolvedValue:"ResolvedValue",ServiceRedirection:"ServiceRedirection"};function*l(...e){for(const m of e)yield*m}class p{#e;#t;#n;constructor(e){this.#e=new Map,this.#t={};for(const m of Reflect.ownKeys(e))this.#t[m]=new Map;this.#n=e}add(e,m){this.#r(e).push(m);for(const h of Reflect.ownKeys(m))this.#o(h,m[h]).push(e)}clone(){const e=this.#i(),m=this.#s(),h=Reflect.ownKeys(this.#n),C=this._buildNewInstance(this.#n);this.#a(this.#e,C.#e,e,m);for(const m of h)this.#c(this.#t[m],C.#t[m],e);return C}get(e,m){return this.#t[e].get(m)}getAllKeys(e){return this.#t[e].keys()}removeByRelation(e,m){const h=this.get(e,m);if(void 0===h)return;const C=new Set(h);for(const h of C){const C=this.#e.get(h);if(void 0===C)throw new Error("Expecting model relation, none found");for(const q of C)q[e]===m&&this.#l(h,q);this.#e.delete(h)}}_buildNewInstance(e){return new p(e)}_cloneModel(e){return e}_cloneRelation(e){return e}#i(){const e=new Map;for(const m of this.#e.keys()){const h=this._cloneModel(m);e.set(m,h)}return e}#s(){const e=new Map;for(const m of this.#e.values())for(const h of m){const m=this._cloneRelation(h);e.set(h,m)}return e}#r(e){let m=this.#e.get(e);return void 0===m&&(m=[],this.#e.set(e,m)),m}#o(e,m){let h=this.#t[e].get(m);return void 0===h&&(h=[],this.#t[e].set(m,h)),h}#u(e,m){const h=m.get(e);if(void 0===h)throw new Error("Expecting model to be cloned, none found");return h}#d(e,m){const h=m.get(e);if(void 0===h)throw new Error("Expecting relation to be cloned, none found");return h}#c(e,m,h){for(const[C,q]of e){const e=new Array;for(const m of q)e.push(this.#u(m,h));m.set(C,e)}}#a(e,m,h,C){for(const[q,V]of e){const e=new Array;for(const m of V)e.push(this.#d(m,C));m.set(this.#u(q,h),e)}}#l(e,m){for(const h of Reflect.ownKeys(m))this.#p(e,h,m[h])}#p(e,m,h){const C=this.#t[m].get(h);if(void 0!==C){const q=C.indexOf(e);-1!==q&&C.splice(q,1),0===C.length&&this.#t[m].delete(h)}}}var Ue;!function(e){e.moduleId="moduleId",e.serviceId="serviceId"}(Ue||(Ue={}));class v{#m;#f;constructor(e,m){this.#m=m??new p({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#f=e}static build(e){return new v(e)}add(e,m){this.#m.add(e,m)}clone(){return new v(this.#f,this.#m.clone())}get(e){const m=[],h=this.#m.get(Ue.serviceId,e);void 0!==h&&m.push(h);const C=this.#f()?.get(e);if(void 0!==C&&m.push(C),0!==m.length)return l(...m)}removeAllByModuleId(e){this.#m.removeByRelation(Ue.moduleId,e)}removeAllByServiceId(e){this.#m.removeByRelation(Ue.serviceId,e)}}const qe="@inversifyjs/core/classMetadataReflectKey";function g(){return{constructorArguments:[],lifecycle:{postConstructMethodNames:new Set,preDestroyMethodNames:new Set},properties:new Map,scope:void 0}}const ze="@inversifyjs/core/pendingClassMetadataCountReflectKey";const He=Symbol.for("@inversifyjs/core/InversifyCoreError");class esm_M extends Error{[He];kind;constructor(e,m,h){super(m,h),this[He]=!0,this.kind=e}static is(e){return"object"==typeof e&&null!==e&&!0===e[He]}static isErrorOfKind(e,m){return esm_M.is(e)&&e.kind===m}}var We,Qe,Je,It,_t;function N(e){const m=c(e,qe)??g();if(!function(e){const m=c(e,ze);return void 0!==m&&0!==m}(e))return function(e,m){const h=[];if(m.length<e.length)throw new esm_M(We.missingInjectionDecorator,`Found unexpected missing metadata on type "${e.name}". "${e.name}" constructor requires at least ${e.length.toString()} arguments, found ${m.length.toString()} instead.\nAre you using @inject, @multiInject or @unmanaged decorators in every non optional constructor argument?\n\nIf you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`);for(let e=0;e<m.length;++e)void 0===m[e]&&h.push(e);if(h.length>0)throw new esm_M(We.missingInjectionDecorator,`Found unexpected missing metadata on type "${e.name}" at constructor indexes "${h.join('", "')}".\n\nAre you using @inject, @multiInject or @unmanaged decorators at those indexes?\n\nIf you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)}(e,m.constructorArguments),m;!function(e,m){const h=[];for(let C=0;C<m.constructorArguments.length;++C){const q=m.constructorArguments[C];void 0!==q&&q.kind!==Qe.unknown||h.push(` - Missing or incomplete metadata for type "${e.name}" at constructor argument with index ${C.toString()}.\nEvery constructor parameter must be decorated either with @inject, @multiInject or @unmanaged decorator.`)}for(const[C,q]of m.properties)q.kind===Qe.unknown&&h.push(` - Missing or incomplete metadata for type "${e.name}" at property "${C.toString()}".\nThis property must be decorated either with @inject or @multiInject decorator.`);if(0===h.length)throw new esm_M(We.unknown,`Unexpected class metadata for type "${e.name}" with uncompletion traces.\nThis might be caused by one of the following reasons:\n\n1. A third party library is targeting inversify reflection metadata.\n2. A bug is causing the issue. Consider submiting an issue to fix it.`);throw new esm_M(We.missingInjectionDecorator,`Invalid class metadata at type ${e.name}:\n\n${h.join("\n\n")}`)}(e,m)}function P(e,m){const h=N(m).scope??e.scope;return{cache:{isRight:!1,value:void 0},id:esm_c(),implementationType:m,isSatisfiedBy:()=>!0,moduleId:void 0,onActivation:void 0,onDeactivation:void 0,scope:h,serviceIdentifier:m,type:Le.Instance}}function A(e){return e.isRight?{isRight:!0,value:e.value}:e}function x(e){switch(e.type){case Le.ConstantValue:case Le.DynamicValue:return function(e){return{cache:A(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type,value:e.value}}(e);case Le.Factory:return function(e){return{cache:A(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}}(e);case Le.Instance:return function(e){return{cache:A(e.cache),id:e.id,implementationType:e.implementationType,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}}(e);case Le.Provider:return function(e){return{cache:A(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,provider:e.provider,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}}(e);case Le.ResolvedValue:return function(e){return{cache:A(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,metadata:e.metadata,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}}(e);case Le.ServiceRedirection:return function(e){return{id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,serviceIdentifier:e.serviceIdentifier,targetServiceIdentifier:e.targetServiceIdentifier,type:e.type}}(e)}}!function(e){e[e.injectionDecoratorConflict=0]="injectionDecoratorConflict",e[e.missingInjectionDecorator=1]="missingInjectionDecorator",e[e.planning=2]="planning",e[e.resolution=3]="resolution",e[e.unknown=4]="unknown"}(We||(We={})),function(e){e[e.unknown=32]="unknown"}(Qe||(Qe={})),function(e){e.id="id",e.moduleId="moduleId",e.serviceId="serviceId"}(Je||(Je={}));class R extends p{_buildNewInstance(e){return new R(e)}_cloneModel(e){return x(e)}}class T{#h;#g;#f;constructor(e,m,h){this.#g=h??new R({id:{isOptional:!1},moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#f=e,this.#h=m}static build(e,m){return new T(e,m)}clone(){return new T(this.#f,this.#h,this.#g.clone())}get(e){const m=this.getNonParentBindings(e)??this.#f()?.get(e);if(void 0!==m)return m;const h=this.#y(e);return void 0===h?h:[h]}*getChained(e){const m=this.getNonParentBindings(e);void 0!==m&&(yield*m);const h=this.#f();if(void 0===h){if(void 0===m){const m=this.#y(e);void 0!==m&&(yield m)}}else yield*h.getChained(e)}getBoundServices(){const e=new Set(this.#g.getAllKeys(Je.serviceId)),m=this.#f();if(void 0!==m)for(const h of m.getBoundServices())e.add(h);return e}getById(e){return this.#g.get(Je.id,e)??this.#f()?.getById(e)}getByModuleId(e){return this.#g.get(Je.moduleId,e)??this.#f()?.getByModuleId(e)}getNonParentBindings(e){return this.#g.get(Je.serviceId,e)}getNonParentBoundServices(){return this.#g.getAllKeys(Je.serviceId)}removeById(e){this.#g.removeByRelation(Je.id,e)}removeAllByModuleId(e){this.#g.removeByRelation(Je.moduleId,e)}removeAllByServiceId(e){this.#g.removeByRelation(Je.serviceId,e)}set(e){const m={[Je.id]:e.id,[Je.serviceId]:e.serviceIdentifier};void 0!==e.moduleId&&(m[Je.moduleId]=e.moduleId),this.#g.add(e,m)}#y(e){if(void 0===this.#h||"function"!=typeof e)return;const m=P(this.#h,e);return this.set(m),m}}!function(e){e.moduleId="moduleId",e.serviceId="serviceId"}(It||(It={}));class j{#S;#f;constructor(e,m){this.#S=m??new p({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#f=e}static build(e){return new j(e)}add(e,m){this.#S.add(e,m)}clone(){return new j(this.#f,this.#S.clone())}get(e){const m=[],h=this.#S.get(It.serviceId,e);void 0!==h&&m.push(h);const C=this.#f()?.get(e);if(void 0!==C&&m.push(C),0!==m.length)return l(...m)}removeAllByModuleId(e){this.#S.removeByRelation(It.moduleId,e)}removeAllByServiceId(e){this.#S.removeByRelation(It.serviceId,e)}}function B(e,m,h,C){const q=Array.isArray(e)?e:[e];if(void 0!==h)if("number"!=typeof h)if(void 0!==C)for(const e of q)e(m,h,C);else Reflect.decorate(q,m.prototype,h);else for(const e of q)e(m,void 0,h);else Reflect.decorate(q,m)}function F(){return 0}function k(e){return m=>{void 0!==m&&m.kind===Qe.unknown&&esm_i(e,ze,F,(e=>e-1))}}function $(e,m){return(...h)=>C=>{if(void 0===C)return e(...h);if(C.kind===_t.unmanaged)throw new esm_M(We.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");return m(C,...h)}}function D(e){if(e.kind!==Qe.unknown&&!0!==e.isFromTypescriptParamType)throw new esm_M(We.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}!function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection",e[e.unmanaged=2]="unmanaged"}(_t||(_t={}));const Mt=$((function(e,m,h){return e===_t.multipleInjection?{chained:h?.chained??!1,kind:e,name:void 0,optional:!1,tags:new Map,value:m}:{kind:e,name:void 0,optional:!1,tags:new Map,value:m}}),(function(e,m,h,C){return D(e),m===_t.multipleInjection?{...e,chained:C?.chained??!1,kind:m,value:h}:{...e,kind:m,value:h}}));function O(e,m){return h=>{const C=h.properties.get(m);return h.properties.set(m,e(C)),h}}var Lt;function _(e,m,h,C){if(esm_M.isErrorOfKind(C,We.injectionDecoratorConflict)){const q=function(e,m,h){if(void 0===h){if(void 0===m)throw new esm_M(We.unknown,"Unexpected undefined property and index values");return{kind:Lt.property,property:m,targetClass:e.constructor}}return"number"==typeof h?{index:h,kind:Lt.parameter,targetClass:e}:{kind:Lt.method,method:m,targetClass:e}}(e,m,h);throw new esm_M(We.injectionDecoratorConflict,`Unexpected injection error.\n\nCause:\n\n${C.message}\n\nDetails\n\n${function(e){switch(e.kind){case Lt.method:return`[class: "${e.targetClass.name}", method: "${e.method.toString()}"]`;case Lt.parameter:return`[class: "${e.targetClass.name}", index: "${e.index.toString()}"]`;case Lt.property:return`[class: "${e.targetClass.name}", property: "${e.property.toString()}"]`}}(q)}`,{cause:C})}throw C}function z(e,m){return(h,C,q)=>{try{void 0===q?function(e,m){const h=L(e,m);return(e,m)=>{esm_i(e.constructor,qe,g,O(h(e),m))}}(e,m)(h,C):"number"==typeof q?function(e,m){const h=L(e,m);return(e,m,C)=>{if(!function(e,m){return"function"==typeof e&&void 0===m}(e,m))throw new esm_M(We.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.\nFound @inject decorator at method "${m?.toString()??""}" at class "${e.constructor.name}"`);esm_i(e,qe,g,function(e,m){return h=>{const C=h.constructorArguments[m];return h.constructorArguments[m]=e(C),h}}(h(e),C))}}(e,m)(h,C,q):function(e,m){const h=L(e,m);return(e,m,C)=>{if(!function(e){return void 0!==e.set}(C))throw new esm_M(We.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.\nFound @inject decorator at method "${m.toString()}" at class "${e.constructor.name}"`);esm_i(e.constructor,qe,g,O(h(e),m))}}(e,m)(h,C,q)}catch(e){_(h,C,q,e)}}}function L(e,m){return h=>{const C=m(h);return m=>(C(m),e(m))}}function U(e){return z(Mt(_t.singleInjection,e),k)}!function(e){e[e.method=0]="method",e[e.parameter=1]="parameter",e[e.property=2]="property"}(Lt||(Lt={}));const Ut="@inversifyjs/core/classIsInjectableFlagReflectKey";const qt=[Array,BigInt,Boolean,Function,Number,Object,String];function G(e){const m=c(e,"design:paramtypes");void 0!==m&&esm_i(e,qe,g,function(e){return m=>(e.forEach(((e,h)=>{var C;void 0!==m.constructorArguments[h]||(C=e,qt.includes(C))||(m.constructorArguments[h]=function(e){return{isFromTypescriptParamType:!0,kind:_t.singleInjection,name:void 0,optional:!1,tags:new Map,value:e}}(e))})),m)}(m))}function W(e){return m=>{!function(e){if(void 0!==c(e,Ut))throw new esm_M(We.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${e.name}"`);a(e,Ut,!0)}(m),G(m),void 0!==e&&esm_i(m,qe,g,(m=>({...m,scope:e})))}}function X(e,m,h){let C;return e.extendConstructorArguments??!0?(C=[...m.constructorArguments],h.constructorArguments.map(((e,m)=>{C[m]=e}))):C=h.constructorArguments,C}function H(e,m,h){return e?new Set([...m,...h]):h}function J(e,m,h){const C=e.lifecycle?.extendPostConstructMethods??!0,q=H(e.lifecycle?.extendPreDestroyMethods??!0,m.lifecycle.preDestroyMethodNames,h.lifecycle.preDestroyMethodNames);return{postConstructMethodNames:H(C,m.lifecycle.postConstructMethodNames,h.lifecycle.postConstructMethodNames),preDestroyMethodNames:q}}function Q(e,m,h){let C;return C=e.extendProperties??!0?new Map(l(m.properties,h.properties)):h.properties,C}function Y(e){return m=>{const h=N(e.type);n(m,qe,g,function(e,m){const n=h=>({constructorArguments:X(e,m,h),lifecycle:J(e,m,h),properties:Q(e,m,h),scope:h.scope});return n}(e,h))}}function Z(e){return m=>{const h=i(m);if(void 0===h)throw new esm_M(We.injectionDecoratorConflict,`Expected base type for type "${m.name}", none found.`);Y({...e,type:h})(m)}}function ee(e){return m=>{const h=[];let C=i(m);for(;void 0!==C&&C!==Object;){const e=C;h.push(e),C=i(e)}h.reverse();for(const C of h)Y({...e,type:C})(m)}}function te(e,m){return z(Mt(_t.multipleInjection,e,m),k)}function ne(e){return m=>{void 0===m&&n(e,ze,F,(e=>e+1))}}function ie(e){return m=>{const h=m??{kind:Qe.unknown,name:void 0,optional:!1,tags:new Map};if(h.kind===_t.unmanaged)throw new esm_M(We.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");return e(h)}}function oe(e){const m=ie(function(e){return m=>{if(void 0!==m.name)throw new esm_M(We.injectionDecoratorConflict,"Unexpected duplicated named decorator");return m.name=e,m}}(e));return z(m,ne)}function re(e){if(e.optional)throw new esm_M(We.injectionDecoratorConflict,"Unexpected duplicated optional decorator");return e.optional=!0,e}function se(){return z(ie(re),ne)}function ae(){return(e,m,h)=>{try{n(e.constructor,qe,g,(C=m,e=>{if(e.lifecycle.postConstructMethodNames.has(C))throw new esm_M(We.injectionDecoratorConflict,`Unexpected duplicated postConstruct method ${C.toString()}`);return e.lifecycle.postConstructMethodNames.add(C),e}))}catch(h){_(e,m,void 0,h)}var C}}function ce(){return(e,m,h)=>{try{n(e.constructor,qe,g,(C=m,e=>{if(e.lifecycle.preDestroyMethodNames.has(C))throw new esm_M(We.injectionDecoratorConflict,`Unexpected duplicated preDestroy method ${C.toString()}`);return e.lifecycle.preDestroyMethodNames.add(C),e}))}catch(h){_(e,m,void 0,h)}var C}}function de(e,m){const h=ie(function(e,m){return h=>{if(h.tags.has(e))throw new esm_M(We.injectionDecoratorConflict,"Unexpected duplicated tag decorator with existing tag");return h.tags.set(e,m),h}}(e,m));return z(h,ne)}function ue(){return{kind:_t.unmanaged}}const Gt=$(ue,(function(e){if(D(e),function(e){return void 0!==e.name||e.optional||e.tags.size>0}(e))throw new esm_M(We.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");return ue()}));function pe(){return z(Gt(),k)}var zt;!function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection"}(zt||(zt={}));const Ht=/stack space|call stack|too much recursion/i,Wt=/too much recursion/;function ge(e){try{return e instanceof Error&&(e instanceof RangeError&&Ht.test(e.message)||"InternalError"===e.name&&Wt.test(e.message))}catch(e){return e instanceof SyntaxError&&e.message.includes("Stack overflow")}}function me(e,m){if(ge(m)){const h=function(e){const m=[...e];if(0===m.length)return"(No dependency trace)";return m.map(esm_t).join(" -> ")}(function(e){const m=new Set;for(const h of e.servicesBranch){if(m.has(h))return[...m,h];m.add(h)}return[...m]}(e));throw new esm_M(We.planning,`Circular dependency found: ${h}`,{cause:m})}throw m}const Kt=Symbol.for("@inversifyjs/core/LazyPlanServiceNode");class Me{[Kt];_serviceIdentifier;_serviceNode;constructor(e,m){this[Kt]=!0,this._serviceNode=e,this._serviceIdentifier=m}get bindings(){return this._getNode().bindings}get isContextFree(){return this._getNode().isContextFree}get serviceIdentifier(){return this._serviceIdentifier}set bindings(e){this._getNode().bindings=e}set isContextFree(e){this._getNode().isContextFree=e}static is(e){return"object"==typeof e&&null!==e&&!0===e[Kt]}invalidate(){this._serviceNode=void 0}isExpanded(){return void 0!==this._serviceNode}_getNode(){return void 0===this._serviceNode&&(this._serviceNode=this._buildPlanServiceNode()),this._serviceNode}}class Ie{#E;constructor(e){this.#E=e}get name(){return this.#E.elem.name}get serviceIdentifier(){return this.#E.elem.serviceIdentifier}get tags(){return this.#E.elem.tags}getAncestor(){if(this.#E.elem.getAncestorsCalled=!0,void 0!==this.#E.previous)return new Ie(this.#E.previous)}}function be(e,m,h){const C=h?.customServiceIdentifier??m.serviceIdentifier,q=(!0===h?.chained?[...e.operations.getBindingsChained(C)]:[...e.operations.getBindings(C)??[]]).filter((e=>e.isSatisfiedBy(m)));if(0===q.length&&void 0!==e.autobindOptions&&"function"==typeof C){const h=P(e.autobindOptions,C);e.operations.setBinding(h),h.isSatisfiedBy(m)&&q.push(h)}return q}class we{last;constructor(e){this.last=e}concat(e){return new we({elem:e,previous:this.last})}[Symbol.iterator](){let e=this.last;return{next:()=>{if(void 0===e)return{done:!0,value:void 0};const m=e.elem;return e=e.previous,{done:!1,value:m}}}}}function Ce(e){const m=new Map;return void 0!==e.rootConstraints.tag&&m.set(e.rootConstraints.tag.key,e.rootConstraints.tag.value),new we({elem:{getAncestorsCalled:!1,name:e.rootConstraints.name,serviceIdentifier:e.rootConstraints.serviceIdentifier,tags:m},previous:void 0})}function Se(e){return void 0!==e.redirections}function Ne(e,m,h,C){const q=h.elem.serviceIdentifier,V=h.previous?.elem.serviceIdentifier;Array.isArray(e)?function(e,m,h,C,q,V){if(0!==e.length){const m=V[V.length-1]??h,le=`Ambiguous bindings found for service: "${esm_t(m)}".${Re(V)}\n\nRegistered bindings:\n\n${e.map((e=>function(e){switch(e.type){case Le.Instance:return`[ type: "${e.type}", serviceIdentifier: "${esm_t(e.serviceIdentifier)}", scope: "${e.scope}", implementationType: "${e.implementationType.name}" ]`;case Le.ServiceRedirection:return`[ type: "${e.type}", serviceIdentifier: "${esm_t(e.serviceIdentifier)}", redirection: "${esm_t(e.targetServiceIdentifier)}" ]`;default:return`[ type: "${e.type}", serviceIdentifier: "${esm_t(e.serviceIdentifier)}", scope: "${e.scope}" ]`}}(e.binding))).join("\n")}\n\nTrying to resolve bindings for "${Ae(h,C)}".${xe(q)}`;throw new esm_M(We.planning,le)}m||Pe(h,C,q,V)}(e,m,q,V,h.elem,C):function(e,m,h,C,q,V){void 0!==e||m||Pe(h,C,q,V)}(e,m,q,V,h.elem,C)}function Pe(e,m,h,C){const q=C[C.length-1]??e,V=`No bindings found for service: "${esm_t(q)}".\n\nTrying to resolve bindings for "${Ae(e,m)}".${Re(C)}${xe(h)}`;throw new esm_M(We.planning,V)}function Ae(e,m){return void 0===m?`${esm_t(e)} (Root service)`:esm_t(m)}function xe(e){const m=0===e.tags.size?"":`\n- tags:\n - ${[...e.tags.keys()].map((e=>e.toString())).join("\n - ")}`;return`\n\nBinding constraints:\n- service identifier: ${esm_t(e.serviceIdentifier)}\n- name: ${e.name?.toString()??"-"}${m}`}function Re(e){return 0===e.length?"":`\n\n- service redirections:\n - ${e.map((e=>esm_t(e))).join("\n - ")}`}function Te(e,m,h,C){if(1===e.redirections.length){const[q]=e.redirections;return void(Se(q)&&Te(q,m,h,[...C,q.binding.targetServiceIdentifier]))}Ne(e.redirections,m,h,C)}function je(e,m,h){if(Array.isArray(e.bindings)&&1===e.bindings.length){const[C]=e.bindings;return void(Se(C)&&Te(C,m,h,[C.binding.targetServiceIdentifier]))}Ne(e.bindings,m,h,[])}function Be(e){return r.is(e)?e.unwrap():e}function Fe(e){return(m,h,C)=>{const q=Be(C.value),V=h.concat({getAncestorsCalled:!1,name:C.name,serviceIdentifier:q,tags:C.tags}),le=new Ie(V.last),fe=C.kind===_t.multipleInjection&&C.chained,he=be(m,le,{chained:fe}),ye=[],ve={bindings:ye,isContextFree:!0,serviceIdentifier:q};if(ye.push(...e(m,V,he,ve,fe)),ve.isContextFree=!V.last.elem.getAncestorsCalled,C.kind===_t.singleInjection){je(ve,C.optional,V.last);const[e]=ye;ve.bindings=e}return ve}}function ke(e){return(m,h,C)=>{const q=Be(C.value),V=h.concat({getAncestorsCalled:!1,name:C.name,serviceIdentifier:q,tags:C.tags}),le=new Ie(V.last),fe=C.kind===zt.multipleInjection&&C.chained,he=be(m,le,{chained:fe}),ye=[],ve={bindings:ye,isContextFree:!0,serviceIdentifier:q};if(ye.push(...e(m,V,he,ve,fe)),ve.isContextFree=!V.last.elem.getAncestorsCalled,C.kind===zt.singleInjection){je(ve,C.optional,V.last);const[e]=ye;ve.bindings=e}return ve}}function $e(e){const m=function(e){return(m,h,C)=>{const q={binding:h,classMetadata:m.operations.getClassMetadata(h.implementationType),constructorParams:[],propertyParams:new Map},V={autobindOptions:m.autobindOptions,node:q,operations:m.operations,servicesBranch:m.servicesBranch};return e(V,C)}}(e),h=function(e){return(m,h,C)=>{const q={binding:h,params:[]},V={autobindOptions:m.autobindOptions,node:q,operations:m.operations,servicesBranch:m.servicesBranch};return e(V,C)}}(e),i=(e,q,V,le,fe)=>{const he=Se(le)?le.binding.targetServiceIdentifier:le.serviceIdentifier;e.servicesBranch.push(he);const ye=[];for(const le of V)switch(le.type){case Le.Instance:ye.push(m(e,le,q));break;case Le.ResolvedValue:ye.push(h(e,le,q));break;case Le.ServiceRedirection:{const m=C(e,q,le,fe);ye.push(m);break}default:ye.push({binding:le})}return e.servicesBranch.pop(),ye},C=function(e){return(m,h,C,q)=>{const V={binding:C,redirections:[]},le=be(m,new Ie(h.last),{chained:q,customServiceIdentifier:C.targetServiceIdentifier});return V.redirections.push(...e(m,h,le,V,q)),V}}(i);return i}function De(e,m,h,C){if(void 0!==e&&(Me.is(h)&&!h.isExpanded()||h.isContextFree)){const C={tree:{root:h}};m.setPlan(e,C)}else m.setNonCachedServiceNode(h,C)}class Ve extends Me{#v;#C;#I;#b;constructor(e,m,h,C,q){super(q,Be(C.value)),this.#C=m,this.#v=e,this.#I=h,this.#b=C}_buildPlanServiceNode(){return this.#C(this.#v,this.#I,this.#b)}}class Oe extends Me{#v;#A;#I;#w;constructor(e,m,h,C,q){super(q,Be(C.value)),this.#v=e,this.#A=m,this.#I=h,this.#w=C}_buildPlanServiceNode(){return this.#A(this.#v,this.#I,this.#w)}}function Ee(e,m,h,C){const q=function(e,m){const h=function(e,m){return(h,C,q)=>{if(q.kind===_t.unmanaged)return;const V=function(e){let m;if(0===e.tags.size)m=void 0;else{if(1!==e.tags.size)return;{const[h,C]=e.tags.entries().next().value;m={key:h,value:C}}}const h=r.is(e.value)?e.value.unwrap():e.value;return e.kind===_t.multipleInjection?{chained:e.chained,isMultiple:!0,name:e.name,optional:e.optional,serviceIdentifier:h,tag:m}:{isMultiple:!1,name:e.name,optional:e.optional,serviceIdentifier:h,tag:m}}(q);if(void 0!==V){const e=h.operations.getPlan(V);if(void 0!==e&&e.tree.root.isContextFree)return e.tree.root}const le=m(h,C,q),fe=new Ve(h,e,C,q,le);return De(V,h.operations,fe,{bindingConstraintsList:C,chainedBindings:q.kind===_t.multipleInjection&&q.chained,optionalBindings:q.optional}),fe}}(e,m);return(e,m,C)=>{const q=m.classMetadata;for(const[V,le]of q.constructorArguments.entries())m.constructorParams[V]=h(e,C,le);for(const[V,le]of q.properties){const q=h(e,C,le);void 0!==q&&m.propertyParams.set(V,q)}return e.node}}(e,h),V=function(e,m){const h=function(e,m){return(h,C,q)=>{const V=function(e){let m;if(0===e.tags.size)m=void 0;else{if(1!==e.tags.size)return;{const[h,C]=e.tags.entries().next().value;m={key:h,value:C}}}const h=r.is(e.value)?e.value.unwrap():e.value;return e.kind===zt.multipleInjection?{chained:e.chained,isMultiple:!0,name:e.name,optional:e.optional,serviceIdentifier:h,tag:m}:{isMultiple:!1,name:e.name,optional:e.optional,serviceIdentifier:h,tag:m}}(q);if(void 0!==V){const e=h.operations.getPlan(V);if(void 0!==e&&e.tree.root.isContextFree)return e.tree.root}const le=m(h,C,q),fe=new Oe(h,e,C,q,le);return De(V,h.operations,fe,{bindingConstraintsList:C,chainedBindings:q.kind===zt.multipleInjection&&q.chained,optionalBindings:q.optional}),fe}}(e,m);return(e,m,C)=>{const q=m.binding.metadata;for(const[V,le]of q.arguments.entries())m.params[V]=h(e,C,le);return e.node}}(m,C);return(e,m)=>e.node.binding.type===Le.Instance?q(e,e.node,m):V(e,e.node,m)}class _e extends Me{#v;constructor(e,m){super(m,m.serviceIdentifier),this.#v=e}_buildPlanServiceNode(){return Xt(this.#v)}}const Yt=Fe(Ke),Qt=ke(Ke),Jt=$e(Ee(Yt,Qt,Yt,Qt));function Ke(e,m,h,C,q){return Jt(e,m,h,C,q)}const Xt=function(e){return m=>{const h=Ce(m),C=new Ie(h.last),q=m.rootConstraints.isMultiple&&m.rootConstraints.chained,V=be(m,C,{chained:q}),le=[],fe={bindings:le,isContextFree:!0,serviceIdentifier:m.rootConstraints.serviceIdentifier};if(le.push(...e(m,h,V,fe,q)),fe.isContextFree=!h.last.elem.getAncestorsCalled,!m.rootConstraints.isMultiple){je(fe,m.rootConstraints.isOptional??!1,h.last);const[e]=le;fe.bindings=e}return fe}}(Jt);function Ge(e){try{const m=function(e){return e.rootConstraints.isMultiple?{chained:e.rootConstraints.chained,isMultiple:!0,name:e.rootConstraints.name,optional:e.rootConstraints.isOptional??!1,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag}:{isMultiple:!1,name:e.rootConstraints.name,optional:e.rootConstraints.isOptional??!1,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag}}(e),h=e.operations.getPlan(m);if(void 0!==h)return h;const C=Xt(e),q={tree:{root:new _e(e,C)}};return e.operations.setPlan(m,q),q}catch(m){me(e,m)}}var Zt;!function(e){e.bindingAdded="bindingAdded",e.bindingRemoved="bindingRemoved"}(Zt||(Zt={}));class Xe{#R;#T;#P;constructor(){this.#R=[],this.#T=8,this.#P=1024}*[Symbol.iterator](){let e=0;for(const m of this.#R){const h=m.deref();void 0===h?++e:yield h}this.#R.length>=this.#T&&this.#x(e)&&this.#_(e)}push(e){const m=new WeakRef(e);if(this.#R.push(m),this.#R.length>=this.#T&&this.#R.length%this.#P===0){let e=0;for(const m of this.#R)void 0===m.deref()&&++e;this.#x(e)&&this.#_(e)}}#_(e){const m=new Array(this.#R.length-e);let h=0;for(const e of this.#R)e.deref()&&(m[h++]=e);this.#R=m}#x(e){return e>=.5*this.#R.length}}const en=$e(Ee(Yt,Qt,(function(e,m,h){return tn(e,m,h)}),(function(e,m,h){return nn(e,m,h)}))),tn=function(e){const m=Fe(e);return(e,h,C)=>{try{return m(e,h,C)}catch(e){if(esm_M.isErrorOfKind(e,We.planning))return;throw e}}}(en),nn=function(e){const m=ke(e);return(e,h,C)=>{try{return m(e,h,C)}catch(e){if(esm_M.isErrorOfKind(e,We.planning))return;throw e}}}(en);function Ye(e,m,h,C,q){if(Me.is(m)&&!m.isExpanded())return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1};const V=new Ie(C.last);return!h.isSatisfiedBy(V)||C.last.elem.getAncestorsCalled?{isContextFreeBinding:!C.last.elem.getAncestorsCalled,shouldInvalidateServiceNode:!1}:function(e,m,h,C,q){let V;try{[V]=en(e,C,[h],m,q)}catch(e){if(ge(e))return{isContextFreeBinding:!1,shouldInvalidateServiceNode:!0};throw e}return function(e,m){if(Array.isArray(e.bindings))e.bindings.push(m);else{if(void 0!==e.bindings){if(!Me.is(e))throw new esm_M(We.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!0}}e.bindings=m}return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}}(m,V)}(e,m,h,C,q)}function Ze(e,m,h,C){if(Me.is(e)&&!e.isExpanded())return{bindingNodeRemoved:void 0,isContextFreeBinding:!0};const q=new Ie(h.last);if(!m.isSatisfiedBy(q)||h.last.elem.getAncestorsCalled)return{bindingNodeRemoved:void 0,isContextFreeBinding:!h.last.elem.getAncestorsCalled};let V;if(Array.isArray(e.bindings))e.bindings=e.bindings.filter((e=>e.binding!==m||(V=e,!1)));else if(e.bindings?.binding===m)if(V=e.bindings,C)e.bindings=void 0;else{if(!Me.is(e))throw new esm_M(We.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");e.invalidate()}return{bindingNodeRemoved:V,isContextFreeBinding:!0}}class et{#O;#D;#M;#$;#N;#k;constructor(){this.#O=new Map,this.#D=this.#L(),this.#M=this.#L(),this.#$=this.#L(),this.#N=this.#L(),this.#k=new Xe}clearCache(){for(const e of this.#U())e.clear();for(const e of this.#k)e.clearCache()}get(e){return void 0===e.name?void 0===e.tag?this.#F(this.#D,e).get(e.serviceIdentifier):this.#F(this.#N,e).get(e.serviceIdentifier)?.get(e.tag.key)?.get(e.tag.value):void 0===e.tag?this.#F(this.#M,e).get(e.serviceIdentifier)?.get(e.name):this.#F(this.#$,e).get(e.serviceIdentifier)?.get(e.name)?.get(e.tag.key)?.get(e.tag.value)}invalidateServiceBinding(e){this.#q(e),this.#j(e),this.#B(e),this.#G(e),this.#z(e);for(const m of this.#k)m.invalidateServiceBinding(e)}set(e,m){void 0===e.name?void 0===e.tag?this.#F(this.#D,e).set(e.serviceIdentifier,m):this.#H(this.#H(this.#F(this.#N,e),e.serviceIdentifier),e.tag.key).set(e.tag.value,m):void 0===e.tag?this.#H(this.#F(this.#M,e),e.serviceIdentifier).set(e.name,m):this.#H(this.#H(this.#H(this.#F(this.#$,e),e.serviceIdentifier),e.name),e.tag.key).set(e.tag.value,m)}setNonCachedServiceNode(e,m){let h=this.#O.get(e.serviceIdentifier);void 0===h&&(h=new Map,this.#O.set(e.serviceIdentifier,h)),h.set(e,m)}subscribe(e){this.#k.push(e)}#L(){const e=new Array(8);for(let m=0;m<e.length;++m)e[m]=new Map;return e}#V(e,m,h,C){const q=!!(2&m);let V;if(q){V={chained:!!(0&m),isMultiple:q,serviceIdentifier:e.binding.serviceIdentifier}}else V={isMultiple:q,serviceIdentifier:e.binding.serviceIdentifier};return!!(1&m)&&(V.isOptional=!0),void 0!==h&&(V.name=h),void 0!==C&&(V.tag=C),{autobindOptions:void 0,operations:e.operations,rootConstraints:V,servicesBranch:[]}}#H(e,m){let h=e.get(m);return void 0===h&&(h=new Map,e.set(m,h)),h}#F(e,m){return e[this.#W(m)]}#U(){return[this.#O,...this.#D,...this.#M,...this.#$,...this.#N]}#W(e){return e.isMultiple?(e.chained?4:0)|(e.optional?1:0)|2:e.optional?1:0}#j(e){for(const[m,h]of this.#M.entries()){const C=h.get(e.binding.serviceIdentifier);if(void 0!==C)for(const[h,q]of C.entries())this.#K(e,q,m,h,void 0)}}#B(e){for(const[m,h]of this.#$.entries()){const C=h.get(e.binding.serviceIdentifier);if(void 0!==C)for(const[h,q]of C.entries())for(const[C,V]of q.entries())for(const[q,le]of V.entries())this.#K(e,le,m,h,{key:C,value:q})}}#Y(e){switch(e.binding.type){case Le.ServiceRedirection:for(const m of e.redirections)this.#Y(m);break;case Le.Instance:for(const m of e.constructorParams)void 0!==m&&this.#Q(m);for(const m of e.propertyParams.values())this.#Q(m);break;case Le.ResolvedValue:for(const m of e.params)this.#Q(m)}}#Q(e){const m=this.#O.get(e.serviceIdentifier);void 0!==m&&m.has(e)&&(m.delete(e),this.#J(e))}#J(e){if((!Me.is(e)||e.isExpanded())&&void 0!==e.bindings)if(Array.isArray(e.bindings))for(const m of e.bindings)this.#Y(m);else this.#Y(e.bindings)}#z(e){const m=this.#O.get(e.binding.serviceIdentifier);if(void 0!==m)switch(e.kind){case Zt.bindingAdded:for(const[h,C]of m){const m=Ye({autobindOptions:void 0,operations:e.operations,servicesBranch:[]},h,e.binding,C.bindingConstraintsList,C.chainedBindings);m.isContextFreeBinding?m.shouldInvalidateServiceNode&&Me.is(h)&&(this.#J(h),h.invalidate()):this.clearCache()}break;case Zt.bindingRemoved:for(const[h,C]of m){const m=Ze(h,e.binding,C.bindingConstraintsList,C.optionalBindings);m.isContextFreeBinding?void 0!==m.bindingNodeRemoved&&this.#Y(m.bindingNodeRemoved):this.clearCache()}}}#q(e){for(const[m,h]of this.#D.entries()){const C=h.get(e.binding.serviceIdentifier);this.#K(e,C,m,void 0,void 0)}}#G(e){for(const[m,h]of this.#N.entries()){const C=h.get(e.binding.serviceIdentifier);if(void 0!==C)for(const[h,q]of C.entries())for(const[C,V]of q.entries())this.#K(e,V,m,void 0,{key:h,value:C})}}#K(e,m,h,C,q){if(void 0!==m&&Me.is(m.tree.root)){const he=this.#V(e,h,C,q);switch(e.kind){case Zt.bindingAdded:{const h=(V=he,le=m.tree.root,fe=e.binding,Me.is(le)&&!le.isExpanded()?{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}:Ye(V,le,fe,Ce(V),V.rootConstraints.isMultiple&&V.rootConstraints.chained));h.isContextFreeBinding?h.shouldInvalidateServiceNode&&(this.#J(m.tree.root),m.tree.root.invalidate()):this.clearCache()}break;case Zt.bindingRemoved:{const h=function(e,m,h){return Me.is(m)&&!m.isExpanded()?{bindingNodeRemoved:void 0,isContextFreeBinding:!0}:Ze(m,h,Ce(e),e.rootConstraints.isOptional??!1)}(he,m.tree.root,e.binding);h.isContextFreeBinding?void 0!==h.bindingNodeRemoved&&this.#Y(h.bindingNodeRemoved):this.clearCache()}}}var V,le,fe}}function tt(e,m){if(ge(m)){const h=function(e){const m=[...e];if(0===m.length)return"(No dependency trace)";return m.map(esm_t).join(" -> ")}(function(e){const m=e.planResult.tree.root,h=[];function i(e){const m=h.indexOf(e);if(-1!==m){return[...h.slice(m),e].map((e=>e.serviceIdentifier))}h.push(e);try{for(const m of function(e){const m=[],h=e.bindings;if(void 0===h)return m;const i=e=>{if(Se(e))for(const m of e.redirections)i(m);else switch(e.binding.type){case Le.Instance:{const h=e;for(const e of h.constructorParams)void 0!==e&&m.push(e);for(const e of h.propertyParams.values())m.push(e);break}case Le.ResolvedValue:{const h=e;for(const e of h.params)m.push(e);break}}};if(Array.isArray(h))for(const e of h)i(e);else i(h);return m}(e)){const e=i(m);if(void 0!==e)return e}}finally{h.pop()}}return i(m)??[]}(e));throw new esm_M(We.planning,`Circular dependency found: ${h}`,{cause:m})}throw m}function nt(e,m){return esm_e(m)?(e.cache={isRight:!0,value:m},m.then((m=>it(e,m)))):it(e,m)}function it(e,m){return e.cache={isRight:!0,value:m},m}function ot(e,m,h){const C=e.getActivations(m);return void 0===C?h:esm_e(h)?rt(e,h,C[Symbol.iterator]()):function(e,m,h){let C=m,q=h.next();for(;!0!==q.done;){const m=q.value(e.context,C);if(esm_e(m))return rt(e,m,h);C=m,q=h.next()}return C}(e,h,C[Symbol.iterator]())}async function rt(e,m,h){let C=await m,q=h.next();for(;!0!==q.done;)C=await q.value(e.context,C),q=h.next();return C}function st(e,m,h){let C=h;if(void 0!==m.onActivation){const h=m.onActivation;C=esm_e(C)?C.then((m=>h(e.context,m))):h(e.context,C)}return ot(e,m.serviceIdentifier,C)}function at(e){return(m,h)=>{if(h.cache.isRight)return h.cache.value;return nt(h,st(m,h,e(m,h)))}}const rn=at((function(e,m){return m.value}));function dt(e){return e}function ut(e,m){return(h,C)=>{const q=e(C);switch(q.scope){case ve.Singleton:if(q.cache.isRight)return q.cache.value;return nt(q,st(h,q,m(h,C)));case ve.Request:{if(h.requestScopeCache.has(q.id))return h.requestScopeCache.get(q.id);const e=st(h,q,m(h,C));return h.requestScopeCache.set(q.id,e),e}case ve.Transient:return st(h,q,m(h,C))}}}const on=(e=>ut(dt,e))((function(e,m){return m.value(e.context)}));const sn=at((function(e,m){return m.factory(e.context)}));function ft(e,m,h){const C=function(e,m,h){if(!(h in e))throw new esm_M(We.resolution,`Expecting a "${h.toString()}" property when resolving "${m.implementationType.name}" class @postConstruct decorated method, none found.`);if("function"!=typeof e[h])throw new esm_M(We.resolution,`Expecting a "${h.toString()}" method when resolving "${m.implementationType.name}" class @postConstruct decorated method, a non function property was found instead.`);{let C;try{C=e[h]()}catch(e){throw new esm_M(We.resolution,`Unexpected error found when calling "${h.toString()}" @postConstruct decorated method on class "${m.implementationType.name}"`,{cause:e})}if(esm_e(C))return async function(e,m,h){try{await h}catch(h){throw new esm_M(We.resolution,`Unexpected error found when calling "${m.toString()}" @postConstruct decorated method on class "${e.implementationType.name}"`,{cause:h})}}(m,h,C)}}(e,m,h);return esm_e(C)?C.then((()=>e)):e}function vt(e,m,h){if(0===h.size)return e;let C=e;for(const e of h)C=esm_e(C)?C.then((h=>ft(h,m,e))):ft(C,m,e);return C}function ht(e){return(m,h,C)=>{const q=new C.binding.implementationType(...m),V=e(h,q,C);return esm_e(V)?V.then((()=>vt(q,C.binding,C.classMetadata.lifecycle.postConstructMethodNames))):vt(q,C.binding,C.classMetadata.lifecycle.postConstructMethodNames)}}const an=at((function(e,m){return m.provider(e.context)}));function mt(e){return e.binding}function yt(e){return e.binding}const cn=function(e){return(m,h,C)=>{const q=[];for(const[V,le]of C.propertyParams){const fe=C.classMetadata.properties.get(V);if(void 0===fe)throw new esm_M(We.resolution,`Expecting metadata at property "${V.toString()}", none found`);fe.kind!==_t.unmanaged&&void 0!==le.bindings&&(h[V]=e(m,le),esm_e(h[V])&&q.push((async()=>{h[V]=await h[V]})()))}if(q.length>0)return Promise.all(q).then((()=>{}))}}(At),ln=function(e){return function t(m,h){const C=[];for(const q of h.redirections)Se(q)?C.push(...t(m,q)):C.push(e(m,q));return C}}(Pt),un=function(e,m,h){return(C,q)=>{const V=e(C,q);return esm_e(V)?m(V,C,q):h(V,C,q)}}(function(e){return(m,h)=>{const C=[];for(const q of h.constructorParams)void 0===q?C.push(void 0):C.push(e(m,q));return C.some(esm_e)?Promise.all(C):C}}(At),function(e){return async(m,h,C)=>{const q=await m;return e(q,h,C)}}(ht(cn)),ht(cn)),dn=function(e){return(m,h)=>{const C=e(m,h);return esm_e(C)?C.then((e=>h.binding.factory(...e))):h.binding.factory(...C)}}(function(e){return(m,h)=>{const C=[];for(const q of h.params)C.push(e(m,q));return C.some(esm_e)?Promise.all(C):C}}(At)),pn=(e=>ut(mt,e))(un),mn=(e=>ut(yt,e))(dn);function Nt(e){try{return At(e,e.planResult.tree.root)}catch(m){tt(e,m)}}function Pt(e,m){switch(m.binding.type){case Le.ConstantValue:return rn(e,m.binding);case Le.DynamicValue:return on(e,m.binding);case Le.Factory:return sn(e,m.binding);case Le.Instance:return pn(e,m);case Le.Provider:return an(e,m.binding);case Le.ResolvedValue:return mn(e,m)}}function At(e,m){if(void 0!==m.bindings)return Array.isArray(m.bindings)?function(e,m){const h=[];for(const C of m)Se(C)?h.push(...ln(e,C)):h.push(Pt(e,C));if(h.some(esm_e))return Promise.all(h);return h}(e,m.bindings):function(e,m){if(Se(m)){const h=ln(e,m);if(1===h.length)return h[0];throw new esm_M(We.resolution,"Unexpected multiple resolved values on single injection")}return Pt(e,m)}(e,m.bindings)}function xt(e){return void 0!==e.scope}function Rt(e,m){if("function"==typeof e[m]){return e[m]()}}function Tt(e,m){const h=e.lifecycle.preDestroyMethodNames;if(0===h.size)return;let C;for(const e of h)C=void 0===C?Rt(m,e):C.then((()=>Rt(m,e)));return C}function jt(e,m,h){const C=e.getDeactivations(m);if(void 0!==C)return esm_e(h)?Bt(h,C[Symbol.iterator]()):function(e,m){let h=m.next();for(;!0!==h.done;){const C=h.value(e);if(esm_e(C))return Bt(e,m);h=m.next()}}(h,C[Symbol.iterator]())}async function Bt(e,m){const h=await e;let C=m.next();for(;!0!==C.done;)await C.value(h),C=m.next()}function Ft(e,m){const h=function(e,m){if(m.type===Le.Instance){const h=e.getClassMetadata(m.implementationType),C=m.cache.value;return esm_e(C)?C.then((e=>Tt(h,e))):Tt(h,C)}}(e,m);return void 0===h?kt(e,m):h.then((()=>kt(e,m)))}function kt(e,m){const h=m.cache;return esm_e(h.value)?h.value.then((h=>$t(e,m,h))):$t(e,m,h.value)}function $t(e,m,h){let C;if(void 0!==m.onDeactivation){C=(0,m.onDeactivation)(h)}return void 0===C?jt(e,m.serviceIdentifier,h):C.then((()=>jt(e,m.serviceIdentifier,h)))}function Dt(e,m){if(void 0===m)return;const h=function(e){const m=[];for(const h of e)xt(h)&&h.scope===ve.Singleton&&h.cache.isRight&&m.push(h);return m}(m),C=[];for(const m of h){const h=Ft(e,m);void 0!==h&&C.push(h)}return C.length>0?Promise.all(C).then((()=>{})):void 0}function Vt(e,m){const h=e.getBindingsFromModule(m);return Dt(e,h)}function Ot(e,m){const h=e.getBindings(m);return Dt(e,h)}const hn=Symbol.for("@inversifyjs/plugin/isPlugin");class plugin_lib_esm_n{[hn]=!0;_container;_context;constructor(e,m){this._container=e,this._context=m}}const gn="@inversifyjs/container/bindingId";class esm_w{#e;#n;constructor(m){this.#e=function(){const m=e(Object,gn)??0;return m===Number.MAX_SAFE_INTEGER?n(Object,gn,Number.MIN_SAFE_INTEGER):i(Object,gn,(()=>m),(e=>e+1)),m}(),this.#n=m}get id(){return this.#e}load(e){return this.#n(e)}}const yn=Symbol.for("@inversifyjs/container/bindingIdentifier");function esm_I(e){return"object"==typeof e&&null!==e&&!0===e[yn]}class esm_P{static always=e=>!0}const Sn=Symbol.for("@inversifyjs/container/InversifyContainerError");class esm_B extends Error{[Sn];kind;constructor(e,m,h){super(m,h),this[Sn]=!0,this.kind=e}static is(e){return"object"==typeof e&&null!==e&&!0===e[Sn]}static isErrorOfKind(e,m){return esm_B.is(e)&&e.kind===m}}var En;function esm_x(e){return{[yn]:!0,id:e.id}}function esm_k(e){return m=>{for(let h=m.getAncestor();void 0!==h;h=h.getAncestor())if(e(h))return!0;return!1}}function esm_N(e){return m=>m.name===e}function esm_U(e){return m=>m.serviceIdentifier===e}function esm_F(e,m){return h=>h.tags.has(e)&&h.tags.get(e)===m}function esm_D(e){return void 0===e.name&&0===e.tags.size}function esm_j(e){const m=esm_k(e);return e=>!m(e)}function esm_T(e){return m=>{const h=m.getAncestor();return void 0===h||!e(h)}}function esm_V(e){return m=>{const h=m.getAncestor();return void 0!==h&&e(h)}}!function(e){e[e.invalidOperation=0]="invalidOperation"}(En||(En={}));class esm_E{#r;constructor(e){this.#r=e}getIdentifier(){return esm_x(this.#r)}inRequestScope(){return this.#r.scope=ve.Request,new esm_G(this.#r)}inSingletonScope(){return this.#r.scope=ve.Singleton,new esm_G(this.#r)}inTransientScope(){return this.#r.scope=ve.Transient,new esm_G(this.#r)}}class esm_L{#t;#i;#a;#s;constructor(e,m,h,C){this.#t=e,this.#i=m,this.#a=h,this.#s=C}to(e){const m=N(e),h={cache:{isRight:!1,value:void 0},id:esm_c(),implementationType:e,isSatisfiedBy:esm_P.always,moduleId:this.#i,onActivation:void 0,onDeactivation:void 0,scope:m.scope??this.#a,serviceIdentifier:this.#s,type:Le.Instance};return this.#t(h),new esm_H(h)}toSelf(){if("function"!=typeof this.#s)throw new Error('"toSelf" function can only be applied when a newable function is used as service identifier');return this.to(this.#s)}toConstantValue(e){const m={cache:{isRight:!1,value:void 0},id:esm_c(),isSatisfiedBy:esm_P.always,moduleId:this.#i,onActivation:void 0,onDeactivation:void 0,scope:ve.Singleton,serviceIdentifier:this.#s,type:Le.ConstantValue,value:e};return this.#t(m),new esm_G(m)}toDynamicValue(e){const m={cache:{isRight:!1,value:void 0},id:esm_c(),isSatisfiedBy:esm_P.always,moduleId:this.#i,onActivation:void 0,onDeactivation:void 0,scope:this.#a,serviceIdentifier:this.#s,type:Le.DynamicValue,value:e};return this.#t(m),new esm_H(m)}toResolvedValue(e,m){const h={cache:{isRight:!1,value:void 0},factory:e,id:esm_c(),isSatisfiedBy:esm_P.always,metadata:this.#o(m),moduleId:this.#i,onActivation:void 0,onDeactivation:void 0,scope:this.#a,serviceIdentifier:this.#s,type:Le.ResolvedValue};return this.#t(h),new esm_H(h)}toFactory(e){const m={cache:{isRight:!1,value:void 0},factory:e,id:esm_c(),isSatisfiedBy:esm_P.always,moduleId:this.#i,onActivation:void 0,onDeactivation:void 0,scope:ve.Singleton,serviceIdentifier:this.#s,type:Le.Factory};return this.#t(m),new esm_G(m)}toProvider(e){const m={cache:{isRight:!1,value:void 0},id:esm_c(),isSatisfiedBy:esm_P.always,moduleId:this.#i,onActivation:void 0,onDeactivation:void 0,provider:e,scope:ve.Singleton,serviceIdentifier:this.#s,type:Le.Provider};return this.#t(m),new esm_G(m)}toService(e){const m={id:esm_c(),isSatisfiedBy:esm_P.always,moduleId:this.#i,serviceIdentifier:this.#s,targetServiceIdentifier:e,type:Le.ServiceRedirection};this.#t(m)}#o(e){return{arguments:(e??[]).map((e=>function(e){return"object"==typeof e&&!r.is(e)}(e)?function(e){return!0===e.isMultiple}(e)?{chained:e.chained??!1,kind:zt.multipleInjection,name:e.name,optional:e.optional??!1,tags:new Map((e.tags??[]).map((e=>[e.key,e.value]))),value:e.serviceIdentifier}:{kind:zt.singleInjection,name:e.name,optional:e.optional??!1,tags:new Map((e.tags??[]).map((e=>[e.key,e.value]))),value:e.serviceIdentifier}:{kind:zt.singleInjection,name:void 0,optional:!1,tags:new Map,value:e}))}}}class esm_${#r;constructor(e){this.#r=e}getIdentifier(){return esm_x(this.#r)}onActivation(e){return this.#r.onActivation=e,new esm_q(this.#r)}onDeactivation(e){if(this.#r.onDeactivation=e,this.#r.scope!==ve.Singleton)throw new esm_B(En.invalidOperation,`Binding for service "${esm_t(this.#r.serviceIdentifier)}" has a deactivation function, but its scope is not singleton. Deactivation functions can only be used with singleton bindings.`);return new esm_q(this.#r)}}class esm_q{#r;constructor(e){this.#r=e}getIdentifier(){return esm_x(this.#r)}when(e){return this.#r.isSatisfiedBy=e,new esm_$(this.#r)}whenAnyAncestor(e){return this.when(esm_k(e))}whenAnyAncestorIs(e){return this.when(esm_k(esm_U(e)))}whenAnyAncestorNamed(e){return this.when(function(e){return esm_k(esm_N(e))}(e))}whenAnyAncestorTagged(e,m){return this.when(function(e,m){return esm_k(esm_F(e,m))}(e,m))}whenDefault(){return this.when(esm_D)}whenNamed(e){return this.when(esm_N(e))}whenNoParent(e){return this.when(esm_T(e))}whenNoParentIs(e){return this.when(esm_T(esm_U(e)))}whenNoParentNamed(e){return this.when(function(e){return esm_T(esm_N(e))}(e))}whenNoParentTagged(e,m){return this.when(function(e,m){return esm_T(esm_F(e,m))}(e,m))}whenParent(e){return this.when(esm_V(e))}whenParentIs(e){return this.when(esm_V(esm_U(e)))}whenParentNamed(e){return this.when(function(e){return esm_V(esm_N(e))}(e))}whenParentTagged(e,m){return this.when(function(e,m){return esm_V(esm_F(e,m))}(e,m))}whenTagged(e,m){return this.when(esm_F(e,m))}whenNoAncestor(e){return this.when(esm_j(e))}whenNoAncestorIs(e){return this.when(esm_j(esm_U(e)))}whenNoAncestorNamed(e){return this.when(function(e){return esm_j(esm_N(e))}(e))}whenNoAncestorTagged(e,m){return this.when(function(e,m){return esm_j(esm_F(e,m))}(e,m))}}class esm_G extends esm_q{#c;constructor(e){super(e),this.#c=new esm_$(e)}onActivation(e){return this.#c.onActivation(e)}onDeactivation(e){return this.#c.onDeactivation(e)}}class esm_H extends esm_G{#l;constructor(e){super(e),this.#l=new esm_E(e)}inRequestScope(){return this.#l.inRequestScope()}inSingletonScope(){return this.#l.inSingletonScope()}inTransientScope(){return this.#l.inTransientScope()}}class esm_{#d;#a;#u;#h;constructor(e,m,h,C){this.#d=e,this.#a=m,this.#u=h,this.#h=C}bind(e){return new esm_L((e=>{this.#f(e)}),void 0,this.#a,e)}isBound(e,m){const h=this.#h.bindingService.get(e);return this.#g(e,h,m)}isCurrentBound(e,m){const h=this.#h.bindingService.getNonParentBindings(e);return this.#g(e,h,m)}async rebind(e){return await this.unbind(e),this.bind(e)}rebindSync(e){return this.unbindSync(e),this.bind(e)}async unbind(e){await this.#C(e)}async unbindAll(){await this.#m()}unbindAllSync(){if(void 0!==this.#m())throw new esm_B(En.invalidOperation,"Unexpected asynchronous deactivation when unbinding all services. Consider using Container.unbindAll() instead.")}unbindSync(e){void 0!==this.#C(e)&&this.#p(e)}#f(e){this.#h.bindingService.set(e),this.#u.invalidateService({binding:e,kind:Zt.bindingAdded})}#p(e){let m;if(esm_I(e)){const C=this.#h.bindingService.getById(e.id),q=(h=C,function(e){if(void 0===e)return;const m=e.next();return!0!==m.done?m.value:void 0}(h?.[Symbol.iterator]()))?.serviceIdentifier;m=void 0===q?"Unexpected asynchronous deactivation when unbinding binding identifier. Consider using Container.unbind() instead.":`Unexpected asynchronous deactivation when unbinding "${esm_t(q)}" binding. Consider using Container.unbind() instead.`}else m=`Unexpected asynchronous deactivation when unbinding "${esm_t(e)}" service. Consider using Container.unbind() instead.`;var h;throw new esm_B(En.invalidOperation,m)}#C(e){return esm_I(e)?this.#A(e):this.#E(e)}#A(e){const m=this.#h.bindingService.getById(e.id),h=void 0===m?void 0:[...m],C=Dt(this.#d,m);if(void 0!==C)return C.then((()=>{this.#x(h,e)}));this.#x(h,e)}#x(e,m){if(this.#h.bindingService.removeById(m.id),void 0!==e)for(const m of e)this.#u.invalidateService({binding:m,kind:Zt.bindingRemoved})}#m(){const e=[...this.#h.bindingService.getNonParentBoundServices()],m=e.map((e=>Ot(this.#d,e)));if(m.some((e=>esm_e(e))))return Promise.all(m).then((()=>{this.#S(e)}));this.#S(e)}#S(e){for(const m of e)this.#h.activationService.removeAllByServiceId(m),this.#h.bindingService.removeAllByServiceId(m),this.#h.deactivationService.removeAllByServiceId(m);this.#h.planResultCacheService.clearCache()}#E(e){const m=this.#h.bindingService.get(e),h=void 0===m?void 0:[...m],C=Dt(this.#d,m);if(void 0!==C)return C.then((()=>{this.#y(e,h)}));this.#y(e,h)}#y(e,m){if(this.#h.activationService.removeAllByServiceId(e),this.#h.bindingService.removeAllByServiceId(e),this.#h.deactivationService.removeAllByServiceId(e),void 0!==m)for(const e of m)this.#u.invalidateService({binding:e,kind:Zt.bindingRemoved})}#g(e,m,h){if(void 0===m)return!1;const C={getAncestor:()=>{},name:h?.name,serviceIdentifier:e,tags:new Map};void 0!==h?.tag&&C.tags.set(h.tag.key,h.tag.value);for(const e of m)if(e.isSatisfiedBy(C))return!0;return!1}}class esm_z{#I;#d;#a;#u;#h;constructor(e,m,h,C,q){this.#I=e,this.#d=m,this.#a=h,this.#u=C,this.#h=q}async load(...e){await Promise.all(this.#n(...e))}loadSync(...e){const m=this.#n(...e);for(const e of m)if(void 0!==e)throw new esm_B(En.invalidOperation,"Unexpected asynchronous module load. Consider using Container.load() instead.")}async unload(...e){await Promise.all(this.#T(...e)),this.#v(e)}unloadSync(...e){const m=this.#T(...e);for(const e of m)if(void 0!==e)throw new esm_B(En.invalidOperation,"Unexpected asynchronous module unload. Consider using Container.unload() instead.");this.#v(e)}#R(e){return{bind:m=>new esm_L((e=>{this.#f(e)}),e,this.#a,m),isBound:this.#I.isBound.bind(this.#I),onActivation:(m,h)=>{this.#h.activationService.add(h,{moduleId:e,serviceId:m})},onDeactivation:(m,h)=>{this.#h.deactivationService.add(h,{moduleId:e,serviceId:m})},rebind:this.#I.rebind.bind(this.#I),rebindSync:this.#I.rebindSync.bind(this.#I),unbind:this.#I.unbind.bind(this.#I),unbindSync:this.#I.unbindSync.bind(this.#I)}}#v(e){for(const m of e)this.#h.activationService.removeAllByModuleId(m.id),this.#h.bindingService.removeAllByModuleId(m.id),this.#h.deactivationService.removeAllByModuleId(m.id);this.#h.planResultCacheService.clearCache()}#n(...e){return e.map((e=>e.load(this.#R(e.id))))}#f(e){this.#h.bindingService.set(e),this.#u.invalidateService({binding:e,kind:Zt.bindingAdded})}#T(...e){return e.map((e=>Vt(this.#d,e.id)))}}class esm_K{deactivationParams;constructor(e){this.deactivationParams=function(e){return{getBindings:e.bindingService.get.bind(e.bindingService),getBindingsFromModule:e.bindingService.getByModuleId.bind(e.bindingService),getClassMetadata:N,getDeactivations:e.deactivationService.get.bind(e.deactivationService)}}(e),e.onReset((()=>{!function(e,m){m.getBindings=e.bindingService.get.bind(e.bindingService),m.getBindingsFromModule=e.bindingService.getByModuleId.bind(e.bindingService),m.getDeactivations=e.deactivationService.get.bind(e.deactivationService)}(e,this.deactivationParams)}))}}class esm_X{planParamsOperations;#h;constructor(e){this.#h=e,this.planParamsOperations={getBindings:this.#h.bindingService.get.bind(this.#h.bindingService),getBindingsChained:this.#h.bindingService.getChained.bind(this.#h.bindingService),getClassMetadata:N,getPlan:this.#h.planResultCacheService.get.bind(this.#h.planResultCacheService),setBinding:this.#f.bind(this),setNonCachedServiceNode:this.#h.planResultCacheService.setNonCachedServiceNode.bind(this.#h.planResultCacheService),setPlan:this.#h.planResultCacheService.set.bind(this.#h.planResultCacheService)},this.#h.onReset((()=>{this.#b()}))}#b(){this.planParamsOperations.getBindings=this.#h.bindingService.get.bind(this.#h.bindingService),this.planParamsOperations.getBindingsChained=this.#h.bindingService.getChained.bind(this.#h.bindingService),this.planParamsOperations.setBinding=this.#f.bind(this)}#f(e){this.#h.bindingService.set(e),this.#h.planResultCacheService.invalidateServiceBinding({binding:e,kind:Zt.bindingAdded,operations:this.planParamsOperations})}}class esm_J{#D;#h;constructor(e,m){this.#D=e,this.#h=m}invalidateService(e){this.#h.planResultCacheService.invalidateServiceBinding({...e,operations:this.#D.planParamsOperations})}}class esm_Q{#U;#P;#$;#h;constructor(e,m,h){this.#h=m,this.#$=h,this.#U=this.#w(e),this.#P=this.#G()}register(e,m){const h=new m(e,this.#P);if(!0!==h[hn])throw new esm_B(En.invalidOperation,"Invalid plugin. The plugin must extend the Plugin class");h.load(this.#U)}#w(e){return{define:(m,h)=>{if(Object.prototype.hasOwnProperty.call(e,m))throw new esm_B(En.invalidOperation,`Container already has a method named "${String(m)}"`);e[m]=h},onPlan:this.#$.onPlan.bind(this.#$)}}#G(){const e=this.#h;return{get activationService(){return e.activationService},get bindingService(){return e.bindingService},get deactivationService(){return e.deactivationService},get planResultCacheService(){return e.planResultCacheService}}}}class esm_W{activationService;bindingService;deactivationService;planResultCacheService;#M;constructor(e,m,h,C){this.activationService=e,this.bindingService=m,this.deactivationService=h,this.planResultCacheService=C,this.#M=[]}reset(e,m,h){this.activationService=e,this.bindingService=m,this.deactivationService=h,this.planResultCacheService.clearCache();for(const e of this.#M)e()}onReset(e){this.#M.push(e)}}class esm_Y{#k;#a;#O;#_;#L;#D;#h;constructor(e,m,h,C){this.#D=e,this.#h=m,this.#_=this.#F(),this.#k=h,this.#a=C,this.#O=e=>this.#h.activationService.get(e),this.#L=[],this.#h.onReset((()=>{this.#b()}))}get(e,m){const h=this.#B(!1,e,m),C=this.#N(h);if(esm_e(C))throw new esm_B(En.invalidOperation,`Unexpected asynchronous service when resolving service "${esm_t(e)}"`);return C}getAll(e,m){const h=this.#B(!0,e,m),C=this.#N(h);if(esm_e(C))throw new esm_B(En.invalidOperation,`Unexpected asynchronous service when resolving service "${esm_t(e)}"`);return C}async getAllAsync(e,m){const h=this.#B(!0,e,m);return this.#N(h)}async getAsync(e,m){const h=this.#B(!1,e,m);return this.#N(h)}onPlan(e){this.#L.push(e)}#b(){this.#_=this.#F()}#H(e,m,h){const C=h?.name,q=h?.optional??!1,V=h?.tag;return e?{chained:h?.chained??!1,isMultiple:e,name:C,optional:q,serviceIdentifier:m,tag:V}:{isMultiple:e,name:C,optional:q,serviceIdentifier:m,tag:V}}#V(e,m,h){const C={autobindOptions:h?.autobind??this.#k?{scope:this.#a}:void 0,operations:this.#D.planParamsOperations,rootConstraints:this.#Y(e,m,h),servicesBranch:[]};return this.#q(C,h),C}#Y(e,m,h){return m?{chained:h?.chained??!1,isMultiple:m,serviceIdentifier:e}:{isMultiple:m,serviceIdentifier:e}}#B(e,m,h){const C=this.#H(e,m,h),q=this.#h.planResultCacheService.get(C);if(void 0!==q)return q;const V=Ge(this.#V(m,e,h));for(const e of this.#L)e(C,V);return V}#F(){return{get:this.get.bind(this),getAll:this.getAll.bind(this),getAllAsync:this.getAllAsync.bind(this),getAsync:this.getAsync.bind(this)}}#N(e){return Nt({context:this.#_,getActivations:this.#O,planResult:e,requestScopeCache:new Map})}#q(e,m){void 0!==m&&(void 0!==m.name&&(e.rootConstraints.name=m.name),!0===m.optional&&(e.rootConstraints.isOptional=!0),void 0!==m.tag&&(e.rootConstraints.tag={key:m.tag.key,value:m.tag.value}),e.rootConstraints.isMultiple&&(e.rootConstraints.chained=m?.chained??!1))}}class esm_Z{#h;#j;constructor(e){this.#h=e,this.#j=[]}restore(){const e=this.#j.pop();if(void 0===e)throw new esm_B(En.invalidOperation,"No snapshot available to restore");this.#h.reset(e.activationService,e.bindingService,e.deactivationService)}snapshot(){this.#j.push({activationService:this.#h.activationService.clone(),bindingService:this.#h.bindingService.clone(),deactivationService:this.#h.deactivationService.clone()})}}const vn=ve.Transient;class esm_ne{#I;#z;#K;#h;#$;#Q;constructor(e){const m=e?.autobind??!1,h=e?.defaultScope??vn;this.#h=this.#J(e,m,h);const C=new esm_X(this.#h),q=new esm_J(C,this.#h),V=new esm_K(this.#h);this.#I=new esm_(V.deactivationParams,h,q,this.#h),this.#z=new esm_z(this.#I,V.deactivationParams,h,q,this.#h),this.#$=new esm_Y(C,this.#h,m,h),this.#K=new esm_Q(this,this.#h,this.#$),this.#Q=new esm_Z(this.#h)}bind(e){return this.#I.bind(e)}get(e,m){return this.#$.get(e,m)}getAll(e,m){return this.#$.getAll(e,m)}async getAllAsync(e,m){return this.#$.getAllAsync(e,m)}async getAsync(e,m){return this.#$.getAsync(e,m)}isBound(e,m){return this.#I.isBound(e,m)}isCurrentBound(e,m){return this.#I.isCurrentBound(e,m)}async load(...e){return this.#z.load(...e)}loadSync(...e){this.#z.loadSync(...e)}onActivation(e,m){this.#h.activationService.add(m,{serviceId:e})}onDeactivation(e,m){this.#h.deactivationService.add(m,{serviceId:e})}register(e){this.#K.register(this,e)}restore(){this.#Q.restore()}async rebind(e){return this.#I.rebind(e)}rebindSync(e){return this.#I.rebindSync(e)}snapshot(){this.#Q.snapshot()}async unbind(e){await this.#I.unbind(e)}async unbindAll(){await this.#I.unbindAll()}unbindAllSync(){this.#I.unbindAllSync()}unbindSync(e){this.#I.unbindSync(e)}async unload(...e){return this.#z.unload(...e)}unloadSync(...e){this.#z.unloadSync(...e)}#W(e,m){if(e)return{scope:m}}#J(e,m,h){const C=this.#W(m,h);if(void 0===e?.parent)return new esm_W(v.build((()=>{})),T.build((()=>{}),C),j.build((()=>{})),new et);const q=new et,V=e.parent;return V.#h.planResultCacheService.subscribe(q),new esm_W(v.build((()=>V.#h.activationService)),T.build((()=>V.#h.bindingService),C),j.build((()=>V.#h.deactivationService)),q)}}var Cn=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};let In=class ConsoleLogger{info(e){console.log(e)}warn(e){console.warn(e)}error(e){console.error(e)}};In=Cn([W()],In);var bn=__nccwpck_require__(1455);var An=__nccwpck_require__(8358);class DomainError extends Error{constructor(e){super(e);this.name=this.constructor.name;Error.captureStackTrace(this,this.constructor)}}class InvalidArgumentError extends DomainError{}class DependencyMissingError extends DomainError{}class SecretOperationError extends DomainError{}class EnvironmentFileError extends DomainError{}class ParameterNotFoundError extends DomainError{constructor(e){super(`Parameter not found: ${e}`);this.paramName=e}}const wn={ILogger:Symbol.for("ILogger"),ISecretProvider:Symbol.for("ISecretProvider"),IVariableStore:Symbol.for("IVariableStore")};const Rn={PullSecretsToEnvCommandHandler:Symbol.for("PullSecretsToEnvCommandHandler"),PushEnvToSecretsCommandHandler:Symbol.for("PushEnvToSecretsCommandHandler"),PushSingleCommandHandler:Symbol.for("PushSingleCommandHandler"),DispatchActionCommandHandler:Symbol.for("DispatchActionCommandHandler")};const Tn={};const Pn=Object.assign(Object.assign(Object.assign({},wn),Rn),Tn);var xn=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};var _n=undefined&&undefined.__metadata||function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};var On=undefined&&undefined.__param||function(e,m){return function(h,C){m(h,C,e)}};var Dn=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};var Mn=undefined&&undefined.__rest||function(e,m){var h={};for(var C in e)if(Object.prototype.hasOwnProperty.call(e,C)&&m.indexOf(C)<0)h[C]=e[C];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var q=0,C=Object.getOwnPropertySymbols(e);q<C.length;q++){if(m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(e,C[q]))h[C[q]]=e[C[q]]}return h};let $n=class FileVariableStore{constructor(e){if(!e){throw new DependencyMissingError("Logger must be specified")}this.logger=e}getMapping(e){return Dn(this,void 0,void 0,(function*(){const{mappings:m}=yield this.getParsedMapping(e);return m}))}getParsedMapping(e){return Dn(this,void 0,void 0,(function*(){const m=yield this.readJsonFile(e);const{$config:h}=m,C=Mn(m,["$config"]);const q=h&&typeof h==="object"?h:{};return{config:q,mappings:C}}))}readJsonFile(e){return Dn(this,void 0,void 0,(function*(){try{const m=yield bn.readFile(e,"utf-8");try{return JSON.parse(m)}catch(m){this.logger.error(`Error parsing JSON from ${e}`);throw new EnvironmentFileError(`Invalid JSON in parameter map file: ${e}`)}}catch(m){if(m instanceof EnvironmentFileError){throw m}throw new EnvironmentFileError(`Failed to read map file: ${e}`)}}))}getEnvironment(e){return Dn(this,void 0,void 0,(function*(){const m={};try{yield bn.access(e)}catch(e){return m}const h=yield bn.readFile(e,"utf-8");const C=An.parse(h)||{};Object.assign(m,C);return m}))}saveEnvironment(e,m){return Dn(this,void 0,void 0,(function*(){const h=Object.entries(m).map((([e,m])=>`${e}=${this.escapeEnvValue(m)}`)).join("\n");try{yield bn.writeFile(e,h)}catch(e){const m=e instanceof Error?e.message:String(e);this.logger.error(`Failed to write environment file: ${m}`);throw new EnvironmentFileError(`Failed to write environment file: ${m}`)}}))}escapeEnvValue(e){return e.replace(/(\r\n|\n|\r)/g,"\\n")}};$n=xn([W(),On(0,U(Pn.ILogger)),_n("design:paramtypes",[Object])],$n);function readMapFileConfig(e){return Dn(this,void 0,void 0,(function*(){try{const m=yield bn.readFile(e,"utf-8");try{const e=JSON.parse(m);const h=e.$config;return h&&typeof h==="object"?h:{}}catch(m){throw new EnvironmentFileError(`Invalid JSON in parameter map file: ${e}`)}}catch(m){if(m instanceof EnvironmentFileError){throw m}throw new EnvironmentFileError(`Failed to read map file: ${e}`)}}))}class PullSecretsToEnvCommand{constructor(e,m){this.mapPath=e;this.envFilePath=m}static create(e,m){return new PullSecretsToEnvCommand(e,m)}}class PushEnvToSecretsCommand{constructor(e,m){this.mapPath=e;this.envFilePath=m}static create(e,m){return new PushEnvToSecretsCommand(e,m)}}class PushSingleCommand{constructor(e,m,h){this.key=e;this.value=m;this.secretPath=h}static create(e,m,h){return new PushSingleCommand(e,m,h)}}var Nn=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};var kn=undefined&&undefined.__metadata||function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};var Ln=undefined&&undefined.__param||function(e,m){return function(h,C){m(h,C,e)}};var Un=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};let Fn=class DispatchActionCommandHandler{constructor(e,m,h){this.pullHandler=e;this.pushHandler=m;this.pushSingleHandler=h}handleCommand(e){return Un(this,void 0,void 0,(function*(){switch(e.mode){case le.PUSH_SINGLE:yield this.handlePushSingle(e);break;case le.PUSH_ENV_TO_SECRETS:yield this.handlePush(e);break;case le.PULL_SECRETS_TO_ENV:yield this.handlePull(e);break;default:yield this.handlePull(e);break}}))}handlePushSingle(e){return Un(this,void 0,void 0,(function*(){if(!e.key||!e.value||!e.secretPath){throw new InvalidArgumentError("Missing required arguments: --key, --value, and --secret-path")}const m=PushSingleCommand.create(e.key,e.value,e.secretPath);yield this.pushSingleHandler.handle(m)}))}handlePush(e){return Un(this,void 0,void 0,(function*(){this.validateMapAndEnvFileOptions(e);const m=PushEnvToSecretsCommand.create(e.map,e.envfile);yield this.pushHandler.handle(m)}))}handlePull(e){return Un(this,void 0,void 0,(function*(){this.validateMapAndEnvFileOptions(e);const m=PullSecretsToEnvCommand.create(e.map,e.envfile);yield this.pullHandler.handle(m)}))}validateMapAndEnvFileOptions(e){if(!e.map||!e.envfile){throw new InvalidArgumentError("Missing required arguments: --map and --envfile")}}};Fn=Nn([W(),Ln(0,U(Pn.PullSecretsToEnvCommandHandler)),Ln(1,U(Pn.PushEnvToSecretsCommandHandler)),Ln(2,U(Pn.PushSingleCommandHandler)),kn("design:paramtypes",[Function,Function,Function])],Fn);class EnvironmentVariable{constructor(e,m,h=false){this.validate(e,m);this._name=e;this._value=m;this._isSecret=h}get name(){return this._name}get value(){return this._value}get isSecret(){return this._isSecret}get maskedValue(){if(!this._isSecret){return this._value}return EnvironmentVariable.mask(this._value,10)}static maskSecretPath(e){return EnvironmentVariable.mask(e,3)}static mask(e,m){return e.length>m?"*".repeat(e.length-3)+e.slice(-3):"*".repeat(e.length)}validate(e,m){if(!e||e.trim()===""){throw new Error("Environment variable name cannot be empty")}if(m===undefined||m===null){throw new Error(`Value for environment variable ${e} cannot be null or undefined`)}}}var qn=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};var jn=undefined&&undefined.__metadata||function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};var Bn=undefined&&undefined.__param||function(e,m){return function(h,C){m(h,C,e)}};var Gn=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};var zn;let Hn=zn=class PullSecretsToEnvCommandHandler{constructor(e,m,h){this.secretProvider=e;this.variableStore=m;this.logger=h}handle(e){return Gn(this,void 0,void 0,(function*(){try{const{requestVariables:m,currentVariables:h}=yield this.loadVariables(e);const C=yield this.envild(m,h);yield this.saveEnvFile(e.envFilePath,C);this.logger.info(`${zn.SUCCESS_MESSAGES.ENV_GENERATED}'${e.envFilePath}'`)}catch(e){const m=e instanceof Error?e.message:String(e);this.logger.error(`${zn.ERROR_MESSAGES.FETCH_FAILED}${m}`);throw e}}))}loadVariables(e){return Gn(this,void 0,void 0,(function*(){const m=yield this.variableStore.getMapping(e.mapPath);const h=yield this.variableStore.getEnvironment(e.envFilePath);return{requestVariables:m,currentVariables:h}}))}saveEnvFile(e,m){return Gn(this,void 0,void 0,(function*(){yield this.variableStore.saveEnvironment(e,m)}))}envild(e,m){return Gn(this,void 0,void 0,(function*(){const h=Object.entries(e).map((e=>Gn(this,[e],void 0,(function*([e,h]){return this.processSecret(e,h,m)}))));const C=yield Promise.all(h);const q=C.filter((e=>e!==null));if(q.length>0){throw new Error(`${zn.ERROR_MESSAGES.PARAM_NOT_FOUND}${q.join("\n")}`)}return m}))}processSecret(e,m,h){return Gn(this,void 0,void 0,(function*(){try{const C=yield this.secretProvider.getSecret(m);if(!C){this.logger.warn(`${zn.ERROR_MESSAGES.NO_VALUE_FOUND}'${m}'`);return null}h[e]=C;const q=new EnvironmentVariable(e,C,true);this.logger.info(`${q.name}=${q.maskedValue}`);return null}catch(e){this.logger.error(`${zn.ERROR_MESSAGES.ERROR_FETCHING}'${m}'`);return`ParameterNotFound: ${m}`}}))}};Hn.ERROR_MESSAGES={FETCH_FAILED:"Failed to generate environment file: ",PARAM_NOT_FOUND:"Some secrets could not be fetched:\n",NO_VALUE_FOUND:"Warning: No value found for: ",ERROR_FETCHING:"Error fetching secret: "};Hn.SUCCESS_MESSAGES={ENV_GENERATED:"Environment File generated at "};Hn=zn=qn([W(),Bn(0,U(Pn.ISecretProvider)),Bn(1,U(Pn.IVariableStore)),Bn(2,U(Pn.ILogger)),jn("design:paramtypes",[Object,Object,Object])],Hn);var Vn=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};var Wn=undefined&&undefined.__metadata||function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};var Kn=undefined&&undefined.__param||function(e,m){return function(h,C){m(h,C,e)}};var Yn=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};let Qn=class PushEnvToSecretsCommandHandler{constructor(e,m,h){this.secretProvider=e;this.variableStore=m;this.logger=h}handle(e){return Yn(this,void 0,void 0,(function*(){try{this.logger.info(`Starting push operation from '${e.envFilePath}' using map '${e.mapPath}'`);const m=yield this.loadConfiguration(e);const h=this.validateAndGroupByPath(m);yield this.pushParametersToStore(h);this.logger.info(`Successfully pushed environment variables from '${e.envFilePath}' to secret store.`)}catch(e){const m=this.getErrorMessage(e);this.logger.error(`Failed to push environment file: ${m}`);throw e}}))}loadConfiguration(e){return Yn(this,void 0,void 0,(function*(){this.logger.info(`Loading parameter map from '${e.mapPath}'`);const m=yield this.variableStore.getMapping(e.mapPath);this.logger.info(`Loading environment variables from '${e.envFilePath}'`);const h=yield this.variableStore.getEnvironment(e.envFilePath);this.logger.info(`Found ${Object.keys(m).length} parameter mappings in map file`);this.logger.info(`Found ${Object.keys(h).length} environment variables in env file`);return{paramMap:m,envVariables:h}}))}validateAndGroupByPath(e){const{paramMap:m,envVariables:h}=e;const C=new Map;for(const[e,q]of Object.entries(m)){const m=h[e];if(m===undefined){this.logger.warn(`Warning: Environment variable ${e} not found in environment file`);continue}const V=C.get(q);if(V){if(V.value!==m){const h=new EnvironmentVariable(V.sourceKeys[0],V.value,true).maskedValue;const C=new EnvironmentVariable(e,m,true).maskedValue;throw new Error(`Conflicting values for secret path '${q}': `+`'${V.sourceKeys[0]}' has value '${h}' `+`but '${e}' has value '${C}'`)}V.sourceKeys.push(e)}else{C.set(q,{value:m,sourceKeys:[e]})}}const q=C.size;const V=Object.keys(m).length;this.logger.info(`Validated ${V} environment variables mapping to ${q} unique secrets`);return C}pushParametersToStore(e){return Yn(this,void 0,void 0,(function*(){const m=Array.from(e.keys());this.logger.info(`Processing ${m.length} unique secrets`);const h=Array.from(e.entries()).map((([e,{value:m,sourceKeys:h}])=>this.retryWithBackoff((()=>this.pushParameter(e,m,h)))));yield Promise.all(h)}))}pushParameter(e,m,h){return Yn(this,void 0,void 0,(function*(){const C=new EnvironmentVariable(h[0],m,true);yield this.secretProvider.setSecret(e,m);const q=h.length>1?`${h.join(", ")}`:h[0];this.logger.info(`Pushed ${q}=${C.maskedValue} to secret store at path ${e}`)}))}retryWithBackoff(e){return Yn(this,arguments,void 0,(function*(e,m=5,h=100){let C;for(let q=0;q<=m;q++){try{return yield e()}catch(e){C=e;const V=typeof e==="object"&&e!==null&&("name"in e&&(e.name==="TooManyUpdates"||e.name==="ThrottlingException"||e.name==="TooManyRequestsException")||"statusCode"in e&&e.statusCode===429);if(!V||q===m){throw e}const le=h*2**q;const fe=Math.random()*le*.5;const he=le+fe;yield new Promise((e=>setTimeout(e,he)))}}throw C}))}getErrorMessage(e){if(e instanceof Error){return e.message}if(typeof e==="string"){return e}if(e===null){return"Unknown error (null)"}if(e===undefined){return"Unknown error (undefined)"}if(typeof e==="object"){const m=e;if(m.name){return m.message?`${m.name}: ${m.message}`:m.name}const h=[];if(m.code)h.push(`code: ${m.code}`);if(m.message)h.push(`message: ${m.message}`);if(h.length>0){return`Object error (${h.join(", ")})`}return`Object error: ${Object.keys(e).join(", ")}`}return`Unknown error: ${String(e)}`}};Qn=Vn([W(),Kn(0,U(Pn.ISecretProvider)),Kn(1,U(Pn.IVariableStore)),Kn(2,U(Pn.ILogger)),Wn("design:paramtypes",[Object,Object,Object])],Qn);var Jn=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};var Xn=undefined&&undefined.__metadata||function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};var Zn=undefined&&undefined.__param||function(e,m){return function(h,C){m(h,C,e)}};var er=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};let tr=class PushSingleCommandHandler{constructor(e,m){this.secretProvider=e;this.logger=m}handle(e){return er(this,void 0,void 0,(function*(){try{this.logger.info(`Starting push operation for key '${e.key}' to path '${EnvironmentVariable.maskSecretPath(e.secretPath)}'`);const m=new EnvironmentVariable(e.key,e.value,true);yield this.secretProvider.setSecret(e.secretPath,e.value);this.logger.info(`Pushed ${e.key}=${m.maskedValue} to secret store at path ${EnvironmentVariable.maskSecretPath(e.secretPath)}`)}catch(e){const m=e instanceof Error?e.message:String(e);this.logger.error(`Failed to push variable to secret store: ${m}`);throw e}}))}};tr=Jn([W(),Zn(0,U(Pn.ISecretProvider)),Zn(1,U(Pn.ILogger)),Xn("design:paramtypes",[Object,Object])],tr);var nr=__nccwpck_require__(4386);var rr=__nccwpck_require__(162);var or=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};var ir=undefined&&undefined.__metadata||function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};var sr=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};let ar=class AwsSsmSecretProvider{constructor(e){this.ssm=e}getSecret(e){return sr(this,void 0,void 0,(function*(){try{const m=new nr.GetParameterCommand({Name:e,WithDecryption:true});const{Parameter:h}=yield this.ssm.send(m);return h===null||h===void 0?void 0:h.Value}catch(m){if(typeof m==="object"&&m!==null&&"name"in m&&m.name==="ParameterNotFound"){return undefined}const h=m instanceof Error?m.message:String(m);throw new SecretOperationError(`Failed to get secret ${EnvironmentVariable.maskSecretPath(e)}: ${h}`)}}))}setSecret(e,m){return sr(this,void 0,void 0,(function*(){const h=new nr.PutParameterCommand({Name:e,Value:m,Type:"SecureString",Overwrite:true});yield this.ssm.send(h)}))}};ar=or([W(),ir("design:paramtypes",[Function])],ar);function createAwsSecretProvider(e){const m=e.profile?new nr.SSM({credentials:(0,rr.fromIni)({profile:e.profile})}):new nr.SSM;return new ar(m)}const cr=`4.13.0`;const lr="04b07795-8ddb-461a-bbee-02f9e1bf7b46";const ur="common";var dr;(function(e){e["AzureChina"]="https://login.chinacloudapi.cn";e["AzureGermany"]="https://login.microsoftonline.de";e["AzureGovernment"]="https://login.microsoftonline.us";e["AzurePublicCloud"]="https://login.microsoftonline.com"})(dr||(dr={}));const pr=dr.AzurePublicCloud;const mr="login.microsoftonline.com";const fr=["*"];const hr="cae";const gr="nocae";const yr="msal.cache";let Sr=undefined;const Er={setPersistence(e){Sr=e}};let vr=undefined;let Cr=undefined;let Ir=undefined;function hasNativeBroker(){return vr!==undefined}function hasVSCodePlugin(){return Cr!==undefined&&Ir!==undefined}const br={setNativeBroker(e){vr={broker:e}}};const Ar={setVSCodeAuthRecordPath(e){Cr=e},setVSCodeBroker(e){Ir={broker:e}}};function generatePluginConfiguration(e){const m={cache:{},broker:{...e.brokerOptions,isEnabled:e.brokerOptions?.enabled??false,enableMsaPassthrough:e.brokerOptions?.legacyEnableMsaPassthrough??false}};if(e.tokenCachePersistenceOptions?.enabled){if(Sr===undefined){throw new Error(["Persistent token caching was requested, but no persistence provider was configured.","You must install the identity-cache-persistence plugin package (`npm install --save @azure/identity-cache-persistence`)","and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling","`useIdentityPlugin(cachePersistencePlugin)` before using `tokenCachePersistenceOptions`."].join(" "))}const h=e.tokenCachePersistenceOptions.name||yr;m.cache.cachePlugin=Sr({name:`${h}.${gr}`,...e.tokenCachePersistenceOptions});m.cache.cachePluginCae=Sr({name:`${h}.${hr}`,...e.tokenCachePersistenceOptions})}if(e.brokerOptions?.enabled){m.broker.nativeBrokerPlugin=getBrokerPlugin(e.isVSCodeCredential||false)}return m}const wr={missing:(e,m,h)=>[`${e} was requested, but no plugin was configured or no authentication record was found.`,`You must install the ${m} plugin package (npm install --save ${m})`,"and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling",`useIdentityPlugin(${h}) before using enableBroker.`].join(" "),unavailable:(e,m)=>[`${e} was requested, and the plugin is configured, but the broker is unavailable.`,`Ensure the ${e} plugin is properly installed and configured.`,"Check for missing native dependencies and ensure the package is properly installed.",`See the README for prerequisites on installing and using ${m}.`].join(" ")};const Rr={vsCode:{credentialName:"Visual Studio Code Credential",packageName:"@azure/identity-vscode",pluginVar:"vsCodePlugin",get brokerInfo(){return Ir}},native:{credentialName:"Broker for WAM",packageName:"@azure/identity-broker",pluginVar:"nativeBrokerPlugin",get brokerInfo(){return vr}}};function getBrokerPlugin(e){const{credentialName:m,packageName:h,pluginVar:C,brokerInfo:q}=Rr[e?"vsCode":"native"];if(q===undefined){throw new Error(wr.missing(m,h,C))}if(q.broker.isBrokerAvailable===false){throw new Error(wr.unavailable(m,h))}return q.broker}const Tr={generatePluginConfiguration:generatePluginConfiguration};const Pr={cachePluginControl:Er,nativeBrokerPluginControl:br,vsCodeCredentialControl:Ar};function useIdentityPlugin(e){e(Pr)}function isErrorResponse(e){return e&&typeof e.error==="string"&&typeof e.error_description==="string"}const xr="CredentialUnavailableError";class errors_CredentialUnavailableError extends Error{constructor(e,m){super(e,m);this.name=xr}}const _r="AuthenticationError";class errors_AuthenticationError extends Error{statusCode;errorResponse;constructor(e,m,h){let C={error:"unknown",errorDescription:"An unknown error occurred and no additional details are available."};if(isErrorResponse(m)){C=convertOAuthErrorResponseToErrorResponse(m)}else if(typeof m==="string"){try{const e=JSON.parse(m);C=convertOAuthErrorResponseToErrorResponse(e)}catch(h){if(e===400){C={error:"invalid_request",errorDescription:`The service indicated that the request was invalid.\n\n${m}`}}else{C={error:"unknown_error",errorDescription:`An unknown error has occurred. Response body:\n\n${m}`}}}}else{C={error:"unknown_error",errorDescription:"An unknown error occurred and no additional details are available."}}super(`${C.error} Status code: ${e}\nMore details:\n${C.errorDescription},`,h);this.statusCode=e;this.errorResponse=C;this.name=_r}}const Or="AggregateAuthenticationError";class AggregateAuthenticationError extends Error{errors;constructor(e,m){const h=e.join("\n");super(`${m}\n${h}`);this.errors=e;this.name=Or}}function convertOAuthErrorResponseToErrorResponse(e){return{error:e.error,errorDescription:e.error_description,correlationId:e.correlation_id,errorCodes:e.error_codes,timestamp:e.timestamp,traceId:e.trace_id}}class AuthenticationRequiredError extends Error{scopes;getTokenOptions;constructor(e){super(e.message,e.cause?{cause:e.cause}:undefined);this.scopes=e.scopes;this.getTokenOptions=e.getTokenOptions;this.name="AuthenticationRequiredError"}}var Dr=__nccwpck_require__(8161);var Mr=__nccwpck_require__(7975);var $r=__nccwpck_require__(1708);function log(e,...m){$r.stderr.write(`${Mr.format(e,...m)}${Dr.EOL}`)}const Nr=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let kr;let Lr=[];let Ur=[];const Fr=[];if(Nr){enable(Nr)}const qr=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){kr=e;Lr=[];Ur=[];const m=e.split(",").map((e=>e.trim()));for(const e of m){if(e.startsWith("-")){Ur.push(e.substring(1))}else{Lr.push(e)}}for(const e of Fr){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const m of Ur){if(namespaceMatches(e,m)){return false}}for(const m of Lr){if(namespaceMatches(e,m)){return true}}return false}function namespaceMatches(e,m){if(m.indexOf("*")===-1){return e===m}let h=m;if(m.indexOf("**")!==-1){const e=[];let C="";for(const h of m){if(h==="*"&&C==="*"){continue}else{C=h;e.push(h)}}h=e.join("")}let C=0;let q=0;const V=h.length;const le=e.length;let fe=-1;let he=-1;while(C<le&&q<V){if(h[q]==="*"){fe=q;q++;if(q===V){return true}while(e[C]!==h[q]){C++;if(C===le){return false}}he=C;C++;q++;continue}else if(h[q]===e[C]){q++;C++}else if(fe>=0){q=fe+1;C=he+1;if(C===le){return false}while(e[C]!==h[q]){C++;if(C===le){return false}}he=C;C++;q++;continue}else{return false}}const ye=C===e.length;const ve=q===h.length;const Le=q===h.length-1&&h[q]==="*";return ye&&(ve||Le)}function disable(){const e=kr||"";enable("");return e}function createDebugger(e){const m=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:qr.log,namespace:e,extend:extend});function debug(...h){if(!m.enabled){return}if(h.length>0){h[0]=`${e} ${h[0]}`}m.log(...h)}Fr.push(m);return m}function destroy(){const e=Fr.indexOf(this);if(e>=0){Fr.splice(e,1);return true}return false}function extend(e){const m=createDebugger(`${this.namespace}:${e}`);m.log=this.log;return m}const jr=qr;const Br=["verbose","info","warning","error"];const Gr={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,m){m.log=(...m)=>{e.log(...m)}}function isTypeSpecRuntimeLogLevel(e){return Br.includes(e)}function createLoggerContext(e){const m=new Set;const h=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let C;const q=jr(e.namespace);q.log=(...e)=>{jr.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${Br.join(",")}`)}C=e;const h=[];for(const e of m){if(shouldEnable(e)){h.push(e.namespace)}}jr.enable(h.join(","))}if(h){if(isTypeSpecRuntimeLogLevel(h)){contextSetLogLevel(h)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${h}'; logging is not enabled. Acceptable values: ${Br.join(", ")}.`)}}function shouldEnable(e){return Boolean(C&&Gr[e.level]<=Gr[C])}function createLogger(e,h){const C=Object.assign(e.extend(h),{level:h});patchLogMethod(e,C);if(shouldEnable(C)){const e=jr.disable();jr.enable(e+","+C.namespace)}m.add(C);return C}function contextGetLogLevel(){return C}function contextCreateClientLogger(e){const m=q.extend(e);patchLogMethod(q,m);return{error:createLogger(m,"error"),warning:createLogger(m,"warning"),info:createLogger(m,"info"),verbose:createLogger(m,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:q}}const zr=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const Hr=zr.logger;function setLogLevel(e){zr.setLogLevel(e)}function getLogLevel(){return zr.getLogLevel()}function createClientLogger(e){return zr.createClientLogger(e)}const Vr=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const Wr=Vr.logger;function esm_setLogLevel(e){Vr.setLogLevel(e)}function esm_getLogLevel(){return Vr.getLogLevel()}function esm_createClientLogger(e){return Vr.createClientLogger(e)}const Kr=esm_createClientLogger("identity");function processEnvVars(e){return e.reduce(((e,m)=>{if(process.env[m]){e.assigned.push(m)}else{e.missing.push(m)}return e}),{missing:[],assigned:[]})}function logEnvVars(e,m){const{assigned:h}=processEnvVars(m);Kr.info(`${e} => Found the following environment variables: ${h.join(", ")}`)}function formatSuccess(e){return`SUCCESS. Scopes: ${Array.isArray(e)?e.join(", "):e}.`}function logging_formatError(e,m){let h="ERROR.";if(e?.length){h+=` Scopes: ${Array.isArray(e)?e.join(", "):e}.`}return`${h} Error message: ${typeof m==="string"?m:m.message}.`}function credentialLoggerInstance(e,m,h=Kr){const C=m?`${m.fullTitle} ${e}`:e;function info(e){h.info(`${C} =>`,e)}function warning(e){h.warning(`${C} =>`,e)}function verbose(e){h.verbose(`${C} =>`,e)}function error(e){h.error(`${C} =>`,e)}return{title:e,fullTitle:C,info:info,warning:warning,verbose:verbose,error:error}}function credentialLogger(e,m=Kr){const h=credentialLoggerInstance(e,undefined,m);return{...h,parent:m,getToken:credentialLoggerInstance("=> getToken()",h,m)}}const Yr={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let m=new TracingContextImpl(e.parentContext);if(e.span){m=m.setValue(Yr.span,e.span)}if(e.namespace){m=m.setValue(Yr.namespace,e.namespace)}return m}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,m){const h=new TracingContextImpl(this);h._contextMap.set(e,m);return h}getValue(e){return this._contextMap.get(e)}deleteValue(e){const m=new TracingContextImpl(this);m._contextMap.delete(e);return m}}var Qr=__nccwpck_require__(4480);const Jr=Qr.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,m)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:m.tracingContext})}),withContext(e,m,...h){return m(...h)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!Jr.instrumenterImplementation){Jr.instrumenterImplementation=createDefaultInstrumenter()}return Jr.instrumenterImplementation}function createTracingClient(e){const{namespace:m,packageName:h,packageVersion:C}=e;function startSpan(e,q,V){const le=getInstrumenter().startSpan(e,{...V,packageName:h,packageVersion:C,tracingContext:q?.tracingOptions?.tracingContext});let fe=le.tracingContext;const he=le.span;if(!fe.getValue(Yr.namespace)){fe=fe.setValue(Yr.namespace,m)}he.setAttribute("az.namespace",fe.getValue(Yr.namespace));const ye=Object.assign({},q,{tracingOptions:{...q?.tracingOptions,tracingContext:fe}});return{span:he,updatedOptions:ye}}async function withSpan(e,m,h,C){const{span:q,updatedOptions:V}=startSpan(e,m,C);try{const e=await withContext(V.tracingOptions.tracingContext,(()=>Promise.resolve(h(V,q))));q.setStatus({status:"success"});return e}catch(e){q.setStatus({status:"error",error:e});throw e}finally{q.end()}}function withContext(e,m,...h){return getInstrumenter().withContext(e,m,...h)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const Xr=createTracingClient({namespace:"Microsoft.AAD",packageName:"@azure/identity",packageVersion:cr});const Zr=credentialLogger("ChainedTokenCredential");class ChainedTokenCredential{_sources=[];constructor(...e){this._sources=e}async getToken(e,m={}){const{token:h}=await this.getTokenInternal(e,m);return h}async getTokenInternal(e,m={}){let h=null;let C;const q=[];return Xr.withSpan("ChainedTokenCredential.getToken",m,(async m=>{for(let V=0;V<this._sources.length&&h===null;V++){try{h=await this._sources[V].getToken(e,m);C=this._sources[V]}catch(m){if(m.name==="CredentialUnavailableError"||m.name==="AuthenticationRequiredError"){q.push(m)}else{Zr.getToken.info(logging_formatError(e,m));throw m}}}if(!h&&q.length>0){const m=new AggregateAuthenticationError(q,"ChainedTokenCredential authentication failed.");Zr.getToken.info(logging_formatError(e,m));throw m}Zr.getToken.info(`Result for ${C.constructor.name}: ${formatSuccess(e)}`);if(h===null){throw new errors_CredentialUnavailableError("Failed to retrieve a valid token")}return{token:h,successfulCredential:C}}))}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const eo={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"};const to={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,GONE:410,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600};const no={GET:"GET",POST:"POST"};const ro=[eo.OPENID_SCOPE,eo.PROFILE_SCOPE,eo.OFFLINE_ACCESS_SCOPE];const oo=[...ro,eo.EMAIL_SCOPE];const io={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"};const so={ACTIVE_ACCOUNT_FILTERS:"active-account-filters"};const ao={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"};const co={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"};const lo={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"};const uo={PLAIN:"plain",S256:"S256"};const po={CODE:"code",IDTOKEN_TOKEN:"id_token token",IDTOKEN_TOKEN_REFRESHTOKEN:"id_token token refresh_token"};const mo={QUERY:"query",FRAGMENT:"fragment"};const fo={QUERY:"query",FRAGMENT:"fragment",FORM_POST:"form_post"};const ho={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"};const go={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"};const yo={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."};const So={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"};const Eo={ADFS:1001,MSA:1002,MSSTS:1003,GENERIC:1004,ACCESS_TOKEN:2001,REFRESH_TOKEN:2002,ID_TOKEN:2003,APP_METADATA:3001,UNDEFINED:9999};const vo="appmetadata";const Co="client_info";const Io="1";const bo={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24};const Ao={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"};const wo={SCHEMA_VERSION:5,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"};const Ro={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"};const To={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"};const Po={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"};const xo={username:"username",password:"password"};const _o={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"};const Oo={CONFIGURED_NO_AUTO_DETECTION:"2",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"};const Do={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"};const Mo={Jwt:"JWT",Jwk:"JWK",Pop:"pop"};const $o=864e5;const No=300;const ko={BASE64:"base64",HEX:"hex",UTF8:"utf-8"}; -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const Lo="system_assigned_managed_identity";const Uo="managed_identity";const Fo=`https://login.microsoftonline.com/${Uo}/`;const qo={AUTHORIZATION_HEADER_NAME:"Authorization",METADATA_HEADER_NAME:"Metadata",APP_SERVICE_SECRET_HEADER_NAME:"X-IDENTITY-HEADER",ML_AND_SF_SECRET_HEADER_NAME:"secret"};const jo={API_VERSION:"api-version",RESOURCE:"resource",SHA256_TOKEN_TO_REFRESH:"token_sha256_to_refresh",XMS_CC:"xms_cc"};const Bo={AZURE_POD_IDENTITY_AUTHORITY_HOST:"AZURE_POD_IDENTITY_AUTHORITY_HOST",DEFAULT_IDENTITY_CLIENT_ID:"DEFAULT_IDENTITY_CLIENT_ID",IDENTITY_ENDPOINT:"IDENTITY_ENDPOINT",IDENTITY_HEADER:"IDENTITY_HEADER",IDENTITY_SERVER_THUMBPRINT:"IDENTITY_SERVER_THUMBPRINT",IMDS_ENDPOINT:"IMDS_ENDPOINT",MSI_ENDPOINT:"MSI_ENDPOINT",MSI_SECRET:"MSI_SECRET"};const Go={APP_SERVICE:"AppService",AZURE_ARC:"AzureArc",CLOUD_SHELL:"CloudShell",DEFAULT_TO_IMDS:"DefaultToImds",IMDS:"Imds",MACHINE_LEARNING:"MachineLearning",SERVICE_FABRIC:"ServiceFabric"};const zo={SYSTEM_ASSIGNED:"system-assigned",USER_ASSIGNED_CLIENT_ID:"user-assigned-client-id",USER_ASSIGNED_RESOURCE_ID:"user-assigned-resource-id",USER_ASSIGNED_OBJECT_ID:"user-assigned-object-id"};const Ho={GET:"get",POST:"post"};const Vo={SUCCESS_RANGE_START:to.SUCCESS_RANGE_START,SUCCESS_RANGE_END:to.SUCCESS_RANGE_END,SERVER_ERROR:to.SERVER_ERROR};const Wo="REGION_NAME";const Ko="MSAL_FORCE_REGION";const Yo=32;const Qo={SHA256:"sha256"};const Jo={CV_CHARSET:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~"};const Xo={KEY_SEPARATOR:"-"};const Zo={MSAL_SKU:"msal.js.node",JWT_BEARER_ASSERTION_TYPE:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer",AUTHORIZATION_PENDING:"authorization_pending",HTTP_PROTOCOL:"http://",LOCALHOST:"localhost"};const ei={acquireTokenSilent:62,acquireTokenByUsernamePassword:371,acquireTokenByDeviceCode:671,acquireTokenByClientCredential:771,acquireTokenByOBO:772,acquireTokenWithManagedIdentity:773,acquireTokenByCode:871,acquireTokenByRefreshToken:872};const ti={RSA_256:"RS256",PSS_256:"PS256",X5T_256:"x5t#S256",X5T:"x5t",X5C:"x5c",AUDIENCE:"aud",EXPIRATION_TIME:"exp",ISSUER:"iss",SUBJECT:"sub",NOT_BEFORE:"nbf",JWT_ID:"jti"};const ni={INTERVAL_MS:100,TIMEOUT_MS:5e3};const ri=4096; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const oi="unexpected_error";const ii="post_request_failed"; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const si={[oi]:"Unexpected error in authentication.",[ii]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};const ai={unexpectedError:{code:oi,desc:si[oi]},postRequestFailed:{code:ii,desc:si[ii]}};class AuthError extends Error{constructor(e,m,h){const C=m?`${e}: ${m}`:e;super(C);Object.setPrototypeOf(this,AuthError.prototype);this.errorCode=e||eo.EMPTY_STRING;this.errorMessage=m||eo.EMPTY_STRING;this.subError=h||eo.EMPTY_STRING;this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function createAuthError(e,m){return new AuthError(e,m?`${si[e]} ${m}`:si[e])} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const ci=",";const li="|";function makeExtraSkuString(e){const{skus:m,libraryName:h,libraryVersion:C,extensionName:q,extensionVersion:V}=e;const le=new Map([[0,[h,C]],[2,[q,V]]]);let fe=[];if(m?.length){fe=m.split(ci);if(fe.length<4){return m}}else{fe=Array.from({length:4},(()=>li))}le.forEach(((e,m)=>{if(e.length===2&&e[0]?.length&&e[1]?.length){setSku({skuArr:fe,index:m,skuName:e[0],skuVersion:e[1]})}}));return fe.join(ci)}function setSku(e){const{skuArr:m,index:h,skuName:C,skuVersion:q}=e;if(h>=m.length){return}m[h]=[C,q].join(li)}class ServerTelemetryManager{constructor(e,m){this.cacheOutcome=Do.NOT_APPLICABLE;this.cacheManager=m;this.apiId=e.apiId;this.correlationId=e.correlationId;this.wrapperSKU=e.wrapperSKU||eo.EMPTY_STRING;this.wrapperVer=e.wrapperVer||eo.EMPTY_STRING;this.telemetryCacheKey=wo.CACHE_KEY+yo.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${wo.VALUE_SEPARATOR}${this.cacheOutcome}`;const m=[this.wrapperSKU,this.wrapperVer];const h=this.getNativeBrokerErrorCode();if(h?.length){m.push(`broker_error=${h}`)}const C=m.join(wo.VALUE_SEPARATOR);const q=this.getRegionDiscoveryFields();const V=[e,q].join(wo.VALUE_SEPARATOR);return[wo.SCHEMA_VERSION,V,C].join(wo.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests();const m=ServerTelemetryManager.maxErrorsToSend(e);const h=e.failedRequests.slice(0,2*m).join(wo.VALUE_SEPARATOR);const C=e.errors.slice(0,m).join(wo.VALUE_SEPARATOR);const q=e.errors.length;const V=m<q?wo.OVERFLOW_TRUE:wo.OVERFLOW_FALSE;const le=[q,V].join(wo.VALUE_SEPARATOR);return[wo.SCHEMA_VERSION,e.cacheHits,h,C,le].join(wo.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const m=this.getLastRequests();if(m.errors.length>=wo.MAX_CACHED_ERRORS){m.failedRequests.shift();m.failedRequests.shift();m.errors.shift()}m.failedRequests.push(this.apiId,this.correlationId);if(e instanceof Error&&!!e&&e.toString()){if(e instanceof AuthError){if(e.subError){m.errors.push(e.subError)}else if(e.errorCode){m.errors.push(e.errorCode)}else{m.errors.push(e.toString())}}else{m.errors.push(e.toString())}}else{m.errors.push(wo.UNKNOWN_ERROR)}this.cacheManager.setServerTelemetry(this.telemetryCacheKey,m,this.correlationId);return}incrementCacheHits(){const e=this.getLastRequests();e.cacheHits+=1;this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId);return e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};const m=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return m||e}clearTelemetryCache(){const e=this.getLastRequests();const m=ServerTelemetryManager.maxErrorsToSend(e);const h=e.errors.length;if(m===h){this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId)}else{const h={failedRequests:e.failedRequests.slice(m*2),errors:e.errors.slice(m),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,h,this.correlationId)}}static maxErrorsToSend(e){let m;let h=0;let C=0;const q=e.errors.length;for(m=0;m<q;m++){const q=e.failedRequests[2*m]||eo.EMPTY_STRING;const V=e.failedRequests[2*m+1]||eo.EMPTY_STRING;const le=e.errors[m]||eo.EMPTY_STRING;C+=q.toString().length+V.toString().length+le.length+3;if(C<wo.MAX_LAST_HEADER_BYTES){h+=1}else{break}}return h}getRegionDiscoveryFields(){const e=[];e.push(this.regionUsed||eo.EMPTY_STRING);e.push(this.regionSource||eo.EMPTY_STRING);e.push(this.regionOutcome||eo.EMPTY_STRING);return e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used;this.regionSource=e.region_source;this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const m=this.getLastRequests();m.nativeBrokerErrorCode=e;this.cacheManager.setServerTelemetry(this.telemetryCacheKey,m,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode;this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return makeExtraSkuString(e)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const ui="client_id";const di="redirect_uri";const pi="response_type";const mi="response_mode";const fi="grant_type";const hi="claims";const gi="scope";const yi="error";const Si="error_description";const Ei="access_token";const vi="id_token";const Ci="refresh_token";const Ii="expires_in";const bi="refresh_token_expires_in";const Ai="state";const wi="nonce";const Ri="prompt";const Ti="session_state";const Pi="client_info";const xi="code";const _i="code_challenge";const Oi="code_challenge_method";const Di="code_verifier";const Mi="client-request-id";const $i="x-client-SKU";const Ni="x-client-VER";const ki="x-client-OS";const Li="x-client-CPU";const Ui="x-client-current-telemetry";const Fi="x-client-last-telemetry";const qi="x-ms-lib-capability";const ji="x-app-name";const Bi="x-app-ver";const Gi="post_logout_redirect_uri";const zi="id_token_hint";const Hi="device_code";const Vi="client_secret";const Wi="client_assertion";const Ki="client_assertion_type";const Yi="token_type";const Qi="req_cnf";const Ji="assertion";const Xi="requested_token_use";const Zi="on_behalf_of";const es="foci";const ts="X-AnchorMailbox";const ns="return_spa_code";const rs="nativebroker";const os="logout_hint";const is="sid";const ss="login_hint";const as="domain_hint";const cs="x-client-xtra-sku";const ls="brk_client_id";const us="brk_redirect_uri";const ds="instance_aware";const ps="ear_jwk";const ms="ear_jwe_crypto"; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class ServerError_ServerError extends AuthError{constructor(e,m,h,C,q){super(e,m,h);this.name="ServerError";this.errorNo=C;this.status=q;Object.setPrototypeOf(this,ServerError_ServerError.prototype)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -var fs;(function(e){e[e["Error"]=0]="Error";e[e["Warning"]=1]="Warning";e[e["Info"]=2]="Info";e[e["Verbose"]=3]="Verbose";e[e["Trace"]=4]="Trace"})(fs||(fs={}));class Logger{constructor(e,m,h){this.level=fs.Info;const defaultLoggerCallback=()=>{};const C=e||Logger.createDefaultLoggerOptions();this.localCallback=C.loggerCallback||defaultLoggerCallback;this.piiLoggingEnabled=C.piiLoggingEnabled||false;this.level=typeof C.logLevel==="number"?C.logLevel:fs.Info;this.correlationId=C.correlationId||eo.EMPTY_STRING;this.packageName=m||eo.EMPTY_STRING;this.packageVersion=h||eo.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:false,logLevel:fs.Info}}clone(e,m,h){return new Logger({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:h||this.correlationId},e,m)}logMessage(e,m){if(m.logLevel>this.level||!this.piiLoggingEnabled&&m.containsPii){return}const h=(new Date).toUTCString();const C=`[${h}] : [${m.correlationId||this.correlationId||""}]`;const q=`${C} : ${this.packageName}@${this.packageVersion} : ${fs[m.logLevel]} - ${e}`;this.executeCallback(m.logLevel,q,m.containsPii||false)}executeCallback(e,m,h){if(this.localCallback){this.localCallback(e,m,h)}}error(e,m){this.logMessage(e,{logLevel:fs.Error,containsPii:false,correlationId:m||eo.EMPTY_STRING})}errorPii(e,m){this.logMessage(e,{logLevel:fs.Error,containsPii:true,correlationId:m||eo.EMPTY_STRING})}warning(e,m){this.logMessage(e,{logLevel:fs.Warning,containsPii:false,correlationId:m||eo.EMPTY_STRING})}warningPii(e,m){this.logMessage(e,{logLevel:fs.Warning,containsPii:true,correlationId:m||eo.EMPTY_STRING})}info(e,m){this.logMessage(e,{logLevel:fs.Info,containsPii:false,correlationId:m||eo.EMPTY_STRING})}infoPii(e,m){this.logMessage(e,{logLevel:fs.Info,containsPii:true,correlationId:m||eo.EMPTY_STRING})}verbose(e,m){this.logMessage(e,{logLevel:fs.Verbose,containsPii:false,correlationId:m||eo.EMPTY_STRING})}verbosePii(e,m){this.logMessage(e,{logLevel:fs.Verbose,containsPii:true,correlationId:m||eo.EMPTY_STRING})}trace(e,m){this.logMessage(e,{logLevel:fs.Trace,containsPii:false,correlationId:m||eo.EMPTY_STRING})}tracePii(e,m){this.logMessage(e,{logLevel:fs.Trace,containsPii:true,correlationId:m||eo.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||false}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const hs={Default:0,Adfs:1,Dsts:2,Ciam:3}; -/*! @azure/msal-common v15.15.0 2026-02-23 */ +var e;(function(e){(function(t){var n=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:sloppyModeThis();var o=makeExporter(e);if(typeof n.Reflect!=="undefined"){o=makeExporter(n.Reflect,o)}t(o,n);if(typeof n.Reflect==="undefined"){n.Reflect=e}function makeExporter(e,t){return function(n,o){Object.defineProperty(e,n,{configurable:true,writable:true,value:o});if(t)t(n,o)}}function sloppyModeThis(){throw new ReferenceError("globalThis could not be found. Please polyfill globalThis before loading this module.")}})((function(e,t){var n=typeof Symbol==="function";var o=n&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:fail("Symbol.toPrimitive not found.");var i=n&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:fail("Symbol.iterator not found.");var a=Object.getPrototypeOf(Function);var d=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:fail("A valid Map constructor could not be found.");var f=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:fail("A valid Set constructor could not be found.");var m=typeof WeakMap==="function"?WeakMap:fail("A valid WeakMap constructor could not be found.");var h=n?Symbol.for("@reflect-metadata:registry"):undefined;var C=GetOrCreateMetadataRegistry();var P=CreateMetadataProvider(C);function decorate(e,t,n,o){if(!IsUndefined(n)){if(!IsArray(e))throw new TypeError;if(!IsObject(t))throw new TypeError;if(!IsObject(o)&&!IsUndefined(o)&&!IsNull(o))throw new TypeError;if(IsNull(o))o=undefined;n=ToPropertyKey(n);return DecorateProperty(e,t,n,o)}else{if(!IsArray(e))throw new TypeError;if(!IsConstructor(t))throw new TypeError;return DecorateConstructor(e,t)}}e("decorate",decorate);function metadata(e,t){function decorator(n,o){if(!IsObject(n))throw new TypeError;if(!IsUndefined(o)&&!IsPropertyKey(o))throw new TypeError;OrdinaryDefineOwnMetadata(e,t,n,o)}return decorator}e("metadata",metadata);function defineMetadata(e,t,n,o){if(!IsObject(n))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);return OrdinaryDefineOwnMetadata(e,t,n,o)}e("defineMetadata",defineMetadata);function hasMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryHasMetadata(e,t,n)}e("hasMetadata",hasMetadata);function hasOwnMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryHasOwnMetadata(e,t,n)}e("hasOwnMetadata",hasOwnMetadata);function getMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryGetMetadata(e,t,n)}e("getMetadata",getMetadata);function getOwnMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);return OrdinaryGetOwnMetadata(e,t,n)}e("getOwnMetadata",getOwnMetadata);function getMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;if(!IsUndefined(t))t=ToPropertyKey(t);return OrdinaryMetadataKeys(e,t)}e("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;if(!IsUndefined(t))t=ToPropertyKey(t);return OrdinaryOwnMetadataKeys(e,t)}e("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(e,t,n){if(!IsObject(t))throw new TypeError;if(!IsUndefined(n))n=ToPropertyKey(n);var o=GetMetadataProvider(t,n,false);if(IsUndefined(o))return false;return o.OrdinaryDeleteMetadata(e,t,n)}e("deleteMetadata",deleteMetadata);function DecorateConstructor(e,t){for(var n=e.length-1;n>=0;--n){var o=e[n];var i=o(t);if(!IsUndefined(i)&&!IsNull(i)){if(!IsConstructor(i))throw new TypeError;t=i}}return t}function DecorateProperty(e,t,n,o){for(var i=e.length-1;i>=0;--i){var a=e[i];var d=a(t,n,o);if(!IsUndefined(d)&&!IsNull(d)){if(!IsObject(d))throw new TypeError;o=d}}return o}function OrdinaryHasMetadata(e,t,n){var o=OrdinaryHasOwnMetadata(e,t,n);if(o)return true;var i=OrdinaryGetPrototypeOf(t);if(!IsNull(i))return OrdinaryHasMetadata(e,i,n);return false}function OrdinaryHasOwnMetadata(e,t,n){var o=GetMetadataProvider(t,n,false);if(IsUndefined(o))return false;return ToBoolean(o.OrdinaryHasOwnMetadata(e,t,n))}function OrdinaryGetMetadata(e,t,n){var o=OrdinaryHasOwnMetadata(e,t,n);if(o)return OrdinaryGetOwnMetadata(e,t,n);var i=OrdinaryGetPrototypeOf(t);if(!IsNull(i))return OrdinaryGetMetadata(e,i,n);return undefined}function OrdinaryGetOwnMetadata(e,t,n){var o=GetMetadataProvider(t,n,false);if(IsUndefined(o))return;return o.OrdinaryGetOwnMetadata(e,t,n)}function OrdinaryDefineOwnMetadata(e,t,n,o){var i=GetMetadataProvider(n,o,true);i.OrdinaryDefineOwnMetadata(e,t,n,o)}function OrdinaryMetadataKeys(e,t){var n=OrdinaryOwnMetadataKeys(e,t);var o=OrdinaryGetPrototypeOf(e);if(o===null)return n;var i=OrdinaryMetadataKeys(o,t);if(i.length<=0)return n;if(n.length<=0)return i;var a=new f;var d=[];for(var m=0,h=n;m<h.length;m++){var C=h[m];var P=a.has(C);if(!P){a.add(C);d.push(C)}}for(var D=0,k=i;D<k.length;D++){var C=k[D];var P=a.has(C);if(!P){a.add(C);d.push(C)}}return d}function OrdinaryOwnMetadataKeys(e,t){var n=GetMetadataProvider(e,t,false);if(!n){return[]}return n.OrdinaryOwnMetadataKeys(e,t)}function Type(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsSymbol(e){return typeof e==="symbol"}function IsObject(e){return typeof e==="object"?e!==null:typeof e==="function"}function ToPrimitive(e,t){switch(Type(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?"string":t===5?"number":"default";var i=GetMethod(e,o);if(i!==undefined){var a=i.call(e,n);if(IsObject(a))throw new TypeError;return a}return OrdinaryToPrimitive(e,n==="default"?"number":n)}function OrdinaryToPrimitive(e,t){if(t==="string"){var n=e.toString;if(IsCallable(n)){var o=n.call(e);if(!IsObject(o))return o}var i=e.valueOf;if(IsCallable(i)){var o=i.call(e);if(!IsObject(o))return o}}else{var i=e.valueOf;if(IsCallable(i)){var o=i.call(e);if(!IsObject(o))return o}var a=e.toString;if(IsCallable(a)){var o=a.call(e);if(!IsObject(o))return o}}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var t=ToPrimitive(e,3);if(IsSymbol(t))return t;return ToString(t)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}function IsCallable(e){return typeof e==="function"}function IsConstructor(e){return typeof e==="function"}function IsPropertyKey(e){switch(Type(e)){case 3:return true;case 4:return true;default:return false}}function GetMethod(e,t){var n=e[t];if(n===undefined||n===null)return undefined;if(!IsCallable(n))throw new TypeError;return n}function GetIterator(e){var t=GetMethod(e,i);if(!IsCallable(t))throw new TypeError;var n=t.call(e);if(!IsObject(n))throw new TypeError;return n}function IteratorValue(e){return e.value}function IteratorStep(e){var t=e.next();return t.done?false:t}function IteratorClose(e){var t=e["return"];if(t)t.call(e)}function OrdinaryGetPrototypeOf(e){var t=Object.getPrototypeOf(e);if(typeof e!=="function"||e===a)return t;if(t!==a)return t;var n=e.prototype;var o=n&&Object.getPrototypeOf(n);if(o==null||o===Object.prototype)return t;var i=o.constructor;if(typeof i!=="function")return t;if(i===e)return t;return i}function fail(e){throw e}function CreateMetadataRegistry(){var e;if(!IsUndefined(h)&&typeof t.Reflect!=="undefined"&&!(h in t.Reflect)&&typeof t.Reflect.defineMetadata==="function"){e=CreateFallbackProvider(t.Reflect)}var n;var o;var i;var a=new m;var C={registerProvider:registerProvider,getProvider:getProvider,setProvider:setProvider};return C;function registerProvider(t){if(!Object.isExtensible(C)){throw new Error("Cannot add provider to a frozen registry.")}switch(true){case e===t:break;case IsUndefined(n):n=t;break;case n===t:break;case IsUndefined(o):o=t;break;case o===t:break;default:if(i===undefined)i=new f;i.add(t);break}}function getProviderNoCache(t,a){if(!IsUndefined(n)){if(n.isProviderFor(t,a))return n;if(!IsUndefined(o)){if(o.isProviderFor(t,a))return n;if(!IsUndefined(i)){var d=GetIterator(i);while(true){var f=IteratorStep(d);if(!f){return undefined}var m=IteratorValue(f);if(m.isProviderFor(t,a)){IteratorClose(d);return m}}}}}if(!IsUndefined(e)&&e.isProviderFor(t,a)){return e}return undefined}function getProvider(e,t){var n=a.get(e);var o;if(!IsUndefined(n)){o=n.get(t)}if(!IsUndefined(o)){return o}o=getProviderNoCache(e,t);if(!IsUndefined(o)){if(IsUndefined(n)){n=new d;a.set(e,n)}n.set(t,o)}return o}function hasProvider(e){if(IsUndefined(e))throw new TypeError;return n===e||o===e||!IsUndefined(i)&&i.has(e)}function setProvider(e,t,n){if(!hasProvider(n)){throw new Error("Metadata provider not registered.")}var o=getProvider(e,t);if(o!==n){if(!IsUndefined(o)){return false}var i=a.get(e);if(IsUndefined(i)){i=new d;a.set(e,i)}i.set(t,n)}return true}}function GetOrCreateMetadataRegistry(){var e;if(!IsUndefined(h)&&IsObject(t.Reflect)&&Object.isExtensible(t.Reflect)){e=t.Reflect[h]}if(IsUndefined(e)){e=CreateMetadataRegistry()}if(!IsUndefined(h)&&IsObject(t.Reflect)&&Object.isExtensible(t.Reflect)){Object.defineProperty(t.Reflect,h,{enumerable:false,configurable:false,writable:false,value:e})}return e}function CreateMetadataProvider(e){var t=new m;var n={isProviderFor:function(e,n){var o=t.get(e);if(IsUndefined(o))return false;return o.has(n)},OrdinaryDefineOwnMetadata:OrdinaryDefineOwnMetadata,OrdinaryHasOwnMetadata:OrdinaryHasOwnMetadata,OrdinaryGetOwnMetadata:OrdinaryGetOwnMetadata,OrdinaryOwnMetadataKeys:OrdinaryOwnMetadataKeys,OrdinaryDeleteMetadata:OrdinaryDeleteMetadata};C.registerProvider(n);return n;function GetOrCreateMetadataMap(o,i,a){var f=t.get(o);var m=false;if(IsUndefined(f)){if(!a)return undefined;f=new d;t.set(o,f);m=true}var h=f.get(i);if(IsUndefined(h)){if(!a)return undefined;h=new d;f.set(i,h);if(!e.setProvider(o,i,n)){f.delete(i);if(m){t.delete(o)}throw new Error("Wrong provider for target.")}}return h}function OrdinaryHasOwnMetadata(e,t,n){var o=GetOrCreateMetadataMap(t,n,false);if(IsUndefined(o))return false;return ToBoolean(o.has(e))}function OrdinaryGetOwnMetadata(e,t,n){var o=GetOrCreateMetadataMap(t,n,false);if(IsUndefined(o))return undefined;return o.get(e)}function OrdinaryDefineOwnMetadata(e,t,n,o){var i=GetOrCreateMetadataMap(n,o,true);i.set(e,t)}function OrdinaryOwnMetadataKeys(e,t){var n=[];var o=GetOrCreateMetadataMap(e,t,false);if(IsUndefined(o))return n;var i=o.keys();var a=GetIterator(i);var d=0;while(true){var f=IteratorStep(a);if(!f){n.length=d;return n}var m=IteratorValue(f);try{n[d]=m}catch(e){try{IteratorClose(a)}finally{throw e}}d++}}function OrdinaryDeleteMetadata(e,n,o){var i=GetOrCreateMetadataMap(n,o,false);if(IsUndefined(i))return false;if(!i.delete(e))return false;if(i.size===0){var a=t.get(n);if(!IsUndefined(a)){a.delete(o);if(a.size===0){t.delete(a)}}}return true}}function CreateFallbackProvider(e){var t=e.defineMetadata,n=e.hasOwnMetadata,o=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata;var d=new m;var h={isProviderFor:function(e,t){var n=d.get(e);if(!IsUndefined(n)&&n.has(t)){return true}if(i(e,t).length){if(IsUndefined(n)){n=new f;d.set(e,n)}n.add(t);return true}return false},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a};return h}function GetMetadataProvider(e,t,n){var o=C.getProvider(e,t);if(!IsUndefined(o)){return o}if(n){if(C.setProvider(e,t,P)){return P}throw new Error("Illegal state.")}return undefined}}))})(e||(e={}))},2227:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>re,XMLParser:()=>gt,XMLValidator:()=>oe});const o=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("^["+o+"]["+o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let o=t.exec(e);for(;o;){const i=[];i.startIndex=t.lastIndex-o[0].length;const a=o.length;for(let e=0;e<a;e++)i.push(o[e]);n.push(i),o=t.exec(e)}return n}const r=function(e){return!(null==i.exec(e))},a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],d=["__proto__","constructor","prototype"],f={allowBooleanAttributes:!1,unpairedTags:[]};function l(e,t){t=Object.assign({},f,t);const n=[];let o=!1,i=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let a=0;a<e.length;a++)if("<"===e[a]&&"?"===e[a+1]){if(a+=2,a=u(e,a),a.err)return a}else{if("<"!==e[a]){if(p(e[a]))continue;return b("InvalidChar","char '"+e[a]+"' is not expected.",w(e,a))}{let d=a;if(a++,"!"===e[a]){a=c(e,a);continue}{let f=!1;"/"===e[a]&&(f=!0,a++);let m="";for(;a<e.length&&">"!==e[a]&&" "!==e[a]&&"\t"!==e[a]&&"\n"!==e[a]&&"\r"!==e[a];a++)m+=e[a];if(m=m.trim(),"/"===m[m.length-1]&&(m=m.substring(0,m.length-1),a--),!y(m)){let t;return t=0===m.trim().length?"Invalid space after '<'.":"Tag '"+m+"' is an invalid name.",b("InvalidTag",t,w(e,a))}const h=g(e,a);if(!1===h)return b("InvalidAttr","Attributes for '"+m+"' have open quote.",w(e,a));let C=h.value;if(a=h.index,"/"===C[C.length-1]){const n=a-C.length;C=C.substring(0,C.length-1);const i=x(C,t);if(!0!==i)return b(i.err.code,i.err.msg,w(e,n+i.err.line));o=!0}else if(f){if(!h.tagClosed)return b("InvalidTag","Closing tag '"+m+"' doesn't have proper closing.",w(e,a));if(C.trim().length>0)return b("InvalidTag","Closing tag '"+m+"' can't have attributes or invalid starting.",w(e,d));if(0===n.length)return b("InvalidTag","Closing tag '"+m+"' has not been opened.",w(e,d));{const t=n.pop();if(m!==t.tagName){let n=w(e,t.tagStartPos);return b("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+m+"'.",w(e,d))}0==n.length&&(i=!0)}}else{const f=x(C,t);if(!0!==f)return b(f.err.code,f.err.msg,w(e,a-C.length+f.err.line));if(!0===i)return b("InvalidXml","Multiple possible root nodes found.",w(e,a));-1!==t.unpairedTags.indexOf(m)||n.push({tagName:m,tagStartPos:d}),o=!0}for(a++;a<e.length;a++)if("<"===e[a]){if("!"===e[a+1]){a++,a=c(e,a);continue}if("?"!==e[a+1])break;if(a=u(e,++a),a.err)return a}else if("&"===e[a]){const t=N(e,a);if(-1==t)return b("InvalidChar","char '&' is not expected.",w(e,a));a=t}else if(!0===i&&!p(e[a]))return b("InvalidXml","Extra text at the end",w(e,a));"<"===e[a]&&a--}}}return o?1==n.length?b("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",w(e,n[0].tagStartPos)):!(n.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)}function p(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const o=e.substr(n,t-n);if(t>5&&"xml"===o)return b("InvalidXml","XML declaration allowed only at the start of the document.",w(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function c(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const m='"',h="'";function g(e,t){let n="",o="",i=!1;for(;t<e.length;t++){if(e[t]===m||e[t]===h)""===o?o=e[t]:o!==e[t]||(o="");else if(">"===e[t]&&""===o){i=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:i}}const C=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function x(e,t){const n=s(e,C),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return b("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return b("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const i=n[e][2];if(!E(i))return b("InvalidAttr","Attribute '"+i+"' is an invalid name.",v(n[e]));if(Object.prototype.hasOwnProperty.call(o,i))return b("InvalidAttr","Attribute '"+i+"' is repeated.",v(n[e]));o[i]=1}return!0}function N(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function b(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function E(e){return r(e)}function y(e){return r(e)}function w(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}const T=e=>a.includes(e)?"__"+e:e,P={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:T};function S(e,t){if("string"!=typeof e)return;const n=e.toLowerCase();if(a.some((e=>n===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(d.some((e=>n===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function A(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:A(!0)}const O=function(e){const t=Object.assign({},P,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of n)e&&S(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=T),t.processEntities=A(t.processEntities),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),t};let D;D="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class ${constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][D]={startIndex:t})}static getMetaDataSymbol(){return D}}class I{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);let o=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let i=1,a=!1,d=!1,f="";for(;t<e.length;t++)if("<"!==e[t]||d)if(">"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,i--):i--,0===i)break}else"["===e[t]?a=!0:f+=e[t];else{if(a&&M(e,"!ENTITY",t)){let i,a;if(t+=7,[i,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===a.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&o>=this.options.maxEntityCount)throw new Error(`Entity count (${o+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const e=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n[i]={regx:RegExp(`&${e};`,"g"),val:a},o++}}else if(a&&M(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&M(e,"!ATTLIST",t))t+=8;else if(a&&M(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!M(e,"!--",t))throw new Error("Invalid DOCTYPE");d=!0}i++,f=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let o=e.substring(n,t);if(_(o),t=j(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let i="";if([t,i]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&i.length>this.options.maxEntitySize)throw new Error(`Entity "${o}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[o,i,--t]}readNotationExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);!this.suppressValidationErr&&_(o),t=j(e,t);const i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==i&&"PUBLIC"!==i)throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=j(e,t);let a=null,d=null;if("PUBLIC"===i)[t,a]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=j(e,t)]&&"'"!==e[t]||([t,d]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===i&&([t,d]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!d))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:o,publicIdentifier:a,systemIdentifier:d,index:--t}}readIdentifierVal(e,t,n){let o="";const i=e[t];if('"'!==i&&"'"!==i)throw new Error(`Expected quoted string, found "${i}"`);const a=++t;for(;t<e.length&&e[t]!==i;)t++;if(o=e.substring(a,t),e[t]!==i)throw new Error(`Unterminated ${n} value`);return[++t,o]}readElementExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);if(!this.suppressValidationErr&&!r(o))throw new Error(`Invalid element name: "${o}"`);let i="";if("E"===e[t=j(e,t)]&&M(e,"MPTY",t))t+=4;else if("A"===e[t]&&M(e,"NY",t))t+=2;else if("("===e[t]){const n=++t;for(;t<e.length&&")"!==e[t];)t++;if(i=e.substring(n,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:o,contentModel:i.trim(),index:t}}readAttlistExp(e,t){let n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);for(_(o),n=t=j(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!_(i))throw new Error(`Invalid attribute name: "${i}"`);t=j(e,t);let a="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(a="NOTATION","("!==e[t=j(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){const o=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let i=e.substring(o,t);if(i=i.trim(),!_(i))throw new Error(`Invalid notation name: "${i}"`);n.push(i),"|"===e[t]&&(t++,t=j(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,a+=" ("+n.join("|")+")"}else{const n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;a+=e.substring(n,t);const o=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!o.includes(a.toUpperCase()))throw new Error(`Invalid attribute type: "${a}"`)}t=j(e,t);let d="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(d="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(d="#IMPLIED",t+=7):[t,d]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:o,attributeName:i,attributeType:a,defaultValue:d,index:t}}}const j=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function M(e,t,n){for(let o=0;o<t.length;o++)if(t[o]!==e[n+o+1])return!1;return!0}function _(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const k=/^[-+]?0x[a-fA-F0-9]+$/,L=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,F={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};const q=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/,V=new Set(["push","pop","reset","updateCurrent","restore"]);class G{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[]}push(e,t=null,n=null){this.path.length>0&&(this.path[this.path.length-1].values=void 0);const o=this.path.length;this.siblingStacks[o]||(this.siblingStacks[o]=new Map);const i=this.siblingStacks[o],a=n?`${n}:${e}`:e,d=i.get(a)||0;let f=0;for(const e of i.values())f+=e;i.set(a,d+1);const m={tag:e,position:f,counter:d};null!=n&&(m.namespace=n),null!=t&&(m.values=t),this.path.push(m)}pop(){if(0===this.path.length)return;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0===this.path.length)return;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const n=e||this.separator;return this.path.map((e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag)).join(n)}toArray(){return this.path.map((e=>e.tag))}reset(){this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t],o=this.path[t],i=t===this.path.length-1;if(!this._matchSegment(n,o,i))return!1}return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){const o=e[n];if("deep-wildcard"===o.type){if(n--,n<0)return!0;const o=e[n];let i=!1;for(let e=t;e>=0;e--){const a=e===this.path.length-1;if(this._matchSegment(o,this.path[e],a)){t=e-1,n--,i=!0;break}}if(!i)return!1}else{const e=t===this.path.length-1;if(!this._matchSegment(o,this.path[t],e))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!n)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue){const n=t.values[e.attrName];if(String(n)!==String(e.attrValue))return!1}}if(void 0!==e.position){if(!n)return!1;const o=t.counter??0;if("first"===e.position&&0!==o)return!1;if("odd"===e.position&&o%2!=1)return!1;if("even"===e.position&&o%2!=0)return!1;if("nth"===e.position&&o!==e.positionValue)return!1}return!0}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this.path=e.path.map((e=>({...e}))),this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){return new Proxy(this,{get(e,t,n){if(V.has(t))return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};const o=Reflect.get(e,t,n);return"path"===t||"siblingStacks"===t?Object.freeze(Array.isArray(o)?o.map((e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e}))):o):"function"==typeof o?o.bind(e):o},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}class R{constructor(e,t={}){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this._hasDeepWildcard=this.segments.some((e=>"deep-wildcard"===e.type)),this._hasAttributeCondition=this.segments.some((e=>void 0!==e.attrName)),this._hasPositionSelector=this.segments.some((e=>void 0!==e.position))}_parse(e){const t=[];let n=0,o="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(o.trim()&&(t.push(this._parseSegment(o.trim())),o=""),t.push({type:"deep-wildcard"}),n+=2):(o.trim()&&t.push(this._parseSegment(o.trim())),o="",n++):(o+=e[n],n++);return o.trim()&&t.push(this._parseSegment(o.trim())),t}_parseSegment(e){const t={type:"tag"};let n=null,o=e;const i=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(i&&(o=i[1]+i[3],i[2])){const e=i[2].slice(1,-1);e&&(n=e)}let a,d,f=o;if(o.includes("::")){const t=o.indexOf("::");if(a=o.substring(0,t).trim(),f=o.substring(t+2).trim(),!a)throw new Error(`Invalid namespace in pattern: ${e}`)}let m=null;if(f.includes(":")){const e=f.lastIndexOf(":"),t=f.substring(0,e).trim(),n=f.substring(e+1).trim();["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n)?(d=t,m=n):d=f}else d=f;if(!d)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=d,a&&(t.namespace=a),n)if(n.includes("=")){const e=n.indexOf("=");t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(m){const e=m.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=m}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}function U(e,t){if(!e)return{};const n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};const o={};for(const e in n)e.startsWith(t.attributeNamePrefix)?o[e.substring(t.attributeNamePrefix.length)]=n[e]:o[e]=n[e];return o}function B(e){if(!e||"string"!=typeof e)return;const t=e.indexOf(":");if(-1!==t&&t>0){const n=e.substring(0,t);if("xmlns"!==n)return n}}class W{constructor(e){var t;if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>rt(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>rt(t,16,"&#x")}},this.addExternalEntities=Y,this.parseXml=J,this.parseTextData=z,this.resolveNameSpace=X,this.buildAttributesMap=Z,this.isItStopNode=tt,this.replaceEntitiesValue=Q,this.readStopNodeData=nt,this.saveTextToParentTag=H,this.addChild=K,this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.matcher=new G,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new R(t)):t instanceof R&&this.stopNodeExpressions.push(t)}}}}function Y(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n],i=o.replace(/[.\-+*:]/g,"\\.");this.lastEntities[o]={regex:new RegExp("&"+i+";","g"),val:e[o]}}}function z(e,t,n,o,i,a,d){if(void 0!==e&&(this.options.trimValues&&!o&&(e=e.trim()),e.length>0)){d||(e=this.replaceEntitiesValue(e,t,n));const o=this.options.jPath?n.toString():n,f=this.options.tagValueProcessor(t,e,o,i,a);return null==f?e:typeof f!=typeof e||f!==e?f:this.options.trimValues||e.trim()===e?st(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function X(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const ee=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function Z(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const o=s(e,ee),i=o.length,a={},d={};for(let e=0;e<i;e++){const t=this.resolveNameSpace(o[e][1]),i=o[e][4];if(t.length&&void 0!==i){let e=i;this.options.trimValues&&(e=e.trim()),e=this.replaceEntitiesValue(e,n,this.readonlyMatcher),d[t]=e}}Object.keys(d).length>0&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(d);for(let e=0;e<i;e++){const i=this.resolveNameSpace(o[e][1]),d=this.options.jPath?t.toString():this.readonlyMatcher;if(this.ignoreAttributesFn(i,d))continue;let f=o[e][4],m=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(m=this.options.transformAttributeName(m)),m=at(m,this.options),void 0!==f){this.options.trimValues&&(f=f.trim()),f=this.replaceEntitiesValue(f,n,this.readonlyMatcher);const e=this.options.jPath?t.toString():this.readonlyMatcher,o=this.options.attributeValueProcessor(i,f,e);a[m]=null==o?f:typeof o!=typeof f||o!==f?o:st(f,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[m]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=a,e}return a}}const J=function(e){e=e.replace(/\r\n?/g,"\n");const t=new $("!xml");let n=t,o="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const i=new I(this.options.processEntities);for(let a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){const t=et(e,">",a,"Closing Tag is not closed.");let i=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}i=ot(this.options.transformTagName,i,"",this.options).tagName,n&&(o=this.saveTextToParentTag(o,n,this.readonlyMatcher));const d=this.matcher.getCurrentTag();if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: </${i}>`);d&&-1!==this.options.unpairedTags.indexOf(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),o="",a=t}else if("?"===e[a+1]){let t=it(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,this.readonlyMatcher),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new $(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)),this.addChild(n,e,this.readonlyMatcher,a)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){const t=et(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const i=e.substring(a+4,t-2);o=this.saveTextToParentTag(o,n,this.readonlyMatcher),n.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=t}else if("!D"===e.substr(a+1,2)){const t=i.readDocType(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){const t=et(e,"]]>",a,"CDATA is not closed.")-2,i=e.substring(a+9,t);o=this.saveTextToParentTag(o,n,this.readonlyMatcher);let d=this.parseTextData(i,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==d&&(d=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):n.add(this.options.textNodeName,d),a=t+2}else{let i=it(e,a,this.options.removeNSPrefix);if(!i){const t=e.substring(Math.max(0,a-50),Math.min(e.length,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${t}"`)}let d=i.tagName;const f=i.rawTagName;let m=i.tagExp,h=i.attrExpPresent,C=i.closeIndex;if(({tagName:d,tagExp:m}=ot(this.options.transformTagName,d,m,this.options)),this.options.strictReservedNames&&(d===this.options.commentPropName||d===this.options.cdataPropName||d===this.options.textNodeName||d===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,this.readonlyMatcher,!1));const P=n;P&&-1!==this.options.unpairedTags.indexOf(P.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let D=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(D=!0,"/"===d[d.length-1]?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let k,L=null,F={};k=B(f),d!==t.tagname&&this.matcher.push(d,{},k),d!==m&&h&&(L=this.buildAttributesMap(m,this.matcher,d),L&&(F=U(L,this.options))),d!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));const q=a;if(this.isCurrentNodeStopNode){let t="";if(D)a=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(d))a=i.closeIndex;else{const n=this.readStopNodeData(e,f,C+1);if(!n)throw new Error(`Unexpected end of ${f}`);a=n.i,t=n.tagContent}const o=new $(d);L&&(o[":@"]=L),o.add(this.options.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,o,this.readonlyMatcher,q)}else{if(D){({tagName:d,tagExp:m}=ot(this.options.transformTagName,d,m,this.options));const e=new $(d);L&&(e[":@"]=L),this.addChild(n,e,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(-1!==this.options.unpairedTags.indexOf(d)){const e=new $(d);L&&(e[":@"]=L),this.addChild(n,e,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=i.closeIndex;continue}{const e=new $(d);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),L&&(e[":@"]=L),this.addChild(n,e,this.readonlyMatcher,q),n=e}}o="",a=C}}else o+=e[a];return t.child};function K(e,t,n,o){this.options.captureMetaData||(o=void 0);const i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[":@"]);!1===a||("string"==typeof a?(t.tagname=a,e.addChild(t,o)):e.addChild(t,o))}function Q(e,t,n){const o=this.options.processEntities;if(!o||!o.enabled)return e;if(o.allowedTags){const i=this.options.jPath?n.toString():n;if(!(Array.isArray(o.allowedTags)?o.allowedTags.includes(t):o.allowedTags(t,i)))return e}if(o.tagFilter){const i=this.options.jPath?n.toString():n;if(!o.tagFilter(t,i))return e}for(const t of Object.keys(this.docTypeEntities)){const n=this.docTypeEntities[t],i=e.match(n.regx);if(i){if(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),o.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>o.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${o.maxExpandedLength}`)}}for(const t of Object.keys(this.lastEntities)){const n=this.lastEntities[t],i=e.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(const t of Object.keys(this.htmlEntities)){const n=this.htmlEntities[t],i=e.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)}function H(e,t,n,o){return e&&(void 0===o&&(o=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function tt(e,t){if(!e||0===e.length)return!1;for(let n=0;n<e.length;n++)if(t.matches(e[n]))return!0;return!1}function et(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i+t.length-1}function it(e,t,n,o=">"){const i=function(e,t,n=">"){let o,i="";for(let a=t;a<e.length;a++){let t=e[a];if(o)t===o&&(o="");else if('"'===t||"'"===t)o=t;else if(t===n[0]){if(!n[1])return{data:i,index:a};if(e[a+1]===n[1])return{data:i,index:a}}else"\t"===t&&(t=" ");i+=t}}(e,t+1,o);if(!i)return;let a=i.data;const d=i.index,f=a.search(/\s/);let m=a,h=!0;-1!==f&&(m=a.substring(0,f),a=a.substring(f+1).trimStart());const C=m;if(n){const e=m.indexOf(":");-1!==e&&(m=m.substr(e+1),h=m!==i.data.substr(e+1))}return{tagName:m,tagExp:a,closeIndex:d,attrExpPresent:h,rawTagName:C}}function nt(e,t,n){const o=n;let i=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const a=et(e,">",n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,0===i))return{tagContent:e.substring(o,n),i:a};n=a}else if("?"===e[n+1])n=et(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=et(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=et(e,"]]>",n,"StopNode is not closed.")-2;else{const o=it(e,n,">");o&&((o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&i++,n=o.closeIndex)}}function st(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},F,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&k.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(isFinite(n)){if(n.includes("e")||n.includes("E"))return function(e,t,n){if(!n.eNotation)return e;const o=t.match(q);if(o){let i=o[1]||"";const a=-1===o[3].indexOf("e")?"E":"e",d=o[2],f=i?e[d.length+1]===a:e[d.length]===a;return d.length>1&&f?e:(1!==d.length||!o[3].startsWith(`.${a}`)&&o[3][0]!==a)&&d.length>0?n.leadingZeros&&!f?(t=(o[1]||"")+o[3],Number(t)):e:Number(t)}return e}(e,n,t);{const i=L.exec(n);if(i){const a=i[1]||"",d=i[2];let f=(o=i[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substring(0,o.length-1)),o):o;const m=a?"."===e[d.length+1]:"."===e[d.length];if(!t.leadingZeros&&(d.length>1||1===d.length&&!m))return e;{const o=Number(n),i=String(o);if(0===o)return o;if(-1!==i.search(/[eE]/))return t.eNotation?o:e;if(-1!==n.indexOf("."))return"0"===i||i===f||i===`${a}${f}`?o:e;let m=d?f:n;return d?m===i||a+m===i?o:e:m===i||m===a+i?o:e}}return e}}var o;return function(e,t,n){const o=t===1/0;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return o?"Infinity":"-Infinity";default:return e}}(e,Number(n),t)}(e,n)}return void 0!==e?e:""}function rt(e,t,n){const o=Number.parseInt(e,t);return o>=0&&o<=1114111?String.fromCodePoint(o):n+e+";"}function ot(e,t,n,o){if(e){const o=e(t);n===t&&(n=o),t=o}return{tagName:t=at(t,o),tagExp:n}}function at(e,t){if(d.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(e)?t.onDangerousProperty(e):e}const te=$.getMetaDataSymbol();function lt(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;const n={};for(const o in e)o.startsWith(t)?n[o.substring(t.length)]=e[o]:n[o]=e[o];return n}function pt(e,t,n,o){return ut(e,t,n,o)}function ut(e,t,n,o){let i;const a={};for(let d=0;d<e.length;d++){const f=e[d],m=ct(f);if(void 0!==m&&m!==t.textNodeName){const e=lt(f[":@"]||{},t.attributeNamePrefix);n.push(m,e)}if(m===t.textNodeName)void 0===i?i=f[m]:i+=""+f[m];else{if(void 0===m)continue;if(f[m]){let e=ut(f[m],t,n,o);const i=ft(e,t);if(f[":@"]?dt(e,f[":@"],o,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==f[te]&&"object"==typeof e&&null!==e&&(e[te]=f[te]),void 0!==a[m]&&Object.prototype.hasOwnProperty.call(a,m))Array.isArray(a[m])||(a[m]=[a[m]]),a[m].push(e);else{const n=t.jPath?o.toString():o;t.isArray(m,n,i)?a[m]=[e]:a[m]=e}void 0!==m&&m!==t.textNodeName&&n.pop()}}}return"string"==typeof i?i.length>0&&(a[t.textNodeName]=i):void 0!==i&&(a[t.textNodeName]=i),a}function ct(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function dt(e,t,n,o){if(t){const i=Object.keys(t),a=i.length;for(let d=0;d<a;d++){const a=i[d],f=a.startsWith(o.attributeNamePrefix)?a.substring(o.attributeNamePrefix.length):a,m=o.jPath?n.toString()+"."+f:n;o.isArray(a,m,!0,!0)?e[a]=[t[a]]:e[a]=t[a]}}}function ft(e,t){const{textNodeName:n}=t,o=Object.keys(e).length;return 0===o||!(1!==o||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class gt{constructor(e){this.externalEntities={},this.options=O(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=l(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new W(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:pt(o,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return $.getMetaDataSymbol()}}function mt(e,t){let n="";t.format&&t.indentBy.length>0&&(n="\n");const o=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){const n=t.stopNodes[e];"string"==typeof n?o.push(new R(n)):n instanceof R&&o.push(n)}return xt(e,t,n,new G,o)}function xt(e,t,n,o,i){let a="",d=!1;if(t.maxNestedTags&&o.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let n=e.toString();return n=Tt(n,t),n}return""}for(let f=0;f<e.length;f++){const m=e[f],h=yt(m);if(void 0===h)continue;const C=Nt(m[":@"],t);o.push(h,C);const P=vt(o,i);if(h===t.textNodeName){let e=m[h];P||(e=t.tagValueProcessor(h,e),e=Tt(e,t)),d&&(a+=n),a+=e,d=!1,o.pop();continue}if(h===t.cdataPropName){d&&(a+=n),a+=`<![CDATA[${m[h][0][t.textNodeName]}]]>`,d=!1,o.pop();continue}if(h===t.commentPropName){a+=n+`\x3c!--${m[h][0][t.textNodeName]}--\x3e`,d=!0,o.pop();continue}if("?"===h[0]){const e=wt(m[":@"],t,P),i="?xml"===h?"":n;let f=m[h][0][t.textNodeName];f=0!==f.length?" "+f:"",a+=i+`<${h}${f}${e}?>`,d=!0,o.pop();continue}let D=n;""!==D&&(D+=t.indentBy);const k=n+`<${h}${wt(m[":@"],t,P)}`;let L;L=P?bt(m[h],t):xt(m[h],t,D,o,i),-1!==t.unpairedTags.indexOf(h)?t.suppressUnpairedNode?a+=k+">":a+=k+"/>":L&&0!==L.length||!t.suppressEmptyNode?L&&L.endsWith(">")?a+=k+`>${L}${n}</${h}>`:(a+=k+">",L&&""!==n&&(L.includes("/>")||L.includes("</"))?a+=n+t.indentBy+L+n:a+=L,a+=`</${h}>`):a+=k+"/>",d=!0,o.pop()}return a}function Nt(e,t){if(!e||t.ignoreAttributes)return null;const n={};let o=!1;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i]=e[i],o=!0);return o?n:null}function bt(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let n="";for(let o=0;o<e.length;o++){const i=e[o],a=yt(i);if(a===t.textNodeName)n+=i[a];else if(a===t.cdataPropName)n+=i[a][0][t.textNodeName];else if(a===t.commentPropName)n+=i[a][0][t.textNodeName];else{if(a&&"?"===a[0])continue;if(a){const e=Et(i[":@"],t),o=bt(i[a],t);o&&0!==o.length?n+=`<${a}${e}>${o}</${a}>`:n+=`<${a}${e}/>`}}}return n}function Et(e,t){let n="";if(e&&!t.ignoreAttributes)for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let i=e[o];!0===i&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function yt(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(Object.prototype.hasOwnProperty.call(e,o)&&":@"!==o)return o}}function wt(e,t,n){let o="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a;n?a=e[i]:(a=t.attributeValueProcessor(i,e[i]),a=Tt(a,t)),!0===a&&t.suppressBooleanAttributes?o+=` ${i.substr(t.attributeNamePrefix.length)}`:o+=` ${i.substr(t.attributeNamePrefix.length)}="${a}"`}return o}function vt(e,t){if(!t||0===t.length)return!1;for(let n=0;n<t.length;n++)if(e.matches(t[n]))return!0;return!1}function Tt(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}return e}const ne={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function St(e){if(this.options=Object.assign({},ne,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new R(t)):t instanceof R&&this.stopNodeExpressions.push(t)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ct),this.processTextOrObjNode=At,this.options.format?(this.indentate=Ot,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function At(e,t,n,o){const i=this.extractAttributes(e);if(o.push(t,i),this.checkStopNode(o)){const i=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);return o.pop(),this.buildObjectNode(i,t,a,n)}const a=this.j2x(e,n+1,o);return o.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,a.attrStr,n,o):this.buildObjectNode(a.val,t,a.attrStr,n)}function Ot(e){return this.options.indentBy.repeat(e)}function Ct(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}St.prototype.build=function(e){if(this.options.preserveOrder)return mt(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new G;return this.j2x(e,0,t).val}},St.prototype.j2x=function(e,t,n){let o="",i="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const a=this.options.jPath?n.toString():n,d=this.checkStopNode(n);for(let f in e)if(Object.prototype.hasOwnProperty.call(e,f))if(void 0===e[f])this.isAttribute(f)&&(i+="");else if(null===e[f])this.isAttribute(f)||f===this.options.cdataPropName?i+="":"?"===f[0]?i+=this.indentate(t)+"<"+f+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+f+"/"+this.tagEndChar;else if(e[f]instanceof Date)i+=this.buildTextValNode(e[f],f,"",t,n);else if("object"!=typeof e[f]){const m=this.isAttribute(f);if(m&&!this.ignoreAttributesFn(m,a))o+=this.buildAttrPairStr(m,""+e[f],d);else if(!m)if(f===this.options.textNodeName){let t=this.options.tagValueProcessor(f,""+e[f]);i+=this.replaceEntitiesValue(t)}else{n.push(f);const o=this.checkStopNode(n);if(n.pop(),o){const n=""+e[f];i+=""===n?this.indentate(t)+"<"+f+this.closeTag(f)+this.tagEndChar:this.indentate(t)+"<"+f+">"+n+"</"+f+this.tagEndChar}else i+=this.buildTextValNode(e[f],f,"",t,n)}}else if(Array.isArray(e[f])){const o=e[f].length;let a="",d="";for(let m=0;m<o;m++){const o=e[f][m];if(void 0===o);else if(null===o)"?"===f[0]?i+=this.indentate(t)+"<"+f+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+f+"/"+this.tagEndChar;else if("object"==typeof o)if(this.options.oneListGroup){n.push(f);const e=this.j2x(o,t+1,n);n.pop(),a+=e.val,this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)&&(d+=e.attrStr)}else a+=this.processTextOrObjNode(o,f,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(f,o);e=this.replaceEntitiesValue(e),a+=e}else{n.push(f);const e=this.checkStopNode(n);if(n.pop(),e){const e=""+o;a+=""===e?this.indentate(t)+"<"+f+this.closeTag(f)+this.tagEndChar:this.indentate(t)+"<"+f+">"+e+"</"+f+this.tagEndChar}else a+=this.buildTextValNode(o,f,"",t,n)}}this.options.oneListGroup&&(a=this.buildObjectNode(a,f,d,t)),i+=a}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const t=Object.keys(e[f]),n=t.length;for(let i=0;i<n;i++)o+=this.buildAttrPairStr(t[i],""+e[f][t[i]],d)}else i+=this.processTextOrObjNode(e[f],f,t,n);return{attrStr:o,val:i}},St.prototype.buildAttrPairStr=function(e,t,n){return n||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},St.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let n=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const o=e[this.options.attributesGroupName];for(let e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=o[e],n=!0)}else for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=this.isAttribute(o);i&&(t[i]=e[o],n=!0)}return n?t:null},St.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(this.isAttribute(n))continue;if(this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;const o=e[n];if(n===this.options.textNodeName)t+=o;else if(Array.isArray(o)){for(let e of o)if("string"==typeof e||"number"==typeof e)t+=`<${n}>${e}</${n}>`;else if("object"==typeof e&&null!==e){const o=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);t+=""===o?`<${n}${i}/>`:`<${n}${i}>${o}</${n}>`}}else if("object"==typeof o&&null!==o){const e=this.buildRawContent(o),i=this.buildAttributesForStopNode(o);t+=""===e?`<${n}${i}/>`:`<${n}${i}>${e}</${n}>`}else t+=`<${n}>${o}</${n}>`}return t},St.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const o=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];!0===i&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+i+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const o=this.isAttribute(n);if(o){const i=e[n];!0===i&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+i+'"'}}return t},St.prototype.buildObjectNode=function(e,t,n,o){if(""===e)return"?"===t[0]?this.indentate(o)+"<"+t+n+"?"+this.tagEndChar:this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let i="</"+t+this.tagEndChar,a="";return"?"===t[0]&&(a="?",i=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===a.length?this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(o)+"<"+t+n+a+this.tagEndChar+e+this.indentate(o)+i:this.indentate(o)+"<"+t+n+a+">"+e+i}},St.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},St.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},St.prototype.buildTextValNode=function(e,t,n,o,i){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+i+"</"+t+this.tagEndChar}},St.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const re=St,oe={validate:l};e.exports=n})()},3320:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/client-ssm","description":"AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native","version":"3.1019.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ssm","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ssm","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.25","@aws-sdk/credential-provider-node":"^3.972.27","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.9","@aws-sdk/middleware-user-agent":"^3.972.26","@aws-sdk/region-config-resolver":"^3.972.10","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.12","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.12","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.27","@smithy/middleware-retry":"^4.4.44","@smithy/middleware-serde":"^4.2.15","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.0","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.7","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.43","@smithy/util-defaults-mode-node":"^4.2.47","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@smithy/util-utf8":"^4.2.2","@smithy/util-waiter":"^4.2.13","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ssm"}}')},5368:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.996.16","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.25","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.9","@aws-sdk/middleware-user-agent":"^3.972.26","@aws-sdk/region-config-resolver":"^3.972.10","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.12","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.12","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.27","@smithy/middleware-retry":"^4.4.44","@smithy/middleware-serde":"^4.2.15","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.0","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.7","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.43","@smithy/util-defaults-mode-node":"^4.2.47","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@smithy/util-utf8":"^4.2.2","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}')},9886:e=>{e.exports=JSON.parse('{"name":"dotenv","version":"17.3.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var n={};function __nccwpck_require__(e){var o=n[e];if(o!==undefined){return o.exports}var i=n[e]={exports:{}};var a=true;try{t[e].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete n[e]}return i.exports}__nccwpck_require__.m=t;(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(n,o){if(o&1)n=this(n);if(o&8)return n;if(typeof n==="object"&&n){if(o&4&&n.__esModule)return n;if(o&16&&typeof n.then==="function")return n}var i=Object.create(null);__nccwpck_require__.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var d=o&2&&n;typeof d=="object"&&!~t.indexOf(d);d=e(d)){Object.getOwnPropertyNames(d).forEach((e=>a[e]=()=>n[e]))}a["default"]=()=>n;__nccwpck_require__.d(i,a);return i}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var n in t){if(__nccwpck_require__.o(t,n)&&!__nccwpck_require__.o(e,n)){Object.defineProperty(e,n,{enumerable:true,get:t[n]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((t,n)=>{__nccwpck_require__.f[n](e,t);return t}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";(()=>{var e={792:0};var installChunk=t=>{var{ids:n,modules:o,runtime:i}=t;var a,d,f=0;for(a in o){if(__nccwpck_require__.o(o,a)){__nccwpck_require__.m[a]=o[a]}}if(i)i(__nccwpck_require__);for(;f<n.length;f++){d=n[f];if(__nccwpck_require__.o(e,d)&&e[d]){e[d][0]()}e[n[f]]=0}};__nccwpck_require__.f.j=(t,n)=>{var o=__nccwpck_require__.o(e,t)?e[t]:undefined;if(o!==0){if(o){n.push(o[1])}else{if(true){var i=import("./"+__nccwpck_require__.u(t)).then(installChunk,(n=>{if(e[t]!==0)e[t]=undefined;throw n}));var i=Promise.race([i,new Promise((n=>o=e[t]=[n]))]);n.push(o[1]=i)}}}}})();var o={};var i=__nccwpck_require__(4539);var a;(function(e){e["PUSH_SINGLE"]="PUSH_SINGLE";e["PUSH_ENV_TO_SECRETS"]="PUSH_ENV_TO_SECRETS";e["PULL_SECRETS_TO_ENV"]="PULL_SECRETS_TO_ENV"})(a||(a={}));class DispatchActionCommand{constructor(e,t,n,o,i,d,f=a.PULL_SECRETS_TO_ENV){this.map=e;this.envfile=t;this.key=n;this.value=o;this.secretPath=i;this.profile=d;this.mode=f}static fromCliOptions(e){const t=DispatchActionCommand.determineOperationMode(e);return new DispatchActionCommand(e.map,e.envfile,e.key,e.value,e.secretPath,e.profile,t)}static determineOperationMode(e){if(e.key&&e.value&&e.secretPath){return a.PUSH_SINGLE}if(e.push){return a.PUSH_ENV_TO_SECRETS}return a.PULL_SECRETS_TO_ENV}}function isPromise(e){const t=typeof e==="object"&&e!==null||typeof e==="function";return t&&typeof e.then==="function"}function stringifyServiceIdentifier(e){switch(typeof e){case"string":case"symbol":return e.toString();case"function":return e.name;default:throw new Error(`Unexpected ${typeof e} service id type`)}}const d=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");class LazyServiceIdentifier{[d];#e;constructor(e){this.#e=e;this[d]=true}static is(e){return typeof e==="object"&&e!==null&&e[d]===true}unwrap(){return this.#e()}}var f=__nccwpck_require__(2535);const m="@inversifyjs/container/bindingId";function getContainerModuleId_getContainerModuleId(){const e=getOwnReflectMetadata(Object,m)??0;if(e===Number.MAX_SAFE_INTEGER){setReflectMetadata(Object,m,Number.MIN_SAFE_INTEGER)}else{updateOwnReflectMetadata(Object,m,(()=>e),(e=>e+1))}return e}class ContainerModule{#t;#n;constructor(e){this.#t=getContainerModuleId();this.#n=e}get id(){return this.#t}load(e){return this.#n(e)}}function getOwnReflectMetadata_getOwnReflectMetadata(e,t,n){return Reflect.getOwnMetadata(t,e,n)}function setReflectMetadata_setReflectMetadata(e,t,n,o){Reflect.defineMetadata(t,n,e,o)}function updateOwnReflectMetadata_updateOwnReflectMetadata(e,t,n,o,i){const a=getOwnReflectMetadata_getOwnReflectMetadata(e,t,i)??n();const d=o(a);Reflect.defineMetadata(t,d,e,i)}const h="@inversifyjs/container/bindingId";function getBindingId(){const e=getOwnReflectMetadata_getOwnReflectMetadata(Object,h)??0;if(e===Number.MAX_SAFE_INTEGER){setReflectMetadata_setReflectMetadata(Object,h,Number.MIN_SAFE_INTEGER)}else{updateOwnReflectMetadata_updateOwnReflectMetadata(Object,h,(()=>e),(e=>e+1))}return e}const C={Request:"Request",Singleton:"Singleton",Transient:"Transient"};const P={ConstantValue:"ConstantValue",DynamicValue:"DynamicValue",Factory:"Factory",Instance:"Instance",ResolvedValue:"ResolvedValue",ServiceRedirection:"ServiceRedirection"};function*chain(...e){for(const t of e){yield*t}}const D=-1;class OneToManyMapStar{#r;#o;#i;constructor(e){this.#r=new Map;this.#o={};for(const t of Reflect.ownKeys(e)){this.#o[t]=new Map}this.#i=e}add(e,t){this.#s(e).push(t);for(const n of Reflect.ownKeys(t)){this.#a(n,t[n]).push(e)}}clone(){const e=this.#c();const t=this.#l();const n=Reflect.ownKeys(this.#i);const o=this._buildNewInstance(this.#i);this.#u(this.#r,o.#r,e,t);for(const t of n){this.#d(this.#o[t],o.#o[t],e)}return o}get(e,t){return this.#o[e].get(t)}getAllKeys(e){return this.#o[e].keys()}removeByRelation(e,t){const n=this.get(e,t);if(n===undefined){return}const o=new Set(n);for(const n of o){const o=this.#r.get(n);if(o===undefined){throw new Error("Expecting model relation, none found")}for(const i of o){if(i[e]===t){this.#p(n,i)}}this.#r.delete(n)}}_buildNewInstance(e){return new OneToManyMapStar(e)}_cloneModel(e){return e}_cloneRelation(e){return e}#c(){const e=new Map;for(const t of this.#r.keys()){const n=this._cloneModel(t);e.set(t,n)}return e}#l(){const e=new Map;for(const t of this.#r.values()){for(const n of t){const t=this._cloneRelation(n);e.set(n,t)}}return e}#s(e){let t=this.#r.get(e);if(t===undefined){t=[];this.#r.set(e,t)}return t}#a(e,t){let n=this.#o[e].get(t);if(n===undefined){n=[];this.#o[e].set(t,n)}return n}#f(e,t){const n=t.get(e);if(n===undefined){throw new Error("Expecting model to be cloned, none found")}return n}#m(e,t){const n=t.get(e);if(n===undefined){throw new Error("Expecting relation to be cloned, none found")}return n}#d(e,t,n){for(const[o,i]of e){const e=new Array;for(const t of i){e.push(this.#f(t,n))}t.set(o,e)}}#u(e,t,n,o){for(const[i,a]of e){const e=new Array;for(const t of a){e.push(this.#m(t,o))}t.set(this.#f(i,n),e)}}#p(e,t){for(const n of Reflect.ownKeys(t)){this.#h(e,n,t[n])}}#h(e,t,n){const o=this.#o[t].get(n);if(o!==undefined){const i=o.indexOf(e);if(i!==D){o.splice(i,1)}if(o.length===0){this.#o[t].delete(n)}}}}var k;(function(e){e["moduleId"]="moduleId";e["serviceId"]="serviceId"})(k||(k={}));class ActivationsService{#g;#y;constructor(e,t){this.#g=t??new OneToManyMapStar({moduleId:{isOptional:true},serviceId:{isOptional:false}});this.#y=e}static build(e){return new ActivationsService(e)}add(e,t){this.#g.add(e,t)}clone(){const e=new ActivationsService(this.#y,this.#g.clone());return e}get(e){const t=[];const n=this.#g.get(k.serviceId,e);if(n!==undefined){t.push(n)}const o=this.#y()?.get(e);if(o!==undefined){t.push(o)}if(t.length===0){return undefined}return chain(...t)}removeAllByModuleId(e){this.#g.removeByRelation(k.moduleId,e)}removeAllByServiceId(e){this.#g.removeByRelation(k.serviceId,e)}}const L="@inversifyjs/core/classMetadataReflectKey";function getDefaultClassMetadata_getDefaultClassMetadata(){return{constructorArguments:[],lifecycle:{postConstructMethodNames:new Set,preDestroyMethodNames:new Set},properties:new Map,scope:undefined}}const F="@inversifyjs/core/pendingClassMetadataCountReflectKey";function isPendingClassMetadata(e){const t=getOwnReflectMetadata_getOwnReflectMetadata(e,F);return t!==undefined&&t!==0}const q=Symbol.for("@inversifyjs/core/InversifyCoreError");class InversifyCoreError_InversifyCoreError extends Error{[q];kind;constructor(e,t,n){super(t,n);this[q]=true;this.kind=e}static is(e){return typeof e==="object"&&e!==null&&e[q]===true}static isErrorOfKind(e,t){return InversifyCoreError_InversifyCoreError.is(e)&&e.kind===t}}var V;(function(e){e[e["injectionDecoratorConflict"]=0]="injectionDecoratorConflict";e[e["missingInjectionDecorator"]=1]="missingInjectionDecorator";e[e["planning"]=2]="planning";e[e["planningMaxDepthExceeded"]=3]="planningMaxDepthExceeded";e[e["resolution"]=4]="resolution";e[e["unknown"]=5]="unknown"})(V||(V={}));var ee;(function(e){e[e["unknown"]=32]="unknown"})(ee||(ee={}));function throwAtInvalidClassMetadata(e,t){const n=[];for(let o=0;o<t.constructorArguments.length;++o){const i=t.constructorArguments[o];if(i===undefined||i.kind===ee.unknown){n.push(` - Missing or incomplete metadata for type "${e.name}" at constructor argument with index ${o.toString()}.\nEvery constructor parameter must be decorated either with @inject, @multiInject or @unmanaged decorator.`)}}for(const[o,i]of t.properties){if(i.kind===ee.unknown){n.push(` - Missing or incomplete metadata for type "${e.name}" at property "${o.toString()}".\nThis property must be decorated either with @inject or @multiInject decorator.`)}}if(n.length===0){throw new InversifyCoreError_InversifyCoreError(V.unknown,`Unexpected class metadata for type "${e.name}" with uncompletion traces.\nThis might be caused by one of the following reasons:\n\n1. A third party library is targeting inversify reflection metadata.\n2. A bug is causing the issue. Consider submiting an issue to fix it.`)}throw new InversifyCoreError_InversifyCoreError(V.missingInjectionDecorator,`Invalid class metadata at type ${e.name}:\n\n${n.join("\n\n")}`)}function validateConstructorMetadataArray(e,t){const n=[];if(t.length<e.length){throw new InversifyCoreError_InversifyCoreError(V.missingInjectionDecorator,`Found unexpected missing metadata on type "${e.name}". "${e.name}" constructor requires at least ${e.length.toString()} arguments, found ${t.length.toString()} instead.\nAre you using @inject, @multiInject or @unmanaged decorators in every non optional constructor argument?\n\nIf you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)}for(let e=0;e<t.length;++e){const o=t[e];if(o===undefined){n.push(e)}}if(n.length>0){throw new InversifyCoreError_InversifyCoreError(V.missingInjectionDecorator,`Found unexpected missing metadata on type "${e.name}" at constructor indexes "${n.join('", "')}".\n\nAre you using @inject, @multiInject or @unmanaged decorators at those indexes?\n\nIf you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)}}function getClassMetadata_getClassMetadata(e){const t=getOwnReflectMetadata_getOwnReflectMetadata(e,L)??getDefaultClassMetadata_getDefaultClassMetadata();if(isPendingClassMetadata(e)){throwAtInvalidClassMetadata(e,t)}else{validateConstructorMetadataArray(e,t.constructorArguments);return t}}function buildInstanceBinding(e,t){const n=getClassMetadata_getClassMetadata(t);const o=n.scope??e.scope;return{cache:{isRight:false,value:undefined},id:getBindingId(),implementationType:t,isSatisfiedBy:()=>true,moduleId:undefined,onActivation:undefined,onDeactivation:undefined,scope:o,serviceIdentifier:t,type:P.Instance}}function cloneBindingCache(e){if(e.isRight){return{isRight:true,value:e.value}}return e}function cloneConstantValueBinding(e){return{cache:cloneBindingCache(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type,value:e.value}}function cloneDynamicValueBinding(e){return{cache:cloneBindingCache(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type,value:e.value}}function cloneFactoryBinding(e){return{cache:cloneBindingCache(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}}function cloneInstanceBinding(e){return{cache:cloneBindingCache(e.cache),id:e.id,implementationType:e.implementationType,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}}function cloneResolvedValueBinding(e){return{cache:cloneBindingCache(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,metadata:e.metadata,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}}function cloneServiceRedirectionBinding(e){return{id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,serviceIdentifier:e.serviceIdentifier,targetServiceIdentifier:e.targetServiceIdentifier,type:e.type}}function cloneBinding(e){switch(e.type){case P.ConstantValue:return cloneConstantValueBinding(e);case P.DynamicValue:return cloneDynamicValueBinding(e);case P.Factory:return cloneFactoryBinding(e);case P.Instance:return cloneInstanceBinding(e);case P.ResolvedValue:return cloneResolvedValueBinding(e);case P.ServiceRedirection:return cloneServiceRedirectionBinding(e)}}var te;(function(e){e["id"]="id";e["moduleId"]="moduleId";e["serviceId"]="serviceId"})(te||(te={}));class OneToManyBindingMapStar extends OneToManyMapStar{_buildNewInstance(e){return new OneToManyBindingMapStar(e)}_cloneModel(e){return cloneBinding(e)}}class BindingService{#S;#E;#y;constructor(e,t,n){this.#E=n??new OneToManyBindingMapStar({id:{isOptional:false},moduleId:{isOptional:true},serviceId:{isOptional:false}});this.#y=e;this.#S=t}static build(e,t){return new BindingService(e,t)}clone(){const e=new BindingService(this.#y,this.#S,this.#E.clone());return e}get(e){const t=this.getNonParentBindings(e)??this.#y()?.get(e);if(t!==undefined){return t}const n=this.#v(e);return n===undefined?n:[n]}*getChained(e){const t=this.getNonParentBindings(e);if(t!==undefined){yield*t}const n=this.#y();if(n===undefined){if(t===undefined){const t=this.#v(e);if(t!==undefined){yield t}}}else{yield*n.getChained(e)}}getBoundServices(){const e=new Set(this.#E.getAllKeys(te.serviceId));const t=this.#y();if(t!==undefined){for(const n of t.getBoundServices()){e.add(n)}}return e}getById(e){return this.#E.get(te.id,e)??this.#y()?.getById(e)}getByModuleId(e){return this.#E.get(te.moduleId,e)??this.#y()?.getByModuleId(e)}getNonParentBindings(e){return this.#E.get(te.serviceId,e)}getNonParentBoundServices(){return this.#E.getAllKeys(te.serviceId)}removeById(e){this.#E.removeByRelation(te.id,e)}removeAllByModuleId(e){this.#E.removeByRelation(te.moduleId,e)}removeAllByServiceId(e){this.#E.removeByRelation(te.serviceId,e)}set(e){const t={[te.id]:e.id,[te.serviceId]:e.serviceIdentifier};if(e.moduleId!==undefined){t[te.moduleId]=e.moduleId}this.#E.add(e,t)}#v(e){if(this.#S===undefined||typeof e!=="function"){return undefined}const t=buildInstanceBinding(this.#S,e);this.set(t);return t}}var ne;(function(e){e["moduleId"]="moduleId";e["serviceId"]="serviceId"})(ne||(ne={}));class DeactivationsService{#C;#y;constructor(e,t){this.#C=t??new OneToManyMapStar({moduleId:{isOptional:true},serviceId:{isOptional:false}});this.#y=e}static build(e){return new DeactivationsService(e)}add(e,t){this.#C.add(e,t)}clone(){const e=new DeactivationsService(this.#y,this.#C.clone());return e}get(e){const t=[];const n=this.#C.get(ne.serviceId,e);if(n!==undefined){t.push(n)}const o=this.#y()?.get(e);if(o!==undefined){t.push(o)}if(t.length===0){return undefined}return chain(...t)}removeAllByModuleId(e){this.#C.removeByRelation(ne.moduleId,e)}removeAllByServiceId(e){this.#C.removeByRelation(ne.serviceId,e)}}function getDefaultPendingClassMetadataCount(){return 0}function decrementPendingClassMetadataCount_decrementPendingClassMetadataCount(e){return t=>{if(t!==undefined&&t.kind===ee.unknown){updateOwnReflectMetadata_updateOwnReflectMetadata(e,F,getDefaultPendingClassMetadataCount,(e=>e-1))}}}var re;(function(e){e[e["multipleInjection"]=0]="multipleInjection";e[e["singleInjection"]=1]="singleInjection";e[e["unmanaged"]=2]="unmanaged"})(re||(re={}));function buildClassElementMetadataFromMaybeClassElementMetadata(e,t){return(...n)=>o=>{if(o===undefined){return e(...n)}if(o.kind===re.unmanaged){throw new InversifyCoreError_InversifyCoreError(V.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}return t(o,...n)}}function buildDefaultManagedMetadata(e,t,n){if(e===re.multipleInjection){return{chained:n?.chained??false,kind:e,name:undefined,optional:false,tags:new Map,value:t}}else{return{kind:e,name:undefined,optional:false,tags:new Map,value:t}}}function assertMetadataFromTypescriptIfManaged(e){if(e.kind!==ee.unknown&&e.isFromTypescriptParamType!==true){throw new InversifyCoreError_InversifyCoreError(V.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}}function buildManagedMetadataFromMaybeManagedMetadata(e,t,n,o){assertMetadataFromTypescriptIfManaged(e);if(t===re.multipleInjection){return{...e,chained:o?.chained??false,kind:t,value:n}}else{return{...e,kind:t,value:n}}}const oe=buildClassElementMetadataFromMaybeClassElementMetadata(buildDefaultManagedMetadata,buildManagedMetadataFromMaybeManagedMetadata);function updateMaybeClassMetadataConstructorArgument(e,t){return n=>{const o=n.constructorArguments[t];n.constructorArguments[t]=e(o);return n}}function updateMaybeClassMetadataProperty(e,t){return n=>{const o=n.properties.get(t);n.properties.set(t,e(o));return n}}var ie;(function(e){e[e["method"]=0]="method";e[e["parameter"]=1]="parameter";e[e["property"]=2]="property"})(ie||(ie={}));function getDecoratorInfo(e,t,n){if(n===undefined){if(t===undefined){throw new InversifyCoreError_InversifyCoreError(V.unknown,"Unexpected undefined property and index values")}return{kind:ie.property,property:t,targetClass:e.constructor}}if(typeof n==="number"){return{index:n,kind:ie.parameter,targetClass:e}}return{kind:ie.method,method:t,targetClass:e}}function stringifyDecoratorInfo(e){switch(e.kind){case ie.method:return`[class: "${e.targetClass.name}", method: "${e.method.toString()}"]`;case ie.parameter:return`[class: "${e.targetClass.name}", index: "${e.index.toString()}"]`;case ie.property:return`[class: "${e.targetClass.name}", property: "${e.property.toString()}"]`}}function handleInjectionError_handleInjectionError(e,t,n,o){if(InversifyCoreError_InversifyCoreError.isErrorOfKind(o,V.injectionDecoratorConflict)){const i=getDecoratorInfo(e,t,n);throw new InversifyCoreError_InversifyCoreError(V.injectionDecoratorConflict,`Unexpected injection error.\n\nCause:\n\n${o.message}\n\nDetails\n\n${stringifyDecoratorInfo(i)}`,{cause:o})}throw o}function injectBase_injectBase(e,t){const decorator=(n,o,i)=>{try{if(i===undefined){injectProperty(e,t)(n,o)}else{if(typeof i==="number"){injectParameter(e,t)(n,o,i)}else{injectMethod(e,t)(n,o,i)}}}catch(e){handleInjectionError_handleInjectionError(n,o,i,e)}};return decorator}function buildComposedUpdateMetadata(e,t){return n=>{const o=t(n);return t=>{o(t);return e(t)}}}function injectMethod(e,t){const n=buildComposedUpdateMetadata(e,t);return(e,t,o)=>{if(isPropertySetter(o)){updateOwnReflectMetadata_updateOwnReflectMetadata(e.constructor,L,getDefaultClassMetadata_getDefaultClassMetadata,updateMaybeClassMetadataProperty(n(e),t))}else{throw new InversifyCoreError_InversifyCoreError(V.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.\nFound @inject decorator at method "${t.toString()}" at class "${e.constructor.name}"`)}}}function injectParameter(e,t){const n=buildComposedUpdateMetadata(e,t);return(e,t,o)=>{if(isConstructorParameter(e,t)){updateOwnReflectMetadata_updateOwnReflectMetadata(e,L,getDefaultClassMetadata_getDefaultClassMetadata,updateMaybeClassMetadataConstructorArgument(n(e),o))}else{throw new InversifyCoreError_InversifyCoreError(V.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.\nFound @inject decorator at method "${t?.toString()??""}" at class "${e.constructor.name}"`)}}}function injectProperty(e,t){const n=buildComposedUpdateMetadata(e,t);return(e,t)=>{updateOwnReflectMetadata_updateOwnReflectMetadata(e.constructor,L,getDefaultClassMetadata_getDefaultClassMetadata,updateMaybeClassMetadataProperty(n(e),t))}}function isConstructorParameter(e,t){return typeof e==="function"&&t===undefined}function isPropertySetter(e){return e.set!==undefined}function inject(e){const t=oe(re.singleInjection,e);return injectBase_injectBase(t,decrementPendingClassMetadataCount_decrementPendingClassMetadataCount)}const se="@inversifyjs/core/classIsInjectableFlagReflectKey";function setIsInjectableFlag(e){const t=getOwnReflectMetadata_getOwnReflectMetadata(e,se);if(t!==undefined){throw new InversifyCoreError_InversifyCoreError(V.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${e.name}"`)}setReflectMetadata_setReflectMetadata(e,se,true)}const ae="design:paramtypes";function buildClassElementMetadataFromTypescriptParameterType(e){return{isFromTypescriptParamType:true,kind:re.singleInjection,name:undefined,optional:false,tags:new Map,value:e}}const ce=[Array,BigInt,Boolean,Function,Number,Object,String];function isUserlandEmittedType(e){return!ce.includes(e)}function updateClassMetadataWithTypescriptParameterTypes(e){const t=getOwnReflectMetadata_getOwnReflectMetadata(e,ae);if(t!==undefined){updateOwnReflectMetadata_updateOwnReflectMetadata(e,L,getDefaultClassMetadata_getDefaultClassMetadata,updateMaybeClassMetadataWithTypescriptClassMetadata(t))}}function updateMaybeClassMetadataWithTypescriptClassMetadata(e){return t=>{e.forEach(((e,n)=>{if(t.constructorArguments[n]===undefined&&isUserlandEmittedType(e)){t.constructorArguments[n]=buildClassElementMetadataFromTypescriptParameterType(e)}}));return t}}function injectable(e){return t=>{setIsInjectableFlag(t);updateClassMetadataWithTypescriptParameterTypes(t);if(e!==undefined){updateOwnReflectMetadata_updateOwnReflectMetadata(t,L,getDefaultClassMetadata_getDefaultClassMetadata,(t=>({...t,scope:e})))}}}function injectFrom_injectFrom(e){const decorator=t=>{const n=getClassMetadata(e.type);updateOwnReflectMetadata(t,classMetadataReflectKey,getDefaultClassMetadata,composeUpdateReflectMetadataCallback(e,n))};return decorator}function composeUpdateReflectMetadataCallback(e,t){const callback=n=>({constructorArguments:getExtendedConstructorArguments(e,t,n),lifecycle:getExtendedLifecycle(e,t,n),properties:getExtendedProperties(e,t,n),scope:n.scope});return callback}function injectFromBase(e){return t=>{const n=getBaseType(t);if(n===undefined){throw new InversifyCoreError(InversifyCoreErrorKind.injectionDecoratorConflict,`Expected base type for type "${t.name}", none found.`)}injectFrom({...e,type:n})(t)}}function injectFromHierarchy(e){return t=>{const n=[];let o=getBaseType(t);while(o!==undefined&&o!==Object){const e=o;n.push(e);o=getBaseType(e)}n.reverse();for(const o of n){injectFrom({...e,type:o})(t)}}}function multiInject(e,t){const n=buildManagedMetadataFromMaybeClassElementMetadata(ClassElementMetadataKind.multipleInjection,e,t);return injectBase(n,decrementPendingClassMetadataCount)}function updateMetadataName_updateMetadataName(e){return t=>{if(t.name!==undefined){throw new InversifyCoreError(InversifyCoreErrorKind.injectionDecoratorConflict,"Unexpected duplicated named decorator")}t.name=e;return t}}function buildDefaultMaybeClassElementMetadata_buildDefaultMaybeClassElementMetadata(){return{kind:MaybeClassElementMetadataKind.unknown,name:undefined,optional:false,tags:new Map}}function buildMaybeClassElementMetadataFromMaybeClassElementMetadata_buildMaybeClassElementMetadataFromMaybeClassElementMetadata(e){return t=>{const n=t??buildDefaultMaybeClassElementMetadata();switch(n.kind){case ClassElementMetadataKind.unmanaged:throw new InversifyCoreError(InversifyCoreErrorKind.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");default:return e(n)}}}function named(e){const t=buildMaybeClassElementMetadataFromMaybeClassElementMetadata(updateMetadataName(e));return injectBase(t,incrementPendingClassMetadataCount)}function updateMetadataOptional_updateMetadataOptional(e){if(e.optional){throw new InversifyCoreError(InversifyCoreErrorKind.injectionDecoratorConflict,"Unexpected duplicated optional decorator")}e.optional=true;return e}function optional(){const e=buildMaybeClassElementMetadataFromMaybeClassElementMetadata(updateMetadataOptional);return injectBase(e,incrementPendingClassMetadataCount)}function updateMaybeClassMetadataPostConstructor_updateMaybeClassMetadataPostConstructor(e){return t=>{if(t.lifecycle.postConstructMethodNames.has(e)){throw new InversifyCoreError(InversifyCoreErrorKind.injectionDecoratorConflict,`Unexpected duplicated postConstruct method ${e.toString()}`)}t.lifecycle.postConstructMethodNames.add(e);return t}}function postConstruct(){return(e,t,n)=>{try{updateOwnReflectMetadata(e.constructor,classMetadataReflectKey,getDefaultClassMetadata,updateMaybeClassMetadataPostConstructor(t))}catch(n){handleInjectionError(e,t,undefined,n)}}}function updateMaybeClassMetadataPreDestroy_updateMaybeClassMetadataPreDestroy(e){return t=>{if(t.lifecycle.preDestroyMethodNames.has(e)){throw new InversifyCoreError(InversifyCoreErrorKind.injectionDecoratorConflict,`Unexpected duplicated preDestroy method ${e.toString()}`)}t.lifecycle.preDestroyMethodNames.add(e);return t}}function preDestroy(){return(e,t,n)=>{try{updateOwnReflectMetadata(e.constructor,classMetadataReflectKey,getDefaultClassMetadata,updateMaybeClassMetadataPreDestroy(t))}catch(n){handleInjectionError(e,t,undefined,n)}}}function updateMetadataTag_updateMetadataTag(e,t){return n=>{if(n.tags.has(e)){throw new InversifyCoreError(InversifyCoreErrorKind.injectionDecoratorConflict,"Unexpected duplicated tag decorator with existing tag")}n.tags.set(e,t);return n}}function tagged(e,t){const n=buildMaybeClassElementMetadataFromMaybeClassElementMetadata(updateMetadataTag(e,t));return injectBase(n,incrementPendingClassMetadataCount)}function buildDefaultUnmanagedMetadata(){return{kind:re.unmanaged}}function buildUnmanagedMetadataFromMaybeManagedMetadata(e){assertMetadataFromTypescriptIfManaged(e);if(hasManagedMetadata(e)){throw new InversifyCoreError_InversifyCoreError(V.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections")}return buildDefaultUnmanagedMetadata()}function hasManagedMetadata(e){return e.name!==undefined||e.optional||e.tags.size>0}const le=buildClassElementMetadataFromMaybeClassElementMetadata(buildDefaultUnmanagedMetadata,buildUnmanagedMetadataFromMaybeManagedMetadata);function unmanaged(){const e=buildUnmanagedMetadataFromMaybeClassElementMetadata();return injectBase(e,decrementPendingClassMetadataCount)}var ue;(function(e){e[e["multipleInjection"]=0]="multipleInjection";e[e["singleInjection"]=1]="singleInjection"})(ue||(ue={}));function buildGetPlanOptionsFromPlanParams(e){if(e.rootConstraints.isMultiple){return{chained:e.rootConstraints.chained,isMultiple:true,name:e.rootConstraints.name,optional:e.rootConstraints.isOptional??false,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag}}else{return{isMultiple:false,name:e.rootConstraints.name,optional:e.rootConstraints.isOptional??false,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag}}}const de=/stack space|call stack|too much recursion/i;const pe=/too much recursion/;function isStackOverflowError(e){try{if(!(e instanceof Error)){return false}return e instanceof RangeError&&de.test(e.message)||e.name==="InternalError"&&pe.test(e.message)}catch(e){return e instanceof SyntaxError&&e.message.includes("Stack overflow")}}function extractLikelyCircularDependency(e){const t=new Set;for(const n of e.servicesBranch){if(t.has(n)){return[...t,n]}t.add(n)}return[...t]}function handlePlanError(e,t){if(isStackOverflowError(t)||InversifyCoreError_InversifyCoreError.isErrorOfKind(t,V.planningMaxDepthExceeded)){const n=stringifyServiceIdentifierTrace(extractLikelyCircularDependency(e));throw new InversifyCoreError_InversifyCoreError(V.planning,`Circular dependency found: ${n}`,{cause:t})}throw t}function stringifyServiceIdentifierTrace(e){const t=[...e];if(t.length===0){return"(No dependency trace)"}return t.map(stringifyServiceIdentifier).join(" -> ")}const fe=Symbol.for("@inversifyjs/core/LazyPlanServiceNode");class LazyPlanServiceNode{[fe];_serviceIdentifier;_serviceNode;constructor(e,t){this[fe]=true;this._serviceNode=e;this._serviceIdentifier=t}get bindings(){return this._getNode().bindings}get isContextFree(){return this._getNode().isContextFree}get serviceIdentifier(){return this._serviceIdentifier}set bindings(e){this._getNode().bindings=e}set isContextFree(e){this._getNode().isContextFree=e}static is(e){return typeof e==="object"&&e!==null&&e[fe]===true}invalidate(){this._serviceNode=undefined}isExpanded(){return this._serviceNode!==undefined}_getNode(){if(this._serviceNode===undefined){this._serviceNode=this._buildPlanServiceNode()}return this._serviceNode}}class BindingConstraintsImplementation{#I;constructor(e){this.#I=e}get name(){return this.#I.elem.name}get serviceIdentifier(){return this.#I.elem.serviceIdentifier}get tags(){return this.#I.elem.tags}getAncestor(){this.#I.elem.getAncestorsCalled=true;if(this.#I.previous===undefined){return undefined}return new BindingConstraintsImplementation(this.#I.previous)}}function buildFilteredServiceBindings(e,t,n){const o=n?.customServiceIdentifier??t.serviceIdentifier;const i=n?.chained===true?[...e.operations.getBindingsChained(o)]:[...e.operations.getBindings(o)??[]];const a=i.filter((e=>e.isSatisfiedBy(t)));if(a.length===0&&e.autobindOptions!==undefined&&typeof o==="function"){const n=buildInstanceBinding(e.autobindOptions,o);e.operations.setBinding(n);if(n.isSatisfiedBy(t)){a.push(n)}}return a}class SingleImmutableLinkedList{last;length;constructor(e,t){this.last=e;this.length=t}concat(e){return new SingleImmutableLinkedList({elem:e,previous:this.last},this.length+1)}[Symbol.iterator](){let e=this.last;return{next:()=>{if(e===undefined){return{done:true,value:undefined}}const t=e.elem;e=e.previous;return{done:false,value:t}}}}}function buildPlanBindingConstraintsList(e){const t=new Map;if(e.rootConstraints.tag!==undefined){t.set(e.rootConstraints.tag.key,e.rootConstraints.tag.value)}return new SingleImmutableLinkedList({elem:{getAncestorsCalled:false,name:e.rootConstraints.name,serviceIdentifier:e.rootConstraints.serviceIdentifier,tags:t},previous:undefined},1)}function isPlanServiceRedirectionBindingNode(e){return e.redirections!==undefined}function stringifyBinding(e){switch(e.type){case P.Instance:return`[ type: "${e.type}", serviceIdentifier: "${stringifyServiceIdentifier(e.serviceIdentifier)}", scope: "${e.scope}", implementationType: "${e.implementationType.name}" ]`;case P.ServiceRedirection:return`[ type: "${e.type}", serviceIdentifier: "${stringifyServiceIdentifier(e.serviceIdentifier)}", redirection: "${stringifyServiceIdentifier(e.targetServiceIdentifier)}" ]`;default:return`[ type: "${e.type}", serviceIdentifier: "${stringifyServiceIdentifier(e.serviceIdentifier)}", scope: "${e.scope}" ]`}}function throwErrorWhenUnexpectedBindingsAmountFound(e,t,n,o){const i=n.elem.serviceIdentifier;const a=n.previous?.elem.serviceIdentifier;if(Array.isArray(e)){throwErrorWhenMultipleUnexpectedBindingsAmountFound(e,t,i,a,n.elem,o)}else{throwErrorWhenSingleUnexpectedBindingFound(e,t,i,a,n.elem,o)}}function throwBindingNotFoundError(e,t,n,o){const i=o[o.length-1]??e;const a=`No bindings found for service: "${stringifyServiceIdentifier(i)}".\n\nTrying to resolve bindings for "${stringifyParentServiceIdentifier(e,t)}".${stringifyServiceRedirections(o)}${stringifyBindingConstraints(n)}`;throw new InversifyCoreError_InversifyCoreError(V.planning,a)}function throwErrorWhenMultipleUnexpectedBindingsAmountFound(e,t,n,o,i,a){if(e.length===0){if(!t){throwBindingNotFoundError(n,o,i,a)}}else{const t=a[a.length-1]??n;const d=`Ambiguous bindings found for service: "${stringifyServiceIdentifier(t)}".${stringifyServiceRedirections(a)}\n\nRegistered bindings:\n\n${e.map((e=>stringifyBinding(e.binding))).join("\n")}\n\nTrying to resolve bindings for "${stringifyParentServiceIdentifier(n,o)}".${stringifyBindingConstraints(i)}`;throw new InversifyCoreError_InversifyCoreError(V.planning,d)}}function throwErrorWhenSingleUnexpectedBindingFound(e,t,n,o,i,a){if(e===undefined&&!t){throwBindingNotFoundError(n,o,i,a)}}function stringifyParentServiceIdentifier(e,t){return t===undefined?`${stringifyServiceIdentifier(e)} (Root service)`:stringifyServiceIdentifier(t)}function stringifyBindingConstraints(e){const t=e.tags.size===0?"":`\n- tags:\n - ${[...e.tags.keys()].map((e=>e.toString())).join("\n - ")}`;return`\n\nBinding constraints:\n- service identifier: ${stringifyServiceIdentifier(e.serviceIdentifier)}\n- name: ${e.name?.toString()??"-"}${t}`}function stringifyServiceRedirections(e){return e.length===0?"":`\n\n- service redirections:\n - ${e.map((e=>stringifyServiceIdentifier(e))).join("\n - ")}`}const me=1;function checkPlanServiceRedirectionBindingNodeSingleInjectionBindings(e,t,n,o){if(e.redirections.length===me){const[i]=e.redirections;if(isPlanServiceRedirectionBindingNode(i)){checkPlanServiceRedirectionBindingNodeSingleInjectionBindings(i,t,n,[...o,i.binding.targetServiceIdentifier])}return}throwErrorWhenUnexpectedBindingsAmountFound(e.redirections,t,n,o)}const he=1;function checkServiceNodeSingleInjectionBindings(e,t,n){if(Array.isArray(e.bindings)){if(e.bindings.length===he){const[o]=e.bindings;if(isPlanServiceRedirectionBindingNode(o)){checkPlanServiceRedirectionBindingNodeSingleInjectionBindings(o,t,n,[o.binding.targetServiceIdentifier])}return}}throwErrorWhenUnexpectedBindingsAmountFound(e.bindings,t,n,[])}function curryBuildPlanServiceNode(e){return t=>{const n=buildPlanBindingConstraintsList(t);const o=new BindingConstraintsImplementation(n.last);const i=t.rootConstraints.isMultiple&&t.rootConstraints.chained;const a=buildFilteredServiceBindings(t,o,{chained:i});const d=[];const f={bindings:d,isContextFree:true,serviceIdentifier:t.rootConstraints.serviceIdentifier};d.push(...e(t,n,a,f,i));f.isContextFree=!n.last.elem.getAncestorsCalled;if(!t.rootConstraints.isMultiple){checkServiceNodeSingleInjectionBindings(f,t.rootConstraints.isOptional??false,n.last);const[e]=d;f.bindings=e}return f}}function getServiceFromMaybeLazyServiceIdentifier(e){return LazyServiceIdentifier.is(e)?e.unwrap():e}function curryBuildPlanServiceNodeFromClassElementMetadata(e){return(t,n,o)=>{const i=getServiceFromMaybeLazyServiceIdentifier(o.value);const a=n.concat({getAncestorsCalled:false,name:o.name,serviceIdentifier:i,tags:o.tags});const d=new BindingConstraintsImplementation(a.last);const f=o.kind===re.multipleInjection&&o.chained;const m=buildFilteredServiceBindings(t,d,{chained:f});const h=[];const C={bindings:h,isContextFree:true,serviceIdentifier:i};h.push(...e(t,a,m,C,f));C.isContextFree=!a.last.elem.getAncestorsCalled;if(o.kind===re.singleInjection){checkServiceNodeSingleInjectionBindings(C,o.optional,a.last);const[e]=h;C.bindings=e}return C}}function curryBuildPlanServiceNodeFromResolvedValueElementMetadata(e){return(t,n,o)=>{const i=getServiceFromMaybeLazyServiceIdentifier(o.value);const a=n.concat({getAncestorsCalled:false,name:o.name,serviceIdentifier:i,tags:o.tags});const d=new BindingConstraintsImplementation(a.last);const f=o.kind===ue.multipleInjection&&o.chained;const m=buildFilteredServiceBindings(t,d,{chained:f});const h=[];const C={bindings:h,isContextFree:true,serviceIdentifier:i};h.push(...e(t,a,m,C,f));C.isContextFree=!a.last.elem.getAncestorsCalled;if(o.kind===ue.singleInjection){checkServiceNodeSingleInjectionBindings(C,o.optional,a.last);const[e]=h;C.bindings=e}return C}}function curryBuildServiceNodeBindings(e){const t=curryBuildInstancePlanBindingNode(e);const n=curryBuildResolvedValuePlanBindingNode(e);const buildServiceNodeBindings=(e,i,a,d,f)=>{const m=isPlanServiceRedirectionBindingNode(d)?d.binding.targetServiceIdentifier:d.serviceIdentifier;e.servicesBranch.push(m);const h=[];for(const d of a){switch(d.type){case P.Instance:{h.push(t(e,d,i));break}case P.ResolvedValue:{h.push(n(e,d,i));break}case P.ServiceRedirection:{const t=o(e,i,d,f);h.push(t);break}default:h.push({binding:d})}}e.servicesBranch.pop();return h};const o=curryBuildServiceRedirectionPlanBindingNode(buildServiceNodeBindings);return buildServiceNodeBindings}function curryBuildInstancePlanBindingNode(e){return(t,n,o)=>{const i=t.operations.getClassMetadata(n.implementationType);const a={binding:n,classMetadata:i,constructorParams:[],propertyParams:new Map};const d={autobindOptions:t.autobindOptions,node:a,operations:t.operations,servicesBranch:t.servicesBranch};return e(d,o)}}function curryBuildResolvedValuePlanBindingNode(e){return(t,n,o)=>{const i={binding:n,params:[]};const a={autobindOptions:t.autobindOptions,node:i,operations:t.operations,servicesBranch:t.servicesBranch};return e(a,o)}}function curryBuildServiceRedirectionPlanBindingNode(e){return(t,n,o,i)=>{const a={binding:o,redirections:[]};const d=new BindingConstraintsImplementation(n.last);const f=buildFilteredServiceBindings(t,d,{chained:i,customServiceIdentifier:o.targetServiceIdentifier});a.redirections.push(...e(t,n,f,a,i));return a}}function isInstanceBindingNode(e){return e.binding.type===P.Instance}function tryBuildGetPlanOptionsFromManagedClassElementMetadata(e){let t;if(e.tags.size===0){t=undefined}else if(e.tags.size===1){const[n,o]=e.tags.entries().next().value;t={key:n,value:o}}else{return undefined}const n=LazyServiceIdentifier.is(e.value)?e.value.unwrap():e.value;if(e.kind===re.multipleInjection){return{chained:e.chained,isMultiple:true,name:e.name,optional:e.optional,serviceIdentifier:n,tag:t}}else{return{isMultiple:false,name:e.name,optional:e.optional,serviceIdentifier:n,tag:t}}}function tryBuildGetPlanOptionsFromResolvedValueElementMetadata(e){let t;if(e.tags.size===0){t=undefined}else if(e.tags.size===1){const[n,o]=e.tags.entries().next().value;t={key:n,value:o}}else{return undefined}const n=LazyServiceIdentifier.is(e.value)?e.value.unwrap():e.value;if(e.kind===ue.multipleInjection){return{chained:e.chained,isMultiple:true,name:e.name,optional:e.optional,serviceIdentifier:n,tag:t}}else{return{isMultiple:false,name:e.name,optional:e.optional,serviceIdentifier:n,tag:t}}}function cacheNonRootPlanServiceNode(e,t,n,o){if(e!==undefined&&(LazyPlanServiceNode.is(n)&&!n.isExpanded()||n.isContextFree)){const o={tree:{root:n}};t.setPlan(e,o)}else{t.setNonCachedServiceNode(n,o)}}const ge=500;class LazyManagedClassMetadataPlanServiceNode extends LazyPlanServiceNode{#b;#w;#A;#R;constructor(e,t,n,o,i){super(i,getServiceFromMaybeLazyServiceIdentifier(o.value));this.#w=t;this.#b=e;this.#A=n;this.#R=o}_buildPlanServiceNode(){return this.#w(this.#b,this.#A,this.#R)}}class LazyResolvedValueMetadataPlanServiceNode extends LazyPlanServiceNode{#b;#P;#A;#T;constructor(e,t,n,o,i){super(i,getServiceFromMaybeLazyServiceIdentifier(o.value));this.#b=e;this.#P=t;this.#A=n;this.#T=o}_buildPlanServiceNode(){return this.#P(this.#b,this.#A,this.#T)}}function currySubplan(e,t,n,o){const i=currySubplanInstanceBindingNode(e,n);const a=currySubplanResolvedValueBindingNode(t,o);return(e,t)=>{if(isInstanceBindingNode(e.node)){return i(e,e.node,t)}else{return a(e,e.node,t)}}}function currySubplanInstanceBindingNode(e,t){const n=curryHandlePlanServiceNodeBuildFromClassElementMetadata(e,t);return(e,t,o)=>{const i=t.classMetadata;for(const[a,d]of i.constructorArguments.entries()){t.constructorParams[a]=n(e,o,d)}for(const[a,d]of i.properties){const i=n(e,o,d);if(i!==undefined){t.propertyParams.set(a,i)}}return e.node}}function currySubplanResolvedValueBindingNode(e,t){const n=curryHandlePlanServiceNodeBuildFromResolvedValueElementMetadata(e,t);return(e,t,o)=>{const i=t.binding.metadata;for(const[a,d]of i.arguments.entries()){t.params[a]=n(e,o,d)}return e.node}}function curryHandlePlanServiceNodeBuildFromClassElementMetadata(e,t){return(n,o,i)=>{if(i.kind===re.unmanaged){return undefined}if(o.length>ge){throw new InversifyCoreError_InversifyCoreError(V.planningMaxDepthExceeded,"Maximum plan depth exceeded. This is likely caused by a circular dependency.")}const a=tryBuildGetPlanOptionsFromManagedClassElementMetadata(i);if(a!==undefined){const e=n.operations.getPlan(a);if(e!==undefined&&e.tree.root.isContextFree){return e.tree.root}}const d=t(n,o,i);const f=new LazyManagedClassMetadataPlanServiceNode(n,e,o,i,d);cacheNonRootPlanServiceNode(a,n.operations,f,{bindingConstraintsList:o,chainedBindings:i.kind===re.multipleInjection&&i.chained,optionalBindings:i.optional});return f}}function curryHandlePlanServiceNodeBuildFromResolvedValueElementMetadata(e,t){return(n,o,i)=>{const a=tryBuildGetPlanOptionsFromResolvedValueElementMetadata(i);if(a!==undefined){const e=n.operations.getPlan(a);if(e!==undefined&&e.tree.root.isContextFree){return e.tree.root}}const d=t(n,o,i);const f=new LazyResolvedValueMetadataPlanServiceNode(n,e,o,i,d);cacheNonRootPlanServiceNode(a,n.operations,f,{bindingConstraintsList:o,chainedBindings:i.kind===ue.multipleInjection&&i.chained,optionalBindings:i.optional});return f}}class LazyRootPlanServiceNode extends LazyPlanServiceNode{#b;constructor(e,t){super(t,t.serviceIdentifier);this.#b=e}_buildPlanServiceNode(){return Ce(this.#b)}}const ye=curryBuildPlanServiceNodeFromClassElementMetadata(circularBuildServiceNodeBindings);const Se=curryBuildPlanServiceNodeFromResolvedValueElementMetadata(circularBuildServiceNodeBindings);const Ee=currySubplan(ye,Se,ye,Se);const ve=curryBuildServiceNodeBindings(Ee);function circularBuildServiceNodeBindings(e,t,n,o,i){return ve(e,t,n,o,i)}const Ce=curryBuildPlanServiceNode(ve);function plan(e){try{const t=buildGetPlanOptionsFromPlanParams(e);const n=e.operations.getPlan(t);if(n!==undefined){return n}const o=Ce(e);const i={tree:{root:new LazyRootPlanServiceNode(e,o)}};e.operations.setPlan(t,i);return i}catch(t){handlePlanError(e,t)}}var Ie;(function(e){e["bindingAdded"]="bindingAdded";e["bindingRemoved"]="bindingRemoved"})(Ie||(Ie={}));const be=8;const we=1024;const Ae=.5;class WeakList{#x;#_;#O;constructor(){this.#x=[];this.#_=be;this.#O=we}*[Symbol.iterator](){let e=0;for(const t of this.#x){const n=t.deref();if(n===undefined){++e}else{yield n}}if(this.#x.length>=this.#_&&this.#M(e)){this.#D(e)}}push(e){const t=new WeakRef(e);this.#x.push(t);if(this.#x.length>=this.#_&&this.#x.length%this.#O===0){let e=0;for(const t of this.#x){if(t.deref()===undefined){++e}}if(this.#M(e)){this.#D(e)}}}#D(e){const t=new Array(this.#x.length-e);let n=0;for(const e of this.#x){if(e.deref()){t[n++]=e}}this.#x=t}#M(e){return e>=this.#x.length*Ae}}function curryLazyBuildPlanServiceNodeFromClassElementMetadata(e){const t=curryBuildPlanServiceNodeFromClassElementMetadata(e);return(e,n,o)=>{try{return t(e,n,o)}catch(e){if(InversifyCoreError_InversifyCoreError.isErrorOfKind(e,V.planning)){return undefined}throw e}}}function curryLazyBuildPlanServiceNodeFromResolvedValueElementMetadata(e){const t=curryBuildPlanServiceNodeFromResolvedValueElementMetadata(e);return(e,n,o)=>{try{return t(e,n,o)}catch(e){if(InversifyCoreError_InversifyCoreError.isErrorOfKind(e,V.planning)){return undefined}throw e}}}const Re=currySubplan(ye,Se,circularLazyBuildPlanServiceNodeFromClassElementMetadata,circularLazyBuildPlanServiceNodeFromResolvedValueElementMetadata);const Pe=curryBuildServiceNodeBindings(Re);const Te=curryLazyBuildPlanServiceNodeFromClassElementMetadata(Pe);const xe=curryLazyBuildPlanServiceNodeFromResolvedValueElementMetadata(Pe);function circularLazyBuildPlanServiceNodeFromClassElementMetadata(e,t,n){return Te(e,t,n)}function circularLazyBuildPlanServiceNodeFromResolvedValueElementMetadata(e,t,n){return xe(e,t,n)}function addServiceNodeBindingIfContextFree(e,t,n,o,i){if(LazyPlanServiceNode.is(t)&&!t.isExpanded()){return{isContextFreeBinding:true,shouldInvalidateServiceNode:false}}const a=new BindingConstraintsImplementation(o.last);if(!n.isSatisfiedBy(a)||o.last.elem.getAncestorsCalled){return{isContextFreeBinding:!o.last.elem.getAncestorsCalled,shouldInvalidateServiceNode:false}}return addServiceNodeSatisfiedBindingIfContextFree(e,t,n,o,i)}function addServiceNodeSatisfiedBindingIfContextFree(e,t,n,o,i){let a;try{[a]=Pe(e,o,[n],t,i)}catch(e){if(isStackOverflowError(e)||InversifyCoreError_InversifyCoreError.isErrorOfKind(e,V.planningMaxDepthExceeded)){return{isContextFreeBinding:false,shouldInvalidateServiceNode:true}}throw e}return addServiceNodeBindingNodeIfContextFree(t,a)}function addServiceNodeBindingNodeIfContextFree(e,t){if(Array.isArray(e.bindings)){e.bindings.push(t)}else{if(e.bindings===undefined){e.bindings=t}else{if(!LazyPlanServiceNode.is(e)){throw new InversifyCoreError_InversifyCoreError(V.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue")}return{isContextFreeBinding:true,shouldInvalidateServiceNode:true}}}return{isContextFreeBinding:true,shouldInvalidateServiceNode:false}}function addRootServiceNodeBindingIfContextFree(e,t,n){if(LazyPlanServiceNode.is(t)&&!t.isExpanded()){return{isContextFreeBinding:true,shouldInvalidateServiceNode:false}}const o=buildPlanBindingConstraintsList(e);const i=e.rootConstraints.isMultiple&&e.rootConstraints.chained;return addServiceNodeBindingIfContextFree(e,t,n,o,i)}function removeServiceNodeBindingIfContextFree(e,t,n,o){if(LazyPlanServiceNode.is(e)&&!e.isExpanded()){return{bindingNodeRemoved:undefined,isContextFreeBinding:true}}const i=new BindingConstraintsImplementation(n.last);if(!t.isSatisfiedBy(i)||n.last.elem.getAncestorsCalled){return{bindingNodeRemoved:undefined,isContextFreeBinding:!n.last.elem.getAncestorsCalled}}let a;if(Array.isArray(e.bindings)){e.bindings=e.bindings.filter((e=>{if(e.binding===t){a=e;return false}return true}))}else{if(e.bindings?.binding===t){a=e.bindings;if(o){e.bindings=undefined}else{if(!LazyPlanServiceNode.is(e)){throw new InversifyCoreError_InversifyCoreError(V.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue")}e.invalidate()}}}return{bindingNodeRemoved:a,isContextFreeBinding:true}}function removeRootServiceNodeBindingIfContextFree(e,t,n){if(LazyPlanServiceNode.is(t)&&!t.isExpanded()){return{bindingNodeRemoved:undefined,isContextFreeBinding:true}}const o=buildPlanBindingConstraintsList(e);return removeServiceNodeBindingIfContextFree(t,n,o,e.rootConstraints.isOptional??false)}const _e=4;const Oe=2;const Me=1;const De=8;class PlanResultCacheService{#$;#N;#k;#L;#U;#F;constructor(){this.#$=new Map;this.#N=this.#B();this.#k=this.#B();this.#L=this.#B();this.#U=this.#B();this.#F=new WeakList}clearCache(){for(const e of this.#q()){e.clear()}for(const e of this.#F){e.clearCache()}}get(e){if(e.name===undefined){if(e.tag===undefined){return this.#j(this.#N,e).get(e.serviceIdentifier)}else{return this.#j(this.#U,e).get(e.serviceIdentifier)?.get(e.tag.key)?.get(e.tag.value)}}else{if(e.tag===undefined){return this.#j(this.#k,e).get(e.serviceIdentifier)?.get(e.name)}else{return this.#j(this.#L,e).get(e.serviceIdentifier)?.get(e.name)?.get(e.tag.key)?.get(e.tag.value)}}}invalidateServiceBinding(e){this.#z(e);this.#H(e);this.#V(e);this.#G(e);this.#W(e);for(const t of this.#F){t.invalidateServiceBinding(e)}}set(e,t){if(e.name===undefined){if(e.tag===undefined){this.#j(this.#N,e).set(e.serviceIdentifier,t)}else{this.#K(this.#K(this.#j(this.#U,e),e.serviceIdentifier),e.tag.key).set(e.tag.value,t)}}else{if(e.tag===undefined){this.#K(this.#j(this.#k,e),e.serviceIdentifier).set(e.name,t)}else{this.#K(this.#K(this.#K(this.#j(this.#L,e),e.serviceIdentifier),e.name),e.tag.key).set(e.tag.value,t)}}}setNonCachedServiceNode(e,t){let n=this.#$.get(e.serviceIdentifier);if(n===undefined){n=new Map;this.#$.set(e.serviceIdentifier,n)}n.set(e,t)}subscribe(e){this.#F.push(e)}#B(){const e=new Array(De);for(let t=0;t<e.length;++t){e[t]=new Map}return e}#Q(e,t,n,o){const i=(t&Oe)!==0;let a;if(i){const n=(t&Oe&_e)!==0;a={chained:n,isMultiple:i,serviceIdentifier:e.binding.serviceIdentifier}}else{a={isMultiple:i,serviceIdentifier:e.binding.serviceIdentifier}}const d=(t&Me)!==0;if(d){a.isOptional=true}if(n!==undefined){a.name=n}if(o!==undefined){a.tag=o}return{autobindOptions:undefined,operations:e.operations,rootConstraints:a,servicesBranch:[]}}#K(e,t){let n=e.get(t);if(n===undefined){n=new Map;e.set(t,n)}return n}#j(e,t){return e[this.#Y(t)]}#q(){return[this.#$,...this.#N,...this.#k,...this.#L,...this.#U]}#Y(e){if(e.isMultiple){return(e.chained?_e:0)|(e.optional?Me:0)|Oe}else{return e.optional?Me:0}}#H(e){for(const[t,n]of this.#k.entries()){const o=n.get(e.binding.serviceIdentifier);if(o!==undefined){for(const[n,i]of o.entries()){this.#J(e,i,t,n,undefined)}}}}#V(e){for(const[t,n]of this.#L.entries()){const o=n.get(e.binding.serviceIdentifier);if(o!==undefined){for(const[n,i]of o.entries()){for(const[o,a]of i.entries()){for(const[i,d]of a.entries()){this.#J(e,d,t,n,{key:o,value:i})}}}}}}#X(e){switch(e.binding.type){case P.ServiceRedirection:for(const t of e.redirections){this.#X(t)}break;case P.Instance:for(const t of e.constructorParams){if(t!==undefined){this.#Z(t)}}for(const t of e.propertyParams.values()){this.#Z(t)}break;case P.ResolvedValue:for(const t of e.params){this.#Z(t)}break;default:}}#Z(e){const t=this.#$.get(e.serviceIdentifier);if(t===undefined||!t.has(e)){return}t.delete(e);this.#ee(e)}#ee(e){if(LazyPlanServiceNode.is(e)&&!e.isExpanded()){return}if(e.bindings===undefined){return}if(Array.isArray(e.bindings)){for(const t of e.bindings){this.#X(t)}}else{this.#X(e.bindings)}}#W(e){const t=this.#$.get(e.binding.serviceIdentifier);if(t!==undefined){switch(e.kind){case Ie.bindingAdded:for(const[n,o]of t){const t=addServiceNodeBindingIfContextFree({autobindOptions:undefined,operations:e.operations,servicesBranch:[]},n,e.binding,o.bindingConstraintsList,o.chainedBindings);if(t.isContextFreeBinding){if(t.shouldInvalidateServiceNode&&LazyPlanServiceNode.is(n)){this.#ee(n);n.invalidate()}}else{this.clearCache()}}break;case Ie.bindingRemoved:for(const[n,o]of t){const t=removeServiceNodeBindingIfContextFree(n,e.binding,o.bindingConstraintsList,o.optionalBindings);if(t.isContextFreeBinding){if(t.bindingNodeRemoved!==undefined){this.#X(t.bindingNodeRemoved)}}else{this.clearCache()}}break}}}#z(e){for(const[t,n]of this.#N.entries()){const o=n.get(e.binding.serviceIdentifier);this.#J(e,o,t,undefined,undefined)}}#G(e){for(const[t,n]of this.#U.entries()){const o=n.get(e.binding.serviceIdentifier);if(o!==undefined){for(const[n,i]of o.entries()){for(const[o,a]of i.entries()){this.#J(e,a,t,undefined,{key:n,value:o})}}}}}#J(e,t,n,o,i){if(t!==undefined&&LazyPlanServiceNode.is(t.tree.root)){const a=this.#Q(e,n,o,i);switch(e.kind){case Ie.bindingAdded:{const n=addRootServiceNodeBindingIfContextFree(a,t.tree.root,e.binding);if(n.isContextFreeBinding){if(n.shouldInvalidateServiceNode){this.#ee(t.tree.root);t.tree.root.invalidate()}}else{this.clearCache()}}break;case Ie.bindingRemoved:{const n=removeRootServiceNodeBindingIfContextFree(a,t.tree.root,e.binding);if(n.isContextFreeBinding){if(n.bindingNodeRemoved!==undefined){this.#X(n.bindingNodeRemoved)}}else{this.clearCache()}}break}}}}const $e=-1;function handleResolveError(e,t){if(isStackOverflowError(t)||InversifyCoreError_InversifyCoreError.isErrorOfKind(t,V.planningMaxDepthExceeded)){const n=handleResolveError_stringifyServiceIdentifierTrace(handleResolveError_extractLikelyCircularDependency(e));throw new InversifyCoreError_InversifyCoreError(V.planning,`Circular dependency found: ${n}`,{cause:t})}throw t}function handleResolveError_extractLikelyCircularDependency(e){const t=e.planResult.tree.root;const n=[];function depthFirstSearch(e){const t=n.indexOf(e);if(t!==$e){const o=[...n.slice(t),e];return o.map((e=>e.serviceIdentifier))}n.push(e);try{for(const t of getChildServiceNodes(e)){const e=depthFirstSearch(t);if(e!==undefined){return e}}}finally{n.pop()}return undefined}const o=depthFirstSearch(t);return o??[]}function getChildServiceNodes(e){const t=[];const n=e.bindings;if(n===undefined){return t}const processBindingNode=e=>{if(isPlanServiceRedirectionBindingNode(e)){for(const t of e.redirections){processBindingNode(t)}return}switch(e.binding.type){case P.Instance:{const n=e;for(const e of n.constructorParams){if(e!==undefined){t.push(e)}}for(const e of n.propertyParams.values()){t.push(e)}break}case P.ResolvedValue:{const n=e;for(const e of n.params){t.push(e)}break}default:break}};if(Array.isArray(n)){for(const e of n){processBindingNode(e)}}else{processBindingNode(n)}return t}function handleResolveError_stringifyServiceIdentifierTrace(e){const t=[...e];if(t.length===0){return"(No dependency trace)"}return t.map(stringifyServiceIdentifier).join(" -> ")}function resolveConstantValueBindingCallback(e,t){return t.value}function cacheResolvedValue(e,t){if(isPromise(t)){e.cache={isRight:true,value:t};return t.then((t=>cacheSyncResolvedValue(e,t)))}return cacheSyncResolvedValue(e,t)}function cacheSyncResolvedValue(e,t){e.cache={isRight:true,value:t};return t}function resolveBindingServiceActivations(e,t,n){const o=e.getActivations(t);if(o===undefined){return n}if(isPromise(n)){return resolveBindingActivationsFromIteratorAsync(e,n,o[Symbol.iterator]())}return resolveBindingActivationsFromIterator(e,n,o[Symbol.iterator]())}function resolveBindingActivationsFromIterator(e,t,n){let o=t;let i=n.next();while(i.done!==true){const t=i.value(e.context,o);if(isPromise(t)){return resolveBindingActivationsFromIteratorAsync(e,t,n)}else{o=t}i=n.next()}return o}async function resolveBindingActivationsFromIteratorAsync(e,t,n){let o=await t;let i=n.next();while(i.done!==true){o=await i.value(e.context,o);i=n.next()}return o}function resolveBindingActivations(e,t,n){let o=n;if(t.onActivation!==undefined){const n=t.onActivation;if(isPromise(o)){o=o.then((t=>n(e.context,t)))}else{o=n(e.context,o)}}return resolveBindingServiceActivations(e,t.serviceIdentifier,o)}function resolveSingletonScopedBinding(e){return(t,n)=>{if(n.cache.isRight){return n.cache.value}const o=resolveBindingActivations(t,n,e(t,n));return cacheResolvedValue(n,o)}}const Ne=resolveSingletonScopedBinding(resolveConstantValueBindingCallback);function resolveDynamicValueBindingCallback(e,t){return t.value(e.context)}function getSelf(e){return e}function resolveScoped(e,t){return(n,o)=>{const i=e(o);switch(i.scope){case C.Singleton:{if(i.cache.isRight){return i.cache.value}const e=resolveBindingActivations(n,i,t(n,o));return cacheResolvedValue(i,e)}case C.Request:{if(n.requestScopeCache.has(i.id)){return n.requestScopeCache.get(i.id)}const e=resolveBindingActivations(n,i,t(n,o));n.requestScopeCache.set(i.id,e);return e}case C.Transient:return resolveBindingActivations(n,i,t(n,o))}}}const resolveScopedBinding=e=>resolveScoped(getSelf,e);const ke=resolveScopedBinding(resolveDynamicValueBindingCallback);function resolveFactoryBindingCallback(e,t){return t.factory(e.context)}const Le=resolveSingletonScopedBinding(resolveFactoryBindingCallback);function resolveInstanceBindingConstructorParams(e){return(t,n)=>{const o=[];for(const i of n.constructorParams){if(i===undefined){o.push(undefined)}else{o.push(e(t,i))}}return o.some(isPromise)?Promise.all(o):o}}function resolveInstanceBindingNode(e,t,n){return(o,i)=>{const a=e(o,i);if(isPromise(a)){return t(a,o,i)}return n(a,o,i)}}function resolveInstanceBindingNodeAsyncFromConstructorParams(e){return async(t,n,o)=>{const i=await t;return e(i,n,o)}}function resolvePostConstruct(e,t,n){const o=invokePostConstruct(e,t,n);if(isPromise(o)){return o.then((()=>e))}return e}function invokePostConstruct(e,t,n){if(n in e){if(typeof e[n]==="function"){let o;try{o=e[n]()}catch(e){throw new InversifyCoreError_InversifyCoreError(V.resolution,`Unexpected error found when calling "${n.toString()}" @postConstruct decorated method on class "${t.implementationType.name}"`,{cause:e})}if(isPromise(o)){return invokePostConstructAsync(t,n,o)}}else{throw new InversifyCoreError_InversifyCoreError(V.resolution,`Expecting a "${n.toString()}" method when resolving "${t.implementationType.name}" class @postConstruct decorated method, a non function property was found instead.`)}}else{throw new InversifyCoreError_InversifyCoreError(V.resolution,`Expecting a "${n.toString()}" property when resolving "${t.implementationType.name}" class @postConstruct decorated method, none found.`)}}async function invokePostConstructAsync(e,t,n){try{await n}catch(n){throw new InversifyCoreError_InversifyCoreError(V.resolution,`Unexpected error found when calling "${t.toString()}" @postConstruct decorated method on class "${e.implementationType.name}"`,{cause:n})}}function resolveAllPostConstructMethods(e,t,n){if(n.size===0){return e}let o=e;for(const e of n){if(isPromise(o)){o=o.then((n=>resolvePostConstruct(n,t,e)))}else{o=resolvePostConstruct(o,t,e)}}return o}function resolveInstanceBindingNodeFromConstructorParams(e){return(t,n,o)=>{const i=new o.binding.implementationType(...t);const a=e(n,i,o);if(isPromise(a)){return a.then((()=>resolveAllPostConstructMethods(i,o.binding,o.classMetadata.lifecycle.postConstructMethodNames)))}return resolveAllPostConstructMethods(i,o.binding,o.classMetadata.lifecycle.postConstructMethodNames)}}function resolveResolvedValueBindingNode(e){return(t,n)=>{const o=e(t,n);if(isPromise(o)){return o.then((e=>n.binding.factory(...e)))}return n.binding.factory(...o)}}function resolveResolvedValueBindingParams(e){return(t,n)=>{const o=[];for(const i of n.params){o.push(e(t,i))}return o.some(isPromise)?Promise.all(o):o}}function getInstanceNodeBinding(e){return e.binding}const resolveScopedInstanceBindingNode=e=>resolveScoped(getInstanceNodeBinding,e);function getResolvedValueNodeBinding(e){return e.binding}const resolveScopedResolvedValueBindingNode=e=>resolveScoped(getResolvedValueNodeBinding,e);function resolveServiceRedirectionBindingNode(e){function innerResolveServiceRedirectionBindingNode(t,n){const o=[];for(const i of n.redirections){if(isPlanServiceRedirectionBindingNode(i)){o.push(...innerResolveServiceRedirectionBindingNode(t,i))}else{o.push(e(t,i))}}return o}return innerResolveServiceRedirectionBindingNode}function setInstanceProperties(e){return(t,n,o)=>{const i=[];for(const[a,d]of o.propertyParams){const f=o.classMetadata.properties.get(a);if(f===undefined){throw new InversifyCoreError_InversifyCoreError(V.resolution,`Expecting metadata at property "${a.toString()}", none found`)}if(f.kind!==re.unmanaged&&d.bindings!==undefined){n[a]=e(t,d);if(isPromise(n[a])){i.push((async()=>{n[a]=await n[a]})())}}}if(i.length>0){return Promise.all(i).then((()=>undefined))}}}const Ue=setInstanceProperties(resolveServiceNode);const Fe=resolveServiceRedirectionBindingNode(resolveBindingNode);const Be=resolveInstanceBindingNode(resolveInstanceBindingConstructorParams(resolveServiceNode),resolveInstanceBindingNodeAsyncFromConstructorParams(resolveInstanceBindingNodeFromConstructorParams(Ue)),resolveInstanceBindingNodeFromConstructorParams(Ue));const qe=resolveResolvedValueBindingNode(resolveResolvedValueBindingParams(resolveServiceNode));const je=resolveScopedInstanceBindingNode(Be);const ze=resolveScopedResolvedValueBindingNode(qe);function resolve(e){try{const t=e.planResult.tree.root;return resolveServiceNode(e,t)}catch(t){handleResolveError(e,t)}}function resolveBindingNode(e,t){switch(t.binding.type){case P.ConstantValue:return Ne(e,t.binding);case P.DynamicValue:return ke(e,t.binding);case P.Factory:return Le(e,t.binding);case P.Instance:return je(e,t);case P.ResolvedValue:return ze(e,t)}}function resolveServiceNode(e,t){if(t.bindings===undefined){return undefined}if(Array.isArray(t.bindings)){return resolveMultipleBindingServiceNode(e,t.bindings)}return resolveSingleBindingServiceNode(e,t.bindings)}function resolveMultipleBindingServiceNode(e,t){const n=[];for(const o of t){if(isPlanServiceRedirectionBindingNode(o)){n.push(...Fe(e,o))}else{n.push(resolveBindingNode(e,o))}}if(n.some(isPromise)){return Promise.all(n)}return n}function resolveSingleBindingServiceNode(e,t){if(isPlanServiceRedirectionBindingNode(t)){const n=Fe(e,t);if(n.length===1){return n[0]}else{throw new InversifyCoreError_InversifyCoreError(V.resolution,"Unexpected multiple resolved values on single injection")}}else{return resolveBindingNode(e,t)}}function isScopedBinding(e){return e.scope!==undefined}const He="cache";function resolveBindingPreDestroy(e,t){if(t.type===P.Instance){const n=e.getClassMetadata(t.implementationType);const o=t.cache.value;if(isPromise(o)){return o.then((e=>resolveInstancePreDestroyMethods(n,e)))}else{return resolveInstancePreDestroyMethods(n,o)}}}function resolveInstancePreDestroyMethod(e,t){if(typeof e[t]==="function"){const n=e[t]();return n}}function resolveInstancePreDestroyMethods(e,t){const n=e.lifecycle.preDestroyMethodNames;if(n.size===0){return}let o=undefined;for(const e of n){if(o===undefined){o=resolveInstancePreDestroyMethod(t,e)}else{o=o.then((()=>resolveInstancePreDestroyMethod(t,e)))}}return o}function resolveBindingServiceDeactivations(e,t,n){const o=e.getDeactivations(t);if(o===undefined){return undefined}if(isPromise(n)){return resolveBindingDeactivationsFromIteratorAsync(n,o[Symbol.iterator]())}return resolveBindingDeactivationsFromIterator(n,o[Symbol.iterator]())}function resolveBindingDeactivationsFromIterator(e,t){let n=t.next();while(n.done!==true){const o=n.value(e);if(isPromise(o)){return resolveBindingDeactivationsFromIteratorAsync(e,t)}n=t.next()}}async function resolveBindingDeactivationsFromIteratorAsync(e,t){const n=await e;let o=t.next();while(o.done!==true){await o.value(n);o=t.next()}}const Ve="cache";function resolveBindingDeactivations(e,t){const n=resolveBindingPreDestroy(e,t);if(n===undefined){return resolveBindingDeactivationsAfterPreDestroy(e,t)}return n.then((()=>resolveBindingDeactivationsAfterPreDestroy(e,t)))}function resolveBindingDeactivationsAfterPreDestroy(e,t){const n=t.cache;if(isPromise(n.value)){return n.value.then((n=>resolveBindingDeactivationsAfterPreDestroyFromValue(e,t,n)))}return resolveBindingDeactivationsAfterPreDestroyFromValue(e,t,n.value)}function resolveBindingDeactivationsAfterPreDestroyFromValue(e,t,n){let o=undefined;if(t.onDeactivation!==undefined){const e=t.onDeactivation;o=e(n)}if(o===undefined){return resolveBindingServiceDeactivations(e,t.serviceIdentifier,n)}else{return o.then((()=>resolveBindingServiceDeactivations(e,t.serviceIdentifier,n)))}}const Ge="cache";function resolveBindingsDeactivations(e,t){if(t===undefined){return}const n=filterCachedSinglentonScopedBindings(t);const o=[];for(const t of n){const n=resolveBindingDeactivations(e,t);if(n!==undefined){o.push(n)}}if(o.length>0){return Promise.all(o).then((()=>undefined))}}function filterCachedSinglentonScopedBindings(e){const t=[];for(const n of e){if(isScopedBinding(n)&&n.scope===C.Singleton&&n.cache.isRight){t.push(n)}}return t}function resolveModuleDeactivations(e,t){const n=e.getBindingsFromModule(t);return resolveBindingsDeactivations(e,n)}function resolveServiceDeactivations(e,t){const n=e.getBindings(t);return resolveBindingsDeactivations(e,n)}const We=Symbol.for("@inversifyjs/container/bindingIdentifier");function isBindingIdentifier(e){return typeof e==="object"&&e!==null&&e[We]===true}class BindingConstraintUtils{static always=e=>true}const Ke=Symbol.for("@inversifyjs/container/InversifyContainerError");class InversifyContainerError extends Error{[Ke];kind;constructor(e,t,n){super(t,n);this[Ke]=true;this.kind=e}static is(e){return typeof e==="object"&&e!==null&&e[Ke]===true}static isErrorOfKind(e,t){return InversifyContainerError.is(e)&&e.kind===t}}var Qe;(function(e){e[e["invalidOperation"]=0]="invalidOperation"})(Qe||(Qe={}));function buildBindingIdentifier(e){return{[We]:true,id:e.id}}function isAnyAncestorBindingConstraints(e){return t=>{for(let n=t.getAncestor();n!==undefined;n=n.getAncestor()){if(e(n)){return true}}return false}}function isBindingConstraintsWithName(e){return t=>t.name===e}function isAnyAncestorBindingConstraintsWithName(e){return isAnyAncestorBindingConstraints(isBindingConstraintsWithName(e))}function isBindingConstraintsWithServiceId(e){return t=>t.serviceIdentifier===e}function isAnyAncestorBindingConstraintsWithServiceId(e){return isAnyAncestorBindingConstraints(isBindingConstraintsWithServiceId(e))}function isBindingConstraintsWithTag(e,t){return n=>n.tags.has(e)&&n.tags.get(e)===t}function isAnyAncestorBindingConstraintsWithTag(e,t){return isAnyAncestorBindingConstraints(isBindingConstraintsWithTag(e,t))}function isBindingConstraintsWithNoNameNorTags(e){return e.name===undefined&&e.tags.size===0}function isMultipleResolvedValueMetadataInjectOptions(e){return e.isMultiple===true}function isNoAncestorBindingConstraints(e){const t=isAnyAncestorBindingConstraints(e);return e=>!t(e)}function isNoAncestorBindingConstraintsWithName(e){return isNoAncestorBindingConstraints(isBindingConstraintsWithName(e))}function isNoAncestorBindingConstraintsWithServiceId(e){return isNoAncestorBindingConstraints(isBindingConstraintsWithServiceId(e))}function isNoAncestorBindingConstraintsWithTag(e,t){return isNoAncestorBindingConstraints(isBindingConstraintsWithTag(e,t))}function isNotParentBindingConstraints(e){return t=>{const n=t.getAncestor();return n===undefined||!e(n)}}function isNotParentBindingConstraintsWithName(e){return isNotParentBindingConstraints(isBindingConstraintsWithName(e))}function isNotParentBindingConstraintsWithServiceId(e){return isNotParentBindingConstraints(isBindingConstraintsWithServiceId(e))}function isNotParentBindingConstraintsWithTag(e,t){return isNotParentBindingConstraints(isBindingConstraintsWithTag(e,t))}function isParentBindingConstraints(e){return t=>{const n=t.getAncestor();return n!==undefined&&e(n)}}function isParentBindingConstraintsWithName(e){return isParentBindingConstraints(isBindingConstraintsWithName(e))}function isParentBindingConstraintsWithServiceId(e){return isParentBindingConstraints(isBindingConstraintsWithServiceId(e))}function isParentBindingConstraintsWithTag(e,t){return isParentBindingConstraints(isBindingConstraintsWithTag(e,t))}function isResolvedValueMetadataInjectOptions(e){return typeof e==="object"&&!LazyServiceIdentifier.is(e)}class BindInFluentSyntaxImplementation{#te;constructor(e){this.#te=e}getIdentifier(){return buildBindingIdentifier(this.#te)}inRequestScope(){this.#te.scope=C.Request;return new BindWhenOnFluentSyntaxImplementation(this.#te)}inSingletonScope(){this.#te.scope=C.Singleton;return new BindWhenOnFluentSyntaxImplementation(this.#te)}inTransientScope(){this.#te.scope=C.Transient;return new BindWhenOnFluentSyntaxImplementation(this.#te)}}class BindToFluentSyntaxImplementation{#ne;#re;#oe;#ie;constructor(e,t,n,o){this.#ne=e;this.#re=t;this.#oe=n;this.#ie=o}to(e){const t=getClassMetadata_getClassMetadata(e);const n={cache:{isRight:false,value:undefined},id:getBindingId(),implementationType:e,isSatisfiedBy:BindingConstraintUtils.always,moduleId:this.#re,onActivation:undefined,onDeactivation:undefined,scope:t.scope??this.#oe,serviceIdentifier:this.#ie,type:P.Instance};this.#ne(n);return new BindInWhenOnFluentSyntaxImplementation(n)}toSelf(){if(typeof this.#ie!=="function"){throw new Error('"toSelf" function can only be applied when a newable function is used as service identifier')}return this.to(this.#ie)}toConstantValue(e){const t={cache:{isRight:false,value:undefined},id:getBindingId(),isSatisfiedBy:BindingConstraintUtils.always,moduleId:this.#re,onActivation:undefined,onDeactivation:undefined,scope:C.Singleton,serviceIdentifier:this.#ie,type:P.ConstantValue,value:e};this.#ne(t);return new BindWhenOnFluentSyntaxImplementation(t)}toDynamicValue(e){const t={cache:{isRight:false,value:undefined},id:getBindingId(),isSatisfiedBy:BindingConstraintUtils.always,moduleId:this.#re,onActivation:undefined,onDeactivation:undefined,scope:this.#oe,serviceIdentifier:this.#ie,type:P.DynamicValue,value:e};this.#ne(t);return new BindInWhenOnFluentSyntaxImplementation(t)}toResolvedValue(e,t){const n={cache:{isRight:false,value:undefined},factory:e,id:getBindingId(),isSatisfiedBy:BindingConstraintUtils.always,metadata:this.#se(t),moduleId:this.#re,onActivation:undefined,onDeactivation:undefined,scope:this.#oe,serviceIdentifier:this.#ie,type:P.ResolvedValue};this.#ne(n);return new BindInWhenOnFluentSyntaxImplementation(n)}toFactory(e){const t={cache:{isRight:false,value:undefined},factory:e,id:getBindingId(),isSatisfiedBy:BindingConstraintUtils.always,moduleId:this.#re,onActivation:undefined,onDeactivation:undefined,scope:C.Singleton,serviceIdentifier:this.#ie,type:P.Factory};this.#ne(t);return new BindWhenOnFluentSyntaxImplementation(t)}toService(e){const t={id:getBindingId(),isSatisfiedBy:BindingConstraintUtils.always,moduleId:this.#re,serviceIdentifier:this.#ie,targetServiceIdentifier:e,type:P.ServiceRedirection};this.#ne(t)}#se(e){const t={arguments:(e??[]).map((e=>{if(isResolvedValueMetadataInjectOptions(e)){if(isMultipleResolvedValueMetadataInjectOptions(e)){return{chained:e.chained??false,kind:ue.multipleInjection,name:e.name,optional:e.optional??false,tags:new Map((e.tags??[]).map((e=>[e.key,e.value]))),value:e.serviceIdentifier}}else{return{kind:ue.singleInjection,name:e.name,optional:e.optional??false,tags:new Map((e.tags??[]).map((e=>[e.key,e.value]))),value:e.serviceIdentifier}}}else{return{kind:ue.singleInjection,name:undefined,optional:false,tags:new Map,value:e}}}))};return t}}class BindOnFluentSyntaxImplementation{#te;constructor(e){this.#te=e}getIdentifier(){return buildBindingIdentifier(this.#te)}onActivation(e){this.#te.onActivation=e;return new BindWhenFluentSyntaxImplementation(this.#te)}onDeactivation(e){this.#te.onDeactivation=e;if(this.#te.scope!==C.Singleton){throw new InversifyContainerError(Qe.invalidOperation,`Binding for service "${stringifyServiceIdentifier(this.#te.serviceIdentifier)}" has a deactivation function, but its scope is not singleton. Deactivation functions can only be used with singleton bindings.`)}return new BindWhenFluentSyntaxImplementation(this.#te)}}class BindWhenFluentSyntaxImplementation{#te;constructor(e){this.#te=e}getIdentifier(){return buildBindingIdentifier(this.#te)}when(e){this.#te.isSatisfiedBy=e;return new BindOnFluentSyntaxImplementation(this.#te)}whenAnyAncestor(e){return this.when(isAnyAncestorBindingConstraints(e))}whenAnyAncestorIs(e){return this.when(isAnyAncestorBindingConstraintsWithServiceId(e))}whenAnyAncestorNamed(e){return this.when(isAnyAncestorBindingConstraintsWithName(e))}whenAnyAncestorTagged(e,t){return this.when(isAnyAncestorBindingConstraintsWithTag(e,t))}whenDefault(){return this.when(isBindingConstraintsWithNoNameNorTags)}whenNamed(e){return this.when(isBindingConstraintsWithName(e))}whenNoParent(e){return this.when(isNotParentBindingConstraints(e))}whenNoParentIs(e){return this.when(isNotParentBindingConstraintsWithServiceId(e))}whenNoParentNamed(e){return this.when(isNotParentBindingConstraintsWithName(e))}whenNoParentTagged(e,t){return this.when(isNotParentBindingConstraintsWithTag(e,t))}whenParent(e){return this.when(isParentBindingConstraints(e))}whenParentIs(e){return this.when(isParentBindingConstraintsWithServiceId(e))}whenParentNamed(e){return this.when(isParentBindingConstraintsWithName(e))}whenParentTagged(e,t){return this.when(isParentBindingConstraintsWithTag(e,t))}whenTagged(e,t){return this.when(isBindingConstraintsWithTag(e,t))}whenNoAncestor(e){return this.when(isNoAncestorBindingConstraints(e))}whenNoAncestorIs(e){return this.when(isNoAncestorBindingConstraintsWithServiceId(e))}whenNoAncestorNamed(e){return this.when(isNoAncestorBindingConstraintsWithName(e))}whenNoAncestorTagged(e,t){return this.when(isNoAncestorBindingConstraintsWithTag(e,t))}}class BindWhenOnFluentSyntaxImplementation extends BindWhenFluentSyntaxImplementation{#ae;constructor(e){super(e);this.#ae=new BindOnFluentSyntaxImplementation(e)}onActivation(e){return this.#ae.onActivation(e)}onDeactivation(e){return this.#ae.onDeactivation(e)}}class BindInWhenOnFluentSyntaxImplementation extends BindWhenOnFluentSyntaxImplementation{#ce;constructor(e){super(e);this.#ce=new BindInFluentSyntaxImplementation(e)}inRequestScope(){return this.#ce.inRequestScope()}inSingletonScope(){return this.#ce.inSingletonScope()}inTransientScope(){return this.#ce.inTransientScope()}}function getFirstIteratorResult(e){if(e===undefined){return undefined}const t=e.next();if(t.done===true){return undefined}return t.value}function getFirstIterableResult(e){return getFirstIteratorResult(e?.[Symbol.iterator]())}class BindingManager{#le;#oe;#ue;#de;constructor(e,t,n,o){this.#le=e;this.#oe=t;this.#ue=n;this.#de=o}bind(e){return new BindToFluentSyntaxImplementation((e=>{this.#pe(e)}),undefined,this.#oe,e)}isBound(e,t){const n=this.#de.bindingService.get(e);return this.#fe(e,n,t)}isCurrentBound(e,t){const n=this.#de.bindingService.getNonParentBindings(e);return this.#fe(e,n,t)}async rebindAsync(e){await this.unbindAsync(e);return this.bind(e)}rebind(e){this.unbind(e);return this.bind(e)}async unbindAsync(e){await this.#me(e)}async unbindAllAsync(){await this.#he()}unbindAll(){const e=this.#he();if(e!==undefined){throw new InversifyContainerError(Qe.invalidOperation,"Unexpected asynchronous deactivation when unbinding all services. Consider using Container.unbindAllAsync() instead.")}}unbind(e){const t=this.#me(e);if(t!==undefined){this.#ge(e)}}#pe(e){this.#de.bindingService.set(e);this.#ue.invalidateService({binding:e,kind:Ie.bindingAdded})}#ge(e){let t;if(isBindingIdentifier(e)){const n=this.#de.bindingService.getById(e.id);const o=getFirstIterableResult(n)?.serviceIdentifier;if(o===undefined){t="Unexpected asynchronous deactivation when unbinding binding identifier. Consider using Container.unbindAsync() instead."}else{t=`Unexpected asynchronous deactivation when unbinding "${stringifyServiceIdentifier(o)}" binding. Consider using Container.unbindAsync() instead.`}}else{t=`Unexpected asynchronous deactivation when unbinding "${stringifyServiceIdentifier(e)}" service. Consider using Container.unbindAsync() instead.`}throw new InversifyContainerError(Qe.invalidOperation,t)}#me(e){if(isBindingIdentifier(e)){return this.#ye(e)}return this.#Se(e)}#ye(e){const t=this.#de.bindingService.getById(e.id);const n=t===undefined?undefined:[...t];const o=resolveBindingsDeactivations(this.#le,t);if(o===undefined){this.#Ee(n,e)}else{return o.then((()=>{this.#Ee(n,e)}))}}#Ee(e,t){this.#de.bindingService.removeById(t.id);if(e!==undefined){for(const t of e){this.#ue.invalidateService({binding:t,kind:Ie.bindingRemoved})}}}#he(){const e=[...this.#de.bindingService.getNonParentBoundServices()];const t=e.map((e=>resolveServiceDeactivations(this.#le,e)));const n=t.some((e=>isPromise(e)));if(n){return Promise.all(t).then((()=>{this.#ve(e)}))}this.#ve(e)}#ve(e){for(const t of e){this.#de.activationService.removeAllByServiceId(t);this.#de.bindingService.removeAllByServiceId(t);this.#de.deactivationService.removeAllByServiceId(t)}this.#de.planResultCacheService.clearCache()}#Se(e){const t=this.#de.bindingService.get(e);const n=t===undefined?undefined:[...t];const o=resolveBindingsDeactivations(this.#le,t);if(o===undefined){this.#Ce(e,n)}else{return o.then((()=>{this.#Ce(e,n)}))}}#Ce(e,t){this.#de.activationService.removeAllByServiceId(e);this.#de.bindingService.removeAllByServiceId(e);this.#de.deactivationService.removeAllByServiceId(e);if(t!==undefined){for(const e of t){this.#ue.invalidateService({binding:e,kind:Ie.bindingRemoved})}}}#fe(e,t,n){if(t===undefined){return false}const o={getAncestor:()=>undefined,name:n?.name,serviceIdentifier:e,tags:new Map};if(n?.tag!==undefined){o.tags.set(n.tag.key,n.tag.value)}for(const e of t){if(e.isSatisfiedBy(o)){return true}}return false}}class ContainerModuleManager{#Ie;#le;#oe;#ue;#de;constructor(e,t,n,o,i){this.#Ie=e;this.#le=t;this.#oe=n;this.#ue=o;this.#de=i}async loadAsync(...e){await Promise.all(this.#n(...e))}load(...e){const t=this.#n(...e);for(const e of t){if(e!==undefined){throw new InversifyContainerError(Qe.invalidOperation,"Unexpected asynchronous module load. Consider using container.loadAsync() instead.")}}}async unloadAsync(...e){await Promise.all(this.#be(...e));this.#we(e)}unload(...e){const t=this.#be(...e);for(const e of t){if(e!==undefined){throw new InversifyContainerError(Qe.invalidOperation,"Unexpected asynchronous module unload. Consider using container.unloadAsync() instead.")}}this.#we(e)}#Ae(e){return{bind:t=>new BindToFluentSyntaxImplementation((e=>{this.#pe(e)}),e,this.#oe,t),isBound:this.#Ie.isBound.bind(this.#Ie),onActivation:(t,n)=>{this.#de.activationService.add(n,{moduleId:e,serviceId:t})},onDeactivation:(t,n)=>{this.#de.deactivationService.add(n,{moduleId:e,serviceId:t})},rebind:this.#Ie.rebind.bind(this.#Ie),rebindAsync:this.#Ie.rebindAsync.bind(this.#Ie),unbind:this.#Ie.unbind.bind(this.#Ie),unbindAsync:this.#Ie.unbindAsync.bind(this.#Ie)}}#we(e){for(const t of e){this.#de.activationService.removeAllByModuleId(t.id);this.#de.bindingService.removeAllByModuleId(t.id);this.#de.deactivationService.removeAllByModuleId(t.id)}this.#de.planResultCacheService.clearCache()}#n(...e){return e.map((e=>e.load(this.#Ae(e.id))))}#pe(e){this.#de.bindingService.set(e);this.#ue.invalidateService({binding:e,kind:Ie.bindingAdded})}#be(...e){return e.map((e=>resolveModuleDeactivations(this.#le,e.id)))}}function resetDeactivationParams(e,t){t.getBindings=e.bindingService.get.bind(e.bindingService);t.getBindingsFromModule=e.bindingService.getByModuleId.bind(e.bindingService);t.getDeactivations=e.deactivationService.get.bind(e.deactivationService)}function buildDeactivationParams(e){return{getBindings:e.bindingService.get.bind(e.bindingService),getBindingsFromModule:e.bindingService.getByModuleId.bind(e.bindingService),getClassMetadata:getClassMetadata_getClassMetadata,getDeactivations:e.deactivationService.get.bind(e.deactivationService)}}class DeactivationParamsManager{deactivationParams;constructor(e){this.deactivationParams=buildDeactivationParams(e);e.onReset((()=>{resetDeactivationParams(e,this.deactivationParams)}))}}class PlanParamsOperationsManager{planParamsOperations;#de;constructor(e){this.#de=e;this.planParamsOperations={getBindings:this.#de.bindingService.get.bind(this.#de.bindingService),getBindingsChained:this.#de.bindingService.getChained.bind(this.#de.bindingService),getClassMetadata:getClassMetadata_getClassMetadata,getPlan:this.#de.planResultCacheService.get.bind(this.#de.planResultCacheService),setBinding:this.#pe.bind(this),setNonCachedServiceNode:this.#de.planResultCacheService.setNonCachedServiceNode.bind(this.#de.planResultCacheService),setPlan:this.#de.planResultCacheService.set.bind(this.#de.planResultCacheService)};this.#de.onReset((()=>{this.#Re()}))}#Re(){this.planParamsOperations.getBindings=this.#de.bindingService.get.bind(this.#de.bindingService);this.planParamsOperations.getBindingsChained=this.#de.bindingService.getChained.bind(this.#de.bindingService);this.planParamsOperations.setBinding=this.#pe.bind(this)}#pe(e){this.#de.bindingService.set(e);this.#de.planResultCacheService.invalidateServiceBinding({binding:e,kind:Ie.bindingAdded,operations:this.planParamsOperations})}}class PlanResultCacheManager{#Pe;#de;constructor(e,t){this.#Pe=e;this.#de=t}invalidateService(e){this.#de.planResultCacheService.invalidateServiceBinding({...e,operations:this.#Pe.planParamsOperations})}}const Ye=Symbol.for("@inversifyjs/plugin/isPlugin");class Plugin{[Ye]=true;_container;_context;constructor(e,t){this._container=e;this._context=t}}class PluginManager{#Te;#xe;#_e;#de;constructor(e,t,n){this.#de=t;this.#_e=n;this.#Te=this.#Oe(e);this.#xe=this.#Me()}register(e,t){const n=new t(e,this.#xe);this.#De(n);n.load(this.#Te)}#De(e){if(e[Ye]!==true){throw new InversifyContainerError(Qe.invalidOperation,"Invalid plugin. The plugin must extend the Plugin class")}}#Oe(e){return{define:(t,n)=>{if(Object.prototype.hasOwnProperty.call(e,t)){throw new InversifyContainerError(Qe.invalidOperation,`Container already has a method named "${String(t)}"`)}e[t]=n},onPlan:this.#_e.onPlan.bind(this.#_e)}}#Me(){const e=this.#de;return{get activationService(){return e.activationService},get bindingService(){return e.bindingService},get deactivationService(){return e.deactivationService},get planResultCacheService(){return e.planResultCacheService}}}}class ServiceReferenceManager{activationService;bindingService;deactivationService;planResultCacheService;#$e;constructor(e,t,n,o){this.activationService=e;this.bindingService=t;this.deactivationService=n;this.planResultCacheService=o;this.#$e=[]}reset(e,t,n){this.activationService=e;this.bindingService=t;this.deactivationService=n;this.planResultCacheService.clearCache();for(const e of this.#$e){e()}}onReset(e){this.#$e.push(e)}}class ServiceResolutionManager{#Ne;#oe;#ke;#Le;#Ue;#Pe;#de;constructor(e,t,n,o){this.#Pe=e;this.#de=t;this.#Le=this.#Fe();this.#Ne=n;this.#oe=o;this.#ke=e=>this.#de.activationService.get(e);this.#Ue=[];this.#de.onReset((()=>{this.#Re()}))}get(e,t){const n=this.#Be(false,e,t);const o=this.#qe(n);if(isPromise(o)){throw new InversifyContainerError(Qe.invalidOperation,`Unexpected asynchronous service when resolving service "${stringifyServiceIdentifier(e)}"`)}return o}getAll(e,t){const n=this.#Be(true,e,t);const o=this.#qe(n);if(isPromise(o)){throw new InversifyContainerError(Qe.invalidOperation,`Unexpected asynchronous service when resolving service "${stringifyServiceIdentifier(e)}"`)}return o}async getAllAsync(e,t){const n=this.#Be(true,e,t);return this.#qe(n)}async getAsync(e,t){const n=this.#Be(false,e,t);return this.#qe(n)}onPlan(e){this.#Ue.push(e)}#Re(){this.#Le=this.#Fe()}#je(e,t,n){const o=n?.name;const i=n?.optional??false;const a=n?.tag;if(e){return{chained:n?.chained??false,isMultiple:e,name:o,optional:i,serviceIdentifier:t,tag:a}}else{return{isMultiple:e,name:o,optional:i,serviceIdentifier:t,tag:a}}}#ze(e,t,n){const o={autobindOptions:n?.autobind??this.#Ne?{scope:this.#oe}:undefined,operations:this.#Pe.planParamsOperations,rootConstraints:this.#He(e,t,n),servicesBranch:[]};this.#Ve(o,n);return o}#He(e,t,n){if(t){return{chained:n?.chained??false,isMultiple:t,serviceIdentifier:e}}else{return{isMultiple:t,serviceIdentifier:e}}}#Be(e,t,n){const o=this.#je(e,t,n);const i=this.#de.planResultCacheService.get(o);if(i!==undefined){return i}const a=plan(this.#ze(t,e,n));for(const e of this.#Ue){e(o,a)}return a}#Fe(){return{get:this.get.bind(this),getAll:this.getAll.bind(this),getAllAsync:this.getAllAsync.bind(this),getAsync:this.getAsync.bind(this)}}#qe(e){return resolve({context:this.#Le,getActivations:this.#ke,planResult:e,requestScopeCache:new Map})}#Ve(e,t){if(t===undefined){return}if(t.name!==undefined){e.rootConstraints.name=t.name}if(t.optional===true){e.rootConstraints.isOptional=true}if(t.tag!==undefined){e.rootConstraints.tag={key:t.tag.key,value:t.tag.value}}if(e.rootConstraints.isMultiple){e.rootConstraints.chained=t?.chained??false}}}class SnapshotManager{#de;#Ge;constructor(e){this.#de=e;this.#Ge=[]}restore(){const e=this.#Ge.pop();if(e===undefined){throw new InversifyContainerError(Qe.invalidOperation,"No snapshot available to restore")}this.#de.reset(e.activationService,e.bindingService,e.deactivationService)}snapshot(){this.#Ge.push({activationService:this.#de.activationService.clone(),bindingService:this.#de.bindingService.clone(),deactivationService:this.#de.deactivationService.clone()})}}const Je=C.Transient;class Container{#Ie;#We;#Ke;#de;#_e;#Qe;constructor(e){const t=e?.autobind??false;const n=e?.defaultScope??Je;this.#de=this.#Ye(e,t,n);const o=new PlanParamsOperationsManager(this.#de);const i=new PlanResultCacheManager(o,this.#de);const a=new DeactivationParamsManager(this.#de);this.#Ie=new BindingManager(a.deactivationParams,n,i,this.#de);this.#We=new ContainerModuleManager(this.#Ie,a.deactivationParams,n,i,this.#de);this.#_e=new ServiceResolutionManager(o,this.#de,t,n);this.#Ke=new PluginManager(this,this.#de,this.#_e);this.#Qe=new SnapshotManager(this.#de)}bind(e){return this.#Ie.bind(e)}get(e,t){return this.#_e.get(e,t)}getAll(e,t){return this.#_e.getAll(e,t)}async getAllAsync(e,t){return this.#_e.getAllAsync(e,t)}async getAsync(e,t){return this.#_e.getAsync(e,t)}isBound(e,t){return this.#Ie.isBound(e,t)}isCurrentBound(e,t){return this.#Ie.isCurrentBound(e,t)}async loadAsync(...e){return this.#We.loadAsync(...e)}load(...e){this.#We.load(...e)}onActivation(e,t){this.#de.activationService.add(t,{serviceId:e})}onDeactivation(e,t){this.#de.deactivationService.add(t,{serviceId:e})}register(e){this.#Ke.register(this,e)}restore(){this.#Qe.restore()}async rebindAsync(e){return this.#Ie.rebindAsync(e)}rebind(e){return this.#Ie.rebind(e)}snapshot(){this.#Qe.snapshot()}async unbindAsync(e){await this.#Ie.unbindAsync(e)}async unbindAllAsync(){await this.#Ie.unbindAllAsync()}unbindAll(){this.#Ie.unbindAll()}unbind(e){this.#Ie.unbind(e)}async unloadAsync(...e){return this.#We.unloadAsync(...e)}unload(...e){this.#We.unload(...e)}#Je(e,t){if(e){return{scope:t}}return undefined}#Ye(e,t,n){const o=this.#Je(t,n);if(e?.parent===undefined){return new ServiceReferenceManager(ActivationsService.build((()=>undefined)),BindingService.build((()=>undefined),o),DeactivationsService.build((()=>undefined)),new PlanResultCacheService)}const i=new PlanResultCacheService;const a=e.parent;a.#de.planResultCacheService.subscribe(i);return new ServiceReferenceManager(ActivationsService.build((()=>a.#de.activationService)),BindingService.build((()=>a.#de.bindingService),o),DeactivationsService.build((()=>a.#de.deactivationService)),i)}}var Xe=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};let Ze=class ConsoleLogger{info(e){console.log(e)}warn(e){console.warn(e)}error(e){console.error(e)}};Ze=Xe([injectable()],Ze);var ht=__nccwpck_require__(1455);var It=__nccwpck_require__(8358);class DomainError extends Error{constructor(e){super(e);this.name=this.constructor.name;Error.captureStackTrace(this,this.constructor)}}class InvalidArgumentError extends DomainError{}class DependencyMissingError extends DomainError{}class SecretOperationError extends DomainError{}class EnvironmentFileError extends DomainError{}class ParameterNotFoundError extends DomainError{constructor(e){super(`Parameter not found: ${e}`);this.paramName=e}}const Rt={ILogger:Symbol.for("ILogger"),ISecretProvider:Symbol.for("ISecretProvider"),IVariableStore:Symbol.for("IVariableStore")};const Pt={PullSecretsToEnvCommandHandler:Symbol.for("PullSecretsToEnvCommandHandler"),PushEnvToSecretsCommandHandler:Symbol.for("PushEnvToSecretsCommandHandler"),PushSingleCommandHandler:Symbol.for("PushSingleCommandHandler"),DispatchActionCommandHandler:Symbol.for("DispatchActionCommandHandler")};const _t={};const Mt=Object.assign(Object.assign(Object.assign({},Rt),Pt),_t);var Dt=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var $t=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};var kt=undefined&&undefined.__param||function(e,t){return function(n,o){t(n,o,e)}};var Lt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Ut=undefined&&undefined.__rest||function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++){if(t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i]))n[o[i]]=e[o[i]]}return n};let Ft=class FileVariableStore{constructor(e){if(!e){throw new DependencyMissingError("Logger must be specified")}this.logger=e}getMapping(e){return Lt(this,void 0,void 0,(function*(){const{mappings:t}=yield this.getParsedMapping(e);return t}))}getParsedMapping(e){return Lt(this,void 0,void 0,(function*(){const t=yield this.readJsonFile(e);const{$config:n}=t,o=Ut(t,["$config"]);const i=n&&typeof n==="object"?n:{};return{config:i,mappings:o}}))}readJsonFile(e){return Lt(this,void 0,void 0,(function*(){try{const t=yield ht.readFile(e,"utf-8");try{return JSON.parse(t)}catch(t){this.logger.error(`Error parsing JSON from ${e}`);throw new EnvironmentFileError(`Invalid JSON in parameter map file: ${e}`)}}catch(t){if(t instanceof EnvironmentFileError){throw t}throw new EnvironmentFileError(`Failed to read map file: ${e}`)}}))}getEnvironment(e){return Lt(this,void 0,void 0,(function*(){const t={};try{yield ht.access(e)}catch(e){return t}const n=yield ht.readFile(e,"utf-8");const o=It.parse(n)||{};Object.assign(t,o);return t}))}saveEnvironment(e,t){return Lt(this,void 0,void 0,(function*(){const n=Object.entries(t).map((([e,t])=>`${e}=${this.escapeEnvValue(t)}`)).join("\n");try{yield ht.writeFile(e,n)}catch(e){const t=e instanceof Error?e.message:String(e);this.logger.error(`Failed to write environment file: ${t}`);throw new EnvironmentFileError(`Failed to write environment file: ${t}`)}}))}escapeEnvValue(e){return e.replace(/(\r\n|\n|\r)/g,"\\n")}};Ft=Dt([injectable(),kt(0,inject(Mt.ILogger)),$t("design:paramtypes",[Object])],Ft);function readMapFileConfig(e){return Lt(this,void 0,void 0,(function*(){try{const t=yield ht.readFile(e,"utf-8");try{const e=JSON.parse(t);const n=e.$config;return n&&typeof n==="object"?n:{}}catch(t){throw new EnvironmentFileError(`Invalid JSON in parameter map file: ${e}`)}}catch(t){if(t instanceof EnvironmentFileError){throw t}throw new EnvironmentFileError(`Failed to read map file: ${e}`)}}))}class PullSecretsToEnvCommand{constructor(e,t){this.mapPath=e;this.envFilePath=t}static create(e,t){return new PullSecretsToEnvCommand(e,t)}}class PushEnvToSecretsCommand{constructor(e,t){this.mapPath=e;this.envFilePath=t}static create(e,t){return new PushEnvToSecretsCommand(e,t)}}class PushSingleCommand{constructor(e,t,n){this.key=e;this.value=t;this.secretPath=n}static create(e,t,n){return new PushSingleCommand(e,t,n)}}var Bt=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var qt=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};var jt=undefined&&undefined.__param||function(e,t){return function(n,o){t(n,o,e)}};var zt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};let Ht=class DispatchActionCommandHandler{constructor(e,t,n){this.pullHandler=e;this.pushHandler=t;this.pushSingleHandler=n}handleCommand(e){return zt(this,void 0,void 0,(function*(){switch(e.mode){case a.PUSH_SINGLE:yield this.handlePushSingle(e);break;case a.PUSH_ENV_TO_SECRETS:yield this.handlePush(e);break;case a.PULL_SECRETS_TO_ENV:yield this.handlePull(e);break;default:yield this.handlePull(e);break}}))}handlePushSingle(e){return zt(this,void 0,void 0,(function*(){if(!e.key||!e.value||!e.secretPath){throw new InvalidArgumentError("Missing required arguments: --key, --value, and --secret-path")}const t=PushSingleCommand.create(e.key,e.value,e.secretPath);yield this.pushSingleHandler.handle(t)}))}handlePush(e){return zt(this,void 0,void 0,(function*(){this.validateMapAndEnvFileOptions(e);const t=PushEnvToSecretsCommand.create(e.map,e.envfile);yield this.pushHandler.handle(t)}))}handlePull(e){return zt(this,void 0,void 0,(function*(){this.validateMapAndEnvFileOptions(e);const t=PullSecretsToEnvCommand.create(e.map,e.envfile);yield this.pullHandler.handle(t)}))}validateMapAndEnvFileOptions(e){if(!e.map||!e.envfile){throw new InvalidArgumentError("Missing required arguments: --map and --envfile")}}};Ht=Bt([injectable(),jt(0,inject(Mt.PullSecretsToEnvCommandHandler)),jt(1,inject(Mt.PushEnvToSecretsCommandHandler)),jt(2,inject(Mt.PushSingleCommandHandler)),qt("design:paramtypes",[Function,Function,Function])],Ht);class EnvironmentVariable{constructor(e,t,n=false){this.validate(e,t);this._name=e;this._value=t;this._isSecret=n}get name(){return this._name}get value(){return this._value}get isSecret(){return this._isSecret}get maskedValue(){if(!this._isSecret){return this._value}return EnvironmentVariable.mask(this._value,10)}static maskSecretPath(e){return EnvironmentVariable.mask(e,3)}static mask(e,t){return e.length>t?"*".repeat(e.length-3)+e.slice(-3):"*".repeat(e.length)}validate(e,t){if(!e||e.trim()===""){throw new Error("Environment variable name cannot be empty")}if(t===undefined||t===null){throw new Error(`Value for environment variable ${e} cannot be null or undefined`)}}}var Vt=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Gt=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};var Wt=undefined&&undefined.__param||function(e,t){return function(n,o){t(n,o,e)}};var Kt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Qt;let Yt=Qt=class PullSecretsToEnvCommandHandler{constructor(e,t,n){this.secretProvider=e;this.variableStore=t;this.logger=n}handle(e){return Kt(this,void 0,void 0,(function*(){try{const{requestVariables:t,currentVariables:n}=yield this.loadVariables(e);const o=yield this.envild(t,n);yield this.saveEnvFile(e.envFilePath,o);this.logger.info(`${Qt.SUCCESS_MESSAGES.ENV_GENERATED}'${e.envFilePath}'`)}catch(e){const t=e instanceof Error?e.message:String(e);this.logger.error(`${Qt.ERROR_MESSAGES.FETCH_FAILED}${t}`);throw e}}))}loadVariables(e){return Kt(this,void 0,void 0,(function*(){const t=yield this.variableStore.getMapping(e.mapPath);const n=yield this.variableStore.getEnvironment(e.envFilePath);return{requestVariables:t,currentVariables:n}}))}saveEnvFile(e,t){return Kt(this,void 0,void 0,(function*(){yield this.variableStore.saveEnvironment(e,t)}))}envild(e,t){return Kt(this,void 0,void 0,(function*(){const n=Object.entries(e).map((e=>Kt(this,[e],void 0,(function*([e,n]){return this.processSecret(e,n,t)}))));const o=yield Promise.all(n);const i=o.filter((e=>e!==null));if(i.length>0){throw new Error(`${Qt.ERROR_MESSAGES.PARAM_NOT_FOUND}${i.join("\n")}`)}return t}))}processSecret(e,t,n){return Kt(this,void 0,void 0,(function*(){try{const o=yield this.secretProvider.getSecret(t);if(!o){this.logger.warn(`${Qt.ERROR_MESSAGES.NO_VALUE_FOUND}'${t}'`);return null}n[e]=o;const i=new EnvironmentVariable(e,o,true);this.logger.info(`${i.name}=${i.maskedValue}`);return null}catch(e){this.logger.error(`${Qt.ERROR_MESSAGES.ERROR_FETCHING}'${t}'`);return`ParameterNotFound: ${t}`}}))}};Yt.ERROR_MESSAGES={FETCH_FAILED:"Failed to generate environment file: ",PARAM_NOT_FOUND:"Some secrets could not be fetched:\n",NO_VALUE_FOUND:"Warning: No value found for: ",ERROR_FETCHING:"Error fetching secret: "};Yt.SUCCESS_MESSAGES={ENV_GENERATED:"Environment File generated at "};Yt=Qt=Vt([injectable(),Wt(0,inject(Mt.ISecretProvider)),Wt(1,inject(Mt.IVariableStore)),Wt(2,inject(Mt.ILogger)),Gt("design:paramtypes",[Object,Object,Object])],Yt);var Jt=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Xt=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};var Zt=undefined&&undefined.__param||function(e,t){return function(n,o){t(n,o,e)}};var en=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};let tn=class PushEnvToSecretsCommandHandler{constructor(e,t,n){this.secretProvider=e;this.variableStore=t;this.logger=n}handle(e){return en(this,void 0,void 0,(function*(){try{this.logger.info(`Starting push operation from '${e.envFilePath}' using map '${e.mapPath}'`);const t=yield this.loadConfiguration(e);const n=this.validateAndGroupByPath(t);yield this.pushParametersToStore(n);this.logger.info(`Successfully pushed environment variables from '${e.envFilePath}' to secret store.`)}catch(e){const t=this.getErrorMessage(e);this.logger.error(`Failed to push environment file: ${t}`);throw e}}))}loadConfiguration(e){return en(this,void 0,void 0,(function*(){this.logger.info(`Loading parameter map from '${e.mapPath}'`);const t=yield this.variableStore.getMapping(e.mapPath);this.logger.info(`Loading environment variables from '${e.envFilePath}'`);const n=yield this.variableStore.getEnvironment(e.envFilePath);this.logger.info(`Found ${Object.keys(t).length} parameter mappings in map file`);this.logger.info(`Found ${Object.keys(n).length} environment variables in env file`);return{paramMap:t,envVariables:n}}))}validateAndGroupByPath(e){const{paramMap:t,envVariables:n}=e;const o=new Map;for(const[e,i]of Object.entries(t)){const t=n[e];if(t===undefined){this.logger.warn(`Warning: Environment variable ${e} not found in environment file`);continue}const a=o.get(i);if(a){if(a.value!==t){const n=new EnvironmentVariable(a.sourceKeys[0],a.value,true).maskedValue;const o=new EnvironmentVariable(e,t,true).maskedValue;throw new Error(`Conflicting values for secret path '${i}': `+`'${a.sourceKeys[0]}' has value '${n}' `+`but '${e}' has value '${o}'`)}a.sourceKeys.push(e)}else{o.set(i,{value:t,sourceKeys:[e]})}}const i=o.size;const a=Object.keys(t).length;this.logger.info(`Validated ${a} environment variables mapping to ${i} unique secrets`);return o}pushParametersToStore(e){return en(this,void 0,void 0,(function*(){const t=Array.from(e.keys());this.logger.info(`Processing ${t.length} unique secrets`);const n=Array.from(e.entries()).map((([e,{value:t,sourceKeys:n}])=>this.retryWithBackoff((()=>this.pushParameter(e,t,n)))));yield Promise.all(n)}))}pushParameter(e,t,n){return en(this,void 0,void 0,(function*(){const o=new EnvironmentVariable(n[0],t,true);yield this.secretProvider.setSecret(e,t);const i=n.length>1?`${n.join(", ")}`:n[0];this.logger.info(`Pushed ${i}=${o.maskedValue} to secret store at path ${e}`)}))}retryWithBackoff(e){return en(this,arguments,void 0,(function*(e,t=5,n=100){let o;for(let i=0;i<=t;i++){try{return yield e()}catch(e){o=e;const a=typeof e==="object"&&e!==null&&("name"in e&&(e.name==="TooManyUpdates"||e.name==="ThrottlingException"||e.name==="TooManyRequestsException")||"statusCode"in e&&e.statusCode===429);if(!a||i===t){throw e}const d=n*2**i;const f=Math.random()*d*.5;const m=d+f;yield new Promise((e=>setTimeout(e,m)))}}throw o}))}getErrorMessage(e){if(e instanceof Error){return e.message}if(typeof e==="string"){return e}if(e===null){return"Unknown error (null)"}if(e===undefined){return"Unknown error (undefined)"}if(typeof e==="object"){const t=e;if(t.name){return t.message?`${t.name}: ${t.message}`:t.name}const n=[];if(t.code)n.push(`code: ${t.code}`);if(t.message)n.push(`message: ${t.message}`);if(n.length>0){return`Object error (${n.join(", ")})`}return`Object error: ${Object.keys(e).join(", ")}`}return`Unknown error: ${String(e)}`}};tn=Jt([injectable(),Zt(0,inject(Mt.ISecretProvider)),Zt(1,inject(Mt.IVariableStore)),Zt(2,inject(Mt.ILogger)),Xt("design:paramtypes",[Object,Object,Object])],tn);var nn=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var rn=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};var on=undefined&&undefined.__param||function(e,t){return function(n,o){t(n,o,e)}};var sn=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};let an=class PushSingleCommandHandler{constructor(e,t){this.secretProvider=e;this.logger=t}handle(e){return sn(this,void 0,void 0,(function*(){try{this.logger.info(`Starting push operation for key '${e.key}' to path '${EnvironmentVariable.maskSecretPath(e.secretPath)}'`);const t=new EnvironmentVariable(e.key,e.value,true);yield this.secretProvider.setSecret(e.secretPath,e.value);this.logger.info(`Pushed ${e.key}=${t.maskedValue} to secret store at path ${EnvironmentVariable.maskSecretPath(e.secretPath)}`)}catch(e){const t=e instanceof Error?e.message:String(e);this.logger.error(`Failed to push variable to secret store: ${t}`);throw e}}))}};an=nn([injectable(),on(0,inject(Mt.ISecretProvider)),on(1,inject(Mt.ILogger)),rn("design:paramtypes",[Object,Object])],an);var cn=__nccwpck_require__(4861);var ln=__nccwpck_require__(8897);var un=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var dn=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};var pn=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};let mn=class AwsSsmSecretProvider{constructor(e){this.ssm=e}getSecret(e){return pn(this,void 0,void 0,(function*(){try{const t=new cn.GetParameterCommand({Name:e,WithDecryption:true});const{Parameter:n}=yield this.ssm.send(t);return n===null||n===void 0?void 0:n.Value}catch(t){if(typeof t==="object"&&t!==null&&"name"in t&&t.name==="ParameterNotFound"){return undefined}const n=t instanceof Error?t.message:String(t);throw new SecretOperationError(`Failed to get secret ${EnvironmentVariable.maskSecretPath(e)}: ${n}`)}}))}setSecret(e,t){return pn(this,void 0,void 0,(function*(){const n=new cn.PutParameterCommand({Name:e,Value:t,Type:"SecureString",Overwrite:true});yield this.ssm.send(n)}))}};mn=un([injectable(),dn("design:paramtypes",[Function])],mn);function createAwsSecretProvider(e){const t=e.profile?new cn.SSM({credentials:(0,ln.fromIni)({profile:e.profile})}):new cn.SSM;return new mn(t)}const hn=`4.13.1`;const gn="04b07795-8ddb-461a-bbee-02f9e1bf7b46";const yn="common";var Sn;(function(e){e["AzureChina"]="https://login.chinacloudapi.cn";e["AzureGermany"]="https://login.microsoftonline.de";e["AzureGovernment"]="https://login.microsoftonline.us";e["AzurePublicCloud"]="https://login.microsoftonline.com"})(Sn||(Sn={}));const En=Sn.AzurePublicCloud;const vn="login.microsoftonline.com";const Cn=["*"];const In="cae";const bn="nocae";const wn="msal.cache";let An=undefined;const Rn={setPersistence(e){An=e}};let Pn=undefined;let Tn=undefined;let xn=undefined;function hasNativeBroker(){return Pn!==undefined}function hasVSCodePlugin(){return Tn!==undefined&&xn!==undefined}const _n={setNativeBroker(e){Pn={broker:e}}};const On={setVSCodeAuthRecordPath(e){Tn=e},setVSCodeBroker(e){xn={broker:e}}};function generatePluginConfiguration(e){const t={cache:{},broker:{...e.brokerOptions,isEnabled:e.brokerOptions?.enabled??false,enableMsaPassthrough:e.brokerOptions?.legacyEnableMsaPassthrough??false}};if(e.tokenCachePersistenceOptions?.enabled){if(An===undefined){throw new Error(["Persistent token caching was requested, but no persistence provider was configured.","You must install the identity-cache-persistence plugin package (`npm install --save @azure/identity-cache-persistence`)","and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling","`useIdentityPlugin(cachePersistencePlugin)` before using `tokenCachePersistenceOptions`."].join(" "))}const n=e.tokenCachePersistenceOptions.name||wn;t.cache.cachePlugin=An({name:`${n}.${bn}`,...e.tokenCachePersistenceOptions});t.cache.cachePluginCae=An({name:`${n}.${In}`,...e.tokenCachePersistenceOptions})}if(e.brokerOptions?.enabled){t.broker.nativeBrokerPlugin=getBrokerPlugin(e.isVSCodeCredential||false)}return t}const Mn={missing:(e,t,n)=>[`${e} was requested, but no plugin was configured or no authentication record was found.`,`You must install the ${t} plugin package (npm install --save ${t})`,"and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling",`useIdentityPlugin(${n}) before using enableBroker.`].join(" "),unavailable:(e,t)=>[`${e} was requested, and the plugin is configured, but the broker is unavailable.`,`Ensure the ${e} plugin is properly installed and configured.`,"Check for missing native dependencies and ensure the package is properly installed.",`See the README for prerequisites on installing and using ${t}.`].join(" ")};const Dn={vsCode:{credentialName:"Visual Studio Code Credential",packageName:"@azure/identity-vscode",pluginVar:"vsCodePlugin",get brokerInfo(){return xn}},native:{credentialName:"Broker for WAM",packageName:"@azure/identity-broker",pluginVar:"nativeBrokerPlugin",get brokerInfo(){return Pn}}};function getBrokerPlugin(e){const{credentialName:t,packageName:n,pluginVar:o,brokerInfo:i}=Dn[e?"vsCode":"native"];if(i===undefined){throw new Error(Mn.missing(t,n,o))}if(i.broker.isBrokerAvailable===false){throw new Error(Mn.unavailable(t,n))}return i.broker}const $n={generatePluginConfiguration:generatePluginConfiguration};const Nn={cachePluginControl:Rn,nativeBrokerPluginControl:_n,vsCodeCredentialControl:On};function useIdentityPlugin(e){e(Nn)}function isErrorResponse(e){return e&&typeof e.error==="string"&&typeof e.error_description==="string"}const kn="CredentialUnavailableError";class errors_CredentialUnavailableError extends Error{constructor(e,t){super(e,t);this.name=kn}}const Ln="AuthenticationError";class errors_AuthenticationError extends Error{statusCode;errorResponse;constructor(e,t,n){let o={error:"unknown",errorDescription:"An unknown error occurred and no additional details are available."};if(isErrorResponse(t)){o=convertOAuthErrorResponseToErrorResponse(t)}else if(typeof t==="string"){try{const e=JSON.parse(t);o=convertOAuthErrorResponseToErrorResponse(e)}catch(n){if(e===400){o={error:"invalid_request",errorDescription:`The service indicated that the request was invalid.\n\n${t}`}}else{o={error:"unknown_error",errorDescription:`An unknown error has occurred. Response body:\n\n${t}`}}}}else{o={error:"unknown_error",errorDescription:"An unknown error occurred and no additional details are available."}}super(`${o.error} Status code: ${e}\nMore details:\n${o.errorDescription},`,n);this.statusCode=e;this.errorResponse=o;this.name=Ln}}const Un="AggregateAuthenticationError";class AggregateAuthenticationError extends Error{errors;constructor(e,t){const n=e.join("\n");super(`${t}\n${n}`);this.errors=e;this.name=Un}}function convertOAuthErrorResponseToErrorResponse(e){return{error:e.error,errorDescription:e.error_description,correlationId:e.correlation_id,errorCodes:e.error_codes,timestamp:e.timestamp,traceId:e.trace_id}}class AuthenticationRequiredError extends Error{scopes;getTokenOptions;constructor(e){super(e.message,e.cause?{cause:e.cause}:undefined);this.scopes=e.scopes;this.getTokenOptions=e.getTokenOptions;this.name="AuthenticationRequiredError"}}var Fn=__nccwpck_require__(8161);var Bn=__nccwpck_require__(7975);var qn=__nccwpck_require__(1708);function log(e,...t){qn.stderr.write(`${Bn.format(e,...t)}${Fn.EOL}`)}const jn=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let zn;let Hn=[];let Vn=[];const Gn=[];if(jn){enable(jn)}const Wn=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){zn=e;Hn=[];Vn=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){Vn.push(e.substring(1))}else{Hn.push(e)}}for(const e of Gn){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of Vn){if(namespaceMatches(e,t)){return false}}for(const t of Hn){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let n=t;if(t.indexOf("**")!==-1){const e=[];let o="";for(const n of t){if(n==="*"&&o==="*"){continue}else{o=n;e.push(n)}}n=e.join("")}let o=0;let i=0;const a=n.length;const d=e.length;let f=-1;let m=-1;while(o<d&&i<a){if(n[i]==="*"){f=i;i++;if(i===a){return true}while(e[o]!==n[i]){o++;if(o===d){return false}}m=o;o++;i++;continue}else if(n[i]===e[o]){i++;o++}else if(f>=0){i=f+1;o=m+1;if(o===d){return false}while(e[o]!==n[i]){o++;if(o===d){return false}}m=o;o++;i++;continue}else{return false}}const h=o===e.length;const C=i===n.length;const P=i===n.length-1&&n[i]==="*";return h&&(C||P)}function disable(){const e=zn||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:Wn.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}Gn.push(t);return t}function destroy(){const e=Gn.indexOf(this);if(e>=0){Gn.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const Kn=Wn;const Qn=["verbose","info","warning","error"];const Yn={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return Qn.includes(e)}function createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let o;const i=Kn(e.namespace);i.log=(...e)=>{Kn.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${Qn.join(",")}`)}o=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}Kn.enable(n.join(","))}if(n){if(isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${Qn.join(", ")}.`)}}function shouldEnable(e){return Boolean(o&&Yn[e.level]<=Yn[o])}function createLogger(e,n){const o=Object.assign(e.extend(n),{level:n});patchLogMethod(e,o);if(shouldEnable(o)){const e=Kn.disable();Kn.enable(e+","+o.namespace)}t.add(o);return o}function contextGetLogLevel(){return o}function contextCreateClientLogger(e){const t=i.extend(e);patchLogMethod(i,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:i}}const Jn=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const Xn=Jn.logger;function setLogLevel(e){Jn.setLogLevel(e)}function getLogLevel(){return Jn.getLogLevel()}function createClientLogger(e){return Jn.createClientLogger(e)}const Zn=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const er=Zn.logger;function esm_setLogLevel(e){Zn.setLogLevel(e)}function esm_getLogLevel(){return Zn.getLogLevel()}function esm_createClientLogger(e){return Zn.createClientLogger(e)}const tr=esm_createClientLogger("identity");function processEnvVars(e){return e.reduce(((e,t)=>{if(process.env[t]){e.assigned.push(t)}else{e.missing.push(t)}return e}),{missing:[],assigned:[]})}function logEnvVars(e,t){const{assigned:n}=processEnvVars(t);tr.info(`${e} => Found the following environment variables: ${n.join(", ")}`)}function formatSuccess(e){return`SUCCESS. Scopes: ${Array.isArray(e)?e.join(", "):e}.`}function logging_formatError(e,t){let n="ERROR.";if(e?.length){n+=` Scopes: ${Array.isArray(e)?e.join(", "):e}.`}return`${n} Error message: ${typeof t==="string"?t:t.message}.`}function credentialLoggerInstance(e,t,n=tr){const o=t?`${t.fullTitle} ${e}`:e;function info(e){n.info(`${o} =>`,e)}function warning(e){n.warning(`${o} =>`,e)}function verbose(e){n.verbose(`${o} =>`,e)}function error(e){n.error(`${o} =>`,e)}return{title:e,fullTitle:o,info:info,warning:warning,verbose:verbose,error:error}}function credentialLogger(e,t=tr){const n=credentialLoggerInstance(e,undefined,t);return{...n,parent:t,getToken:credentialLoggerInstance("=> getToken()",n,t)}}const nr={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let t=new TracingContextImpl(e.parentContext);if(e.span){t=t.setValue(nr.span,e.span)}if(e.namespace){t=t.setValue(nr.namespace,e.namespace)}return t}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const n=new TracingContextImpl(this);n._contextMap.set(e,t);return n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}var rr=__nccwpck_require__(4480);const or=rr.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!or.instrumenterImplementation){or.instrumenterImplementation=createDefaultInstrumenter()}return or.instrumenterImplementation}function createTracingClient(e){const{namespace:t,packageName:n,packageVersion:o}=e;function startSpan(e,i,a){const d=getInstrumenter().startSpan(e,{...a,packageName:n,packageVersion:o,tracingContext:i?.tracingOptions?.tracingContext});let f=d.tracingContext;const m=d.span;if(!f.getValue(nr.namespace)){f=f.setValue(nr.namespace,t)}m.setAttribute("az.namespace",f.getValue(nr.namespace));const h=Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:f}});return{span:m,updatedOptions:h}}async function withSpan(e,t,n,o){const{span:i,updatedOptions:a}=startSpan(e,t,o);try{const e=await withContext(a.tracingOptions.tracingContext,(()=>Promise.resolve(n(a,i))));i.setStatus({status:"success"});return e}catch(e){i.setStatus({status:"error",error:e});throw e}finally{i.end()}}function withContext(e,t,...n){return getInstrumenter().withContext(e,t,...n)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const ir=createTracingClient({namespace:"Microsoft.AAD",packageName:"@azure/identity",packageVersion:hn});const sr=credentialLogger("ChainedTokenCredential");class ChainedTokenCredential{_sources=[];constructor(...e){this._sources=e}async getToken(e,t={}){const{token:n}=await this.getTokenInternal(e,t);return n}async getTokenInternal(e,t={}){let n=null;let o;const i=[];return ir.withSpan("ChainedTokenCredential.getToken",t,(async t=>{for(let a=0;a<this._sources.length&&n===null;a++){try{n=await this._sources[a].getToken(e,t);o=this._sources[a]}catch(t){if(t.name==="CredentialUnavailableError"||t.name==="AuthenticationRequiredError"){i.push(t)}else{sr.getToken.info(logging_formatError(e,t));throw t}}}if(!n&&i.length>0){const t=new AggregateAuthenticationError(i,"ChainedTokenCredential authentication failed.");sr.getToken.info(logging_formatError(e,t));throw t}sr.getToken.info(`Result for ${o.constructor.name}: ${formatSuccess(e)}`);if(n===null){throw new errors_CredentialUnavailableError("Failed to retrieve a valid token")}return{token:n,successfulCredential:o}}))}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const ar="msal.js.common";const cr="https://login.microsoftonline.com/common/";const lr="login.microsoftonline.com";const ur="common";const dr="adfs";const pr="dstsv2";const fr=`${cr}discovery/instance?api-version=1.1&authorization_endpoint=`;const mr=".ciamlogin.com";const hr=".onmicrosoft.com";const gr="|";const yr="9188040d-6c67-4c5b-b112-36a304b66dad";const Sr="openid";const Er="profile";const vr="offline_access";const Cr="email";const Ir="authorization_code";const br="S256";const wr="application/x-www-form-urlencoded;charset=utf-8";const Ar="authorization_pending";const Rr="N/A";const Pr="Not Available";const Tr="/";const xr="http://169.254.169.254/metadata/instance/compute/location";const _r="2020-06-01";const Or=2e3;const Mr="TryAutoDetect";const Dr="login.microsoft.com";const $r=["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"];const Nr=240;const kr="invalid_instance";const Lr=200;const Ur=200;const Fr=299;const Br=302;const qr=400;const jr=400;const zr=400;const Hr=401;const Vr=404;const Gr=408;const Wr=410;const Kr=429;const Qr=499;const Yr=500;const Jr=500;const Xr=503;const Zr=504;const eo=599;const to=600;const no={GET:"GET",POST:"POST"};const ro=[Sr,Er,vr];const oo=[...ro,Cr];const io={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"};const so={ACTIVE_ACCOUNT_FILTERS:"active-account-filters"};const ao={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"};const co={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"};const lo={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"};const uo={PLAIN:"plain",S256:"S256"};const po={CODE:"code",IDTOKEN_TOKEN:"id_token token",IDTOKEN_TOKEN_REFRESHTOKEN:"id_token token refresh_token"};const fo={QUERY:"query",FRAGMENT:"fragment",FORM_POST:"form_post"};const mo={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"};const ho="MSSTS";const go="ADFS";const yo="MSA";const So="Generic";const Eo="-";const vo=".";const Co={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"};const Io={ADFS:1001,MSA:1002,MSSTS:1003,GENERIC:1004,ACCESS_TOKEN:2001,REFRESH_TOKEN:2002,ID_TOKEN:2003,APP_METADATA:3001,UNDEFINED:9999};const bo="appmetadata";const wo="client_info";const Ao="1";const Ro="authority-metadata";const Po=3600*24;const To={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"};const xo=5;const _o=80;const Oo=330;const Mo=50;const Do="server-telemetry";const $o="|";const No=",";const ko="1";const Lo="0";const Uo="unknown_error";const Fo={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"};const Bo=60;const qo=3600;const jo="throttling";const zo="retry-after, h429";const Ho="invalid_grant";const Vo="client_mismatch";const Go={username:"username",password:"password"};const Wo={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"};const Ko={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"};const Qo={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"};const Yo={Jwt:"JWT",Jwk:"JWK",Pop:"pop"};const Jo=864e5;const Xo=300;const Zo={BASE64:"base64",HEX:"hex",UTF8:"utf-8"}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +var ei;(function(e){e[e["Error"]=0]="Error";e[e["Warning"]=1]="Warning";e[e["Info"]=2]="Info";e[e["Verbose"]=3]="Verbose";e[e["Trace"]=4]="Trace"})(ei||(ei={}));const ti=50;const ni=500;const ri=new Map;function markAsRecentlyUsed(e,t){ri.delete(e);ri.set(e,t)}function addLogToCache(e,t){const n=Date.now();let o=ri.get(e);if(o){markAsRecentlyUsed(e,o)}else{o={logs:[],firstEventTime:n};ri.set(e,o);if(ri.size>ti){const e=ri.keys().next().value;if(e){ri.delete(e)}}}o.logs.push({...t,milliseconds:n-o.firstEventTime});if(o.logs.length>ni){o.logs.shift()}}function getAndFlushLogsFromCache(e){const t=[];for(const n of["",e]){const e=ri.get(n);t.push(...e?.logs??[]);ri.delete(n)}return t}function isHashedString(e){if(e.length!==6){return false}for(let t=0;t<e.length;t++){const n=e[t];const o=n>="a"&&n<="z"||n>="A"&&n<="Z"||n>="0"&&n<="9";if(!o){return false}}return true}class Logger{constructor(e,t,n){this.level=ei.Info;const defaultLoggerCallback=()=>{};const o=e||Logger.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||defaultLoggerCallback;this.piiLoggingEnabled=o.piiLoggingEnabled||false;this.level=typeof o.logLevel==="number"?o.logLevel:ei.Info;this.packageName=t||"";this.packageVersion=n||""}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:false,logLevel:ei.Info}}clone(e,t){return new Logger({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level},e,t)}logMessage(e,t){const n=t.correlationId;const o=isHashedString(e);if(o){const o={hash:e,level:t.logLevel,containsPii:t.containsPii||false,milliseconds:0};addLogToCache(n,o)}if(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii){return}const i=(new Date).toUTCString();const a=`[${i}] : [${n}]`;const d=`${a} : ${this.packageName}@${this.packageVersion} : ${ei[t.logLevel]} - ${e}`;this.executeCallback(t.logLevel,d,t.containsPii||false)}executeCallback(e,t,n){if(this.localCallback){this.localCallback(e,t,n)}}error(e,t){this.logMessage(e,{logLevel:ei.Error,containsPii:false,correlationId:t})}errorPii(e,t){this.logMessage(e,{logLevel:ei.Error,containsPii:true,correlationId:t})}warning(e,t){this.logMessage(e,{logLevel:ei.Warning,containsPii:false,correlationId:t})}warningPii(e,t){this.logMessage(e,{logLevel:ei.Warning,containsPii:true,correlationId:t})}info(e,t){this.logMessage(e,{logLevel:ei.Info,containsPii:false,correlationId:t})}infoPii(e,t){this.logMessage(e,{logLevel:ei.Info,containsPii:true,correlationId:t})}verbose(e,t){this.logMessage(e,{logLevel:ei.Verbose,containsPii:false,correlationId:t})}verbosePii(e,t){this.logMessage(e,{logLevel:ei.Verbose,containsPii:true,correlationId:t})}trace(e,t){this.logMessage(e,{logLevel:ei.Trace,containsPii:false,correlationId:t})}tracePii(e,t){this.logMessage(e,{logLevel:ei.Trace,containsPii:true,correlationId:t})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||false}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const oi="system_assigned_managed_identity";const ii="managed_identity";const si=`https://login.microsoftonline.com/${ii}/`;const ai={AUTHORIZATION_HEADER_NAME:"Authorization",METADATA_HEADER_NAME:"Metadata",APP_SERVICE_SECRET_HEADER_NAME:"X-IDENTITY-HEADER",ML_AND_SF_SECRET_HEADER_NAME:"secret"};const ci={API_VERSION:"api-version",RESOURCE:"resource",SHA256_TOKEN_TO_REFRESH:"token_sha256_to_refresh",XMS_CC:"xms_cc"};const li={AZURE_POD_IDENTITY_AUTHORITY_HOST:"AZURE_POD_IDENTITY_AUTHORITY_HOST",DEFAULT_IDENTITY_CLIENT_ID:"DEFAULT_IDENTITY_CLIENT_ID",IDENTITY_ENDPOINT:"IDENTITY_ENDPOINT",IDENTITY_HEADER:"IDENTITY_HEADER",IDENTITY_SERVER_THUMBPRINT:"IDENTITY_SERVER_THUMBPRINT",IMDS_ENDPOINT:"IMDS_ENDPOINT",MSI_ENDPOINT:"MSI_ENDPOINT",MSI_SECRET:"MSI_SECRET"};const ui={APP_SERVICE:"AppService",AZURE_ARC:"AzureArc",CLOUD_SHELL:"CloudShell",DEFAULT_TO_IMDS:"DefaultToImds",IMDS:"Imds",MACHINE_LEARNING:"MachineLearning",SERVICE_FABRIC:"ServiceFabric"};const di={SYSTEM_ASSIGNED:"system-assigned",USER_ASSIGNED_CLIENT_ID:"user-assigned-client-id",USER_ASSIGNED_RESOURCE_ID:"user-assigned-resource-id",USER_ASSIGNED_OBJECT_ID:"user-assigned-object-id"};const pi={GET:"GET",POST:"POST"};const fi="REGION_NAME";const mi="MSAL_FORCE_REGION";const hi=32;const gi={SHA256:"sha256"};const yi={CV_CHARSET:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~"};const Si={KEY_SEPARATOR:"-"};const Ei={MSAL_SKU:"msal.js.node",JWT_BEARER_ASSERTION_TYPE:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer",HTTP_PROTOCOL:"http://",LOCALHOST:"localhost"};const vi={acquireTokenSilent:62,acquireTokenByUsernamePassword:371,acquireTokenByDeviceCode:671,acquireTokenByClientCredential:771,acquireTokenByOBO:772,acquireTokenWithManagedIdentity:773,acquireTokenByCode:871,acquireTokenByRefreshToken:872};const Ci={RSA_256:"RS256",PSS_256:"PS256",X5T_256:"x5t#S256",X5T:"x5t",X5C:"x5c",AUDIENCE:"aud",EXPIRATION_TIME:"exp",ISSUER:"iss",SUBJECT:"sub",NOT_BEFORE:"nbf",JWT_ID:"jti"};const Ii={INTERVAL_MS:100,TIMEOUT_MS:5e3};const bi=4096; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function getDefaultErrorMessage(e){return`See https://aka.ms/msal.js.errors#${e} for details`}class AuthError extends Error{constructor(e,t,n){const o=t||(e?getDefaultErrorMessage(e):"");const i=o?`${e}: ${o}`:e;super(i);Object.setPrototypeOf(this,AuthError.prototype);this.errorCode=e||"";this.errorMessage=o||"";this.subError=n||"";this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function createAuthError(e,t){return new AuthError(e,t||getDefaultErrorMessage(e))} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const wi=",";const Ai="|";function makeExtraSkuString(e){const{skus:t,libraryName:n,libraryVersion:o,extensionName:i,extensionVersion:a}=e;const d=new Map([[0,[n,o]],[2,[i,a]]]);let f=[];if(t?.length){f=t.split(wi);if(f.length<4){return t}}else{f=Array.from({length:4},(()=>Ai))}d.forEach(((e,t)=>{if(e.length===2&&e[0]?.length&&e[1]?.length){setSku({skuArr:f,index:t,skuName:e[0],skuVersion:e[1]})}}));return f.join(wi)}function setSku(e){const{skuArr:t,index:n,skuName:o,skuVersion:i}=e;if(n>=t.length){return}t[n]=[o,i].join(Ai)}class ServerTelemetryManager{constructor(e,t){this.cacheOutcome=Qo.NOT_APPLICABLE;this.cacheManager=t;this.apiId=e.apiId;this.correlationId=e.correlationId;this.wrapperSKU=e.wrapperSKU||"";this.wrapperVer=e.wrapperVer||"";this.telemetryCacheKey=Do+Eo+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${No}${this.cacheOutcome}`;const t=[this.wrapperSKU,this.wrapperVer];const n=this.getNativeBrokerErrorCode();if(n?.length){t.push(`broker_error=${n}`)}const o=t.join(No);const i=this.getRegionDiscoveryFields();const a=[e,i].join(No);return[xo,a,o].join($o)}generateLastRequestHeaderValue(){const e=this.getLastRequests();const t=ServerTelemetryManager.maxErrorsToSend(e);const n=e.failedRequests.slice(0,2*t).join(No);const o=e.errors.slice(0,t).join(No);const i=e.errors.length;const a=t<i?ko:Lo;const d=[i,a].join(No);return[xo,e.cacheHits,n,o,d].join($o)}cacheFailedRequest(e){const t=this.getLastRequests();if(t.errors.length>=Mo){t.failedRequests.shift();t.failedRequests.shift();t.errors.shift()}t.failedRequests.push(this.apiId,this.correlationId);if(e instanceof Error&&!!e&&e.toString()){if(e instanceof AuthError){if(e.subError){t.errors.push(e.subError)}else if(e.errorCode){t.errors.push(e.errorCode)}else{t.errors.push(e.toString())}}else{t.errors.push(e.toString())}}else{t.errors.push(Uo)}this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId);return}incrementCacheHits(){const e=this.getLastRequests();e.cacheHits+=1;this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId);return e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};const t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey,this.correlationId);return t||e}clearTelemetryCache(){const e=this.getLastRequests();const t=ServerTelemetryManager.maxErrorsToSend(e);const n=e.errors.length;if(t===n){this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId)}else{const n={failedRequests:e.failedRequests.slice(t*2),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}}static maxErrorsToSend(e){let t;let n=0;let o=0;const i=e.errors.length;for(t=0;t<i;t++){const i=e.failedRequests[2*t]||"";const a=e.failedRequests[2*t+1]||"";const d=e.errors[t]||"";o+=i.toString().length+a.toString().length+d.length+3;if(o<Oo){n+=1}else{break}}return n}getRegionDiscoveryFields(){const e=[];e.push(this.regionUsed||"");e.push(this.regionSource||"");e.push(this.regionOutcome||"");return e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used;this.regionSource=e.region_source;this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e;this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode;this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return makeExtraSkuString(e)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class ClientAuthError extends AuthError{constructor(e,t){super(e,t);this.name="ClientAuthError";Object.setPrototypeOf(this,ClientAuthError.prototype)}}function ClientAuthError_createClientAuthError(e,t){return new ClientAuthError(e,t)} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Ri="client_info_decoding_error";const Pi="client_info_empty_error";const Ti="token_parsing_error";const xi="null_or_empty_token";const _i="endpoints_resolution_error";const Oi="network_error";const Mi="openid_config_error";const Di="hash_not_deserialized";const $i="invalid_state";const Ni="state_mismatch";const ki="state_not_found";const Li="nonce_mismatch";const Ui="auth_time_not_found";const Fi="max_age_transpired";const Bi="multiple_matching_tokens";const qi="multiple_matching_appMetadata";const ji="request_cannot_be_made";const zi="cannot_remove_empty_scope";const Hi="cannot_append_scopeset";const Vi="empty_input_scopeset";const Gi="no_account_in_silent_request";const Wi="invalid_cache_record";const Ki="invalid_cache_environment";const Qi="no_account_found";const Yi="no_crypto_object";const Ji="unexpected_credential_type";const Xi="token_refresh_required";const Zi="token_claims_cnf_required_for_signedjwt";const es="authorization_code_missing_from_server_response";const ts="binding_key_not_removed";const ns="end_session_endpoint_not_supported";const rs="key_id_missing";const is="no_network_connectivity";const ss="user_canceled";const as="method_not_implemented";const cs="nested_app_auth_bridge_disabled";const ls="platform_broker_error";const us="resource_parameter_required";const ds="misplaced_resource_parameter"; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function enforceResourceParameter(e,t){if(!e){return}if(t.resource&&(containsResourceParam(t.extraParameters)||containsResourceParam(t.extraQueryParameters))){throw ClientAuthError_createClientAuthError(ds)}if(!t.resource){throw ClientAuthError_createClientAuthError(us)}}function containsResourceParam(e){if(!e){return false}return Object.prototype.hasOwnProperty.call(e,"resource")} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const ps="client_id";const fs="redirect_uri";const ms="response_type";const hs="response_mode";const gs="grant_type";const ys="claims";const Ss="scope";const Es="error";const vs="error_description";const Cs="access_token";const Is="id_token";const bs="refresh_token";const ws="expires_in";const As="refresh_token_expires_in";const Rs="state";const Ps="nonce";const Ts="prompt";const xs="session_state";const _s="client_info";const Os="code";const Ms="code_challenge";const Ds="code_challenge_method";const $s="code_verifier";const Ns="client-request-id";const ks="x-client-SKU";const Ls="x-client-VER";const Us="x-client-OS";const Fs="x-client-CPU";const Bs="x-client-current-telemetry";const qs="x-client-last-telemetry";const js="x-ms-lib-capability";const zs="x-app-name";const Hs="x-app-ver";const Vs="post_logout_redirect_uri";const Gs="id_token_hint";const Ws="device_code";const Ks="client_secret";const Qs="client_assertion";const Ys="client_assertion_type";const Js="token_type";const Xs="req_cnf";const Zs="assertion";const ea="requested_token_use";const ta="on_behalf_of";const na="foci";const ra="X-AnchorMailbox";const oa="return_spa_code";const ia="nativebroker";const sa="logout_hint";const aa="sid";const ca="login_hint";const la="domain_hint";const ua="x-client-xtra-sku";const da="brk_client_id";const pa="brk_redirect_uri";const fa="instance_aware";const ma="ear_jwk";const ha="ear_jwe_crypto";const ga="resource";const ya="clidata"; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class ServerError_ServerError extends AuthError{constructor(e,t,n,o,i){super(e,t,n);this.name="ServerError";this.errorNo=o;this.status=i;Object.setPrototypeOf(this,ServerError_ServerError.prototype)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Sa={Default:0,Adfs:1,Dsts:2,Ciam:3}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ function isOpenIdConfigResponse(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const gs="redirect_uri_empty";const ys="claims_request_parsing_error";const Ss="authority_uri_insecure";const Es="url_parse_error";const vs="empty_url_error";const Cs="empty_input_scopes_error";const Is="invalid_claims";const bs="token_request_empty";const As="logout_request_empty";const ws="invalid_code_challenge_method";const Rs="pkce_params_missing";const Ts="invalid_cloud_discovery_metadata";const Ps="invalid_authority_metadata";const xs="untrusted_authority";const _s="missing_ssh_jwk";const Os="missing_ssh_kid";const Ds="missing_nonce_authentication_header";const Ms="invalid_authentication_header";const $s="cannot_set_OIDCOptions";const Ns="cannot_allow_platform_broker";const ks="authority_mismatch";const Ls="invalid_request_method_for_EAR";const Us="invalid_authorize_post_body_parameters";const Fs="invalid_platform_broker_configuration"; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const qs={[gs]:"A redirect URI is required for all calls, and none has been set.",[ys]:"Could not parse the given claims request object.",[Ss]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[Es]:"URL could not be parsed into appropriate segments.",[vs]:"URL was empty or null.",[Cs]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[Is]:"Given claims parameter must be a stringified JSON object.",[bs]:"Token request was empty and not found in cache.",[As]:"The logout request was null or undefined.",[ws]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[Rs]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Ts]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[Ps]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[xs]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[_s]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[Os]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[Ds]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[Ms]:"Invalid authentication header provided",[$s]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[Ns]:"Cannot set allowPlatformBroker parameter to true when not in AAD protocol mode.",[ks]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority.",[Us]:"Invalid authorize post body parameters provided. If you are using authorizePostBodyParameters, the request method must be POST. Please check the request method and parameters.",[Ls]:"Invalid request method for EAR protocol mode. The request method cannot be GET when using EAR protocol mode. Please change the request method to POST.",[Fs]:"Invalid platform broker configuration. `allowPlatformBrokerWithDOM` can only be enabled when `allowPlatformBroker` is enabled."};const js={redirectUriNotSet:{code:gs,desc:qs[gs]},claimsRequestParsingError:{code:ys,desc:qs[ys]},authorityUriInsecure:{code:Ss,desc:qs[Ss]},urlParseError:{code:Es,desc:qs[Es]},urlEmptyError:{code:vs,desc:qs[vs]},emptyScopesError:{code:Cs,desc:qs[Cs]},invalidClaimsRequest:{code:Is,desc:qs[Is]},tokenRequestEmptyError:{code:bs,desc:qs[bs]},logoutRequestEmptyError:{code:As,desc:qs[As]},invalidCodeChallengeMethod:{code:ws,desc:qs[ws]},invalidCodeChallengeParams:{code:Rs,desc:qs[Rs]},invalidCloudDiscoveryMetadata:{code:Ts,desc:qs[Ts]},invalidAuthorityMetadata:{code:Ps,desc:qs[Ps]},untrustedAuthority:{code:xs,desc:qs[xs]},missingSshJwk:{code:_s,desc:qs[_s]},missingSshKid:{code:Os,desc:qs[Os]},missingNonceAuthenticationHeader:{code:Ds,desc:qs[Ds]},invalidAuthenticationHeader:{code:Ms,desc:qs[Ms]},cannotSetOIDCOptions:{code:$s,desc:qs[$s]},cannotAllowPlatformBroker:{code:Ns,desc:qs[Ns]},authorityMismatch:{code:ks,desc:qs[ks]},invalidAuthorizePostBodyParameters:{code:Us,desc:qs[Us]},invalidRequestMethodForEAR:{code:Ls,desc:qs[Ls]},invalidPlatformBrokerConfiguration:{code:Fs,desc:qs[Fs]}};class ClientConfigurationError extends AuthError{constructor(e){super(e,qs[e]);this.name="ClientConfigurationError";Object.setPrototypeOf(this,ClientConfigurationError.prototype)}}function createClientConfigurationError(e){return new ClientConfigurationError(e)} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class StringUtils_StringUtils{static isEmptyObj(e){if(e){try{const m=JSON.parse(e);return Object.keys(m).length===0}catch(e){}}return true}static startsWith(e,m){return e.indexOf(m)===0}static endsWith(e,m){return e.length>=m.length&&e.lastIndexOf(m)===e.length-m.length}static queryStringToObject(e){const m={};const h=e.split("&");const decode=e=>decodeURIComponent(e.replace(/\+/g," "));h.forEach((e=>{if(e.trim()){const[h,C]=e.split(/=(.+)/g,2);if(h&&C){m[decode(h)]=decode(C)}}}));return m}static trimArrayEntries(e){return e.map((e=>e.trim()))}static removeEmptyStringsFromArray(e){return e.filter((e=>!!e))}static jsonParseHelper(e){try{return JSON.parse(e)}catch(e){return null}}static matchPattern(e,m){const h=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return h.test(m)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Bs="client_info_decoding_error";const Gs="client_info_empty_error";const zs="token_parsing_error";const Hs="null_or_empty_token";const Vs="endpoints_resolution_error";const Ws="network_error";const Ks="openid_config_error";const Ys="hash_not_deserialized";const Qs="invalid_state";const Js="state_mismatch";const Xs="state_not_found";const Zs="nonce_mismatch";const ea="auth_time_not_found";const ta="max_age_transpired";const na="multiple_matching_tokens";const ra="multiple_matching_accounts";const oa="multiple_matching_appMetadata";const ia="request_cannot_be_made";const sa="cannot_remove_empty_scope";const aa="cannot_append_scopeset";const ca="empty_input_scopeset";const la="device_code_polling_cancelled";const ua="device_code_expired";const da="device_code_unknown_error";const pa="no_account_in_silent_request";const ma="invalid_cache_record";const fa="invalid_cache_environment";const ha="no_account_found";const ga="no_crypto_object";const ya="unexpected_credential_type";const Sa="invalid_assertion";const Ea="invalid_client_credential";const va="token_refresh_required";const Ca="user_timeout_reached";const Ia="token_claims_cnf_required_for_signedjwt";const ba="authorization_code_missing_from_server_response";const Aa="binding_key_not_removed";const wa="end_session_endpoint_not_supported";const Ra="key_id_missing";const Ta="no_network_connectivity";const Pa="user_canceled";const xa="missing_tenant_id_error";const _a="method_not_implemented";const Oa="nested_app_auth_bridge_disabled";const Da="platform_broker_error"; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Ma={[Bs]:"The client info could not be parsed/decoded correctly",[Gs]:"The client info was empty",[zs]:"Token cannot be parsed",[Hs]:"The token is null or empty",[Vs]:"Endpoints cannot be resolved",[Ws]:"Network request failed",[Ks]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[Ys]:"The hash parameters could not be deserialized",[Qs]:"State was not the expected format",[Js]:"State mismatch error",[Xs]:"State not found",[Zs]:"Nonce mismatch error",[ea]:"Max Age was requested and the ID token is missing the auth_time variable."+" auth_time is an optional claim and is not enabled by default - it must be enabled."+" See https://aka.ms/msaljs/optional-claims for more information.",[ta]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[na]:"The cache contains multiple tokens satisfying the requirements. "+"Call AcquireToken again providing more requirements such as authority or account.",[ra]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[oa]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[ia]:"Token request cannot be made without authorization code or refresh token.",[sa]:"Cannot remove null or empty scope from ScopeSet",[aa]:"Cannot append ScopeSet",[ca]:"Empty input ScopeSet cannot be processed",[la]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[ua]:"Device code is expired.",[da]:"Device code stopped polling for unknown reasons.",[pa]:"Please pass an account object, silent flow is not supported without account information",[ma]:"Cache record object was null or undefined.",[fa]:"Invalid environment when attempting to create cache entry",[ha]:"No account found in cache for given key.",[ga]:"No crypto object detected.",[ya]:"Unexpected credential type.",[Sa]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[Ea]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[va]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[Ca]:"User defined timeout for device code polling reached",[Ia]:"Cannot generate a POP jwt if the token_claims are not populated",[ba]:"Server response does not contain an authorization code to proceed",[Aa]:"Could not remove the credential's binding key from storage.",[wa]:"The provided authority does not support logout",[Ra]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[Ta]:"No network connectivity. Check your internet connection.",[Pa]:"User cancelled the flow.",[xa]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[_a]:"This method has not been implemented",[Oa]:"The nested app auth bridge is disabled",[Da]:"An error occurred in the native broker. See the platformBrokerError property for details."};const $a={clientInfoDecodingError:{code:Bs,desc:Ma[Bs]},clientInfoEmptyError:{code:Gs,desc:Ma[Gs]},tokenParsingError:{code:zs,desc:Ma[zs]},nullOrEmptyToken:{code:Hs,desc:Ma[Hs]},endpointResolutionError:{code:Vs,desc:Ma[Vs]},networkError:{code:Ws,desc:Ma[Ws]},unableToGetOpenidConfigError:{code:Ks,desc:Ma[Ks]},hashNotDeserialized:{code:Ys,desc:Ma[Ys]},invalidStateError:{code:Qs,desc:Ma[Qs]},stateMismatchError:{code:Js,desc:Ma[Js]},stateNotFoundError:{code:Xs,desc:Ma[Xs]},nonceMismatchError:{code:Zs,desc:Ma[Zs]},authTimeNotFoundError:{code:ea,desc:Ma[ea]},maxAgeTranspired:{code:ta,desc:Ma[ta]},multipleMatchingTokens:{code:na,desc:Ma[na]},multipleMatchingAccounts:{code:ra,desc:Ma[ra]},multipleMatchingAppMetadata:{code:oa,desc:Ma[oa]},tokenRequestCannotBeMade:{code:ia,desc:Ma[ia]},removeEmptyScopeError:{code:sa,desc:Ma[sa]},appendScopeSetError:{code:aa,desc:Ma[aa]},emptyInputScopeSetError:{code:ca,desc:Ma[ca]},DeviceCodePollingCancelled:{code:la,desc:Ma[la]},DeviceCodeExpired:{code:ua,desc:Ma[ua]},DeviceCodeUnknownError:{code:da,desc:Ma[da]},NoAccountInSilentRequest:{code:pa,desc:Ma[pa]},invalidCacheRecord:{code:ma,desc:Ma[ma]},invalidCacheEnvironment:{code:fa,desc:Ma[fa]},noAccountFound:{code:ha,desc:Ma[ha]},noCryptoObj:{code:ga,desc:Ma[ga]},unexpectedCredentialType:{code:ya,desc:Ma[ya]},invalidAssertion:{code:Sa,desc:Ma[Sa]},invalidClientCredential:{code:Ea,desc:Ma[Ea]},tokenRefreshRequired:{code:va,desc:Ma[va]},userTimeoutReached:{code:Ca,desc:Ma[Ca]},tokenClaimsRequired:{code:Ia,desc:Ma[Ia]},noAuthorizationCodeFromServer:{code:ba,desc:Ma[ba]},bindingKeyNotRemovedError:{code:Aa,desc:Ma[Aa]},logoutNotSupported:{code:wa,desc:Ma[wa]},keyIdMissing:{code:Ra,desc:Ma[Ra]},noNetworkConnectivity:{code:Ta,desc:Ma[Ta]},userCanceledError:{code:Pa,desc:Ma[Pa]},missingTenantIdError:{code:xa,desc:Ma[xa]},nestedAppAuthBridgeDisabled:{code:Oa,desc:Ma[Oa]},platformBrokerError:{code:Da,desc:Ma[Da]}};class ClientAuthError extends AuthError{constructor(e,m){super(e,m?`${Ma[e]}: ${m}`:Ma[e]);this.name="ClientAuthError";Object.setPrototypeOf(this,ClientAuthError.prototype)}}function ClientAuthError_createClientAuthError(e,m){return new ClientAuthError(e,m)} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function canonicalizeUrl(e){if(!e){return e}let m=e.toLowerCase();if(StringUtils.endsWith(m,"?")){m=m.slice(0,-1)}else if(StringUtils.endsWith(m,"?/")){m=m.slice(0,-2)}if(!StringUtils.endsWith(m,"/")){m+="/"}return m}function stripLeadingHashOrQuery(e){if(e.startsWith("#/")){return e.substring(2)}else if(e.startsWith("#")||e.startsWith("?")){return e.substring(1)}return e}function getDeserializedResponse(e){if(!e||e.indexOf("=")<0){return null}try{const m=stripLeadingHashOrQuery(e);const h=Object.fromEntries(new URLSearchParams(m));if(h.code||h.ear_jwe||h.error||h.error_description||h.state){return h}}catch(e){throw ClientAuthError_createClientAuthError(Ys)}return null}function mapToQueryString(e,m=true,h){const C=new Array;e.forEach(((e,q)=>{if(!m&&h&&q in h){C.push(`${q}=${e}`)}else{C.push(`${q}=${encodeURIComponent(e)}`)}}));return C.join("&")}function normalizeUrlForComparison(e){if(!e){return e}const m=e.split("#")[0];try{const e=new URL(m);const h=e.origin+e.pathname+e.search;return canonicalizeUrl(h)}catch(e){return canonicalizeUrl(m)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class UrlString{get urlString(){return this._urlString}constructor(e){this._urlString=e;if(!this._urlString){throw createClientConfigurationError(vs)}if(!e.includes("#")){this._urlString=UrlString.canonicalizeUri(e)}}static canonicalizeUri(e){if(e){let m=e.toLowerCase();if(StringUtils_StringUtils.endsWith(m,"?")){m=m.slice(0,-1)}else if(StringUtils_StringUtils.endsWith(m,"?/")){m=m.slice(0,-2)}if(!StringUtils_StringUtils.endsWith(m,"/")){m+="/"}return m}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch(e){throw createClientConfigurationError(Es)}if(!e.HostNameAndPort||!e.PathSegments){throw createClientConfigurationError(Es)}if(!e.Protocol||e.Protocol.toLowerCase()!=="https:"){throw createClientConfigurationError(Ss)}}static appendQueryString(e,m){if(!m){return e}return e.indexOf("?")<0?`${e}?${m}`:`${e}&${m}`}static removeHashFromUrl(e){return UrlString.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const m=this.getUrlComponents();const h=m.PathSegments;if(e&&h.length!==0&&(h[0]===ao.COMMON||h[0]===ao.ORGANIZATIONS)){h[0]=e}return UrlString.constructAuthorityUriFromObject(m)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");const m=this.urlString.match(e);if(!m){throw createClientConfigurationError(Es)}const h={Protocol:m[1],HostNameAndPort:m[4],AbsolutePath:m[5],QueryString:m[7]};let C=h.AbsolutePath.split("/");C=C.filter((e=>e&&e.length>0));h.PathSegments=C;if(h.QueryString&&h.QueryString.endsWith("/")){h.QueryString=h.QueryString.substring(0,h.QueryString.length-1)}return h}static getDomainFromUrl(e){const m=RegExp("^([^:/?#]+://)?([^/?#]*)");const h=e.match(m);if(!h){throw createClientConfigurationError(Es)}return h[2]}static getAbsoluteUrl(e,m){if(e[0]===eo.FORWARD_SLASH){const h=new UrlString(m);const C=h.getUrlComponents();return C.Protocol+"//"+C.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new UrlString(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!getDeserializedResponse(e)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Na={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"},"login.sovcloud-identity.fr":{token_endpoint:"https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.sovcloud-identity.fr/{tenantid}/discovery/v2.0/keys",issuer:"https://login.sovcloud-identity.fr/{tenantid}/v2.0",authorization_endpoint:"https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/logout"},"login.sovcloud-identity.de":{token_endpoint:"https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.sovcloud-identity.de/{tenantid}/discovery/v2.0/keys",issuer:"https://login.sovcloud-identity.de/{tenantid}/v2.0",authorization_endpoint:"https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/logout"},"login.sovcloud-identity.sg":{token_endpoint:"https://login.sovcloud-identity.sg/common/oauth2/v2.0/token",jwks_uri:"https://login.sovcloud-identity.sg/common/discovery/v2.0/keys",issuer:"https://login.sovcloud-identity.sg/{tenantid}/v2.0",authorization_endpoint:"https://login.sovcloud-identity.sg/common/oauth2/v2.0/authorize",end_session_endpoint:"https://login.sovcloud-identity.sg/common/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]},{preferred_network:"login.sovcloud-identity.fr",preferred_cache:"login.sovcloud-identity.fr",aliases:["login.sovcloud-identity.fr"]},{preferred_network:"login.sovcloud-identity.de",preferred_cache:"login.sovcloud-identity.de",aliases:["login.sovcloud-identity.de"]},{preferred_network:"login.sovcloud-identity.sg",preferred_cache:"login.sovcloud-identity.sg",aliases:["login.sovcloud-identity.sg"]}]}};const ka=Na.endpointMetadata;const La=Na.instanceDiscoveryMetadata;const Ua=new Set;La.metadata.forEach((e=>{e.aliases.forEach((e=>{Ua.add(e)}))}));function getAliasesFromStaticSources(e,m){let h;const C=e.canonicalAuthority;if(C){const q=new UrlString(C).getUrlComponents().HostNameAndPort;h=getAliasesFromMetadata(q,e.cloudDiscoveryMetadata?.metadata,Ao.CONFIG,m)||getAliasesFromMetadata(q,La.metadata,Ao.HARDCODED_VALUES,m)||e.knownAuthorities}return h||[]}function getAliasesFromMetadata(e,m,h,C){C?.trace(`getAliasesFromMetadata called with source: ${h}`);if(e&&m){const q=getCloudDiscoveryMetadataFromNetworkResponse(m,e);if(q){C?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${h}, returning aliases`);return q.aliases}else{C?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${h}`)}}return null}function getCloudDiscoveryMetadataFromHardcodedValues(e){const m=getCloudDiscoveryMetadataFromNetworkResponse(La.metadata,e);return m}function getCloudDiscoveryMetadataFromNetworkResponse(e,m){for(let h=0;h<e.length;h++){const C=e[h];if(C.aliases.includes(m)){return C}}return null} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Fa={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"}; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const qa={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"}; -/*! @azure/msal-common v15.15.0 2026-02-23 */ +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class ClientConfigurationError extends AuthError{constructor(e){super(e);this.name="ClientConfigurationError";Object.setPrototypeOf(this,ClientConfigurationError.prototype)}}function createClientConfigurationError(e){return new ClientConfigurationError(e)} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class StringUtils_StringUtils{static isEmptyObj(e){if(e){try{const t=JSON.parse(e);return Object.keys(t).length===0}catch(e){}}return true}static startsWith(e,t){return e.indexOf(t)===0}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={};const n=e.split("&");const decode=e=>decodeURIComponent(e.replace(/\+/g," "));n.forEach((e=>{if(e.trim()){const[n,o]=e.split(/=(.+)/g,2);if(n&&o){t[decode(n)]=decode(o)}}}));return t}static trimArrayEntries(e){return e.map((e=>e.trim()))}static removeEmptyStringsFromArray(e){return e.filter((e=>!!e))}static jsonParseHelper(e){try{return JSON.parse(e)}catch(e){return null}}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Ea="redirect_uri_empty";const va="claims_request_parsing_error";const Ca="authority_uri_insecure";const Ia="url_parse_error";const ba="empty_url_error";const wa="empty_input_scopes_error";const Aa="invalid_claims";const Ra="token_request_empty";const Pa="logout_request_empty";const Ta="invalid_code_challenge_method";const xa="pkce_params_missing";const _a="invalid_cloud_discovery_metadata";const Oa="invalid_authority_metadata";const Ma="untrusted_authority";const Da="missing_ssh_jwk";const $a="missing_ssh_kid";const Na="missing_nonce_authentication_header";const ka="invalid_authentication_header";const La="cannot_set_OIDCOptions";const Ua="cannot_allow_platform_broker";const Fa="authority_mismatch";const Ba="invalid_request_method_for_EAR"; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class UrlString{get urlString(){return this._urlString}constructor(e){this._urlString=e;if(!this._urlString){throw createClientConfigurationError(ba)}if(!e.includes("#")){this._urlString=UrlString.canonicalizeUri(e)}}static canonicalizeUri(e){if(e){let t=e.toLowerCase();if(StringUtils_StringUtils.endsWith(t,"?")){t=t.slice(0,-1)}else if(StringUtils_StringUtils.endsWith(t,"?/")){t=t.slice(0,-2)}if(!StringUtils_StringUtils.endsWith(t,"/")){t+="/"}return t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch(e){throw createClientConfigurationError(Ia)}if(!e.HostNameAndPort||!e.PathSegments){throw createClientConfigurationError(Ia)}if(!e.Protocol||e.Protocol.toLowerCase()!=="https:"){throw createClientConfigurationError(Ca)}}static appendQueryString(e,t){if(!t){return e}return e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`}static removeHashFromUrl(e){return UrlString.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents();const n=t.PathSegments;if(e&&n.length!==0&&(n[0]===ao.COMMON||n[0]===ao.ORGANIZATIONS)){n[0]=e}return UrlString.constructAuthorityUriFromObject(t)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");const t=this.urlString.match(e);if(!t){throw createClientConfigurationError(Ia)}const n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let o=n.AbsolutePath.split("/");o=o.filter((e=>e&&e.length>0));n.PathSegments=o;if(n.QueryString&&n.QueryString.endsWith("/")){n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)}return n}static getDomainFromUrl(e){const t=RegExp("^([^:/?#]+://)?([^/?#]*)");const n=e.match(t);if(!n){throw createClientConfigurationError(Ia)}return n[2]}static getAbsoluteUrl(e,t){if(e[0]===Tr){const n=new UrlString(t);const o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new UrlString(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const qa=[{host:"login.microsoftonline.com"},{host:"login.chinacloudapi.cn",issuerHost:"login.partner.microsoftonline.cn"},{host:"login.microsoftonline.us"},{host:"login.sovcloud-identity.fr"},{host:"login.sovcloud-identity.de"},{host:"login.sovcloud-identity.sg"}];function buildOpenIdConfig(e,t){return{token_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/token`,jwks_uri:`https://${e}/{tenantid}/discovery/v2.0/keys`,issuer:`https://${t}/{tenantid}/v2.0`,authorization_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/authorize`,end_session_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/logout`}}const ja=qa.reduce(((e,{host:t,issuerHost:n})=>{e[t]=buildOpenIdConfig(t,n||t);return e}),{});const za={endpointMetadata:ja,instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]},{preferred_network:"login.sovcloud-identity.fr",preferred_cache:"login.sovcloud-identity.fr",aliases:["login.sovcloud-identity.fr"]},{preferred_network:"login.sovcloud-identity.de",preferred_cache:"login.sovcloud-identity.de",aliases:["login.sovcloud-identity.de"]},{preferred_network:"login.sovcloud-identity.sg",preferred_cache:"login.sovcloud-identity.sg",aliases:["login.sovcloud-identity.sg"]}]}};const Ha=za.endpointMetadata;const Va=za.instanceDiscoveryMetadata;const Ga=new Set;Va.metadata.forEach((e=>{e.aliases.forEach((e=>{Ga.add(e)}))}));function getAliasesFromStaticSources(e,t,n){let o;const i=e.canonicalAuthority;if(i){const a=new UrlString(i).getUrlComponents().HostNameAndPort;o=getAliasesFromMetadata(t,n,a,e.cloudDiscoveryMetadata?.metadata,To.CONFIG)||getAliasesFromMetadata(t,n,a,Va.metadata,To.HARDCODED_VALUES)||e.knownAuthorities}return o||[]}function getAliasesFromMetadata(e,t,n,o,i){e.trace(`getAliasesFromMetadata called with source: '${i}'`,t);if(n&&o){const a=getCloudDiscoveryMetadataFromNetworkResponse(o,n);if(a){e.trace(`getAliasesFromMetadata: found cloud discovery metadata in '${i}', returning aliases`,t);return a.aliases}else{e.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in '${i}'`,t)}}return null}function getCloudDiscoveryMetadataFromHardcodedValues(e){const t=getCloudDiscoveryMetadataFromNetworkResponse(Va.metadata,e);return t}function getCloudDiscoveryMetadataFromNetworkResponse(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(o.aliases.includes(t)){return o}}return null} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Wa={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Ka={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ function isCloudInstanceDiscoveryResponse(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")} -/*! @azure/msal-common v15.15.0 2026-02-23 */ +/*! @azure/msal-common v16.4.0 2026-03-18 */ function isCloudInstanceDiscoveryErrorResponse(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const ja={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",InitializeCache:"initializeCache",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",GetAuthCodeUrl:"getAuthCodeUrl",GetStandardParams:"getStandardParams",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",HandleResponseEar:"handleResponseEar",HandleResponsePlatformBroker:"handleResponsePlatformBroker",HandleResponseCode:"handleResponseCode",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",ImportExistingCache:"importExistingCache",SetUserData:"setUserData",LocalStorageUpdated:"localStorageUpdated",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues",GenerateHKDF:"generateHKDF",GenerateBaseKey:"generateBaseKey",Base64Decode:"base64Decode",UrlEncodeArr:"urlEncodeArr",Encrypt:"encrypt",Decrypt:"decrypt",GenerateEarKey:"generateEarKey",DecryptEarResponse:"decryptEarResponse",LoadExternalTokens:"LoadExternalTokens",LoadAccount:"loadAccount",LoadIdToken:"loadIdToken",LoadAccessToken:"loadAccessToken",LoadRefreshToken:"loadRefreshToken",SsoCapable:"ssoCapable"};const Ba=new Map([[ja.AcquireTokenByCode,"ATByCode"],[ja.AcquireTokenByRefreshToken,"ATByRT"],[ja.AcquireTokenSilent,"ATS"],[ja.AcquireTokenSilentAsync,"ATSAsync"],[ja.AcquireTokenPopup,"ATPopup"],[ja.AcquireTokenRedirect,"ATRedirect"],[ja.CryptoOptsGetPublicKeyThumbprint,"CryptoGetPKThumb"],[ja.CryptoOptsSignJwt,"CryptoSignJwt"],[ja.SilentCacheClientAcquireToken,"SltCacheClientAT"],[ja.SilentIframeClientAcquireToken,"SltIframeClientAT"],[ja.SilentRefreshClientAcquireToken,"SltRClientAT"],[ja.SsoSilent,"SsoSlt"],[ja.StandardInteractionClientGetDiscoveredAuthority,"StdIntClientGetDiscAuth"],[ja.FetchAccountIdWithNativeBroker,"FetchAccIdWithNtvBroker"],[ja.NativeInteractionClientAcquireToken,"NtvIntClientAT"],[ja.BaseClientCreateTokenRequestHeaders,"BaseClientCreateTReqHead"],[ja.NetworkClientSendPostRequestAsync,"NetClientSendPost"],[ja.RefreshTokenClientExecutePostToTokenEndpoint,"RTClientExecPost"],[ja.AuthorizationCodeClientExecutePostToTokenEndpoint,"AuthCodeClientExecPost"],[ja.BrokerHandhshake,"BrokerHandshake"],[ja.AcquireTokenByRefreshTokenInBroker,"ATByRTInBroker"],[ja.AcquireTokenByBroker,"ATByBroker"],[ja.RefreshTokenClientExecuteTokenRequest,"RTClientExecTReq"],[ja.RefreshTokenClientAcquireToken,"RTClientAT"],[ja.RefreshTokenClientAcquireTokenWithCachedRefreshToken,"RTClientATWithCachedRT"],[ja.RefreshTokenClientAcquireTokenByRefreshToken,"RTClientATByRT"],[ja.RefreshTokenClientCreateTokenRequestBody,"RTClientCreateTReqBody"],[ja.AcquireTokenFromCache,"ATFromCache"],[ja.SilentFlowClientAcquireCachedToken,"SltFlowClientATCached"],[ja.SilentFlowClientGenerateResultFromCacheRecord,"SltFlowClientGenResFromCache"],[ja.AcquireTokenBySilentIframe,"ATBySltIframe"],[ja.InitializeBaseRequest,"InitBaseReq"],[ja.InitializeSilentRequest,"InitSltReq"],[ja.InitializeClientApplication,"InitClientApplication"],[ja.InitializeCache,"InitCache"],[ja.ImportExistingCache,"importCache"],[ja.SetUserData,"setUserData"],[ja.LocalStorageUpdated,"localStorageUpdated"],[ja.SilentIframeClientTokenHelper,"SIClientTHelper"],[ja.SilentHandlerInitiateAuthRequest,"SHandlerInitAuthReq"],[ja.SilentHandlerMonitorIframeForHash,"SltHandlerMonitorIframeForHash"],[ja.SilentHandlerLoadFrame,"SHandlerLoadFrame"],[ja.SilentHandlerLoadFrameSync,"SHandlerLoadFrameSync"],[ja.StandardInteractionClientCreateAuthCodeClient,"StdIntClientCreateAuthCodeClient"],[ja.StandardInteractionClientGetClientConfiguration,"StdIntClientGetClientConf"],[ja.StandardInteractionClientInitializeAuthorizationRequest,"StdIntClientInitAuthReq"],[ja.GetAuthCodeUrl,"GetAuthCodeUrl"],[ja.HandleCodeResponseFromServer,"HandleCodeResFromServer"],[ja.HandleCodeResponse,"HandleCodeResp"],[ja.HandleResponseEar,"HandleRespEar"],[ja.HandleResponseCode,"HandleRespCode"],[ja.HandleResponsePlatformBroker,"HandleRespPlatBroker"],[ja.UpdateTokenEndpointAuthority,"UpdTEndpointAuth"],[ja.AuthClientAcquireToken,"AuthClientAT"],[ja.AuthClientExecuteTokenRequest,"AuthClientExecTReq"],[ja.AuthClientCreateTokenRequestBody,"AuthClientCreateTReqBody"],[ja.PopTokenGenerateCnf,"PopTGenCnf"],[ja.PopTokenGenerateKid,"PopTGenKid"],[ja.HandleServerTokenResponse,"HandleServerTRes"],[ja.DeserializeResponse,"DeserializeRes"],[ja.AuthorityFactoryCreateDiscoveredInstance,"AuthFactCreateDiscInst"],[ja.AuthorityResolveEndpointsAsync,"AuthResolveEndpointsAsync"],[ja.AuthorityResolveEndpointsFromLocalSources,"AuthResolveEndpointsFromLocal"],[ja.AuthorityGetCloudDiscoveryMetadataFromNetwork,"AuthGetCDMetaFromNet"],[ja.AuthorityUpdateCloudDiscoveryMetadata,"AuthUpdCDMeta"],[ja.AuthorityGetEndpointMetadataFromNetwork,"AuthUpdCDMetaFromNet"],[ja.AuthorityUpdateEndpointMetadata,"AuthUpdEndpointMeta"],[ja.AuthorityUpdateMetadataWithRegionalInformation,"AuthUpdMetaWithRegInfo"],[ja.RegionDiscoveryDetectRegion,"RegDiscDetectReg"],[ja.RegionDiscoveryGetRegionFromIMDS,"RegDiscGetRegFromIMDS"],[ja.RegionDiscoveryGetCurrentVersion,"RegDiscGetCurrentVer"],[ja.AcquireTokenByCodeAsync,"ATByCodeAsync"],[ja.GetEndpointMetadataFromNetwork,"GetEndpointMetaFromNet"],[ja.GetCloudDiscoveryMetadataFromNetworkMeasurement,"GetCDMetaFromNet"],[ja.HandleRedirectPromiseMeasurement,"HandleRedirectPromise"],[ja.HandleNativeRedirectPromiseMeasurement,"HandleNtvRedirectPromise"],[ja.UpdateCloudDiscoveryMetadataMeasurement,"UpdateCDMeta"],[ja.UsernamePasswordClientAcquireToken,"UserPassClientAT"],[ja.NativeMessageHandlerHandshake,"NtvMsgHandlerHandshake"],[ja.NativeGenerateAuthResult,"NtvGenAuthRes"],[ja.RemoveHiddenIframe,"RemoveHiddenIframe"],[ja.ClearTokensAndKeysWithClaims,"ClearTAndKeysWithClaims"],[ja.CacheManagerGetRefreshToken,"CacheManagerGetRT"],[ja.GeneratePkceCodes,"GenPkceCodes"],[ja.GenerateCodeVerifier,"GenCodeVerifier"],[ja.GenerateCodeChallengeFromVerifier,"GenCodeChallengeFromVerifier"],[ja.Sha256Digest,"Sha256Digest"],[ja.GetRandomValues,"GetRandomValues"],[ja.GenerateHKDF,"genHKDF"],[ja.GenerateBaseKey,"genBaseKey"],[ja.Base64Decode,"b64Decode"],[ja.UrlEncodeArr,"urlEncArr"],[ja.Encrypt,"encrypt"],[ja.Decrypt,"decrypt"],[ja.GenerateEarKey,"genEarKey"],[ja.DecryptEarResponse,"decryptEarResp"],[ja.SsoCapable,"SsoCapable"]]);const Ga={NotStarted:0,InProgress:1,Completed:2};const za=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status","multiMatchedAT","multiMatchedID","multiMatchedRT","unencryptedCacheCount","encryptedCacheExpiredCount","oldAccountCount","oldAccessCount","oldIdCount","oldRefreshCount","currAccountCount","currAccessCount","currIdCount","currRefreshCount","expiredCacheRemovedCount","upgradedCacheCount"]); -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const invoke=(e,m,h,C,q)=>(...V)=>{h.trace(`Executing function ${m}`);const le=C?.startMeasurement(m,q);if(q){const e=m+"CallCount";C?.incrementFields({[e]:1},q)}try{const C=e(...V);le?.end({success:true});h.trace(`Returning result from ${m}`);return C}catch(e){h.trace(`Error occurred in ${m}`);try{h.trace(JSON.stringify(e))}catch(e){h.trace("Unable to print error message.")}le?.end({success:false},e);throw e}};const invokeAsync=(e,m,h,C,q)=>(...V)=>{h.trace(`Executing function ${m}`);const le=C?.startMeasurement(m,q);if(q){const e=m+"CallCount";C?.incrementFields({[e]:1},q)}C?.setPreQueueTime(m,q);return e(...V).then((e=>{h.trace(`Returning result from ${m}`);le?.end({success:true});return e})).catch((e=>{h.trace(`Error occurred in ${m}`);try{h.trace(JSON.stringify(e))}catch(e){h.trace("Unable to print error message.")}le?.end({success:false},e);throw e}))}; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class RegionDiscovery{constructor(e,m,h,C){this.networkInterface=e;this.logger=m;this.performanceClient=h;this.correlationId=C}async detectRegion(e,m){this.performanceClient?.addQueueMeasurement(ja.RegionDiscoveryDetectRegion,this.correlationId);let h=e;if(!h){const e=RegionDiscovery.IMDS_OPTIONS;try{const C=await invokeAsync(this.getRegionFromIMDS.bind(this),ja.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(eo.IMDS_VERSION,e);if(C.status===to.SUCCESS){h=C.body;m.region_source=_o.IMDS}if(C.status===to.BAD_REQUEST){const C=await invokeAsync(this.getCurrentVersion.bind(this),ja.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(e);if(!C){m.region_source=_o.FAILED_AUTO_DETECTION;return null}const q=await invokeAsync(this.getRegionFromIMDS.bind(this),ja.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(C,e);if(q.status===to.SUCCESS){h=q.body;m.region_source=_o.IMDS}}}catch(e){m.region_source=_o.FAILED_AUTO_DETECTION;return null}}else{m.region_source=_o.ENVIRONMENT_VARIABLE}if(!h){m.region_source=_o.FAILED_AUTO_DETECTION}return h||null}async getRegionFromIMDS(e,m){this.performanceClient?.addQueueMeasurement(ja.RegionDiscoveryGetRegionFromIMDS,this.correlationId);return this.networkInterface.sendGetRequestAsync(`${eo.IMDS_ENDPOINT}?api-version=${e}&format=text`,m,eo.IMDS_TIMEOUT)}async getCurrentVersion(e){this.performanceClient?.addQueueMeasurement(ja.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const m=await this.networkInterface.sendGetRequestAsync(`${eo.IMDS_ENDPOINT}?format=json`,e);if(m.status===to.BAD_REQUEST&&m.body&&m.body["newest-versions"]&&m.body["newest-versions"].length>0){return m.body["newest-versions"][0]}return null}catch(e){return null}}}RegionDiscovery.IMDS_OPTIONS={headers:{Metadata:"true"}}; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function extractTokenClaims(e,m){const h=getJWSPayload(e);try{const e=m(h);return JSON.parse(e)}catch(e){throw ClientAuthError_createClientAuthError(zs)}}function isKmsi(e){if(!e.signin_state){return false}const m=["kmsi","dvc_dmjd"];const h=e.signin_state.some((e=>m.includes(e.trim().toLowerCase())));return h}function getJWSPayload(e){if(!e){throw ClientAuthError_createClientAuthError(Hs)}const m=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/;const h=m.exec(e);if(!h||h.length<4){throw ClientAuthError_createClientAuthError(zs)}return h[2]}function checkMaxAge(e,m){const h=3e5;if(m===0||Date.now()-h>e+m){throw ClientAuthError_createClientAuthError(ta)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function nowSeconds(){return Math.round((new Date).getTime()/1e3)}function toSecondsFromDate(e){return e.getTime()/1e3}function toDateFromSeconds(e){if(e){return new Date(Number(e)*1e3)}return new Date}function isTokenExpired(e,m){const h=Number(e)||0;const C=nowSeconds()+m;return C>h}function isCacheExpired(e,m){const h=Number(e)+m*24*60*60*1e3;return Date.now()>h}function wasClockTurnedBack(e){const m=Number(e);return m>nowSeconds()}function TimeUtils_delay(e,m){return new Promise((h=>setTimeout((()=>h(m)),e)))} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function createIdTokenEntity(e,m,h,C,q){const V={credentialType:So.ID_TOKEN,homeAccountId:e,environment:m,clientId:C,secret:h,realm:q,lastUpdatedAt:Date.now().toString()};return V}function createAccessTokenEntity(e,m,h,C,q,V,le,fe,he,ye,ve,Le,Ue,qe,ze){const He={homeAccountId:e,credentialType:So.ACCESS_TOKEN,secret:h,cachedAt:nowSeconds().toString(),expiresOn:le.toString(),extendedExpiresOn:fe.toString(),environment:m,clientId:C,realm:q,target:V,tokenType:ve||Ro.BEARER,lastUpdatedAt:Date.now().toString()};if(Le){He.userAssertionHash=Le}if(ye){He.refreshOn=ye.toString()}if(qe){He.requestedClaims=qe;He.requestedClaimsHash=ze}if(He.tokenType?.toLowerCase()!==Ro.BEARER.toLowerCase()){He.credentialType=So.ACCESS_TOKEN_WITH_AUTH_SCHEME;switch(He.tokenType){case Ro.POP:const e=extractTokenClaims(h,he);if(!e?.cnf?.kid){throw ClientAuthError_createClientAuthError(Ia)}He.keyId=e.cnf.kid;break;case Ro.SSH:He.keyId=Ue}}return He}function createRefreshTokenEntity(e,m,h,C,q,V,le){const fe={credentialType:So.REFRESH_TOKEN,homeAccountId:e,environment:m,clientId:C,secret:h,lastUpdatedAt:Date.now().toString()};if(V){fe.userAssertionHash=V}if(q){fe.familyId=q}if(le){fe.expiresOn=le.toString()}return fe}function isCredentialEntity(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function isAccessTokenEntity(e){if(!e){return false}return isCredentialEntity(e)&&e.hasOwnProperty("realm")&&e.hasOwnProperty("target")&&(e["credentialType"]===So.ACCESS_TOKEN||e["credentialType"]===So.ACCESS_TOKEN_WITH_AUTH_SCHEME)}function isIdTokenEntity(e){if(!e){return false}return isCredentialEntity(e)&&e.hasOwnProperty("realm")&&e["credentialType"]===So.ID_TOKEN}function isRefreshTokenEntity(e){if(!e){return false}return isCredentialEntity(e)&&e["credentialType"]===So.REFRESH_TOKEN}function isServerTelemetryEntity(e,m){const h=e.indexOf(wo.CACHE_KEY)===0;let C=true;if(m){C=m.hasOwnProperty("failedRequests")&&m.hasOwnProperty("errors")&&m.hasOwnProperty("cacheHits")}return h&&C}function isThrottlingEntity(e,m){let h=false;if(e){h=e.indexOf(To.THROTTLING_PREFIX)===0}let C=true;if(m){C=m.hasOwnProperty("throttleTime")}return h&&C}function generateAppMetadataKey({environment:e,clientId:m}){const h=[vo,e,m];return h.join(yo.CACHE_KEY_SEPARATOR).toLowerCase()}function isAppMetadataEntity(e,m){if(!m){return false}return e.indexOf(vo)===0&&m.hasOwnProperty("clientId")&&m.hasOwnProperty("environment")}function isAuthorityMetadataEntity(e,m){if(!m){return false}return e.indexOf(bo.CACHE_KEY)===0&&m.hasOwnProperty("aliases")&&m.hasOwnProperty("preferred_cache")&&m.hasOwnProperty("preferred_network")&&m.hasOwnProperty("canonical_authority")&&m.hasOwnProperty("authorization_endpoint")&&m.hasOwnProperty("token_endpoint")&&m.hasOwnProperty("issuer")&&m.hasOwnProperty("aliasesFromNetwork")&&m.hasOwnProperty("endpointsFromNetwork")&&m.hasOwnProperty("expiresAt")&&m.hasOwnProperty("jwks_uri")}function generateAuthorityMetadataExpiresAt(){return nowSeconds()+bo.REFRESH_TIME_SECONDS}function updateAuthorityEndpointMetadata(e,m,h){e.authorization_endpoint=m.authorization_endpoint;e.token_endpoint=m.token_endpoint;e.end_session_endpoint=m.end_session_endpoint;e.issuer=m.issuer;e.endpointsFromNetwork=h;e.jwks_uri=m.jwks_uri}function updateCloudDiscoveryMetadata(e,m,h){e.aliases=m.aliases;e.preferred_cache=m.preferred_cache;e.preferred_network=m.preferred_network;e.aliasesFromNetwork=h}function isAuthorityMetadataExpired(e){return e.expiresAt<=nowSeconds()} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class Authority{constructor(e,m,h,C,q,V,le,fe){this.canonicalAuthority=e;this._canonicalAuthority.validateAsUri();this.networkInterface=m;this.cacheManager=h;this.authorityOptions=C;this.regionDiscoveryMetadata={region_used:undefined,region_source:undefined,region_outcome:undefined};this.logger=q;this.performanceClient=le;this.correlationId=V;this.managedIdentity=fe||false;this.regionDiscovery=new RegionDiscovery(m,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(eo.CIAM_AUTH_URL)){return hs.Ciam}const m=e.PathSegments;if(m.length){switch(m[0].toLowerCase()){case eo.ADFS:return hs.Adfs;case eo.DSTS:return hs.Dsts}}return hs.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new UrlString(e);this._canonicalAuthority.validateAsUri();this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){if(!this._canonicalAuthorityUrlComponents){this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()}return this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete()){return this.replacePath(this.metadata.authorization_endpoint)}else{throw ClientAuthError_createClientAuthError(Vs)}}get tokenEndpoint(){if(this.discoveryComplete()){return this.replacePath(this.metadata.token_endpoint)}else{throw ClientAuthError_createClientAuthError(Vs)}}get deviceCodeEndpoint(){if(this.discoveryComplete()){return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"))}else{throw ClientAuthError_createClientAuthError(Vs)}}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint){throw ClientAuthError_createClientAuthError(wa)}return this.replacePath(this.metadata.end_session_endpoint)}else{throw ClientAuthError_createClientAuthError(Vs)}}get selfSignedJwtAudience(){if(this.discoveryComplete()){return this.replacePath(this.metadata.issuer)}else{throw ClientAuthError_createClientAuthError(Vs)}}get jwksUri(){if(this.discoveryComplete()){return this.replacePath(this.metadata.jwks_uri)}else{throw ClientAuthError_createClientAuthError(Vs)}}canReplaceTenant(e){return e.PathSegments.length===1&&!Authority.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===hs.Default&&this.protocolMode!==Fa.OIDC}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let m=e;const h=new UrlString(this.metadata.canonical_authority);const C=h.getUrlComponents();const q=C.PathSegments;const V=this.canonicalAuthorityUrlComponents.PathSegments;V.forEach(((e,h)=>{let V=q[h];if(h===0&&this.canReplaceTenant(C)){const e=new UrlString(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];if(V!==e){this.logger.verbose(`Replacing tenant domain name ${V} with id ${e}`);V=e}}if(e!==V){m=m.replace(`/${V}/`,`/${e}/`)}}));return this.replaceTenant(m)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;if(this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===hs.Adfs||this.protocolMode===Fa.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(e)){return`${this.canonicalAuthority}.well-known/openid-configuration`}return`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){this.performanceClient?.addQueueMeasurement(ja.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity();const m=await invokeAsync(this.updateCloudDiscoveryMetadata.bind(this),ja.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const h=await invokeAsync(this.updateEndpointMetadata.bind(this),ja.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,m,{source:h});this.performanceClient?.addFields({cloudDiscoverySource:m,authorityEndpointSource:h},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);if(!e){e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:false,endpointsFromNetwork:false,expiresAt:generateAuthorityMetadataExpiresAt(),jwks_uri:""}}return e}updateCachedMetadata(e,m,h){if(m!==Ao.CACHE&&h?.source!==Ao.CACHE){e.expiresAt=generateAuthorityMetadataExpiresAt();e.canonical_authority=this.canonicalAuthority}const C=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(C,e);this.metadata=e}async updateEndpointMetadata(e){this.performanceClient?.addQueueMeasurement(ja.AuthorityUpdateEndpointMetadata,this.correlationId);const m=this.updateEndpointMetadataFromLocalSources(e);if(m){if(m.source===Ao.HARDCODED_VALUES){if(this.authorityOptions.azureRegionConfiguration?.azureRegion){if(m.metadata){const h=await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this),ja.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(m.metadata);updateAuthorityEndpointMetadata(e,h,false);e.canonical_authority=this.canonicalAuthority}}}return m.source}let h=await invokeAsync(this.getEndpointMetadataFromNetwork.bind(this),ja.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(h){if(this.authorityOptions.azureRegionConfiguration?.azureRegion){h=await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this),ja.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(h)}updateAuthorityEndpointMetadata(e,h,true);return Ao.NETWORK}else{throw ClientAuthError_createClientAuthError(Ks,this.defaultOpenIdConfigurationEndpoint)}}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const m=this.getEndpointMetadataFromConfig();if(m){this.logger.verbose("Found endpoint metadata in authority configuration");updateAuthorityEndpointMetadata(e,m,false);return{source:Ao.CONFIG}}this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values.");if(this.authorityOptions.skipAuthorityMetadataCache){this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.")}else{const m=this.getEndpointMetadataFromHardcodedValues();if(m){updateAuthorityEndpointMetadata(e,m,false);return{source:Ao.HARDCODED_VALUES,metadata:m}}else{this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}}const h=isAuthorityMetadataExpired(e);if(this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!h){this.logger.verbose("Found endpoint metadata in the cache.");return{source:Ao.CACHE}}else if(h){this.logger.verbose("The metadata entity is expired.")}return null}isAuthoritySameType(e){const m=new UrlString(e.canonical_authority);const h=m.getUrlComponents().PathSegments;return h.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata){try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw createClientConfigurationError(Ps)}}return null}async getEndpointMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(ja.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={};const m=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${m}`);try{const h=await this.networkInterface.sendGetRequestAsync(m,e);const C=isOpenIdConfigResponse(h.body);if(C){return h.body}else{this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration`);return null}}catch(e){this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${e}`);return null}}getEndpointMetadataFromHardcodedValues(){if(this.hostnameAndPort in ka){return ka[this.hostnameAndPort]}return null}async updateMetadataWithRegionalInformation(e){this.performanceClient?.addQueueMeasurement(ja.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const m=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(m){if(m!==eo.AZURE_REGION_AUTO_DISCOVER_FLAG){this.regionDiscoveryMetadata.region_outcome=Oo.CONFIGURED_NO_AUTO_DETECTION;this.regionDiscoveryMetadata.region_used=m;return Authority.replaceWithRegionalInformation(e,m)}const h=await invokeAsync(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),ja.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(h){this.regionDiscoveryMetadata.region_outcome=Oo.AUTO_DETECTION_REQUESTED_SUCCESSFUL;this.regionDiscoveryMetadata.region_used=h;return Authority.replaceWithRegionalInformation(e,h)}this.regionDiscoveryMetadata.region_outcome=Oo.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){this.performanceClient?.addQueueMeasurement(ja.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const m=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(m){return m}const h=await invokeAsync(this.getCloudDiscoveryMetadataFromNetwork.bind(this),ja.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(h){updateCloudDiscoveryMetadata(e,h,true);return Ao.NETWORK}throw createClientConfigurationError(xs)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration");this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||eo.NOT_APPLICABLE}`);this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||eo.NOT_APPLICABLE}`);this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||eo.NOT_APPLICABLE}`);const m=this.getCloudDiscoveryMetadataFromConfig();if(m){this.logger.verbose("Found cloud discovery metadata in authority configuration");updateCloudDiscoveryMetadata(e,m,false);return Ao.CONFIG}this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values.");if(this.options.skipAuthorityMetadataCache){this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.")}else{const m=getCloudDiscoveryMetadataFromHardcodedValues(this.hostnameAndPort);if(m){this.logger.verbose("Found cloud discovery metadata from hardcoded values.");updateCloudDiscoveryMetadata(e,m,false);return Ao.HARDCODED_VALUES}this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const h=isAuthorityMetadataExpired(e);if(this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!h){this.logger.verbose("Found cloud discovery metadata in the cache.");return Ao.CACHE}else if(h){this.logger.verbose("The metadata entity is expired.")}return null}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===hs.Ciam){this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host.");return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)}if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata);const m=getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);this.logger.verbose("Parsed the cloud discovery metadata.");if(m){this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata.");return m}else{this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}}catch(e){this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error.");throw createClientConfigurationError(Ts)}}if(this.isInKnownAuthorities()){this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.");return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)}return null}async getCloudDiscoveryMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(ja.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${eo.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`;const m={};let h=null;try{const C=await this.networkInterface.sendGetRequestAsync(e,m);let q;let V;if(isCloudInstanceDiscoveryResponse(C.body)){q=C.body;V=q.metadata;this.logger.verbosePii(`tenant_discovery_endpoint is: ${q.tenant_discovery_endpoint}`)}else if(isCloudInstanceDiscoveryErrorResponse(C.body)){this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${C.status}`);q=C.body;if(q.error===eo.INVALID_INSTANCE){this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance.");return null}this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${q.error}`);this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${q.error_description}`);this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []");V=[]}else{this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse");return null}this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");h=getCloudDiscoveryMetadataFromNetworkResponse(V,this.hostnameAndPort)}catch(e){if(e instanceof AuthError){this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.\nError: ${e.errorCode}\nError Description: ${e.errorMessage}`)}else{const m=e;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: ${m.name}\nError Description: ${m.message}`)}return null}if(!h){this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");this.logger.verbose("Creating custom Authority for custom domain scenario.");h=Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)}return h}isInKnownAuthorities(){const e=this.authorityOptions.knownAuthorities.filter((e=>e&&UrlString.getDomainFromUrl(e).toLowerCase()===this.hostnameAndPort));return e.length>0}static generateAuthority(e,m){let h;if(m&&m.azureCloudInstance!==qa.None){const e=m.tenant?m.tenant:eo.DEFAULT_COMMON_TENANT;h=`${m.azureCloudInstance}/${e}/`}return h?h:e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity){return eo.DEFAULT_AUTHORITY_HOST}else if(this.discoveryComplete()){return this.metadata.preferred_cache}else{throw ClientAuthError_createClientAuthError(Vs)}}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Ua.has(e)}static isPublicCloudAuthority(e){return eo.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,m,h){const C=new UrlString(e);C.validateAsUri();const q=C.getUrlComponents();let V=`${m}.${q.HostNameAndPort}`;if(this.isPublicCloudAuthority(q.HostNameAndPort)){V=`${m}.${eo.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`}const le=UrlString.constructAuthorityUriFromObject({...C.getUrlComponents(),HostNameAndPort:V}).urlString;if(h)return`${le}?${h}`;return le}static replaceWithRegionalInformation(e,m){const h={...e};h.authorization_endpoint=Authority.buildRegionalAuthorityString(h.authorization_endpoint,m);h.token_endpoint=Authority.buildRegionalAuthorityString(h.token_endpoint,m);if(h.end_session_endpoint){h.end_session_endpoint=Authority.buildRegionalAuthorityString(h.end_session_endpoint,m)}return h}static transformCIAMAuthority(e){let m=e;const h=new UrlString(e);const C=h.getUrlComponents();if(C.PathSegments.length===0&&C.HostNameAndPort.endsWith(eo.CIAM_AUTH_URL)){const e=C.HostNameAndPort.split(".")[0];m=`${m}${e}${eo.AAD_TENANT_DOMAIN_SUFFIX}`}return m}}Authority.reservedTenantDomains=new Set(["{tenant}","{tenantid}",ao.COMMON,ao.CONSUMERS,ao.ORGANIZATIONS]);function getTenantFromAuthorityString(e){const m=new UrlString(e);const h=m.getUrlComponents();const C=h.PathSegments.slice(-1)[0]?.toLowerCase();switch(C){case ao.COMMON:case ao.ORGANIZATIONS:case ao.CONSUMERS:return undefined;default:return C}}function formatAuthorityUri(e){return e.endsWith(eo.FORWARD_SLASH)?e:`${e}${eo.FORWARD_SLASH}`}function buildStaticAuthorityOptions(e){const m=e.cloudDiscoveryMetadata;let h=undefined;if(m){try{h=JSON.parse(m)}catch(e){throw createClientConfigurationError(Ts)}}return{canonicalAuthority:e.authority?formatAuthorityUri(e.authority):undefined,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:h}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Ha={createNewGuid:()=>{throw ClientAuthError_createClientAuthError(_a)},base64Decode:()=>{throw ClientAuthError_createClientAuthError(_a)},base64Encode:()=>{throw ClientAuthError_createClientAuthError(_a)},base64UrlEncode:()=>{throw ClientAuthError_createClientAuthError(_a)},encodeKid:()=>{throw ClientAuthError_createClientAuthError(_a)},async getPublicKeyThumbprint(){throw ClientAuthError_createClientAuthError(_a)},async removeTokenBindingKey(){throw ClientAuthError_createClientAuthError(_a)},async clearKeystore(){throw ClientAuthError_createClientAuthError(_a)},async signJwt(){throw ClientAuthError_createClientAuthError(_a)},async hashString(){throw ClientAuthError_createClientAuthError(_a)}}; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Va="@azure/msal-common";const Wa="15.15.0"; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class ScopeSet{constructor(e){const m=e?StringUtils_StringUtils.trimArrayEntries([...e]):[];const h=m?StringUtils_StringUtils.removeEmptyStringsFromArray(m):[];if(!h||!h.length){throw createClientConfigurationError(Cs)}this.scopes=new Set;h.forEach((e=>this.scopes.add(e)))}static fromString(e){const m=e||eo.EMPTY_STRING;const h=m.split(" ");return new ScopeSet(h)}static createSearchScopes(e){const m=e&&e.length>0?e:[...ro];const h=new ScopeSet(m);if(!h.containsOnlyOIDCScopes()){h.removeOIDCScopes()}else{h.removeScope(eo.OFFLINE_ACCESS_SCOPE)}return h}containsScope(e){const m=this.printScopesLowerCase().split(" ");const h=new ScopeSet(m);return e?h.scopes.has(e.toLowerCase()):false}containsScopeSet(e){if(!e||e.scopes.size<=0){return false}return this.scopes.size>=e.scopes.size&&e.asArray().every((e=>this.containsScope(e)))}containsOnlyOIDCScopes(){let e=0;oo.forEach((m=>{if(this.containsScope(m)){e+=1}}));return this.scopes.size===e}appendScope(e){if(e){this.scopes.add(e.trim())}}appendScopes(e){try{e.forEach((e=>this.appendScope(e)))}catch(e){throw ClientAuthError_createClientAuthError(aa)}}removeScope(e){if(!e){throw ClientAuthError_createClientAuthError(sa)}this.scopes.delete(e.trim())}removeOIDCScopes(){oo.forEach((e=>{this.scopes.delete(e)}))}unionScopeSets(e){if(!e){throw ClientAuthError_createClientAuthError(ca)}const m=new Set;e.scopes.forEach((e=>m.add(e.toLowerCase())));this.scopes.forEach((e=>m.add(e.toLowerCase())));return m}intersectingScopeSets(e){if(!e){throw ClientAuthError_createClientAuthError(ca)}if(!e.containsOnlyOIDCScopes()){e.removeOIDCScopes()}const m=this.unionScopeSets(e);const h=e.getScopeCount();const C=this.getScopeCount();const q=m.size;return q<C+h}getScopeCount(){return this.scopes.size}asArray(){const e=[];this.scopes.forEach((m=>e.push(m)));return e}printScopes(){if(this.scopes){const e=this.asArray();return e.join(" ")}return eo.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function buildClientInfo(e,m){if(!e){throw ClientAuthError_createClientAuthError(Gs)}try{const h=m(e);return JSON.parse(h)}catch(e){throw ClientAuthError_createClientAuthError(Bs)}}function buildClientInfoFromHomeAccountId(e){if(!e){throw ClientAuthError_createClientAuthError(Bs)}const m=e.split(yo.CLIENT_INFO_SEPARATOR,2);return{uid:m[0],utid:m.length<2?eo.EMPTY_STRING:m[1]}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function tenantIdMatchesHomeTenant(e,m){return!!e&&!!m&&e===m.split(".")[1]}function buildTenantProfile(e,m,h,C){if(C){const{oid:m,sub:h,tid:q,name:V,tfp:le,acr:fe,preferred_username:he,upn:ye,login_hint:ve}=C;const Le=q||le||fe||"";return{tenantId:Le,localAccountId:m||h||"",name:V,username:he||ye||"",loginHint:ve,isHomeTenant:tenantIdMatchesHomeTenant(Le,e)}}else{return{tenantId:h,localAccountId:m,username:"",isHomeTenant:tenantIdMatchesHomeTenant(h,e)}}}function updateAccountTenantProfileData(e,m,h,C){let q=e;if(m){const{isHomeTenant:h,...C}=m;q={...e,...C}}if(h){const{isHomeTenant:m,...V}=buildTenantProfile(e.homeAccountId,e.localAccountId,e.tenantId,h);q={...q,...V,idTokenClaims:h,idToken:C};return q}return q} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function getTenantIdFromIdTokenClaims(e){if(e){const m=e.tid||e.tfp||e.acr;return m||null}return null} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class AccountEntity{static getAccountInfo(e){const m=e.tenantProfiles||[];if(m.length===0&&e.realm&&e.localAccountId){m.push(buildTenantProfile(e.homeAccountId,e.localAccountId,e.realm))}return{homeAccountId:e.homeAccountId,environment:e.environment,tenantId:e.realm,username:e.username,localAccountId:e.localAccountId,loginHint:e.loginHint,name:e.name,nativeAccountId:e.nativeAccountId,authorityType:e.authorityType,tenantProfiles:new Map(m.map((e=>[e.tenantId,e]))),dataBoundary:e.dataBoundary}}isSingleTenant(){return!this.tenantProfiles}static createAccount(e,m,h){const C=new AccountEntity;if(m.authorityType===hs.Adfs){C.authorityType=go.ADFS_ACCOUNT_TYPE}else if(m.protocolMode===Fa.OIDC){C.authorityType=go.GENERIC_ACCOUNT_TYPE}else{C.authorityType=go.MSSTS_ACCOUNT_TYPE}let q;if(e.clientInfo&&h){q=buildClientInfo(e.clientInfo,h);if(q.xms_tdbr){C.dataBoundary=q.xms_tdbr==="EU"?"EU":"None"}}C.clientInfo=e.clientInfo;C.homeAccountId=e.homeAccountId;C.nativeAccountId=e.nativeAccountId;const V=e.environment||m&&m.getPreferredCache();if(!V){throw ClientAuthError_createClientAuthError(fa)}C.environment=V;C.realm=q?.utid||getTenantIdFromIdTokenClaims(e.idTokenClaims)||"";C.localAccountId=q?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"";const le=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn;const fe=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null;C.username=le||fe||"";C.loginHint=e.idTokenClaims?.login_hint;C.name=e.idTokenClaims?.name||"";C.cloudGraphHostName=e.cloudGraphHostName;C.msGraphHost=e.msGraphHost;if(e.tenantProfiles){C.tenantProfiles=e.tenantProfiles}else{const m=buildTenantProfile(e.homeAccountId,C.localAccountId,C.realm,e.idTokenClaims);C.tenantProfiles=[m]}return C}static createFromAccountInfo(e,m,h){const C=new AccountEntity;C.authorityType=e.authorityType||go.GENERIC_ACCOUNT_TYPE;C.homeAccountId=e.homeAccountId;C.localAccountId=e.localAccountId;C.nativeAccountId=e.nativeAccountId;C.realm=e.tenantId;C.environment=e.environment;C.username=e.username;C.name=e.name;C.loginHint=e.loginHint;C.cloudGraphHostName=m;C.msGraphHost=h;const q=Array.from(e.tenantProfiles?.values()||[]);if(q.length===0&&e.tenantId&&e.localAccountId){q.push(buildTenantProfile(e.homeAccountId,e.localAccountId,e.tenantId,e.idTokenClaims))}C.tenantProfiles=q;C.dataBoundary=e.dataBoundary;return C}static generateHomeAccountId(e,m,h,C,q){if(!(m===hs.Adfs||m===hs.Dsts)){if(e){try{const m=buildClientInfo(e,C.base64Decode);if(m.uid&&m.utid){return`${m.uid}.${m.utid}`}}catch(e){}}h.warning("No client info in response")}return q?.sub||""}static isAccountEntity(e){if(!e){return false}return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")}static accountInfoIsEqual(e,m,h){if(!e||!m){return false}let C=true;if(h){const h=e.idTokenClaims||{};const q=m.idTokenClaims||{};C=h.iat===q.iat&&h.nonce===q.nonce}return e.homeAccountId===m.homeAccountId&&e.localAccountId===m.localAccountId&&e.username===m.username&&e.tenantId===m.tenantId&&e.loginHint===m.loginHint&&e.environment===m.environment&&e.nativeAccountId===m.nativeAccountId&&C}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Ka="cache_quota_exceeded";const Ya="cache_error_unknown"; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Qa={[Ka]:"Exceeded cache storage capacity.",[Ya]:"Unexpected error occurred when using cache storage."};class CacheError extends AuthError{constructor(e,m){const h=m||(Qa[e]?Qa[e]:Qa[Ya]);super(`${e}: ${h}`);Object.setPrototypeOf(this,CacheError.prototype);this.name="CacheError";this.errorCode=e;this.errorMessage=h}}function createCacheError(e){if(!(e instanceof Error)){return new CacheError(Ya)}if(e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED"||e.message.includes("exceeded the quota")){return new CacheError(Ka)}else{return new CacheError(e.name,e.message)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class CacheManager{constructor(e,m,h,C,q){this.clientId=e;this.cryptoImpl=m;this.commonLogger=h.clone(Va,Wa);this.staticAuthorityOptions=q;this.performanceClient=C}getAllAccounts(e,m){return this.buildTenantProfiles(this.getAccountsFilteredBy(e,m),m,e)}getAccountInfoFilteredBy(e,m){if(Object.keys(e).length===0||Object.values(e).every((e=>!e))){this.commonLogger.warning("getAccountInfoFilteredBy: Account filter is empty or invalid, returning null");return null}const h=this.getAllAccounts(e,m);if(h.length>1){const e=h.sort((e=>e.idTokenClaims?-1:1));return e[0]}else if(h.length===1){return h[0]}else{return null}}getBaseAccountInfo(e,m){const h=this.getAccountsFilteredBy(e,m);if(h.length>0){return AccountEntity.getAccountInfo(h[0])}else{return null}}buildTenantProfiles(e,m,h){return e.flatMap((e=>this.getTenantProfilesFromAccountEntity(e,m,h?.tenantId,h)))}getTenantedAccountInfoByFilter(e,m,h,C,q){let V=null;let le;if(q){if(!this.tenantProfileMatchesFilter(h,q)){return null}}const fe=this.getIdToken(e,C,m,h.tenantId);if(fe){le=extractTokenClaims(fe.secret,this.cryptoImpl.base64Decode);if(!this.idTokenClaimsMatchTenantProfileFilter(le,q)){return null}}V=updateAccountTenantProfileData(e,h,le,fe?.secret);return V}getTenantProfilesFromAccountEntity(e,m,h,C){const q=AccountEntity.getAccountInfo(e);let V=q.tenantProfiles||new Map;const le=this.getTokenKeys();if(h){const e=V.get(h);if(e){V=new Map([[h,e]])}else{return[]}}const fe=[];V.forEach((e=>{const h=this.getTenantedAccountInfoByFilter(q,le,e,m,C);if(h){fe.push(h)}}));return fe}tenantProfileMatchesFilter(e,m){if(!!m.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,m.localAccountId)){return false}if(!!m.name&&!(e.name===m.name)){return false}if(m.isHomeTenant!==undefined&&!(e.isHomeTenant===m.isHomeTenant)){return false}return true}idTokenClaimsMatchTenantProfileFilter(e,m){if(m){if(!!m.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,m.localAccountId)){return false}if(!!m.loginHint&&!this.matchLoginHintFromTokenClaims(e,m.loginHint)){return false}if(!!m.username&&!this.matchUsername(e.preferred_username,m.username)){return false}if(!!m.name&&!this.matchName(e,m.name)){return false}if(!!m.sid&&!this.matchSid(e,m.sid)){return false}}return true}async saveCacheRecord(e,m,h,C,q){if(!e){throw ClientAuthError_createClientAuthError(ma)}try{if(!!e.account){await this.setAccount(e.account,m,h,C)}if(!!e.idToken&&q?.idToken!==false){await this.setIdTokenCredential(e.idToken,m,h)}if(!!e.accessToken&&q?.accessToken!==false){await this.saveAccessToken(e.accessToken,m,h)}if(!!e.refreshToken&&q?.refreshToken!==false){await this.setRefreshTokenCredential(e.refreshToken,m,h)}if(!!e.appMetadata){this.setAppMetadata(e.appMetadata,m)}}catch(e){this.commonLogger?.error(`CacheManager.saveCacheRecord: failed`);if(e instanceof AuthError){throw e}else{throw createCacheError(e)}}}async saveAccessToken(e,m,h){const C={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash};const q=this.getTokenKeys();const V=ScopeSet.fromString(e.target);q.accessToken.forEach((e=>{if(!this.accessTokenKeyMatchesFilter(e,C,false)){return}const h=this.getAccessTokenCredential(e,m);if(h&&this.credentialMatchesFilter(h,C)){const C=ScopeSet.fromString(h.target);if(C.intersectingScopeSets(V)){this.removeAccessToken(e,m)}}}));await this.setAccessTokenCredential(e,m,h)}getAccountsFilteredBy(e,m){const h=this.getAccountKeys();const C=[];h.forEach((h=>{const q=this.getAccount(h,m);if(!q){return}if(!!e.homeAccountId&&!this.matchHomeAccountId(q,e.homeAccountId)){return}if(!!e.username&&!this.matchUsername(q.username,e.username)){return}if(!!e.environment&&!this.matchEnvironment(q,e.environment)){return}if(!!e.realm&&!this.matchRealm(q,e.realm)){return}if(!!e.nativeAccountId&&!this.matchNativeAccountId(q,e.nativeAccountId)){return}if(!!e.authorityType&&!this.matchAuthorityType(q,e.authorityType)){return}const V={localAccountId:e?.localAccountId,name:e?.name};const le=q.tenantProfiles?.filter((e=>this.tenantProfileMatchesFilter(e,V)));if(le&&le.length===0){return}C.push(q)}));return C}credentialMatchesFilter(e,m){if(!!m.clientId&&!this.matchClientId(e,m.clientId)){return false}if(!!m.userAssertionHash&&!this.matchUserAssertionHash(e,m.userAssertionHash)){return false}if(typeof m.homeAccountId==="string"&&!this.matchHomeAccountId(e,m.homeAccountId)){return false}if(!!m.environment&&!this.matchEnvironment(e,m.environment)){return false}if(!!m.realm&&!this.matchRealm(e,m.realm)){return false}if(!!m.credentialType&&!this.matchCredentialType(e,m.credentialType)){return false}if(!!m.familyId&&!this.matchFamilyId(e,m.familyId)){return false}if(!!m.target&&!this.matchTarget(e,m.target)){return false}if(m.requestedClaimsHash||e.requestedClaimsHash){if(e.requestedClaimsHash!==m.requestedClaimsHash){return false}}if(e.credentialType===So.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(!!m.tokenType&&!this.matchTokenType(e,m.tokenType)){return false}if(m.tokenType===Ro.SSH){if(m.keyId&&!this.matchKeyId(e,m.keyId)){return false}}}return true}getAppMetadataFilteredBy(e){const m=this.getKeys();const h={};m.forEach((m=>{if(!this.isAppMetadata(m)){return}const C=this.getAppMetadata(m);if(!C){return}if(!!e.environment&&!this.matchEnvironment(C,e.environment)){return}if(!!e.clientId&&!this.matchClientId(C,e.clientId)){return}h[m]=C}));return h}getAuthorityMetadataByAlias(e){const m=this.getAuthorityMetadataKeys();let h=null;m.forEach((m=>{if(!this.isAuthorityMetadata(m)||m.indexOf(this.clientId)===-1){return}const C=this.getAuthorityMetadata(m);if(!C){return}if(C.aliases.indexOf(e)===-1){return}h=C}));return h}removeAllAccounts(e){const m=this.getAllAccounts({},e);m.forEach((m=>{this.removeAccount(m,e)}))}removeAccount(e,m){this.removeAccountContext(e,m);const h=this.getAccountKeys();const keyFilter=m=>m.includes(e.homeAccountId)&&m.includes(e.environment);h.filter(keyFilter).forEach((e=>{this.removeItem(e,m);this.performanceClient.incrementFields({accountsRemoved:1},m)}))}removeAccountContext(e,m){const h=this.getTokenKeys();const keyFilter=m=>m.includes(e.homeAccountId)&&m.includes(e.environment);h.idToken.filter(keyFilter).forEach((e=>{this.removeIdToken(e,m)}));h.accessToken.filter(keyFilter).forEach((e=>{this.removeAccessToken(e,m)}));h.refreshToken.filter(keyFilter).forEach((e=>{this.removeRefreshToken(e,m)}))}removeAccessToken(e,m){const h=this.getAccessTokenCredential(e,m);this.removeItem(e,m);this.performanceClient.incrementFields({accessTokensRemoved:1},m);if(!h||h.credentialType.toLowerCase()!==So.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||h.tokenType!==Ro.POP){return}const C=h.keyId;if(C){void this.cryptoImpl.removeTokenBindingKey(C).catch((()=>{this.commonLogger.error(`Failed to remove token binding key ${C}`,m);this.performanceClient?.incrementFields({removeTokenBindingKeyFailure:1},m)}))}}removeAppMetadata(e){const m=this.getKeys();m.forEach((m=>{if(this.isAppMetadata(m)){this.removeItem(m,e)}}));return true}getIdToken(e,m,h,C,q){this.commonLogger.trace("CacheManager - getIdToken called");const V={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:So.ID_TOKEN,clientId:this.clientId,realm:C};const le=this.getIdTokensByFilter(V,m,h);const fe=le.size;if(fe<1){this.commonLogger.info("CacheManager:getIdToken - No token found");return null}else if(fe>1){let h=le;if(!C){const m=new Map;le.forEach(((h,C)=>{if(h.realm===e.tenantId){m.set(C,h)}}));const C=m.size;if(C<1){this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result");return le.values().next().value}else if(C===1){this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile");return m.values().next().value}else{h=m}}this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them");h.forEach(((e,h)=>{this.removeIdToken(h,m)}));if(q&&m){q.addFields({multiMatchedID:le.size},m)}return null}this.commonLogger.info("CacheManager:getIdToken - Returning ID token");return le.values().next().value}getIdTokensByFilter(e,m,h){const C=h&&h.idToken||this.getTokenKeys().idToken;const q=new Map;C.forEach((h=>{if(!this.idTokenKeyMatchesFilter(h,{clientId:this.clientId,...e})){return}const C=this.getIdTokenCredential(h,m);if(C&&this.credentialMatchesFilter(C,e)){q.set(h,C)}}));return q}idTokenKeyMatchesFilter(e,m){const h=e.toLowerCase();if(m.clientId&&h.indexOf(m.clientId.toLowerCase())===-1){return false}if(m.homeAccountId&&h.indexOf(m.homeAccountId.toLowerCase())===-1){return false}return true}removeIdToken(e,m){this.removeItem(e,m)}removeRefreshToken(e,m){this.removeItem(e,m)}getAccessToken(e,m,h,C){const q=m.correlationId;this.commonLogger.trace("CacheManager - getAccessToken called",q);const V=ScopeSet.createSearchScopes(m.scopes);const le=m.authenticationScheme||Ro.BEARER;const fe=le&&le.toLowerCase()!==Ro.BEARER.toLowerCase()?So.ACCESS_TOKEN_WITH_AUTH_SCHEME:So.ACCESS_TOKEN;const he={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:fe,clientId:this.clientId,realm:C||e.tenantId,target:V,tokenType:le,keyId:m.sshKid,requestedClaimsHash:m.requestedClaimsHash};const ye=h&&h.accessToken||this.getTokenKeys().accessToken;const ve=[];ye.forEach((e=>{if(this.accessTokenKeyMatchesFilter(e,he,true)){const m=this.getAccessTokenCredential(e,q);if(m&&this.credentialMatchesFilter(m,he)){ve.push(m)}}}));const Le=ve.length;if(Le<1){this.commonLogger.info("CacheManager:getAccessToken - No token found",q);return null}else if(Le>1){this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them",q);ve.forEach((e=>{this.removeAccessToken(this.generateCredentialKey(e),q)}));this.performanceClient.addFields({multiMatchedAT:ve.length},q);return null}this.commonLogger.info("CacheManager:getAccessToken - Returning access token",q);return ve[0]}accessTokenKeyMatchesFilter(e,m,h){const C=e.toLowerCase();if(m.clientId&&C.indexOf(m.clientId.toLowerCase())===-1){return false}if(m.homeAccountId&&C.indexOf(m.homeAccountId.toLowerCase())===-1){return false}if(m.realm&&C.indexOf(m.realm.toLowerCase())===-1){return false}if(m.requestedClaimsHash&&C.indexOf(m.requestedClaimsHash.toLowerCase())===-1){return false}if(m.target){const e=m.target.asArray();for(let m=0;m<e.length;m++){if(h&&!C.includes(e[m].toLowerCase())){return false}else if(!h&&C.includes(e[m].toLowerCase())){return true}}}return true}getAccessTokensByFilter(e,m){const h=this.getTokenKeys();const C=[];h.accessToken.forEach((h=>{if(!this.accessTokenKeyMatchesFilter(h,e,true)){return}const q=this.getAccessTokenCredential(h,m);if(q&&this.credentialMatchesFilter(q,e)){C.push(q)}}));return C}getRefreshToken(e,m,h,C,q){this.commonLogger.trace("CacheManager - getRefreshToken called");const V=m?Io:undefined;const le={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:So.REFRESH_TOKEN,clientId:this.clientId,familyId:V};const fe=C&&C.refreshToken||this.getTokenKeys().refreshToken;const he=[];fe.forEach((e=>{if(this.refreshTokenKeyMatchesFilter(e,le)){const m=this.getRefreshTokenCredential(e,h);if(m&&this.credentialMatchesFilter(m,le)){he.push(m)}}}));const ye=he.length;if(ye<1){this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found.");return null}if(ye>1&&q&&h){q.addFields({multiMatchedRT:ye},h)}this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token");return he[0]}refreshTokenKeyMatchesFilter(e,m){const h=e.toLowerCase();if(m.familyId&&h.indexOf(m.familyId.toLowerCase())===-1){return false}if(!m.familyId&&m.clientId&&h.indexOf(m.clientId.toLowerCase())===-1){return false}if(m.homeAccountId&&h.indexOf(m.homeAccountId.toLowerCase())===-1){return false}return true}readAppMetadataFromCache(e){const m={environment:e,clientId:this.clientId};const h=this.getAppMetadataFilteredBy(m);const C=Object.keys(h).map((e=>h[e]));const q=C.length;if(q<1){return null}else if(q>1){throw ClientAuthError_createClientAuthError(oa)}return C[0]}isAppMetadataFOCI(e){const m=this.readAppMetadataFromCache(e);return!!(m&&m.familyId===Io)}matchHomeAccountId(e,m){return!!(typeof e.homeAccountId==="string"&&m===e.homeAccountId)}matchLocalAccountIdFromTokenClaims(e,m){const h=e.oid||e.sub;return m===h}matchLocalAccountIdFromTenantProfile(e,m){return e.localAccountId===m}matchName(e,m){return!!(m.toLowerCase()===e.name?.toLowerCase())}matchUsername(e,m){return!!(e&&typeof e==="string"&&m?.toLowerCase()===e.toLowerCase())}matchUserAssertionHash(e,m){return!!(e.userAssertionHash&&m===e.userAssertionHash)}matchEnvironment(e,m){if(this.staticAuthorityOptions){const h=getAliasesFromStaticSources(this.staticAuthorityOptions,this.commonLogger);if(h.includes(m)&&h.includes(e.environment)){return true}}const h=this.getAuthorityMetadataByAlias(m);if(h&&h.aliases.indexOf(e.environment)>-1){return true}return false}matchCredentialType(e,m){return e.credentialType&&m.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,m){return!!(e.clientId&&m===e.clientId)}matchFamilyId(e,m){return!!(e.familyId&&m===e.familyId)}matchRealm(e,m){return!!(e.realm?.toLowerCase()===m.toLowerCase())}matchNativeAccountId(e,m){return!!(e.nativeAccountId&&m===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,m){if(e.login_hint===m){return true}if(e.preferred_username===m){return true}if(e.upn===m){return true}return false}matchSid(e,m){return e.sid===m}matchAuthorityType(e,m){return!!(e.authorityType&&m.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,m){const h=e.credentialType!==So.ACCESS_TOKEN&&e.credentialType!==So.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(h||!e.target){return false}const C=ScopeSet.fromString(e.target);return C.containsScopeSet(m)}matchTokenType(e,m){return!!(e.tokenType&&e.tokenType===m)}matchKeyId(e,m){return!!(e.keyId&&e.keyId===m)}isAppMetadata(e){return e.indexOf(vo)!==-1}isAuthorityMetadata(e){return e.indexOf(bo.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${bo.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,m){for(const h in m){e[h]=m[h]}return e}}class DefaultStorageClass extends CacheManager{async setAccount(){throw ClientAuthError_createClientAuthError(_a)}getAccount(){throw ClientAuthError_createClientAuthError(_a)}async setIdTokenCredential(){throw ClientAuthError_createClientAuthError(_a)}getIdTokenCredential(){throw ClientAuthError_createClientAuthError(_a)}async setAccessTokenCredential(){throw ClientAuthError_createClientAuthError(_a)}getAccessTokenCredential(){throw ClientAuthError_createClientAuthError(_a)}async setRefreshTokenCredential(){throw ClientAuthError_createClientAuthError(_a)}getRefreshTokenCredential(){throw ClientAuthError_createClientAuthError(_a)}setAppMetadata(){throw ClientAuthError_createClientAuthError(_a)}getAppMetadata(){throw ClientAuthError_createClientAuthError(_a)}setServerTelemetry(){throw ClientAuthError_createClientAuthError(_a)}getServerTelemetry(){throw ClientAuthError_createClientAuthError(_a)}setAuthorityMetadata(){throw ClientAuthError_createClientAuthError(_a)}getAuthorityMetadata(){throw ClientAuthError_createClientAuthError(_a)}getAuthorityMetadataKeys(){throw ClientAuthError_createClientAuthError(_a)}setThrottlingCache(){throw ClientAuthError_createClientAuthError(_a)}getThrottlingCache(){throw ClientAuthError_createClientAuthError(_a)}removeItem(){throw ClientAuthError_createClientAuthError(_a)}getKeys(){throw ClientAuthError_createClientAuthError(_a)}getAccountKeys(){throw ClientAuthError_createClientAuthError(_a)}getTokenKeys(){throw ClientAuthError_createClientAuthError(_a)}generateCredentialKey(){throw ClientAuthError_createClientAuthError(_a)}generateAccountKey(){throw ClientAuthError_createClientAuthError(_a)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class StubPerformanceMeasurement{startMeasurement(){return}endMeasurement(){return}flushMeasurement(){return null}}class StubPerformanceClient{generateId(){return"callback-id"}startMeasurement(e,m){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Ga.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:m||""},measurement:new StubPerformanceMeasurement}}startPerformanceMeasurement(){return new StubPerformanceMeasurement}calculateQueuedTime(){return 0}addQueueMeasurement(){return}setPreQueueTime(){return}endMeasurement(){return null}discardMeasurements(){return}removePerformanceCallback(){return true}addPerformanceCallback(){return""}emitEvents(){return}addFields(){return}incrementFields(){return}cacheEventByCorrelationId(){return}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Ja={tokenRenewalOffsetSeconds:No,preventCorsPreflight:false};const Xa={loggerCallback:()=>{},piiLoggingEnabled:false,logLevel:fs.Info,correlationId:eo.EMPTY_STRING};const Za={claimsBasedCachingEnabled:false};const ec={async sendGetRequestAsync(){throw ClientAuthError_createClientAuthError(_a)},async sendPostRequestAsync(){throw ClientAuthError_createClientAuthError(_a)}};const tc={sku:eo.SKU,version:Wa,cpu:eo.EMPTY_STRING,os:eo.EMPTY_STRING};const nc={clientSecret:eo.EMPTY_STRING,clientAssertion:undefined};const rc={azureCloudInstance:qa.None,tenant:`${eo.DEFAULT_COMMON_TENANT}`};const oc={application:{appName:"",appVersion:""}};function buildClientConfiguration({authOptions:e,systemOptions:m,loggerOptions:h,cacheOptions:C,storageInterface:q,networkInterface:V,cryptoInterface:le,clientCredentials:fe,libraryInfo:he,telemetry:ye,serverTelemetryManager:ve,persistencePlugin:Le,serializableCache:Ue}){const qe={...Xa,...h};return{authOptions:buildAuthOptions(e),systemOptions:{...Ja,...m},loggerOptions:qe,cacheOptions:{...Za,...C},storageInterface:q||new DefaultStorageClass(e.clientId,Ha,new Logger(qe),new StubPerformanceClient),networkInterface:V||ec,cryptoInterface:le||Ha,clientCredentials:fe||nc,libraryInfo:{...tc,...he},telemetry:{...oc,...ye},serverTelemetryManager:ve||null,persistencePlugin:Le||null,serializableCache:Ue||null}}function buildAuthOptions(e){return{clientCapabilities:[],azureCloudOptions:rc,skipAuthorityMetadataCache:false,instanceAware:false,encodeExtraQueryParams:false,...e}}function isOidcProtocolMode(e){return e.authOptions.authority.options.protocolMode===Fa.OIDC} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const ic={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"}; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function instrumentBrokerParams(e,m,h){if(!m){return}const C=e.get(ui);if(C&&e.has(ls)){h?.addFields({embeddedClientId:C,embeddedRedirectUri:e.get(di)},m)}}function addResponseType(e,m){e.set(pi,m)}function addResponseMode(e,m){e.set(mi,m?m:fo.QUERY)}function addNativeBroker(e){e.set(NATIVE_BROKER,"1")}function addScopes(e,m,h=true,C=ro){if(h&&!C.includes("openid")&&!m.includes("openid")){C.push("openid")}const q=h?[...m||[],...C]:m||[];const V=new ScopeSet(q);e.set(gi,V.printScopes())}function addClientId(e,m){e.set(ui,m)}function addRedirectUri(e,m){e.set(di,m)}function addPostLogoutRedirectUri(e,m){e.set(Gi,m)}function addIdTokenHint(e,m){e.set(zi,m)}function addDomainHint(e,m){e.set(as,m)}function addLoginHint(e,m){e.set(ss,m)}function addCcsUpn(e,m){e.set(io.CCS_HEADER,`UPN:${m}`)}function addCcsOid(e,m){e.set(io.CCS_HEADER,`Oid:${m.uid}@${m.utid}`)}function addSid(e,m){e.set(is,m)}function addClaims(e,m,h){const C=addClientCapabilitiesToClaims(m,h);try{JSON.parse(C)}catch(e){throw createClientConfigurationError(Is)}e.set(hi,C)}function addCorrelationId(e,m){e.set(Mi,m)}function addLibraryInfo(e,m){e.set($i,m.sku);e.set(Ni,m.version);if(m.os){e.set(ki,m.os)}if(m.cpu){e.set(Li,m.cpu)}}function addApplicationTelemetry(e,m){if(m?.appName){e.set(ji,m.appName)}if(m?.appVersion){e.set(Bi,m.appVersion)}}function addPrompt(e,m){e.set(Ri,m)}function addState(e,m){if(m){e.set(Ai,m)}}function addNonce(e,m){e.set(wi,m)}function addCodeChallengeParams(e,m,h){if(m&&h){e.set(_i,m);e.set(Oi,h)}else{throw createClientConfigurationError(Rs)}}function addAuthorizationCode(e,m){e.set(xi,m)}function addDeviceCode(e,m){e.set(Hi,m)}function addRefreshToken(e,m){e.set(Ci,m)}function addCodeVerifier(e,m){e.set(Di,m)}function addClientSecret(e,m){e.set(Vi,m)}function addClientAssertion(e,m){if(m){e.set(Wi,m)}}function addClientAssertionType(e,m){if(m){e.set(Ki,m)}}function addOboAssertion(e,m){e.set(Ji,m)}function addRequestTokenUse(e,m){e.set(Xi,m)}function addGrantType(e,m){e.set(fi,m)}function addClientInfo(e){e.set(Co,"1")}function addInstanceAware(e){if(!e.has(ds)){e.set(ds,"true")}}function addExtraQueryParameters(e,m){Object.entries(m).forEach((([m,h])=>{if(!e.has(m)&&h){e.set(m,h)}}))}function addClientCapabilitiesToClaims(e,m){let h;if(!e){h={}}else{try{h=JSON.parse(e)}catch(e){throw createClientConfigurationError(Is)}}if(m&&m.length>0){if(!h.hasOwnProperty(co.ACCESS_TOKEN)){h[co.ACCESS_TOKEN]={}}h[co.ACCESS_TOKEN][co.XMS_CC]={values:m}}return JSON.stringify(h)}function addUsername(e,m){e.set(xo.username,m)}function addPassword(e,m){e.set(xo.password,m)}function addPopToken(e,m){if(m){e.set(Yi,Ro.POP);e.set(Qi,m)}}function addSshJwk(e,m){if(m){e.set(Yi,Ro.SSH);e.set(Qi,m)}}function addServerTelemetry(e,m){e.set(Ui,m.generateCurrentRequestHeaderValue());e.set(Fi,m.generateLastRequestHeaderValue())}function addThrottling(e){e.set(qi,To.X_MS_LIB_CAPABILITY_VALUE)}function addLogoutHint(e,m){e.set(os,m)}function addBrokerParameters(e,m,h){if(!e.has(ls)){e.set(ls,m)}if(!e.has(us)){e.set(us,h)}}function addEARParameters(e,m){e.set(EAR_JWK,encodeURIComponent(m));const h="eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0";e.set(EAR_JWE_CRYPTO,h)}function addPostBodyParameters(e,m){Object.entries(m).forEach((([m,h])=>{if(h){e.set(m,h)}}))} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -async function createDiscoveredInstance(e,m,h,C,q,V,le){le?.addQueueMeasurement(ja.AuthorityFactoryCreateDiscoveredInstance,V);const fe=Authority.transformCIAMAuthority(formatAuthorityUri(e));const he=new Authority(fe,m,h,C,q,V,le);try{await invokeAsync(he.resolveEndpointsAsync.bind(he),ja.AuthorityResolveEndpointsAsync,q,le,V)();return he}catch(e){throw ClientAuthError_createClientAuthError(Vs)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function getRequestThumbprint(e,m,h){return{clientId:e,authority:m.authority,scopes:m.scopes,homeAccountIdentifier:h,claims:m.claims,authenticationScheme:m.authenticationScheme,resourceRequestMethod:m.resourceRequestMethod,resourceRequestUri:m.resourceRequestUri,shrClaims:m.shrClaims,sshKid:m.sshKid,embeddedClientId:m.embeddedClientId||m.tokenBodyParameters?.clientId}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class ThrottlingUtils{static generateThrottlingStorageKey(e){return`${To.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,m,h){const C=ThrottlingUtils.generateThrottlingStorageKey(m);const q=e.getThrottlingCache(C);if(q){if(q.throttleTime<Date.now()){e.removeItem(C,h);return}throw new ServerError_ServerError(q.errorCodes?.join(" ")||eo.EMPTY_STRING,q.errorMessage,q.subError)}}static postProcess(e,m,h,C){if(ThrottlingUtils.checkResponseStatus(h)||ThrottlingUtils.checkResponseForRetryAfter(h)){const q={throttleTime:ThrottlingUtils.calculateThrottleTime(parseInt(h.headers[io.RETRY_AFTER])),error:h.body.error,errorCodes:h.body.error_codes,errorMessage:h.body.error_description,subError:h.body.suberror};e.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(m),q,C)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){if(e.headers){return e.headers.hasOwnProperty(io.RETRY_AFTER)&&(e.status<200||e.status>=300)}return false}static calculateThrottleTime(e){const m=e<=0?0:e;const h=Date.now()/1e3;return Math.floor(Math.min(h+(m||To.DEFAULT_THROTTLE_TIME_SECONDS),h+To.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,m,h,C){const q=getRequestThumbprint(m,h,C);const V=this.generateThrottlingStorageKey(q);e.removeItem(V,h.correlationId)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class NetworkError extends AuthError{constructor(e,m,h){super(e.errorCode,e.errorMessage,e.subError);Object.setPrototypeOf(this,NetworkError.prototype);this.name="NetworkError";this.error=e;this.httpStatus=m;this.responseHeaders=h}}function createNetworkError(e,m,h,C){e.errorMessage=`${e.errorMessage}, additionalErrorInfo: error.name:${C?.name}, error.message:${C?.message}`;return new NetworkError(e,m,h)} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class BaseClient{constructor(e,m){this.config=buildClientConfiguration(e);this.logger=new Logger(this.config.loggerOptions,Va,Wa);this.cryptoUtils=this.config.cryptoInterface;this.cacheManager=this.config.storageInterface;this.networkClient=this.config.networkInterface;this.serverTelemetryManager=this.config.serverTelemetryManager;this.authority=this.config.authOptions.authority;this.performanceClient=m}createTokenRequestHeaders(e){const m={};m[io.CONTENT_TYPE]=eo.URL_FORM_CONTENT_TYPE;if(!this.config.systemOptions.preventCorsPreflight&&e){switch(e.type){case ic.HOME_ACCOUNT_ID:try{const h=buildClientInfoFromHomeAccountId(e.credential);m[io.CCS_HEADER]=`Oid:${h.uid}@${h.utid}`}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case ic.UPN:m[io.CCS_HEADER]=`UPN: ${e.credential}`;break}}return m}async executePostToTokenEndpoint(e,m,h,C,q,V){if(V){this.performanceClient?.addQueueMeasurement(V,q)}const le=await this.sendPostRequest(C,e,{body:m,headers:h},q);if(this.config.serverTelemetryManager&&le.status<500&&le.status!==429){this.config.serverTelemetryManager.clearTelemetryCache()}return le}async sendPostRequest(e,m,h,C){ThrottlingUtils.preProcess(this.cacheManager,e,C);let q;try{q=await invokeAsync(this.networkClient.sendPostRequestAsync.bind(this.networkClient),ja.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,C)(m,h);const e=q.headers||{};this.performanceClient?.addFields({refreshTokenSize:q.body.refresh_token?.length||0,httpVerToken:e[io.X_MS_HTTP_VERSION]||"",requestId:e[io.X_MS_REQUEST_ID]||""},C)}catch(e){if(e instanceof NetworkError){const m=e.responseHeaders;if(m){this.performanceClient?.addFields({httpVerToken:m[io.X_MS_HTTP_VERSION]||"",requestId:m[io.X_MS_REQUEST_ID]||"",contentTypeHeader:m[io.CONTENT_TYPE]||undefined,contentLengthHeader:m[io.CONTENT_LENGTH]||undefined,httpStatus:e.httpStatus},C)}throw e.error}if(e instanceof AuthError){throw e}else{throw ClientAuthError_createClientAuthError(Ws)}}ThrottlingUtils.postProcess(this.cacheManager,e,q,C);return q}async updateAuthority(e,m){this.performanceClient?.addQueueMeasurement(ja.UpdateTokenEndpointAuthority,m);const h=`https://${e}/${this.authority.tenant}/`;const C=await createDiscoveredInstance(h,this.networkClient,this.cacheManager,this.authority.options,this.logger,m,this.performanceClient);this.authority=C}createTokenQueryParameters(e){const m=new Map;if(e.embeddedClientId){addBrokerParameters(m,this.config.authOptions.clientId,this.config.authOptions.redirectUri)}if(e.tokenQueryParameters){addExtraQueryParameters(m,e.tokenQueryParameters)}addCorrelationId(m,e.correlationId);instrumentBrokerParams(m,e.correlationId,this.performanceClient);return mapToQueryString(m)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const sc="no_tokens_found";const ac="native_account_unavailable";const cc="refresh_token_expired";const lc="ux_not_allowed";const uc="interaction_required";const dc="consent_required";const pc="login_required";const mc="bad_token";const fc="interrupted_user"; -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const hc=[uc,dc,pc,mc,lc,fc];const gc=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token","interrupted_user"];const yc={[sc]:"No refresh token found in the cache. Please sign-in.",[ac]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[cc]:"Refresh token has expired.",[mc]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",[lc]:"`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",[fc]:"The user could not be authenticated due to an interrupted state. Please invoke an interactive API to resolve."};const Sc={noTokensFoundError:{code:sc,desc:yc[sc]},native_account_unavailable:{code:ac,desc:yc[ac]},bad_token:{code:mc,desc:yc[mc]},interrupted_user:{code:fc,desc:yc[fc]}};class InteractionRequiredAuthError_InteractionRequiredAuthError extends AuthError{constructor(e,m,h,C,q,V,le,fe){super(e,m,h);Object.setPrototypeOf(this,InteractionRequiredAuthError_InteractionRequiredAuthError.prototype);this.timestamp=C||eo.EMPTY_STRING;this.traceId=q||eo.EMPTY_STRING;this.correlationId=V||eo.EMPTY_STRING;this.claims=le||eo.EMPTY_STRING;this.name="InteractionRequiredAuthError";this.errorNo=fe}}function InteractionRequiredAuthError_isInteractionRequiredError(e,m,h){const C=!!e&&hc.indexOf(e)>-1;const q=!!h&&gc.indexOf(h)>-1;const V=!!m&&hc.some((e=>m.indexOf(e)>-1));return C||V||q}function createInteractionRequiredAuthError(e){return new InteractionRequiredAuthError_InteractionRequiredAuthError(e,yc[e])} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class ProtocolUtils{static setRequestState(e,m,h){const C=ProtocolUtils.generateLibraryState(e,h);return m?`${C}${eo.RESOURCE_DELIM}${m}`:C}static generateLibraryState(e,m){if(!e){throw ClientAuthError_createClientAuthError(ga)}const h={id:e.createNewGuid()};if(m){h.meta=m}const C=JSON.stringify(h);return e.base64Encode(C)}static parseRequestState(e,m){if(!e){throw ClientAuthError_createClientAuthError(ga)}if(!m){throw ClientAuthError_createClientAuthError(Qs)}try{const h=m.split(eo.RESOURCE_DELIM);const C=h[0];const q=h.length>1?h.slice(1).join(eo.RESOURCE_DELIM):eo.EMPTY_STRING;const V=e.base64Decode(C);const le=JSON.parse(V);return{userRequestState:q||eo.EMPTY_STRING,libraryState:le}}catch(e){throw ClientAuthError_createClientAuthError(Qs)}}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const Ec={SW:"sw"};class PopTokenGenerator{constructor(e,m){this.cryptoUtils=e;this.performanceClient=m}async generateCnf(e,m){this.performanceClient?.addQueueMeasurement(ja.PopTokenGenerateCnf,e.correlationId);const h=await invokeAsync(this.generateKid.bind(this),ja.PopTokenGenerateCnf,m,this.performanceClient,e.correlationId)(e);const C=this.cryptoUtils.base64UrlEncode(JSON.stringify(h));return{kid:h.kid,reqCnfString:C}}async generateKid(e){this.performanceClient?.addQueueMeasurement(ja.PopTokenGenerateKid,e.correlationId);const m=await this.cryptoUtils.getPublicKeyThumbprint(e);return{kid:m,xms_ksl:Ec.SW}}async signPopToken(e,m,h){return this.signPayload(e,m,h)}async signPayload(e,m,h,C){const{resourceRequestMethod:q,resourceRequestUri:V,shrClaims:le,shrNonce:fe,shrOptions:he}=h;const ye=V?new UrlString(V):undefined;const ve=ye?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:nowSeconds(),m:q?.toUpperCase(),u:ve?.HostNameAndPort,nonce:fe||this.cryptoUtils.createNewGuid(),p:ve?.AbsolutePath,q:ve?.QueryString?[[],ve.QueryString]:undefined,client_claims:le||undefined,...C},m,he,h.correlationId)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class TokenCacheContext{constructor(e,m){this.cache=e;this.hasChanged=m}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class ResponseHandler{constructor(e,m,h,C,q,V,le){this.clientId=e;this.cacheStorage=m;this.cryptoObj=h;this.logger=C;this.serializableCache=q;this.persistencePlugin=V;this.performanceClient=le}validateTokenResponse(e,m){if(e.error||e.error_description||e.suberror){const h=`Error(s): ${e.error_codes||eo.NOT_AVAILABLE} - Timestamp: ${e.timestamp||eo.NOT_AVAILABLE} - Description: ${e.error_description||eo.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||eo.NOT_AVAILABLE} - Trace ID: ${e.trace_id||eo.NOT_AVAILABLE}`;const C=e.error_codes?.length?e.error_codes[0]:undefined;const q=new ServerError_ServerError(e.error,h,e.suberror,C,e.status);if(m&&e.status&&e.status>=to.SERVER_ERROR_RANGE_START&&e.status<=to.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.\n${q}`);return}else if(m&&e.status&&e.status>=to.CLIENT_ERROR_RANGE_START&&e.status<=to.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.\n${q}`);return}if(InteractionRequiredAuthError_isInteractionRequiredError(e.error,e.error_description,e.suberror)){throw new InteractionRequiredAuthError_InteractionRequiredAuthError(e.error,e.error_description,e.suberror,e.timestamp||eo.EMPTY_STRING,e.trace_id||eo.EMPTY_STRING,e.correlation_id||eo.EMPTY_STRING,e.claims||eo.EMPTY_STRING,C)}throw q}}async handleServerTokenResponse(e,m,h,C,q,V,le,fe,he,ye){this.performanceClient?.addQueueMeasurement(ja.HandleServerTokenResponse,e.correlation_id);let ve;if(e.id_token){ve=extractTokenClaims(e.id_token||eo.EMPTY_STRING,this.cryptoObj.base64Decode);if(V&&V.nonce){if(ve.nonce!==V.nonce){throw ClientAuthError_createClientAuthError(Zs)}}if(C.maxAge||C.maxAge===0){const e=ve.auth_time;if(!e){throw ClientAuthError_createClientAuthError(ea)}checkMaxAge(e,C.maxAge)}}this.homeAccountIdentifier=AccountEntity.generateHomeAccountId(e.client_info||eo.EMPTY_STRING,m.authorityType,this.logger,this.cryptoObj,ve);let Le;if(!!V&&!!V.state){Le=ProtocolUtils.parseRequestState(this.cryptoObj,V.state)}e.key_id=e.key_id||C.sshKid||undefined;const Ue=this.generateCacheRecord(e,m,h,C,ve,le,V);let qe;try{if(this.persistencePlugin&&this.serializableCache){this.logger.verbose("Persistence enabled, calling beforeCacheAccess");qe=new TokenCacheContext(this.serializableCache,true);await this.persistencePlugin.beforeCacheAccess(qe)}if(fe&&!he&&Ue.account){const e=this.cacheStorage.getAllAccounts({homeAccountId:Ue.account.homeAccountId,environment:Ue.account.environment},C.correlationId);if(e.length<1){this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache");this.performanceClient?.addFields({acntLoggedOut:true},C.correlationId);return await ResponseHandler.generateAuthenticationResult(this.cryptoObj,m,Ue,false,C,ve,Le,undefined,ye)}}await this.cacheStorage.saveCacheRecord(Ue,C.correlationId,isKmsi(ve||{}),q,C.storeInCache)}finally{if(this.persistencePlugin&&this.serializableCache&&qe){this.logger.verbose("Persistence enabled, calling afterCacheAccess");await this.persistencePlugin.afterCacheAccess(qe)}}return ResponseHandler.generateAuthenticationResult(this.cryptoObj,m,Ue,false,C,ve,Le,e,ye)}generateCacheRecord(e,m,h,C,q,V,le){const fe=m.getPreferredCache();if(!fe){throw ClientAuthError_createClientAuthError(fa)}const he=getTenantIdFromIdTokenClaims(q);let ye;let ve;if(e.id_token&&!!q){ye=createIdTokenEntity(this.homeAccountIdentifier,fe,e.id_token,this.clientId,he||"");ve=buildAccountToCache(this.cacheStorage,m,this.homeAccountIdentifier,this.cryptoObj.base64Decode,C.correlationId,q,e.client_info,fe,he,le,undefined,this.logger)}let Le=null;if(e.access_token){const q=e.scope?ScopeSet.fromString(e.scope):new ScopeSet(C.scopes||[]);const le=(typeof e.expires_in==="string"?parseInt(e.expires_in,10):e.expires_in)||0;const ye=(typeof e.ext_expires_in==="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0;const ve=(typeof e.refresh_in==="string"?parseInt(e.refresh_in,10):e.refresh_in)||undefined;const Ue=h+le;const qe=Ue+ye;const ze=ve&&ve>0?h+ve:undefined;Le=createAccessTokenEntity(this.homeAccountIdentifier,fe,e.access_token,this.clientId,he||m.tenant||"",q.printScopes(),Ue,qe,this.cryptoObj.base64Decode,ze,e.token_type,V,e.key_id,C.claims,C.requestedClaimsHash)}let Ue=null;if(e.refresh_token){let m;if(e.refresh_token_expires_in){const q=typeof e.refresh_token_expires_in==="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;m=h+q;this.performanceClient?.addFields({ntwkRtExpiresOnSeconds:m},C.correlationId)}Ue=createRefreshTokenEntity(this.homeAccountIdentifier,fe,e.refresh_token,this.clientId,e.foci,V,m)}let qe=null;if(e.foci){qe={clientId:this.clientId,environment:fe,familyId:e.foci}}return{account:ve,idToken:ye,accessToken:Le,refreshToken:Ue,appMetadata:qe}}static async generateAuthenticationResult(e,m,h,C,q,V,le,fe,he){let ye=eo.EMPTY_STRING;let ve=[];let Le=null;let Ue;let qe;let ze=eo.EMPTY_STRING;if(h.accessToken){if(h.accessToken.tokenType===Ro.POP&&!q.popKid){const m=new PopTokenGenerator(e);const{secret:C,keyId:V}=h.accessToken;if(!V){throw ClientAuthError_createClientAuthError(Ra)}ye=await m.signPopToken(C,V,q)}else{ye=h.accessToken.secret}ve=ScopeSet.fromString(h.accessToken.target).asArray();Le=toDateFromSeconds(h.accessToken.expiresOn);Ue=toDateFromSeconds(h.accessToken.extendedExpiresOn);if(h.accessToken.refreshOn){qe=toDateFromSeconds(h.accessToken.refreshOn)}}if(h.appMetadata){ze=h.appMetadata.familyId===Io?Io:""}const He=V?.oid||V?.sub||"";const We=V?.tid||"";if(fe?.spa_accountid&&!!h.account){h.account.nativeAccountId=fe?.spa_accountid}const Qe=h.account?updateAccountTenantProfileData(AccountEntity.getAccountInfo(h.account),undefined,V,h.idToken?.secret):null;return{authority:m.canonicalAuthority,uniqueId:He,tenantId:We,scopes:ve,account:Qe,idToken:h?.idToken?.secret||"",idTokenClaims:V||{},accessToken:ye,fromCache:C,expiresOn:Le,extExpiresOn:Ue,refreshOn:qe,correlationId:q.correlationId,requestId:he||eo.EMPTY_STRING,familyId:ze,tokenType:h.accessToken?.tokenType||eo.EMPTY_STRING,state:le?le.userRequestState:eo.EMPTY_STRING,cloudGraphHostName:h.account?.cloudGraphHostName||eo.EMPTY_STRING,msGraphHost:h.account?.msGraphHost||eo.EMPTY_STRING,code:fe?.spa_code,fromNativeBroker:false}}}function buildAccountToCache(e,m,h,C,q,V,le,fe,he,ye,ve,Le){Le?.verbose("setCachedAccount called");const Ue=e.getAccountKeys();const qe=Ue.find((e=>e.startsWith(h)));let ze=null;if(qe){ze=e.getAccount(qe,q)}const He=ze||AccountEntity.createAccount({homeAccountId:h,idTokenClaims:V,clientInfo:le,environment:fe,cloudGraphHostName:ye?.cloud_graph_host_name,msGraphHost:ye?.msgraph_host,nativeAccountId:ve},m,C);const We=He.tenantProfiles||[];const Qe=he||He.realm;if(Qe&&!We.find((e=>e.tenantId===Qe))){const e=buildTenantProfile(h,He.localAccountId,Qe,V);We.push(e)}He.tenantProfiles=We;return He} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -async function getClientAssertion(e,m,h){if(typeof e==="string"){return e}else{const C={clientId:m,tokenEndpoint:h};return e(C)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class AuthorizationCodeClient extends BaseClient{constructor(e,m){super(e,m);this.includeRedirectUri=true;this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async acquireToken(e,m,h){this.performanceClient?.addQueueMeasurement(ja.AuthClientAcquireToken,e.correlationId);if(!e.code){throw ClientAuthError_createClientAuthError(ia)}const C=nowSeconds();const q=await invokeAsync(this.executeTokenRequest.bind(this),ja.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e);const V=q.headers?.[io.X_MS_REQUEST_ID];const le=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);le.validateTokenResponse(q.body);return invokeAsync(le.handleServerTokenResponse.bind(le),ja.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(q.body,this.authority,C,e,m,h,undefined,undefined,undefined,V)}getLogoutUri(e){if(!e){throw createClientConfigurationError(As)}const m=this.createLogoutUrlQueryString(e);return UrlString.appendQueryString(this.authority.endSessionEndpoint,m)}async executeTokenRequest(e,m){this.performanceClient?.addQueueMeasurement(ja.AuthClientExecuteTokenRequest,m.correlationId);const h=this.createTokenQueryParameters(m);const C=UrlString.appendQueryString(e.tokenEndpoint,h);const q=await invokeAsync(this.createTokenRequestBody.bind(this),ja.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,m.correlationId)(m);let V=undefined;if(m.clientInfo){try{const e=buildClientInfo(m.clientInfo,this.cryptoUtils.base64Decode);V={credential:`${e.uid}${yo.CLIENT_INFO_SEPARATOR}${e.utid}`,type:ic.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}}const le=this.createTokenRequestHeaders(V||m.ccsCredential);const fe=getRequestThumbprint(this.config.authOptions.clientId,m);return invokeAsync(this.executePostToTokenEndpoint.bind(this),ja.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,m.correlationId)(C,q,le,fe,m.correlationId,ja.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(ja.AuthClientCreateTokenRequestBody,e.correlationId);const m=new Map;addClientId(m,e.embeddedClientId||e.tokenBodyParameters?.[ui]||this.config.authOptions.clientId);if(!this.includeRedirectUri){if(!e.redirectUri){throw createClientConfigurationError(gs)}}else{addRedirectUri(m,e.redirectUri)}addScopes(m,e.scopes,true,this.oidcDefaultScopes);addAuthorizationCode(m,e.code);addLibraryInfo(m,this.config.libraryInfo);addApplicationTelemetry(m,this.config.telemetry.application);addThrottling(m);if(this.serverTelemetryManager&&!isOidcProtocolMode(this.config)){addServerTelemetry(m,this.serverTelemetryManager)}if(e.codeVerifier){addCodeVerifier(m,e.codeVerifier)}if(this.config.clientCredentials.clientSecret){addClientSecret(m,this.config.clientCredentials.clientSecret)}if(this.config.clientCredentials.clientAssertion){const h=this.config.clientCredentials.clientAssertion;addClientAssertion(m,await getClientAssertion(h.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(m,h.assertionType)}addGrantType(m,ho.AUTHORIZATION_CODE_GRANT);addClientInfo(m);if(e.authenticationScheme===Ro.POP){const h=new PopTokenGenerator(this.cryptoUtils,this.performanceClient);let C;if(!e.popKid){const m=await invokeAsync(h.generateCnf.bind(h),ja.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);C=m.reqCnfString}else{C=this.cryptoUtils.encodeKid(e.popKid)}addPopToken(m,C)}else if(e.authenticationScheme===Ro.SSH){if(e.sshJwk){addSshJwk(m,e.sshJwk)}else{throw createClientConfigurationError(_s)}}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(m,e.claims,this.config.authOptions.clientCapabilities)}let h=undefined;if(e.clientInfo){try{const m=buildClientInfo(e.clientInfo,this.cryptoUtils.base64Decode);h={credential:`${m.uid}${yo.CLIENT_INFO_SEPARATOR}${m.utid}`,type:ic.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}}else{h=e.ccsCredential}if(this.config.systemOptions.preventCorsPreflight&&h){switch(h.type){case ic.HOME_ACCOUNT_ID:try{const e=buildClientInfoFromHomeAccountId(h.credential);addCcsOid(m,e)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case ic.UPN:addCcsUpn(m,h.credential);break}}if(e.embeddedClientId){addBrokerParameters(m,this.config.authOptions.clientId,this.config.authOptions.redirectUri)}if(e.tokenBodyParameters){addExtraQueryParameters(m,e.tokenBodyParameters)}if(e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[ns])){addExtraQueryParameters(m,{[ns]:"1"})}instrumentBrokerParams(m,e.correlationId,this.performanceClient);return mapToQueryString(m)}createLogoutUrlQueryString(e){const m=new Map;if(e.postLogoutRedirectUri){addPostLogoutRedirectUri(m,e.postLogoutRedirectUri)}if(e.correlationId){addCorrelationId(m,e.correlationId)}if(e.idTokenHint){addIdTokenHint(m,e.idTokenHint)}if(e.state){addState(m,e.state)}if(e.logoutHint){addLogoutHint(m,e.logoutHint)}if(e.extraQueryParameters){addExtraQueryParameters(m,e.extraQueryParameters)}if(this.config.authOptions.instanceAware){addInstanceAware(m)}return mapToQueryString(m,this.config.authOptions.encodeExtraQueryParams,e.extraQueryParameters)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -const vc=300;class RefreshTokenClient extends BaseClient{constructor(e,m){super(e,m)}async acquireToken(e,m){this.performanceClient?.addQueueMeasurement(ja.RefreshTokenClientAcquireToken,e.correlationId);const h=nowSeconds();const C=await invokeAsync(this.executeTokenRequest.bind(this),ja.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority);const q=C.headers?.[io.X_MS_REQUEST_ID];const V=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);V.validateTokenResponse(C.body);return invokeAsync(V.handleServerTokenResponse.bind(V),ja.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(C.body,this.authority,h,e,m,undefined,undefined,true,e.forceCache,q)}async acquireTokenByRefreshToken(e,m){if(!e){throw createClientConfigurationError(bs)}this.performanceClient?.addQueueMeasurement(ja.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId);if(!e.account){throw ClientAuthError_createClientAuthError(pa)}const h=this.cacheManager.isAppMetadataFOCI(e.account.environment);if(h){try{return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ja.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,true,m)}catch(h){const C=h instanceof InteractionRequiredAuthError_InteractionRequiredAuthError&&h.errorCode===sc;const q=h instanceof ServerError_ServerError&&h.errorCode===Po.INVALID_GRANT_ERROR&&h.subError===Po.CLIENT_MISMATCH_ERROR;if(C||q){return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ja.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,false,m)}else{throw h}}}return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ja.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,false,m)}async acquireTokenWithCachedRefreshToken(e,m,h){this.performanceClient?.addQueueMeasurement(ja.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const C=invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager),ja.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,m,e.correlationId,undefined,this.performanceClient);if(!C){throw createInteractionRequiredAuthError(sc)}if(C.expiresOn){const m=e.refreshTokenExpirationOffsetSeconds||vc;this.performanceClient?.addFields({cacheRtExpiresOnSeconds:Number(C.expiresOn),rtOffsetSeconds:m},e.correlationId);if(isTokenExpired(C.expiresOn,m)){throw createInteractionRequiredAuthError(cc)}}const q={...e,refreshToken:C.secret,authenticationScheme:e.authenticationScheme||Ro.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:ic.HOME_ACCOUNT_ID}};try{return await invokeAsync(this.acquireToken.bind(this),ja.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(q,h)}catch(m){if(m instanceof InteractionRequiredAuthError_InteractionRequiredAuthError){if(m.subError===mc){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const m=this.cacheManager.generateCredentialKey(C);this.cacheManager.removeRefreshToken(m,e.correlationId)}}throw m}}async executeTokenRequest(e,m){this.performanceClient?.addQueueMeasurement(ja.RefreshTokenClientExecuteTokenRequest,e.correlationId);const h=this.createTokenQueryParameters(e);const C=UrlString.appendQueryString(m.tokenEndpoint,h);const q=await invokeAsync(this.createTokenRequestBody.bind(this),ja.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e);const V=this.createTokenRequestHeaders(e.ccsCredential);const le=getRequestThumbprint(this.config.authOptions.clientId,e);return invokeAsync(this.executePostToTokenEndpoint.bind(this),ja.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(C,q,V,le,e.correlationId,ja.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(ja.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const m=new Map;addClientId(m,e.embeddedClientId||e.tokenBodyParameters?.[ui]||this.config.authOptions.clientId);if(e.redirectUri){addRedirectUri(m,e.redirectUri)}addScopes(m,e.scopes,true,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes);addGrantType(m,ho.REFRESH_TOKEN_GRANT);addClientInfo(m);addLibraryInfo(m,this.config.libraryInfo);addApplicationTelemetry(m,this.config.telemetry.application);addThrottling(m);if(this.serverTelemetryManager&&!isOidcProtocolMode(this.config)){addServerTelemetry(m,this.serverTelemetryManager)}addRefreshToken(m,e.refreshToken);if(this.config.clientCredentials.clientSecret){addClientSecret(m,this.config.clientCredentials.clientSecret)}if(this.config.clientCredentials.clientAssertion){const h=this.config.clientCredentials.clientAssertion;addClientAssertion(m,await getClientAssertion(h.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(m,h.assertionType)}if(e.authenticationScheme===Ro.POP){const h=new PopTokenGenerator(this.cryptoUtils,this.performanceClient);let C;if(!e.popKid){const m=await invokeAsync(h.generateCnf.bind(h),ja.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);C=m.reqCnfString}else{C=this.cryptoUtils.encodeKid(e.popKid)}addPopToken(m,C)}else if(e.authenticationScheme===Ro.SSH){if(e.sshJwk){addSshJwk(m,e.sshJwk)}else{throw createClientConfigurationError(_s)}}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(m,e.claims,this.config.authOptions.clientCapabilities)}if(this.config.systemOptions.preventCorsPreflight&&e.ccsCredential){switch(e.ccsCredential.type){case ic.HOME_ACCOUNT_ID:try{const h=buildClientInfoFromHomeAccountId(e.ccsCredential.credential);addCcsOid(m,h)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case ic.UPN:addCcsUpn(m,e.ccsCredential.credential);break}}if(e.embeddedClientId){addBrokerParameters(m,this.config.authOptions.clientId,this.config.authOptions.redirectUri)}if(e.tokenBodyParameters){addExtraQueryParameters(m,e.tokenBodyParameters)}instrumentBrokerParams(m,e.correlationId,this.performanceClient);return mapToQueryString(m)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -class SilentFlowClient extends BaseClient{constructor(e,m){super(e,m)}async acquireCachedToken(e){this.performanceClient?.addQueueMeasurement(ja.SilentFlowClientAcquireCachedToken,e.correlationId);let m=Do.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!StringUtils_StringUtils.isEmptyObj(e.claims)){this.setCacheOutcome(Do.FORCE_REFRESH_OR_CLAIMS,e.correlationId);throw ClientAuthError_createClientAuthError(va)}if(!e.account){throw ClientAuthError_createClientAuthError(pa)}const h=e.account.tenantId||getTenantFromAuthorityString(e.authority);const C=this.cacheManager.getTokenKeys();const q=this.cacheManager.getAccessToken(e.account,e,C,h);if(!q){this.setCacheOutcome(Do.NO_CACHED_ACCESS_TOKEN,e.correlationId);throw ClientAuthError_createClientAuthError(va)}else if(wasClockTurnedBack(q.cachedAt)||isTokenExpired(q.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds)){this.setCacheOutcome(Do.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId);throw ClientAuthError_createClientAuthError(va)}else if(q.refreshOn&&isTokenExpired(q.refreshOn,0)){m=Do.PROACTIVELY_REFRESHED}const V=e.authority||this.authority.getPreferredCache();const le={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(e.account),e.correlationId),accessToken:q,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,C,h,this.performanceClient),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(V)};this.setCacheOutcome(m,e.correlationId);if(this.config.serverTelemetryManager){this.config.serverTelemetryManager.incrementCacheHits()}return[await invokeAsync(this.generateResultFromCacheRecord.bind(this),ja.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(le,e),m]}setCacheOutcome(e,m){this.serverTelemetryManager?.setCacheOutcome(e);this.performanceClient?.addFields({cacheOutcome:e},m);if(e!==Do.NOT_APPLICABLE){this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}}async generateResultFromCacheRecord(e,m){this.performanceClient?.addQueueMeasurement(ja.SilentFlowClientGenerateResultFromCacheRecord,m.correlationId);let h;if(e.idToken){h=extractTokenClaims(e.idToken.secret,this.config.cryptoInterface.base64Decode)}if(m.maxAge||m.maxAge===0){const e=h?.auth_time;if(!e){throw ClientAuthError_createClientAuthError(ea)}checkMaxAge(e,m.maxAge)}return ResponseHandler.generateAuthenticationResult(this.cryptoUtils,this.authority,e,true,m,h)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class NetworkUtils{static getNetworkResponse(e,m,h){return{headers:e,body:m,status:h}}static urlToHttpOptions(e){const m={protocol:e.protocol,hostname:e.hostname&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname||""}${e.search||""}`,href:e.href};if(e.port!==""){m.port=Number(e.port)}if(e.username||e.password){m.auth=`${decodeURIComponent(e.username)}:${decodeURIComponent(e.password)}`}return m}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const Cc="@azure/msal-node";const Ic="3.8.8";var bc=__nccwpck_require__(8611);var Ac=__nccwpck_require__(3311); -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class HttpClient{constructor(e,m,h){this.networkRequestViaProxy=(e,m,h,C)=>{const q=new URL(m);const V=new URL(this.proxyUrl);const le=h?.headers||{};const fe={host:V.hostname,port:V.port,method:"CONNECT",path:q.hostname,headers:le};if(this.customAgentOptions&&Object.keys(this.customAgentOptions).length){fe.agent=new bc.Agent(this.customAgentOptions)}let he="";if(e===Ho.POST){const e=h?.body||"";he="Content-Type: application/x-www-form-urlencoded\r\n"+`Content-Length: ${e.length}\r\n`+`\r\n${e}`}else{if(C){fe.timeout=C}}const ye=`${e.toUpperCase()} ${q.href} HTTP/1.1\r\n`+`Host: ${q.host}\r\n`+"Connection: close\r\n"+he+"\r\n";return new Promise(((h,q)=>{const V=bc.request(fe);if(C){V.on("timeout",(()=>{this.logUrlWithPiiAwareness(`Request timeout after ${C}ms for URL`,m);V.destroy();q(new Error(`Request time out after ${C}ms`))}))}V.end();V.on("connect",((e,m)=>{const C=e?.statusCode||Vo.SERVER_ERROR;if(C<Vo.SUCCESS_RANGE_START||C>Vo.SUCCESS_RANGE_END){V.destroy();m.destroy();q(new Error(`Error connecting to proxy. Http status code: ${e.statusCode}. Http status message: ${e?.statusMessage||"Unknown"}`))}m.write(ye);const le=[];m.on("data",(e=>{le.push(e)}));m.on("end",(()=>{const e=Buffer.concat([...le]).toString();const m=e.split("\r\n");const C=parseInt(m[0].split(" ")[1]);const q=m[0].split(" ").slice(2).join(" ");const fe=m[m.length-1];const he=m.slice(1,m.length-2);const ye=new Map;he.forEach((e=>{const m=e.split(new RegExp(/:\s(.*)/s));const h=m[0];let C=m[1];try{const e=JSON.parse(C);if(e&&typeof e==="object"){C=e}}catch(e){}ye.set(h,C)}));const ve=Object.fromEntries(ye);const Le=ve;const Ue=NetworkUtils.getNetworkResponse(Le,this.parseBody(C,q,Le,fe),C);if(this.shouldDestroyRequest(C,Ue)){V.destroy()}h(Ue)}));m.on("error",(e=>{V.destroy();m.destroy();q(new Error(e.toString()))}))}));V.on("error",(h=>{this.logger.error(`HttpClient - Proxy request error: ${h.toString()}`,"");this.logUrlWithPiiAwareness("Destination URL",m);this.logUrlWithPiiAwareness("Proxy URL",this.proxyUrl);this.logger.error(`HttpClient - Method: ${e}`,"");this.logger.errorPii(`HttpClient - Headers: ${JSON.stringify(le)}`,"");V.destroy();q(new Error(h.toString()))}))}))};this.networkRequestViaHttps=(e,m,h,C)=>{const q=e===Ho.POST;const V=h?.body||"";const le=new URL(m);const fe=h?.headers||{};const he={method:e,headers:fe,...NetworkUtils.urlToHttpOptions(le)};if(this.customAgentOptions&&Object.keys(this.customAgentOptions).length){he.agent=new Ac.Agent(this.customAgentOptions)}if(q){he.headers={...he.headers,"Content-Length":V.length}}else{if(C){he.timeout=C}}return new Promise(((h,le)=>{let ye;if(he.protocol==="http:"){ye=bc.request(he)}else{ye=Ac.request(he)}if(q){ye.write(V)}if(C){ye.on("timeout",(()=>{this.logUrlWithPiiAwareness(`HTTPS request timeout after ${C}ms for URL`,m);ye.destroy();le(new Error(`Request time out after ${C}ms`))}))}ye.end();ye.on("response",(e=>{const m=e.headers;const C=e.statusCode;const q=e.statusMessage;const V=[];e.on("data",(e=>{V.push(e)}));e.on("end",(()=>{const e=Buffer.concat([...V]).toString();const le=m;const fe=NetworkUtils.getNetworkResponse(le,this.parseBody(C,q,le,e),C);if(this.shouldDestroyRequest(C,fe)){ye.destroy()}h(fe)}))}));ye.on("error",(h=>{this.logger.error(`HttpClient - HTTPS request error: ${h.toString()}`,"");this.logUrlWithPiiAwareness("URL",m);this.logger.error(`HttpClient - Method: ${e}`,"");this.logger.errorPii(`HttpClient - Headers: ${JSON.stringify(fe)}`,"");ye.destroy();le(new Error(h.toString()))}))}))};this.parseBody=(e,m,h,C)=>{let q;try{q=JSON.parse(C)}catch(C){let V;let le;if(e>=to.CLIENT_ERROR_RANGE_START&&e<=to.CLIENT_ERROR_RANGE_END){V="client_error";le="A client"}else if(e>=to.SERVER_ERROR_RANGE_START&&e<=to.SERVER_ERROR_RANGE_END){V="server_error";le="A server"}else{V="unknown_error";le="An unknown"}q={error:V,error_description:`${le} error occured.\nHttp status code: ${e}\nHttp status message: ${m||"Unknown"}\nHeaders: ${JSON.stringify(h)}`}}return q};this.logUrlWithPiiAwareness=(e,m)=>{if(this.isPiiEnabled){this.logger.errorPii(`HttpClient - ${e}: ${m}`,"")}else{let h;try{const e=new URL(m);h=`${e.protocol}//${e.host}${e.pathname}`}catch{h=m.split("?")[0]||"unknown"}this.logger.error(`HttpClient - ${e}: ${h} [Enable PII logging to see additional details]`,"")}};this.shouldDestroyRequest=(e,m)=>(e<to.SUCCESS_RANGE_START||e>to.SUCCESS_RANGE_END)&&!(m.body&&typeof m.body==="object"&&"error"in m.body&&m.body.error===Zo.AUTHORIZATION_PENDING);this.proxyUrl=e||"";this.customAgentOptions=m||{};this.logger=new Logger(h||{},Cc,Ic);this.isPiiEnabled=this.logger.isPiiLoggingEnabled()}async sendGetRequestAsync(e,m,h){if(this.proxyUrl){return this.networkRequestViaProxy(Ho.GET,e,m,h)}else{return this.networkRequestViaHttps(Ho.GET,e,m,h)}}async sendPostRequestAsync(e,m){if(this.proxyUrl){return this.networkRequestViaProxy(Ho.POST,e,m)}else{return this.networkRequestViaHttps(Ho.POST,e,m)}}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const wc="invalid_file_extension";const Rc="invalid_file_path";const Tc="invalid_managed_identity_id_type";const Pc="invalid_secret";const xc="missing_client_id";const _c="network_unavailable";const Oc="platform_not_supported";const Dc="unable_to_create_azure_arc";const Mc="unable_to_create_cloud_shell";const $c="unable_to_create_source";const Nc="unable_to_read_secret_file";const kc="user_assigned_not_available_at_runtime";const Lc="www_authenticate_header_missing";const Uc="www_authenticate_header_unsupported_format";const Fc={[Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST]:"azure_pod_identity_authority_host_url_malformed",[Bo.IDENTITY_ENDPOINT]:"identity_endpoint_url_malformed",[Bo.IMDS_ENDPOINT]:"imds_endpoint_url_malformed",[Bo.MSI_ENDPOINT]:"msi_endpoint_url_malformed"}; -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const qc={[wc]:"The file path in the WWW-Authenticate header does not contain a .key file.",[Rc]:"The file path in the WWW-Authenticate header is not in a valid Windows or Linux Format.",[Tc]:"More than one ManagedIdentityIdType was provided.",[Pc]:"The secret in the file on the file path in the WWW-Authenticate header is greater than 4096 bytes.",[Oc]:"The platform is not supported by Azure Arc. Azure Arc only supports Windows and Linux.",[xc]:"A ManagedIdentityId id was not provided.",[Fc.AZURE_POD_IDENTITY_AUTHORITY_HOST]:`The Managed Identity's '${Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST}' environment variable is malformed.`,[Fc.IDENTITY_ENDPOINT]:`The Managed Identity's '${Bo.IDENTITY_ENDPOINT}' environment variable is malformed.`,[Fc.IMDS_ENDPOINT]:`The Managed Identity's '${Bo.IMDS_ENDPOINT}' environment variable is malformed.`,[Fc.MSI_ENDPOINT]:`The Managed Identity's '${Bo.MSI_ENDPOINT}' environment variable is malformed.`,[_c]:"Authentication unavailable. The request to the managed identity endpoint timed out.",[Dc]:"Azure Arc Managed Identities can only be system assigned.",[Mc]:"Cloud Shell Managed Identities can only be system assigned.",[$c]:"Unable to create a Managed Identity source based on environment variables.",[Nc]:"Unable to read the secret file.",[kc]:"Service Fabric user assigned managed identity ClientId or ResourceId is not configurable at runtime.",[Lc]:"A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is missing.",[Uc]:"A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format."};class ManagedIdentityError extends AuthError{constructor(e){super(e,qc[e]);this.name="ManagedIdentityError";Object.setPrototypeOf(this,ManagedIdentityError.prototype)}}function createManagedIdentityError(e){return new ManagedIdentityError(e)} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ManagedIdentityId{get id(){return this._id}set id(e){this._id=e}get idType(){return this._idType}set idType(e){this._idType=e}constructor(e){const m=e?.userAssignedClientId;const h=e?.userAssignedResourceId;const C=e?.userAssignedObjectId;if(m){if(h||C){throw createManagedIdentityError(Tc)}this.id=m;this.idType=zo.USER_ASSIGNED_CLIENT_ID}else if(h){if(m||C){throw createManagedIdentityError(Tc)}this.id=h;this.idType=zo.USER_ASSIGNED_RESOURCE_ID}else if(C){if(m||h){throw createManagedIdentityError(Tc)}this.id=C;this.idType=zo.USER_ASSIGNED_OBJECT_ID}else{this.id=Lo;this.idType=zo.SYSTEM_ASSIGNED}}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const jc={invalidLoopbackAddressType:{code:"invalid_loopback_server_address_type",desc:"Loopback server address is not type string. This is unexpected."},unableToLoadRedirectUri:{code:"unable_to_load_redirectUrl",desc:"Loopback server callback was invoked without a url. This is unexpected."},noAuthCodeInResponse:{code:"no_auth_code_in_response",desc:"No auth code found in the server response. Please check your network trace to determine what happened."},noLoopbackServerExists:{code:"no_loopback_server_exists",desc:"No loopback server exists yet."},loopbackServerAlreadyExists:{code:"loopback_server_already_exists",desc:"Loopback server already exists. Cannot create another."},loopbackServerTimeout:{code:"loopback_server_timeout",desc:"Timed out waiting for auth code listener to be registered."},stateNotFoundError:{code:"state_not_found",desc:"State not found. Please verify that the request originated from msal."},thumbprintMissing:{code:"thumbprint_missing_from_client_certificate",desc:"Client certificate does not contain a SHA-1 or SHA-256 thumbprint."},redirectUriNotSupported:{code:"redirect_uri_not_supported",desc:"RedirectUri is not supported in this scenario. Please remove redirectUri from the request."}};class NodeAuthError extends AuthError{constructor(e,m){super(e,m);this.name="NodeAuthError"}static createInvalidLoopbackAddressTypeError(){return new NodeAuthError(jc.invalidLoopbackAddressType.code,`${jc.invalidLoopbackAddressType.desc}`)}static createUnableToLoadRedirectUrlError(){return new NodeAuthError(jc.unableToLoadRedirectUri.code,`${jc.unableToLoadRedirectUri.desc}`)}static createNoAuthCodeInResponseError(){return new NodeAuthError(jc.noAuthCodeInResponse.code,`${jc.noAuthCodeInResponse.desc}`)}static createNoLoopbackServerExistsError(){return new NodeAuthError(jc.noLoopbackServerExists.code,`${jc.noLoopbackServerExists.desc}`)}static createLoopbackServerAlreadyExistsError(){return new NodeAuthError(jc.loopbackServerAlreadyExists.code,`${jc.loopbackServerAlreadyExists.desc}`)}static createLoopbackServerTimeoutError(){return new NodeAuthError(jc.loopbackServerTimeout.code,`${jc.loopbackServerTimeout.desc}`)}static createStateNotFoundError(){return new NodeAuthError(jc.stateNotFoundError.code,jc.stateNotFoundError.desc)}static createThumbprintMissingError(){return new NodeAuthError(jc.thumbprintMissing.code,jc.thumbprintMissing.desc)}static createRedirectUriNotSupportedError(){return new NodeAuthError(jc.redirectUriNotSupported.code,jc.redirectUriNotSupported.desc)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const Bc={clientId:eo.EMPTY_STRING,authority:eo.DEFAULT_AUTHORITY,clientSecret:eo.EMPTY_STRING,clientAssertion:eo.EMPTY_STRING,clientCertificate:{thumbprint:eo.EMPTY_STRING,thumbprintSha256:eo.EMPTY_STRING,privateKey:eo.EMPTY_STRING,x5c:eo.EMPTY_STRING},knownAuthorities:[],cloudDiscoveryMetadata:eo.EMPTY_STRING,authorityMetadata:eo.EMPTY_STRING,clientCapabilities:[],protocolMode:Fa.AAD,azureCloudOptions:{azureCloudInstance:qa.None,tenant:eo.EMPTY_STRING},skipAuthorityMetadataCache:false,encodeExtraQueryParams:false};const Gc={claimsBasedCachingEnabled:false};const zc={loggerCallback:()=>{},piiLoggingEnabled:false,logLevel:fs.Info};const Hc={loggerOptions:zc,networkClient:new HttpClient,proxyUrl:eo.EMPTY_STRING,customAgentOptions:{},disableInternalRetries:false};const Vc={application:{appName:eo.EMPTY_STRING,appVersion:eo.EMPTY_STRING}};function buildAppConfiguration({auth:e,broker:m,cache:h,system:C,telemetry:q}){const V={...Hc,networkClient:new HttpClient(C?.proxyUrl,C?.customAgentOptions),loggerOptions:C?.loggerOptions||zc,disableInternalRetries:C?.disableInternalRetries||false};if(!!e.clientCertificate&&!!!e.clientCertificate.thumbprint&&!!!e.clientCertificate.thumbprintSha256){throw NodeAuthError.createStateNotFoundError()}return{auth:{...Bc,...e},broker:{...m},cache:{...Gc,...h},system:{...V,...C},telemetry:{...Vc,...q}}}function buildManagedIdentityConfiguration({clientCapabilities:e,managedIdentityIdParams:m,system:h}){const C=new ManagedIdentityId(m);const q=h?.loggerOptions||zc;let V;if(h?.networkClient){V=h.networkClient}else{V=new HttpClient(h?.proxyUrl,h?.customAgentOptions)}return{clientCapabilities:e||[],managedIdentityId:C,system:{loggerOptions:q,networkClient:V},disableInternalRetries:h?.disableInternalRetries||false}}var Wc=__nccwpck_require__(4345);const Kc=Wc.v1;const Yc=Wc.v3;const Qc=Wc.v4;const Jc=Wc.v5;const Xc=Wc.wD;const Zc=Wc.rE;const el=Wc.tf;const tl=Wc.As;const nl=Wc.qg; -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class GuidGenerator{generateGuid(){return Qc()}isGuid(e){const m=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return m.test(e)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class EncodingUtils{static base64Encode(e,m){return Buffer.from(e,m).toString(ko.BASE64)}static base64EncodeUrl(e,m){return EncodingUtils.base64Encode(e,m).replace(/=/g,eo.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")}static base64Decode(e){return Buffer.from(e,ko.BASE64).toString("utf8")}static base64DecodeUrl(e){let m=e.replace(/-/g,"+").replace(/_/g,"/");while(m.length%4){m+="="}return EncodingUtils.base64Decode(m)}}var rl=__nccwpck_require__(6982); -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class HashUtils{sha256(e){return rl.createHash(Qo.SHA256).update(e).digest()}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class PkceGenerator{constructor(){this.hashUtils=new HashUtils}async generatePkceCodes(){const e=this.generateCodeVerifier();const m=this.generateCodeChallengeFromVerifier(e);return{verifier:e,challenge:m}}generateCodeVerifier(){const e=[];const m=256-256%Jo.CV_CHARSET.length;while(e.length<=Yo){const h=rl.randomBytes(1)[0];if(h>=m){continue}const C=h%Jo.CV_CHARSET.length;e.push(Jo.CV_CHARSET[C])}const h=e.join(eo.EMPTY_STRING);return EncodingUtils.base64EncodeUrl(h)}generateCodeChallengeFromVerifier(e){return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(e).toString(ko.BASE64),ko.BASE64)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class CryptoProvider{constructor(){this.pkceGenerator=new PkceGenerator;this.guidGenerator=new GuidGenerator;this.hashUtils=new HashUtils}base64UrlEncode(){throw new Error("Method not implemented.")}encodeKid(){throw new Error("Method not implemented.")}createNewGuid(){return this.guidGenerator.generateGuid()}base64Encode(e){return EncodingUtils.base64Encode(e)}base64Decode(e){return EncodingUtils.base64Decode(e)}generatePkceCodes(){return this.pkceGenerator.generatePkceCodes()}getPublicKeyThumbprint(){throw new Error("Method not implemented.")}removeTokenBindingKey(){throw new Error("Method not implemented.")}clearKeystore(){throw new Error("Method not implemented.")}signJwt(){throw new Error("Method not implemented.")}async hashString(e){return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(e).toString(ko.BASE64),ko.BASE64)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class Deserializer{static deserializeJSONBlob(e){const m=!e?{}:JSON.parse(e);return m}static deserializeAccounts(e){const m={};if(e){Object.keys(e).map((function(h){const C=e[h];const q={homeAccountId:C.home_account_id,environment:C.environment,realm:C.realm,localAccountId:C.local_account_id,username:C.username,authorityType:C.authority_type,name:C.name,clientInfo:C.client_info,lastModificationTime:C.last_modification_time,lastModificationApp:C.last_modification_app,tenantProfiles:C.tenantProfiles?.map((e=>JSON.parse(e))),lastUpdatedAt:Date.now().toString()};const V=new AccountEntity;CacheManager.toObject(V,q);m[h]=V}))}return m}static deserializeIdTokens(e){const m={};if(e){Object.keys(e).map((function(h){const C=e[h];const q={homeAccountId:C.home_account_id,environment:C.environment,credentialType:C.credential_type,clientId:C.client_id,secret:C.secret,realm:C.realm,lastUpdatedAt:Date.now().toString()};m[h]=q}))}return m}static deserializeAccessTokens(e){const m={};if(e){Object.keys(e).map((function(h){const C=e[h];const q={homeAccountId:C.home_account_id,environment:C.environment,credentialType:C.credential_type,clientId:C.client_id,secret:C.secret,realm:C.realm,target:C.target,cachedAt:C.cached_at,expiresOn:C.expires_on,extendedExpiresOn:C.extended_expires_on,refreshOn:C.refresh_on,keyId:C.key_id,tokenType:C.token_type,requestedClaims:C.requestedClaims,requestedClaimsHash:C.requestedClaimsHash,userAssertionHash:C.userAssertionHash,lastUpdatedAt:Date.now().toString()};m[h]=q}))}return m}static deserializeRefreshTokens(e){const m={};if(e){Object.keys(e).map((function(h){const C=e[h];const q={homeAccountId:C.home_account_id,environment:C.environment,credentialType:C.credential_type,clientId:C.client_id,secret:C.secret,familyId:C.family_id,target:C.target,realm:C.realm,lastUpdatedAt:Date.now().toString()};m[h]=q}))}return m}static deserializeAppMetadata(e){const m={};if(e){Object.keys(e).map((function(h){const C=e[h];m[h]={clientId:C.client_id,environment:C.environment,familyId:C.family_id}}))}return m}static deserializeAllCache(e){return{accounts:e.Account?this.deserializeAccounts(e.Account):{},idTokens:e.IdToken?this.deserializeIdTokens(e.IdToken):{},accessTokens:e.AccessToken?this.deserializeAccessTokens(e.AccessToken):{},refreshTokens:e.RefreshToken?this.deserializeRefreshTokens(e.RefreshToken):{},appMetadata:e.AppMetadata?this.deserializeAppMetadata(e.AppMetadata):{}}}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class Serializer{static serializeJSONBlob(e){return JSON.stringify(e)}static serializeAccounts(e){const m={};Object.keys(e).map((function(h){const C=e[h];m[h]={home_account_id:C.homeAccountId,environment:C.environment,realm:C.realm,local_account_id:C.localAccountId,username:C.username,authority_type:C.authorityType,name:C.name,client_info:C.clientInfo,last_modification_time:C.lastModificationTime,last_modification_app:C.lastModificationApp,tenantProfiles:C.tenantProfiles?.map((e=>JSON.stringify(e)))}}));return m}static serializeIdTokens(e){const m={};Object.keys(e).map((function(h){const C=e[h];m[h]={home_account_id:C.homeAccountId,environment:C.environment,credential_type:C.credentialType,client_id:C.clientId,secret:C.secret,realm:C.realm}}));return m}static serializeAccessTokens(e){const m={};Object.keys(e).map((function(h){const C=e[h];m[h]={home_account_id:C.homeAccountId,environment:C.environment,credential_type:C.credentialType,client_id:C.clientId,secret:C.secret,realm:C.realm,target:C.target,cached_at:C.cachedAt,expires_on:C.expiresOn,extended_expires_on:C.extendedExpiresOn,refresh_on:C.refreshOn,key_id:C.keyId,token_type:C.tokenType,requestedClaims:C.requestedClaims,requestedClaimsHash:C.requestedClaimsHash,userAssertionHash:C.userAssertionHash}}));return m}static serializeRefreshTokens(e){const m={};Object.keys(e).map((function(h){const C=e[h];m[h]={home_account_id:C.homeAccountId,environment:C.environment,credential_type:C.credentialType,client_id:C.clientId,secret:C.secret,family_id:C.familyId,target:C.target,realm:C.realm}}));return m}static serializeAppMetadata(e){const m={};Object.keys(e).map((function(h){const C=e[h];m[h]={client_id:C.clientId,environment:C.environment,family_id:C.familyId}}));return m}static serializeAllCache(e){return{Account:this.serializeAccounts(e.accounts),IdToken:this.serializeIdTokens(e.idTokens),AccessToken:this.serializeAccessTokens(e.accessTokens),RefreshToken:this.serializeRefreshTokens(e.refreshTokens),AppMetadata:this.serializeAppMetadata(e.appMetadata)}}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -function generateCredentialKey(e){const m=e.credentialType===So.REFRESH_TOKEN&&e.familyId||e.clientId;const h=e.tokenType&&e.tokenType.toLowerCase()!==Ro.BEARER.toLowerCase()?e.tokenType.toLowerCase():"";const C=[e.homeAccountId,e.environment,e.credentialType,m,e.realm||"",e.target||"",e.requestedClaimsHash||"",h];return C.join(Xo.KEY_SEPARATOR).toLowerCase()}function generateAccountKey(e){const m=e.homeAccountId.split(".")[1];const h=[e.homeAccountId,e.environment,m||e.tenantId||""];return h.join(Xo.KEY_SEPARATOR).toLowerCase()} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class NodeStorage extends CacheManager{constructor(e,m,h,C){super(m,h,e,new StubPerformanceClient,C);this.cache={};this.changeEmitters=[];this.logger=e}registerChangeEmitter(e){this.changeEmitters.push(e)}emitChange(){this.changeEmitters.forEach((e=>e.call(null)))}cacheToInMemoryCache(e){const m={accounts:{},idTokens:{},accessTokens:{},refreshTokens:{},appMetadata:{}};for(const h in e){const C=e[h];if(typeof C!=="object"){continue}if(C instanceof AccountEntity){m.accounts[h]=C}else if(isIdTokenEntity(C)){m.idTokens[h]=C}else if(isAccessTokenEntity(C)){m.accessTokens[h]=C}else if(isRefreshTokenEntity(C)){m.refreshTokens[h]=C}else if(isAppMetadataEntity(h,C)){m.appMetadata[h]=C}else{continue}}return m}inMemoryCacheToCache(e){let m=this.getCache();m={...m,...e.accounts,...e.idTokens,...e.accessTokens,...e.refreshTokens,...e.appMetadata};return m}getInMemoryCache(){this.logger.trace("Getting in-memory cache");const e=this.cacheToInMemoryCache(this.getCache());return e}setInMemoryCache(e){this.logger.trace("Setting in-memory cache");const m=this.inMemoryCacheToCache(e);this.setCache(m);this.emitChange()}getCache(){this.logger.trace("Getting cache key-value store");return this.cache}setCache(e){this.logger.trace("Setting cache key value store");this.cache=e;this.emitChange()}getItem(e){this.logger.tracePii(`Item key: ${e}`);const m=this.getCache();return m[e]}setItem(e,m){this.logger.tracePii(`Item key: ${e}`);const h=this.getCache();h[e]=m;this.setCache(h)}generateCredentialKey(e){return generateCredentialKey(e)}generateAccountKey(e){return generateAccountKey(e)}getAccountKeys(){const e=this.getInMemoryCache();const m=Object.keys(e.accounts);return m}getTokenKeys(){const e=this.getInMemoryCache();const m={idToken:Object.keys(e.idTokens),accessToken:Object.keys(e.accessTokens),refreshToken:Object.keys(e.refreshTokens)};return m}getAccount(e){const m=this.getItem(e);return m?Object.assign(new AccountEntity,this.getItem(e)):null}async setAccount(e){const m=this.generateAccountKey(AccountEntity.getAccountInfo(e));this.setItem(m,e)}getIdTokenCredential(e){const m=this.getItem(e);if(isIdTokenEntity(m)){return m}return null}async setIdTokenCredential(e){const m=this.generateCredentialKey(e);this.setItem(m,e)}getAccessTokenCredential(e){const m=this.getItem(e);if(isAccessTokenEntity(m)){return m}return null}async setAccessTokenCredential(e){const m=this.generateCredentialKey(e);this.setItem(m,e)}getRefreshTokenCredential(e){const m=this.getItem(e);if(isRefreshTokenEntity(m)){return m}return null}async setRefreshTokenCredential(e){const m=this.generateCredentialKey(e);this.setItem(m,e)}getAppMetadata(e){const m=this.getItem(e);if(isAppMetadataEntity(e,m)){return m}return null}setAppMetadata(e){const m=generateAppMetadataKey(e);this.setItem(m,e)}getServerTelemetry(e){const m=this.getItem(e);if(m&&isServerTelemetryEntity(e,m)){return m}return null}setServerTelemetry(e,m){this.setItem(e,m)}getAuthorityMetadata(e){const m=this.getItem(e);if(m&&isAuthorityMetadataEntity(e,m)){return m}return null}getAuthorityMetadataKeys(){return this.getKeys().filter((e=>this.isAuthorityMetadata(e)))}setAuthorityMetadata(e,m){this.setItem(e,m)}getThrottlingCache(e){const m=this.getItem(e);if(m&&isThrottlingEntity(e,m)){return m}return null}setThrottlingCache(e,m){this.setItem(e,m)}removeItem(e){this.logger.tracePii(`Item key: ${e}`);let m=false;const h=this.getCache();if(!!h[e]){delete h[e];m=true}if(m){this.setCache(h);this.emitChange()}return m}removeOutdatedAccount(e){this.removeItem(e)}containsKey(e){return this.getKeys().includes(e)}getKeys(){this.logger.trace("Retrieving all cache keys");const e=this.getCache();return[...Object.keys(e)]}clear(){this.logger.trace("Clearing cache entries created by MSAL");const e=this.getKeys();e.forEach((e=>{this.removeItem(e)}));this.emitChange()}static generateInMemoryCache(e){return Deserializer.deserializeAllCache(Deserializer.deserializeJSONBlob(e))}static generateJsonCache(e){return Serializer.serializeAllCache(e)}updateCredentialCacheKey(e,m){const h=this.generateCredentialKey(m);if(e!==h){const C=this.getItem(e);if(C){this.removeItem(e);this.setItem(h,C);this.logger.verbose(`Updated an outdated ${m.credentialType} cache key`);return h}else{this.logger.error(`Attempted to update an outdated ${m.credentialType} cache key but no item matching the outdated key was found in storage`)}}return e}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const ol={Account:{},IdToken:{},AccessToken:{},RefreshToken:{},AppMetadata:{}};class TokenCache{constructor(e,m,h){this.cacheHasChanged=false;this.storage=e;this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));if(h){this.persistence=h}this.logger=m}hasChanged(){return this.cacheHasChanged}serialize(){this.logger.trace("Serializing in-memory cache");let e=Serializer.serializeAllCache(this.storage.getInMemoryCache());if(this.cacheSnapshot){this.logger.trace("Reading cache snapshot from disk");e=this.mergeState(JSON.parse(this.cacheSnapshot),e)}else{this.logger.trace("No cache snapshot to merge")}this.cacheHasChanged=false;return JSON.stringify(e)}deserialize(e){this.logger.trace("Deserializing JSON to in-memory cache");this.cacheSnapshot=e;if(this.cacheSnapshot){this.logger.trace("Reading cache snapshot from disk");const e=Deserializer.deserializeAllCache(this.overlayDefaults(JSON.parse(this.cacheSnapshot)));this.storage.setInMemoryCache(e)}else{this.logger.trace("No cache snapshot to deserialize")}}getKVStore(){return this.storage.getCache()}getCacheSnapshot(){const e=NodeStorage.generateInMemoryCache(this.cacheSnapshot);return this.storage.inMemoryCacheToCache(e)}async getAllAccounts(e=(new CryptoProvider).createNewGuid()){this.logger.trace("getAllAccounts called");let m;try{if(this.persistence){m=new TokenCacheContext(this,false);await this.persistence.beforeCacheAccess(m)}return this.storage.getAllAccounts({},e)}finally{if(this.persistence&&m){await this.persistence.afterCacheAccess(m)}}}async getAccountByHomeId(e){const m=await this.getAllAccounts();if(e&&m&&m.length){return m.filter((m=>m.homeAccountId===e))[0]||null}else{return null}}async getAccountByLocalId(e){const m=await this.getAllAccounts();if(e&&m&&m.length){return m.filter((m=>m.localAccountId===e))[0]||null}else{return null}}async removeAccount(e,m){this.logger.trace("removeAccount called");let h;try{if(this.persistence){h=new TokenCacheContext(this,true);await this.persistence.beforeCacheAccess(h)}this.storage.removeAccount(e,m||(new GuidGenerator).generateGuid())}finally{if(this.persistence&&h){await this.persistence.afterCacheAccess(h)}}}async overwriteCache(){if(!this.persistence){this.logger.info("No persistence layer specified, cache cannot be overwritten");return}this.logger.info("Overwriting in-memory cache with persistent cache");this.storage.clear();const e=new TokenCacheContext(this,false);await this.persistence.beforeCacheAccess(e);const m=this.getCacheSnapshot();this.storage.setCache(m);await this.persistence.afterCacheAccess(e)}handleChangeEvent(){this.cacheHasChanged=true}mergeState(e,m){this.logger.trace("Merging in-memory cache with cache snapshot");const h=this.mergeRemovals(e,m);return this.mergeUpdates(h,m)}mergeUpdates(e,m){Object.keys(m).forEach((h=>{const C=m[h];if(!e.hasOwnProperty(h)){if(C!==null){e[h]=C}}else{const m=C!==null;const q=typeof C==="object";const V=!Array.isArray(C);const le=typeof e[h]!=="undefined"&&e[h]!==null;if(m&&q&&V&&le){this.mergeUpdates(e[h],C)}else{e[h]=C}}}));return e}mergeRemovals(e,m){this.logger.trace("Remove updated entries in cache");const h=e.Account?this.mergeRemovalsDict(e.Account,m.Account):e.Account;const C=e.AccessToken?this.mergeRemovalsDict(e.AccessToken,m.AccessToken):e.AccessToken;const q=e.RefreshToken?this.mergeRemovalsDict(e.RefreshToken,m.RefreshToken):e.RefreshToken;const V=e.IdToken?this.mergeRemovalsDict(e.IdToken,m.IdToken):e.IdToken;const le=e.AppMetadata?this.mergeRemovalsDict(e.AppMetadata,m.AppMetadata):e.AppMetadata;return{...e,Account:h,AccessToken:C,RefreshToken:q,IdToken:V,AppMetadata:le}}mergeRemovalsDict(e,m){const h={...e};Object.keys(e).forEach((e=>{if(!m||!m.hasOwnProperty(e)){delete h[e]}}));return h}overlayDefaults(e){this.logger.trace("Overlaying input cache with the default cache");return{Account:{...ol.Account,...e.Account},IdToken:{...ol.IdToken,...e.IdToken},AccessToken:{...ol.AccessToken,...e.AccessToken},RefreshToken:{...ol.RefreshToken,...e.RefreshToken},AppMetadata:{...ol.AppMetadata,...e.AppMetadata}}}}var il=__nccwpck_require__(8457); -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ClientAssertion{static fromAssertion(e){const m=new ClientAssertion;m.jwt=e;return m}static fromCertificate(e,m,h){const C=new ClientAssertion;C.privateKey=m;C.thumbprint=e;C.useSha256=false;if(h){C.publicCertificate=this.parseCertificate(h)}return C}static fromCertificateWithSha256Thumbprint(e,m,h){const C=new ClientAssertion;C.privateKey=m;C.thumbprint=e;C.useSha256=true;if(h){C.publicCertificate=this.parseCertificate(h)}return C}getJwt(e,m,h){if(this.privateKey&&this.thumbprint){if(this.jwt&&!this.isExpired()&&m===this.issuer&&h===this.jwtAudience){return this.jwt}return this.createJwt(e,m,h)}if(this.jwt){return this.jwt}throw ClientAuthError_createClientAuthError(Sa)}createJwt(e,m,h){this.issuer=m;this.jwtAudience=h;const C=nowSeconds();this.expirationTime=C+600;const q=this.useSha256?ti.PSS_256:ti.RSA_256;const V={alg:q};const le=this.useSha256?ti.X5T_256:ti.X5T;Object.assign(V,{[le]:EncodingUtils.base64EncodeUrl(this.thumbprint,ko.HEX)});if(this.publicCertificate){Object.assign(V,{[ti.X5C]:this.publicCertificate})}const fe={[ti.AUDIENCE]:this.jwtAudience,[ti.EXPIRATION_TIME]:this.expirationTime,[ti.ISSUER]:this.issuer,[ti.SUBJECT]:this.issuer,[ti.NOT_BEFORE]:C,[ti.JWT_ID]:e.createNewGuid()};this.jwt=il.sign(fe,this.privateKey,{header:V});return this.jwt}isExpired(){return this.expirationTime<nowSeconds()}static parseCertificate(e){const m=/-----BEGIN CERTIFICATE-----\r*\n(.+?)\r*\n-----END CERTIFICATE-----/gs;const h=[];let C;while((C=m.exec(e))!==null){h.push(C[1].replace(/\r*\n/g,eo.EMPTY_STRING))}return h}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class UsernamePasswordClient extends BaseClient{constructor(e){super(e)}async acquireToken(e){this.logger.info("in acquireToken call in username-password client");const m=nowSeconds();const h=await this.executeTokenRequest(this.authority,e);const C=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);C.validateTokenResponse(h.body);const q=C.handleServerTokenResponse(h.body,this.authority,m,e,ei.acquireTokenByUsernamePassword);return q}async executeTokenRequest(e,m){const h=this.createTokenQueryParameters(m);const C=UrlString.appendQueryString(e.tokenEndpoint,h);const q=await this.createTokenRequestBody(m);const V=this.createTokenRequestHeaders({credential:m.username,type:ic.UPN});const le={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:m.scopes,claims:m.claims,authenticationScheme:m.authenticationScheme,resourceRequestMethod:m.resourceRequestMethod,resourceRequestUri:m.resourceRequestUri,shrClaims:m.shrClaims,sshKid:m.sshKid};return this.executePostToTokenEndpoint(C,q,V,le,m.correlationId)}async createTokenRequestBody(e){const m=new Map;addClientId(m,this.config.authOptions.clientId);addUsername(m,e.username);addPassword(m,e.password);addScopes(m,e.scopes);addResponseType(m,po.IDTOKEN_TOKEN);addGrantType(m,ho.RESOURCE_OWNER_PASSWORD_GRANT);addClientInfo(m);addLibraryInfo(m,this.config.libraryInfo);addApplicationTelemetry(m,this.config.telemetry.application);addThrottling(m);if(this.serverTelemetryManager){addServerTelemetry(m,this.serverTelemetryManager)}const h=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(m,h);if(this.config.clientCredentials.clientSecret){addClientSecret(m,this.config.clientCredentials.clientSecret)}const C=this.config.clientCredentials.clientAssertion;if(C){addClientAssertion(m,await getClientAssertion(C.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(m,C.assertionType)}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(m,e.claims,this.config.authOptions.clientCapabilities)}if(this.config.systemOptions.preventCorsPreflight&&e.username){addCcsUpn(m,e.username)}return mapToQueryString(m)}} -/*! @azure/msal-common v15.15.0 2026-02-23 */ -function getStandardAuthorizeRequestParameters(e,m,h,C){const q=m.correlationId;const V=new Map;addClientId(V,m.embeddedClientId||m.extraQueryParameters?.[ui]||e.clientId);const le=[...m.scopes||[],...m.extraScopesToConsent||[]];addScopes(V,le,true,e.authority.options.OIDCOptions?.defaultScopes);addRedirectUri(V,m.redirectUri);addCorrelationId(V,q);addResponseMode(V,m.responseMode);addClientInfo(V);if(m.prompt){addPrompt(V,m.prompt);C?.addFields({prompt:m.prompt},q)}if(m.domainHint){addDomainHint(V,m.domainHint);C?.addFields({domainHintFromRequest:true},q)}if(m.prompt!==lo.SELECT_ACCOUNT){if(m.sid&&m.prompt===lo.NONE){h.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request");addSid(V,m.sid);C?.addFields({sidFromRequest:true},q)}else if(m.account){const e=extractAccountSid(m.account);let le=extractLoginHint(m.account);if(le&&m.domainHint){h.warning(`AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint`);le=null}if(le){h.verbose("createAuthCodeUrlQueryString: login_hint claim present on account");addLoginHint(V,le);C?.addFields({loginHintFromClaim:true},q);try{const e=buildClientInfoFromHomeAccountId(m.account.homeAccountId);addCcsOid(V,e)}catch(e){h.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e&&m.prompt===lo.NONE){h.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account");addSid(V,e);C?.addFields({sidFromClaim:true},q);try{const e=buildClientInfoFromHomeAccountId(m.account.homeAccountId);addCcsOid(V,e)}catch(e){h.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(m.loginHint){h.verbose("createAuthCodeUrlQueryString: Adding login_hint from request");addLoginHint(V,m.loginHint);addCcsUpn(V,m.loginHint);C?.addFields({loginHintFromRequest:true},q)}else if(m.account.username){h.verbose("createAuthCodeUrlQueryString: Adding login_hint from account");addLoginHint(V,m.account.username);C?.addFields({loginHintFromUpn:true},q);try{const e=buildClientInfoFromHomeAccountId(m.account.homeAccountId);addCcsOid(V,e)}catch(e){h.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else if(m.loginHint){h.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request");addLoginHint(V,m.loginHint);addCcsUpn(V,m.loginHint);C?.addFields({loginHintFromRequest:true},q)}}else{h.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints")}if(m.nonce){addNonce(V,m.nonce)}if(m.state){addState(V,m.state)}if(m.claims||e.clientCapabilities&&e.clientCapabilities.length>0){addClaims(V,m.claims,e.clientCapabilities)}if(m.embeddedClientId){addBrokerParameters(V,e.clientId,e.redirectUri)}if(e.instanceAware&&(!m.extraQueryParameters||!Object.keys(m.extraQueryParameters).includes(ds))){addInstanceAware(V)}return V}function getAuthorizeUrl(e,m,h,C){const q=mapToQueryString(m,h,C);return UrlString.appendQueryString(e.authorizationEndpoint,q)}function getAuthorizationCodePayload(e,m){validateAuthorizationResponse(e,m);if(!e.code){throw createClientAuthError(authorizationCodeMissingFromServerResponse)}return e}function validateAuthorizationResponse(e,m){if(!e.state||!m){throw e.state?createClientAuthError(stateNotFound,"Cached State"):createClientAuthError(stateNotFound,"Server State")}let h;let C;try{h=decodeURIComponent(e.state)}catch(m){throw createClientAuthError(invalidState,e.state)}try{C=decodeURIComponent(m)}catch(m){throw createClientAuthError(invalidState,e.state)}if(h!==C){throw createClientAuthError(stateMismatch)}if(e.error||e.error_description||e.suberror){const m=parseServerErrorNo(e);if(isInteractionRequiredError(e.error,e.error_description,e.suberror)){throw new InteractionRequiredAuthError(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",m)}throw new ServerError(e.error||"",e.error_description,e.suberror,m)}}function parseServerErrorNo(e){const m="code=";const h=e.error_uri?.lastIndexOf(m);return h&&h>=0?e.error_uri?.substring(h+m.length):undefined}function extractAccountSid(e){return e.idTokenClaims?.sid||null}function extractLoginHint(e){return e.loginHint||e.idTokenClaims?.login_hint||null} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -function getAuthCodeRequestUrl(e,m,h,C){const q=getStandardAuthorizeRequestParameters({...e.auth,authority:m,redirectUri:h.redirectUri||""},h,C);addLibraryInfo(q,{sku:Zo.MSAL_SKU,version:Ic,cpu:process.arch||"",os:process.platform||""});if(e.auth.protocolMode!==Fa.OIDC){addApplicationTelemetry(q,e.telemetry.application)}addResponseType(q,po.CODE);if(h.codeChallenge&&h.codeChallengeMethod){addCodeChallengeParams(q,h.codeChallenge,h.codeChallengeMethod)}addExtraQueryParameters(q,h.extraQueryParameters||{});return getAuthorizeUrl(m,q,e.auth.encodeExtraQueryParams,h.extraQueryParameters)} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ClientApplication{constructor(e){this.config=buildAppConfiguration(e);this.cryptoProvider=new CryptoProvider;this.logger=new Logger(this.config.system.loggerOptions,Cc,Ic);this.storage=new NodeStorage(this.logger,this.config.auth.clientId,this.cryptoProvider,buildStaticAuthorityOptions(this.config.auth));this.tokenCache=new TokenCache(this.storage,this.logger,this.config.cache.cachePlugin)}async getAuthCodeUrl(e){this.logger.info("getAuthCodeUrl called",e.correlationId);const m={...e,...await this.initializeBaseRequest(e),responseMode:e.responseMode||fo.QUERY,authenticationScheme:Ro.BEARER,state:e.state||"",nonce:e.nonce||""};const h=await this.createAuthority(m.authority,m.correlationId,undefined,e.azureCloudOptions);return getAuthCodeRequestUrl(this.config,h,m,this.logger)}async acquireTokenByCode(e,m){this.logger.info("acquireTokenByCode called");if(e.state&&m){this.logger.info("acquireTokenByCode - validating state");this.validateState(e.state,m.state||"");m={...m,state:""}}const h={...e,...await this.initializeBaseRequest(e),authenticationScheme:Ro.BEARER};const C=this.initializeServerTelemetryManager(ei.acquireTokenByCode,h.correlationId);try{const q=await this.createAuthority(h.authority,h.correlationId,undefined,e.azureCloudOptions);const V=await this.buildOauthClientConfiguration(q,h.correlationId,h.redirectUri,C);const le=new AuthorizationCodeClient(V);this.logger.verbose("Auth code client created",h.correlationId);return await le.acquireToken(h,ei.acquireTokenByCode,m)}catch(e){if(e instanceof AuthError){e.setCorrelationId(h.correlationId)}C.cacheFailedRequest(e);throw e}}async acquireTokenByRefreshToken(e){this.logger.info("acquireTokenByRefreshToken called",e.correlationId);const m={...e,...await this.initializeBaseRequest(e),authenticationScheme:Ro.BEARER};const h=this.initializeServerTelemetryManager(ei.acquireTokenByRefreshToken,m.correlationId);try{const C=await this.createAuthority(m.authority,m.correlationId,undefined,e.azureCloudOptions);const q=await this.buildOauthClientConfiguration(C,m.correlationId,m.redirectUri||"",h);const V=new RefreshTokenClient(q);this.logger.verbose("Refresh token client created",m.correlationId);return await V.acquireToken(m,ei.acquireTokenByRefreshToken)}catch(e){if(e instanceof AuthError){e.setCorrelationId(m.correlationId)}h.cacheFailedRequest(e);throw e}}async acquireTokenSilent(e){const m={...e,...await this.initializeBaseRequest(e),forceRefresh:e.forceRefresh||false};const h=this.initializeServerTelemetryManager(ei.acquireTokenSilent,m.correlationId,m.forceRefresh);try{const C=await this.createAuthority(m.authority,m.correlationId,undefined,e.azureCloudOptions);const q=await this.buildOauthClientConfiguration(C,m.correlationId,m.redirectUri||"",h);const V=new SilentFlowClient(q);this.logger.verbose("Silent flow client created",m.correlationId);try{await this.tokenCache.overwriteCache();return await this.acquireCachedTokenSilent(m,V,q)}catch(e){if(e instanceof ClientAuthError&&e.errorCode===va){const e=new RefreshTokenClient(q);return e.acquireTokenByRefreshToken(m,ei.acquireTokenSilent)}throw e}}catch(e){if(e instanceof AuthError){e.setCorrelationId(m.correlationId)}h.cacheFailedRequest(e);throw e}}async acquireCachedTokenSilent(e,m,h){const[C,q]=await m.acquireCachedToken({...e,scopes:e.scopes?.length?e.scopes:[...ro]});if(q===Do.PROACTIVELY_REFRESHED){this.logger.info("ClientApplication:acquireCachedTokenSilent - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.");const m=new RefreshTokenClient(h);try{await m.acquireTokenByRefreshToken(e,ei.acquireTokenSilent)}catch{}}return C}async acquireTokenByUsernamePassword(e){this.logger.info("acquireTokenByUsernamePassword called",e.correlationId);const m={...e,...await this.initializeBaseRequest(e)};const h=this.initializeServerTelemetryManager(ei.acquireTokenByUsernamePassword,m.correlationId);try{const C=await this.createAuthority(m.authority,m.correlationId,undefined,e.azureCloudOptions);const q=await this.buildOauthClientConfiguration(C,m.correlationId,"",h);const V=new UsernamePasswordClient(q);this.logger.verbose("Username password client created",m.correlationId);return await V.acquireToken(m)}catch(e){if(e instanceof AuthError){e.setCorrelationId(m.correlationId)}h.cacheFailedRequest(e);throw e}}getTokenCache(){this.logger.info("getTokenCache called");return this.tokenCache}validateState(e,m){if(!e){throw NodeAuthError.createStateNotFoundError()}if(e!==m){throw ClientAuthError_createClientAuthError(Js)}}getLogger(){return this.logger}setLogger(e){this.logger=e}async buildOauthClientConfiguration(e,m,h,C){this.logger.verbose("buildOauthClientConfiguration called",m);this.logger.info(`Building oauth client configuration with the following authority: ${e.tokenEndpoint}.`,m);C?.updateRegionDiscoveryMetadata(e.regionDiscoveryMetadata);const q={authOptions:{clientId:this.config.auth.clientId,authority:e,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:h},loggerOptions:{logLevel:this.config.system.loggerOptions.logLevel,loggerCallback:this.config.system.loggerOptions.loggerCallback,piiLoggingEnabled:this.config.system.loggerOptions.piiLoggingEnabled,correlationId:m},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.cryptoProvider,networkInterface:this.config.system.networkClient,storageInterface:this.storage,serverTelemetryManager:C,clientCredentials:{clientSecret:this.clientSecret,clientAssertion:await this.getClientAssertion(e)},libraryInfo:{sku:Zo.MSAL_SKU,version:Ic,cpu:process.arch||eo.EMPTY_STRING,os:process.platform||eo.EMPTY_STRING},telemetry:this.config.telemetry,persistencePlugin:this.config.cache.cachePlugin,serializableCache:this.tokenCache};return q}async getClientAssertion(e){if(this.developerProvidedClientAssertion){this.clientAssertion=ClientAssertion.fromAssertion(await getClientAssertion(this.developerProvidedClientAssertion,this.config.auth.clientId,e.tokenEndpoint))}return this.clientAssertion&&{assertion:this.clientAssertion.getJwt(this.cryptoProvider,this.config.auth.clientId,e.tokenEndpoint),assertionType:Zo.JWT_BEARER_ASSERTION_TYPE}}async initializeBaseRequest(e){this.logger.verbose("initializeRequestScopes called",e.correlationId);if(e.authenticationScheme&&e.authenticationScheme===Ro.POP){this.logger.verbose("Authentication Scheme 'pop' is not supported yet, setting Authentication Scheme to 'Bearer' for request",e.correlationId)}e.authenticationScheme=Ro.BEARER;if(this.config.cache.claimsBasedCachingEnabled&&e.claims&&!StringUtils_StringUtils.isEmptyObj(e.claims)){e.requestedClaimsHash=await this.cryptoProvider.hashString(e.claims)}return{...e,scopes:[...e&&e.scopes||[],...ro],correlationId:e&&e.correlationId||this.cryptoProvider.createNewGuid(),authority:e.authority||this.config.auth.authority}}initializeServerTelemetryManager(e,m,h){const C={clientId:this.config.auth.clientId,correlationId:m,apiId:e,forceRefresh:h||false};return new ServerTelemetryManager(C,this.storage)}async createAuthority(e,m,h,C){this.logger.verbose("createAuthority called",m);const q=Authority.generateAuthority(e,C||this.config.auth.azureCloudOptions);const V={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,azureRegionConfiguration:h,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};return createDiscoveredInstance(q,this.config.system.networkClient,this.storage,V,this.logger,m)}clearCache(){this.storage.clear()}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class LoopbackClient{async listenForAuthCode(e,m){if(this.server){throw NodeAuthError.createLoopbackServerAlreadyExistsError()}return new Promise(((h,C)=>{this.server=bc.createServer(((q,V)=>{const le=q.url;if(!le){V.end(m||"Error occurred loading redirectUrl");C(NodeAuthError.createUnableToLoadRedirectUrlError());return}else if(le===eo.FORWARD_SLASH){V.end(e||"Auth code was successfully acquired. You can close this window now.");return}const fe=this.getRedirectUri();const he=new URL(le,fe);const ye=getDeserializedResponse(he.search)||{};if(ye.code){V.writeHead(to.REDIRECT,{location:fe});V.end()}if(ye.error){V.end(m||`Error occurred: ${ye.error}`)}h(ye)}));this.server.listen(0,"127.0.0.1")}))}getRedirectUri(){if(!this.server||!this.server.listening){throw NodeAuthError.createNoLoopbackServerExistsError()}const e=this.server.address();if(!e||typeof e==="string"||!e.port){this.closeServer();throw NodeAuthError.createInvalidLoopbackAddressTypeError()}const m=e&&e.port;return`${Zo.HTTP_PROTOCOL}${Zo.LOCALHOST}:${m}`}closeServer(){if(this.server){this.server.close();if(typeof this.server.closeAllConnections==="function"){this.server.closeAllConnections()}this.server.unref();this.server=undefined}}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class DeviceCodeClient extends BaseClient{constructor(e){super(e)}async acquireToken(e){const m=await this.getDeviceCode(e);e.deviceCodeCallback(m);const h=nowSeconds();const C=await this.acquireTokenWithDeviceCode(e,m);const q=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);q.validateTokenResponse(C);return q.handleServerTokenResponse(C,this.authority,h,e,ei.acquireTokenByDeviceCode)}async getDeviceCode(e){const m=this.createExtraQueryParameters(e);const h=UrlString.appendQueryString(this.authority.deviceCodeEndpoint,m);const C=this.createQueryString(e);const q=this.createTokenRequestHeaders();const V={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return this.executePostRequestToDeviceCodeEndpoint(h,C,q,V,e.correlationId)}createExtraQueryParameters(e){const m=new Map;if(e.extraQueryParameters){addExtraQueryParameters(m,e.extraQueryParameters)}return mapToQueryString(m)}async executePostRequestToDeviceCodeEndpoint(e,m,h,C,q){const{body:{user_code:V,device_code:le,verification_uri:fe,expires_in:he,interval:ye,message:ve}}=await this.sendPostRequest(C,e,{body:m,headers:h},q);return{userCode:V,deviceCode:le,verificationUri:fe,expiresIn:he,interval:ye,message:ve}}createQueryString(e){const m=new Map;addScopes(m,e.scopes);addClientId(m,this.config.authOptions.clientId);if(e.extraQueryParameters){addExtraQueryParameters(m,e.extraQueryParameters)}if(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(m,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(m)}continuePolling(e,m,h){if(h){this.logger.error("Token request cancelled by setting DeviceCodeRequest.cancel = true");throw ClientAuthError_createClientAuthError(la)}else if(m&&m<e&&nowSeconds()>m){this.logger.error(`User defined timeout for device code polling reached. The timeout was set for ${m}`);throw ClientAuthError_createClientAuthError(Ca)}else if(nowSeconds()>e){if(m){this.logger.verbose(`User specified timeout ignored as the device code has expired before the timeout elapsed. The user specified timeout was set for ${m}`)}this.logger.error(`Device code expired. Expiration time of device code was ${e}`);throw ClientAuthError_createClientAuthError(ua)}return true}async acquireTokenWithDeviceCode(e,m){const h=this.createTokenQueryParameters(e);const C=UrlString.appendQueryString(this.authority.tokenEndpoint,h);const q=this.createTokenRequestBody(e,m);const V=this.createTokenRequestHeaders();const le=e.timeout?nowSeconds()+e.timeout:undefined;const fe=nowSeconds()+m.expiresIn;const he=m.interval*1e3;while(this.continuePolling(fe,le,e.cancel)){const m={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};const h=await this.executePostToTokenEndpoint(C,q,V,m,e.correlationId);if(h.body&&h.body.error){if(h.body.error===eo.AUTHORIZATION_PENDING){this.logger.info("Authorization pending. Continue polling.");await TimeUtils_delay(he)}else{this.logger.info("Unexpected error in polling from the server");throw createAuthError(ii,h.body.error)}}else{this.logger.verbose("Authorization completed successfully. Polling stopped.");return h.body}}this.logger.error("Polling stopped for unknown reasons.");throw ClientAuthError_createClientAuthError(da)}createTokenRequestBody(e,m){const h=new Map;addScopes(h,e.scopes);addClientId(h,this.config.authOptions.clientId);addGrantType(h,ho.DEVICE_CODE_GRANT);addDeviceCode(h,m.deviceCode);const C=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(h,C);addClientInfo(h);addLibraryInfo(h,this.config.libraryInfo);addApplicationTelemetry(h,this.config.telemetry.application);addThrottling(h);if(this.serverTelemetryManager){addServerTelemetry(h,this.serverTelemetryManager)}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(h,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(h)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class PublicClientApplication extends ClientApplication{constructor(e){super(e);if(this.config.broker.nativeBrokerPlugin){if(this.config.broker.nativeBrokerPlugin.isBrokerAvailable){this.nativeBrokerPlugin=this.config.broker.nativeBrokerPlugin;this.nativeBrokerPlugin.setLogger(this.config.system.loggerOptions)}else{this.logger.warning("NativeBroker implementation was provided but the broker is unavailable.")}}this.skus=ServerTelemetryManager.makeExtraSkuString({libraryName:Zo.MSAL_SKU,libraryVersion:Ic})}async acquireTokenByDeviceCode(e){this.logger.info("acquireTokenByDeviceCode called",e.correlationId);const m=Object.assign(e,await this.initializeBaseRequest(e));const h=this.initializeServerTelemetryManager(ei.acquireTokenByDeviceCode,m.correlationId);try{const C=await this.createAuthority(m.authority,m.correlationId,undefined,e.azureCloudOptions);const q=await this.buildOauthClientConfiguration(C,m.correlationId,"",h);const V=new DeviceCodeClient(q);this.logger.verbose("Device code client created",m.correlationId);return await V.acquireToken(m)}catch(e){if(e instanceof AuthError){e.setCorrelationId(m.correlationId)}h.cacheFailedRequest(e);throw e}}async acquireTokenInteractive(e){const m=e.correlationId||this.cryptoProvider.createNewGuid();this.logger.trace("acquireTokenInteractive called",m);const{openBrowser:h,successTemplate:C,errorTemplate:q,windowHandle:V,loopbackClient:le,...fe}=e;if(this.nativeBrokerPlugin){const h={...fe,clientId:this.config.auth.clientId,scopes:e.scopes||ro,redirectUri:e.redirectUri||"",authority:e.authority||this.config.auth.authority,correlationId:m,extraParameters:{...fe.extraQueryParameters,...fe.tokenQueryParameters,[cs]:this.skus},accountId:fe.account?.nativeAccountId};return this.nativeBrokerPlugin.acquireTokenInteractive(h,V)}if(e.redirectUri){if(!this.config.broker.nativeBrokerPlugin){throw NodeAuthError.createRedirectUriNotSupportedError()}e.redirectUri=""}const{verifier:he,challenge:ye}=await this.cryptoProvider.generatePkceCodes();const ve=le||new LoopbackClient;let Le={};let Ue=null;try{const V=ve.listenForAuthCode(C,q).then((e=>{Le=e})).catch((e=>{Ue=e}));const le=await this.waitForRedirectUri(ve);const qe={...fe,correlationId:m,scopes:e.scopes||ro,redirectUri:le,responseMode:fo.QUERY,codeChallenge:ye,codeChallengeMethod:uo.S256};const ze=await this.getAuthCodeUrl(qe);await h(ze);await V;if(Ue){throw Ue}if(Le.error){throw new ServerError_ServerError(Le.error,Le.error_description,Le.suberror)}else if(!Le.code){throw NodeAuthError.createNoAuthCodeInResponseError()}const He=Le.client_info;const We={code:Le.code,codeVerifier:he,clientInfo:He||eo.EMPTY_STRING,...qe};return await this.acquireTokenByCode(We)}finally{ve.closeServer()}}async acquireTokenSilent(e){const m=e.correlationId||this.cryptoProvider.createNewGuid();this.logger.trace("acquireTokenSilent called",m);if(this.nativeBrokerPlugin){const h={...e,clientId:this.config.auth.clientId,scopes:e.scopes||ro,redirectUri:e.redirectUri||"",authority:e.authority||this.config.auth.authority,correlationId:m,extraParameters:{...e.tokenQueryParameters,[cs]:this.skus},accountId:e.account.nativeAccountId,forceRefresh:e.forceRefresh||false};return this.nativeBrokerPlugin.acquireTokenSilent(h)}if(e.redirectUri){if(!this.config.broker.nativeBrokerPlugin){throw NodeAuthError.createRedirectUriNotSupportedError()}e.redirectUri=""}return super.acquireTokenSilent(e)}async signOut(e){if(this.nativeBrokerPlugin&&e.account.nativeAccountId){const m={clientId:this.config.auth.clientId,accountId:e.account.nativeAccountId,correlationId:e.correlationId||this.cryptoProvider.createNewGuid()};await this.nativeBrokerPlugin.signOut(m)}await this.getTokenCache().removeAccount(e.account,e.correlationId)}async getAllAccounts(){if(this.nativeBrokerPlugin){const e=this.cryptoProvider.createNewGuid();return this.nativeBrokerPlugin.getAllAccounts(this.config.auth.clientId,e)}return this.getTokenCache().getAllAccounts()}async waitForRedirectUri(e){return new Promise(((m,h)=>{let C=0;const q=setInterval((()=>{if(ni.TIMEOUT_MS/ni.INTERVAL_MS<C){clearInterval(q);h(NodeAuthError.createLoopbackServerTimeoutError());return}try{const h=e.getRedirectUri();clearInterval(q);m(h);return}catch(e){if(e instanceof AuthError&&e.errorCode===jc.noLoopbackServerExists.code){C++;return}clearInterval(q);h(e);return}}),ni.INTERVAL_MS)}))}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ClientCredentialClient extends BaseClient{constructor(e,m){super(e);this.appTokenProvider=m}async acquireToken(e){if(e.skipCache||e.claims){return this.executeTokenRequest(e,this.authority)}const[m,h]=await this.getCachedAuthenticationResult(e,this.config,this.cryptoUtils,this.authority,this.cacheManager,this.serverTelemetryManager);if(m){if(h===Do.PROACTIVELY_REFRESHED){this.logger.info("ClientCredentialClient:getCachedAuthenticationResult - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.");const m=true;await this.executeTokenRequest(e,this.authority,m)}return m}else{return this.executeTokenRequest(e,this.authority)}}async getCachedAuthenticationResult(e,m,h,C,q,V){const le=m;const fe=m;let he=Do.NOT_APPLICABLE;let ye;if(le.serializableCache&&le.persistencePlugin){ye=new TokenCacheContext(le.serializableCache,false);await le.persistencePlugin.beforeCacheAccess(ye)}const ve=this.readAccessTokenFromCache(C,fe.managedIdentityId?.id||le.authOptions.clientId,new ScopeSet(e.scopes||[]),q,e.correlationId);if(le.serializableCache&&le.persistencePlugin&&ye){await le.persistencePlugin.afterCacheAccess(ye)}if(!ve){V?.setCacheOutcome(Do.NO_CACHED_ACCESS_TOKEN);return[null,Do.NO_CACHED_ACCESS_TOKEN]}if(isTokenExpired(ve.expiresOn,le.systemOptions?.tokenRenewalOffsetSeconds||No)){V?.setCacheOutcome(Do.CACHED_ACCESS_TOKEN_EXPIRED);return[null,Do.CACHED_ACCESS_TOKEN_EXPIRED]}if(ve.refreshOn&&isTokenExpired(ve.refreshOn.toString(),0)){he=Do.PROACTIVELY_REFRESHED;V?.setCacheOutcome(Do.PROACTIVELY_REFRESHED)}return[await ResponseHandler.generateAuthenticationResult(h,C,{account:null,idToken:null,accessToken:ve,refreshToken:null,appMetadata:null},true,e),he]}readAccessTokenFromCache(e,m,h,C,q){const V={homeAccountId:eo.EMPTY_STRING,environment:e.canonicalAuthorityUrlComponents.HostNameAndPort,credentialType:So.ACCESS_TOKEN,clientId:m,realm:e.tenant,target:ScopeSet.createSearchScopes(h.asArray())};const le=C.getAccessTokensByFilter(V,q);if(le.length<1){return null}else if(le.length>1){throw ClientAuthError_createClientAuthError(na)}return le[0]}async executeTokenRequest(e,m,h){let C;let q;if(this.appTokenProvider){this.logger.info("Using appTokenProvider extensibility.");const m={correlationId:e.correlationId,tenantId:this.config.authOptions.authority.tenant,scopes:e.scopes,claims:e.claims};q=nowSeconds();const h=await this.appTokenProvider(m);C={access_token:h.accessToken,expires_in:h.expiresInSeconds,refresh_in:h.refreshInSeconds,token_type:Ro.BEARER}}else{const h=this.createTokenQueryParameters(e);const V=UrlString.appendQueryString(m.tokenEndpoint,h);const le=await this.createTokenRequestBody(e);const fe=this.createTokenRequestHeaders();const he={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};this.logger.info("Sending token request to endpoint: "+m.tokenEndpoint);q=nowSeconds();const ye=await this.executePostToTokenEndpoint(V,le,fe,he,e.correlationId);C=ye.body;C.status=ye.status}const V=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);V.validateTokenResponse(C,h);const le=await V.handleServerTokenResponse(C,this.authority,q,e,ei.acquireTokenByClientCredential);return le}async createTokenRequestBody(e){const m=new Map;addClientId(m,this.config.authOptions.clientId);addScopes(m,e.scopes,false);addGrantType(m,ho.CLIENT_CREDENTIALS_GRANT);addLibraryInfo(m,this.config.libraryInfo);addApplicationTelemetry(m,this.config.telemetry.application);addThrottling(m);if(this.serverTelemetryManager){addServerTelemetry(m,this.serverTelemetryManager)}const h=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(m,h);if(this.config.clientCredentials.clientSecret){addClientSecret(m,this.config.clientCredentials.clientSecret)}const C=e.clientAssertion||this.config.clientCredentials.clientAssertion;if(C){addClientAssertion(m,await getClientAssertion(C.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(m,C.assertionType)}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(m,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(m)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class OnBehalfOfClient extends BaseClient{constructor(e){super(e)}async acquireToken(e){this.scopeSet=new ScopeSet(e.scopes||[]);this.userAssertionHash=await this.cryptoUtils.hashString(e.oboAssertion);if(e.skipCache||e.claims){return this.executeTokenRequest(e,this.authority,this.userAssertionHash)}try{return await this.getCachedAuthenticationResult(e)}catch(m){return await this.executeTokenRequest(e,this.authority,this.userAssertionHash)}}async getCachedAuthenticationResult(e){const m=this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId,e);if(!m){this.serverTelemetryManager?.setCacheOutcome(Do.NO_CACHED_ACCESS_TOKEN);this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");throw ClientAuthError_createClientAuthError(va)}else if(isTokenExpired(m.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds)){this.serverTelemetryManager?.setCacheOutcome(Do.CACHED_ACCESS_TOKEN_EXPIRED);this.logger.info(`OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`);throw ClientAuthError_createClientAuthError(va)}const h=this.readIdTokenFromCacheForOBO(m.homeAccountId,e.correlationId);let C;let q=null;if(h){C=extractTokenClaims(h.secret,EncodingUtils.base64Decode);const m=C.oid||C.sub;const V={homeAccountId:h.homeAccountId,environment:h.environment,tenantId:h.realm,username:eo.EMPTY_STRING,localAccountId:m||eo.EMPTY_STRING};q=this.cacheManager.getAccount(this.cacheManager.generateAccountKey(V),e.correlationId)}if(this.config.serverTelemetryManager){this.config.serverTelemetryManager.incrementCacheHits()}return ResponseHandler.generateAuthenticationResult(this.cryptoUtils,this.authority,{account:q,accessToken:m,idToken:h,refreshToken:null,appMetadata:null},true,e,C)}readIdTokenFromCacheForOBO(e,m){const h={homeAccountId:e,environment:this.authority.canonicalAuthorityUrlComponents.HostNameAndPort,credentialType:So.ID_TOKEN,clientId:this.config.authOptions.clientId,realm:this.authority.tenant};const C=this.cacheManager.getIdTokensByFilter(h,m);if(Object.values(C).length<1){return null}return Object.values(C)[0]}readAccessTokenFromCacheForOBO(e,m){const h=m.authenticationScheme||Ro.BEARER;const C=h&&h.toLowerCase()!==Ro.BEARER.toLowerCase()?So.ACCESS_TOKEN_WITH_AUTH_SCHEME:So.ACCESS_TOKEN;const q={credentialType:C,clientId:e,target:ScopeSet.createSearchScopes(this.scopeSet.asArray()),tokenType:h,keyId:m.sshKid,requestedClaimsHash:m.requestedClaimsHash,userAssertionHash:this.userAssertionHash};const V=this.cacheManager.getAccessTokensByFilter(q,m.correlationId);const le=V.length;if(le<1){return null}else if(le>1){throw ClientAuthError_createClientAuthError(na)}return V[0]}async executeTokenRequest(e,m,h){const C=this.createTokenQueryParameters(e);const q=UrlString.appendQueryString(m.tokenEndpoint,C);const V=await this.createTokenRequestBody(e);const le=this.createTokenRequestHeaders();const fe={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};const he=nowSeconds();const ye=await this.executePostToTokenEndpoint(q,V,le,fe,e.correlationId);const ve=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);ve.validateTokenResponse(ye.body);const Le=await ve.handleServerTokenResponse(ye.body,this.authority,he,e,ei.acquireTokenByOBO,undefined,h);return Le}async createTokenRequestBody(e){const m=new Map;addClientId(m,this.config.authOptions.clientId);addScopes(m,e.scopes);addGrantType(m,ho.JWT_BEARER);addClientInfo(m);addLibraryInfo(m,this.config.libraryInfo);addApplicationTelemetry(m,this.config.telemetry.application);addThrottling(m);if(this.serverTelemetryManager){addServerTelemetry(m,this.serverTelemetryManager)}const h=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(m,h);addRequestTokenUse(m,Zi);addOboAssertion(m,e.oboAssertion);if(this.config.clientCredentials.clientSecret){addClientSecret(m,this.config.clientCredentials.clientSecret)}const C=this.config.clientCredentials.clientAssertion;if(C){addClientAssertion(m,await getClientAssertion(C.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(m,C.assertionType)}if(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(m,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(m)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ConfidentialClientApplication extends ClientApplication{constructor(e){super(e);const m=!!this.config.auth.clientSecret;const h=!!this.config.auth.clientAssertion;const C=(!!this.config.auth.clientCertificate?.thumbprint||!!this.config.auth.clientCertificate?.thumbprintSha256)&&!!this.config.auth.clientCertificate?.privateKey;if(this.appTokenProvider){return}if(m&&h||h&&C||m&&C){throw ClientAuthError_createClientAuthError(Ea)}if(this.config.auth.clientSecret){this.clientSecret=this.config.auth.clientSecret;return}if(this.config.auth.clientAssertion){this.developerProvidedClientAssertion=this.config.auth.clientAssertion;return}if(!C){throw ClientAuthError_createClientAuthError(Ea)}else{this.clientAssertion=!!this.config.auth.clientCertificate.thumbprintSha256?ClientAssertion.fromCertificateWithSha256Thumbprint(this.config.auth.clientCertificate.thumbprintSha256,this.config.auth.clientCertificate.privateKey,this.config.auth.clientCertificate.x5c):ClientAssertion.fromCertificate(this.config.auth.clientCertificate.thumbprint,this.config.auth.clientCertificate.privateKey,this.config.auth.clientCertificate.x5c)}this.appTokenProvider=undefined}SetAppTokenProvider(e){this.appTokenProvider=e}async acquireTokenByClientCredential(e){this.logger.info("acquireTokenByClientCredential called",e.correlationId);let m;if(e.clientAssertion){m={assertion:await getClientAssertion(e.clientAssertion,this.config.auth.clientId),assertionType:Zo.JWT_BEARER_ASSERTION_TYPE}}const h=await this.initializeBaseRequest(e);const C={...h,scopes:h.scopes.filter((e=>!ro.includes(e)))};const q={...e,...C,clientAssertion:m};const V=new UrlString(q.authority);const le=V.getUrlComponents().PathSegments[0];if(Object.values(ao).includes(le)){throw ClientAuthError_createClientAuthError(xa)}const fe=process.env[Ko];let he;if(q.azureRegion!=="DisableMsalForceRegion"){if(!q.azureRegion&&fe){he=fe}else{he=q.azureRegion}}const ye={azureRegion:he,environmentRegion:process.env[Wo]};const ve=this.initializeServerTelemetryManager(ei.acquireTokenByClientCredential,q.correlationId,q.skipCache);try{const m=await this.createAuthority(q.authority,q.correlationId,ye,e.azureCloudOptions);const h=await this.buildOauthClientConfiguration(m,q.correlationId,"",ve);const C=new ClientCredentialClient(h,this.appTokenProvider);this.logger.verbose("Client credential client created",q.correlationId);return await C.acquireToken(q)}catch(e){if(e instanceof AuthError){e.setCorrelationId(q.correlationId)}ve.cacheFailedRequest(e);throw e}}async acquireTokenOnBehalfOf(e){this.logger.info("acquireTokenOnBehalfOf called",e.correlationId);const m={...e,...await this.initializeBaseRequest(e)};try{const h=await this.createAuthority(m.authority,m.correlationId,undefined,e.azureCloudOptions);const C=await this.buildOauthClientConfiguration(h,m.correlationId,"",undefined);const q=new OnBehalfOfClient(C);this.logger.verbose("On behalf of client created",m.correlationId);return await q.acquireToken(m)}catch(e){if(e instanceof AuthError){e.setCorrelationId(m.correlationId)}throw e}}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -function isIso8601(e){if(typeof e!=="string"){return false}const m=new Date(e);return!isNaN(m.getTime())&&m.toISOString()===e} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class HttpClientWithRetries{constructor(e,m,h){this.httpClientNoRetries=e;this.retryPolicy=m;this.logger=h}async sendNetworkRequestAsyncHelper(e,m,h){if(e===Ho.GET){return this.httpClientNoRetries.sendGetRequestAsync(m,h)}else{return this.httpClientNoRetries.sendPostRequestAsync(m,h)}}async sendNetworkRequestAsync(e,m,h){let C=await this.sendNetworkRequestAsyncHelper(e,m,h);if("isNewRequest"in this.retryPolicy){this.retryPolicy.isNewRequest=true}let q=0;while(await this.retryPolicy.pauseForRetry(C.status,q,this.logger,C.headers[io.RETRY_AFTER])){C=await this.sendNetworkRequestAsyncHelper(e,m,h);q++}return C}async sendGetRequestAsync(e,m){return this.sendNetworkRequestAsync(Ho.GET,e,m)}async sendPostRequestAsync(e,m){return this.sendNetworkRequestAsync(Ho.POST,e,m)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const sl={MANAGED_IDENTITY_CLIENT_ID_2017:"clientid",MANAGED_IDENTITY_CLIENT_ID:"client_id",MANAGED_IDENTITY_OBJECT_ID:"object_id",MANAGED_IDENTITY_RESOURCE_ID_IMDS:"msi_res_id",MANAGED_IDENTITY_RESOURCE_ID_NON_IMDS:"mi_res_id"};class BaseManagedIdentitySource{constructor(e,m,h,C,q){this.logger=e;this.nodeStorage=m;this.networkClient=h;this.cryptoProvider=C;this.disableInternalRetries=q}async getServerTokenResponseAsync(e,m,h,C){return this.getServerTokenResponse(e)}getServerTokenResponse(e){let m,h;if(e.body.expires_on){if(isIso8601(e.body.expires_on)){e.body.expires_on=new Date(e.body.expires_on).getTime()/1e3}h=e.body.expires_on-nowSeconds();if(h>2*3600){m=h/2}}const C={status:e.status,access_token:e.body.access_token,expires_in:h,scope:e.body.resource,token_type:e.body.token_type,refresh_in:m,correlation_id:e.body.correlation_id||e.body.correlationId,error:typeof e.body.error==="string"?e.body.error:e.body.error?.code,error_description:e.body.message||(typeof e.body.error==="string"?e.body.error_description:e.body.error?.message),error_codes:e.body.error_codes,timestamp:e.body.timestamp,trace_id:e.body.trace_id};return C}async acquireTokenWithManagedIdentity(e,m,h,C){const q=this.createRequest(e.resource,m);if(e.revokedTokenSha256Hash){this.logger.info(`[Managed Identity] The following claims are present in the request: ${e.claims}`);q.queryParameters[jo.SHA256_TOKEN_TO_REFRESH]=e.revokedTokenSha256Hash}if(e.clientCapabilities?.length){const m=e.clientCapabilities.toString();this.logger.info(`[Managed Identity] The following client capabilities are present in the request: ${m}`);q.queryParameters[jo.XMS_CC]=m}const V=q.headers;V[io.CONTENT_TYPE]=eo.URL_FORM_CONTENT_TYPE;const le={headers:V};if(Object.keys(q.bodyParameters).length){le.body=q.computeParametersBodyString()}const fe=this.disableInternalRetries?this.networkClient:new HttpClientWithRetries(this.networkClient,q.retryPolicy,this.logger);const he=nowSeconds();let ye;try{if(q.httpMethod===Ho.POST){ye=await fe.sendPostRequestAsync(q.computeUri(),le)}else{ye=await fe.sendGetRequestAsync(q.computeUri(),le)}}catch(e){if(e instanceof AuthError){throw e}else{throw ClientAuthError_createClientAuthError(Ws)}}const ve=new ResponseHandler(m.id,this.nodeStorage,this.cryptoProvider,this.logger,null,null);const Le=await this.getServerTokenResponseAsync(ye,fe,q,le);ve.validateTokenResponse(Le,C);return ve.handleServerTokenResponse(Le,h,he,e,ei.acquireTokenWithManagedIdentity)}getManagedIdentityUserAssignedIdQueryParameterKey(e,m,h){switch(e){case zo.USER_ASSIGNED_CLIENT_ID:this.logger.info(`[Managed Identity] [API version ${h?"2017+":"2019+"}] Adding user assigned client id to the request.`);return h?sl.MANAGED_IDENTITY_CLIENT_ID_2017:sl.MANAGED_IDENTITY_CLIENT_ID;case zo.USER_ASSIGNED_RESOURCE_ID:this.logger.info("[Managed Identity] Adding user assigned resource id to the request.");return m?sl.MANAGED_IDENTITY_RESOURCE_ID_IMDS:sl.MANAGED_IDENTITY_RESOURCE_ID_NON_IMDS;case zo.USER_ASSIGNED_OBJECT_ID:this.logger.info("[Managed Identity] Adding user assigned object id to the request.");return sl.MANAGED_IDENTITY_OBJECT_ID;default:throw createManagedIdentityError(Tc)}}}BaseManagedIdentitySource.getValidatedEnvVariableUrlString=(e,m,h,C)=>{try{return new UrlString(m).urlString}catch(m){C.info(`[Managed Identity] ${h} managed identity is unavailable because the '${e}' environment variable is malformed.`);throw createManagedIdentityError(Fc[e])}}; -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class LinearRetryStrategy{calculateDelay(e,m){if(!e){return m}let h=Math.round(parseFloat(e)*1e3);if(isNaN(h)){h=new Date(e).valueOf()-(new Date).valueOf()}return Math.max(m,h)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const al=3;const cl=1e3;const ll=[to.NOT_FOUND,to.REQUEST_TIMEOUT,to.TOO_MANY_REQUESTS,to.SERVER_ERROR,to.SERVICE_UNAVAILABLE,to.GATEWAY_TIMEOUT];class DefaultManagedIdentityRetryPolicy{constructor(){this.linearRetryStrategy=new LinearRetryStrategy}static get DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS(){return cl}async pauseForRetry(e,m,h,C){if(ll.includes(e)&&m<al){const e=this.linearRetryStrategy.calculateDelay(C,DefaultManagedIdentityRetryPolicy.DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS);h.verbose(`Retrying request in ${e}ms (retry attempt: ${m+1})`);await new Promise((m=>setTimeout(m,e)));return true}return false}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ManagedIdentityRequestParameters{constructor(e,m,h){this.httpMethod=e;this._baseEndpoint=m;this.headers={};this.bodyParameters={};this.queryParameters={};this.retryPolicy=h||new DefaultManagedIdentityRetryPolicy}computeUri(){const e=new Map;if(this.queryParameters){addExtraQueryParameters(e,this.queryParameters)}const m=mapToQueryString(e);return UrlString.appendQueryString(this._baseEndpoint,m)}computeParametersBodyString(){const e=new Map;if(this.bodyParameters){addExtraQueryParameters(e,this.bodyParameters)}return mapToQueryString(e)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const ul="2019-08-01";class AppService extends BaseManagedIdentitySource{constructor(e,m,h,C,q,V,le){super(e,m,h,C,q);this.identityEndpoint=V;this.identityHeader=le}static getEnvironmentVariables(){const e=process.env[Bo.IDENTITY_ENDPOINT];const m=process.env[Bo.IDENTITY_HEADER];return[e,m]}static tryCreate(e,m,h,C,q){const[V,le]=AppService.getEnvironmentVariables();if(!V||!le){e.info(`[Managed Identity] ${Go.APP_SERVICE} managed identity is unavailable because one or both of the '${Bo.IDENTITY_HEADER}' and '${Bo.IDENTITY_ENDPOINT}' environment variables are not defined.`);return null}const fe=AppService.getValidatedEnvVariableUrlString(Bo.IDENTITY_ENDPOINT,V,Go.APP_SERVICE,e);e.info(`[Managed Identity] Environment variables validation passed for ${Go.APP_SERVICE} managed identity. Endpoint URI: ${fe}. Creating ${Go.APP_SERVICE} managed identity.`);return new AppService(e,m,h,C,q,V,le)}createRequest(e,m){const h=new ManagedIdentityRequestParameters(Ho.GET,this.identityEndpoint);h.headers[qo.APP_SERVICE_SECRET_HEADER_NAME]=this.identityHeader;h.queryParameters[jo.API_VERSION]=ul;h.queryParameters[jo.RESOURCE]=e;if(m.idType!==zo.SYSTEM_ASSIGNED){h.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(m.idType)]=m.id}return h}}var dl=__nccwpck_require__(9896);var pl=__nccwpck_require__(6928); -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const ml="2019-11-01";const fl="http://127.0.0.1:40342/metadata/identity/oauth2/token";const hl="N/A: himds executable exists";const gl={win32:`${process.env["ProgramData"]}\\AzureConnectedMachineAgent\\Tokens\\`,linux:"/var/opt/azcmagent/tokens/"};const yl={win32:`${process.env["ProgramFiles"]}\\AzureConnectedMachineAgent\\himds.exe`,linux:"/opt/azcmagent/bin/himds"};class AzureArc extends BaseManagedIdentitySource{constructor(e,m,h,C,q,V){super(e,m,h,C,q);this.identityEndpoint=V}static getEnvironmentVariables(){let e=process.env[Bo.IDENTITY_ENDPOINT];let m=process.env[Bo.IMDS_ENDPOINT];if(!e||!m){const h=yl[process.platform];try{(0,dl.accessSync)(h,dl.constants.F_OK|dl.constants.R_OK);e=fl;m=hl}catch(e){}}return[e,m]}static tryCreate(e,m,h,C,q,V){const[le,fe]=AzureArc.getEnvironmentVariables();if(!le||!fe){e.info(`[Managed Identity] ${Go.AZURE_ARC} managed identity is unavailable through environment variables because one or both of '${Bo.IDENTITY_ENDPOINT}' and '${Bo.IMDS_ENDPOINT}' are not defined. ${Go.AZURE_ARC} managed identity is also unavailable through file detection.`);return null}if(fe===hl){e.info(`[Managed Identity] ${Go.AZURE_ARC} managed identity is available through file detection. Defaulting to known ${Go.AZURE_ARC} endpoint: ${fl}. Creating ${Go.AZURE_ARC} managed identity.`)}else{const m=AzureArc.getValidatedEnvVariableUrlString(Bo.IDENTITY_ENDPOINT,le,Go.AZURE_ARC,e);m.endsWith("/")?m.slice(0,-1):m;AzureArc.getValidatedEnvVariableUrlString(Bo.IMDS_ENDPOINT,fe,Go.AZURE_ARC,e);e.info(`[Managed Identity] Environment variables validation passed for ${Go.AZURE_ARC} managed identity. Endpoint URI: ${m}. Creating ${Go.AZURE_ARC} managed identity.`)}if(V.idType!==zo.SYSTEM_ASSIGNED){throw createManagedIdentityError(Dc)}return new AzureArc(e,m,h,C,q,le)}createRequest(e){const m=new ManagedIdentityRequestParameters(Ho.GET,this.identityEndpoint.replace("localhost","127.0.0.1"));m.headers[qo.METADATA_HEADER_NAME]="true";m.queryParameters[jo.API_VERSION]=ml;m.queryParameters[jo.RESOURCE]=e;return m}async getServerTokenResponseAsync(e,m,h,C){let q;if(e.status===to.UNAUTHORIZED){const V=e.headers["www-authenticate"];if(!V){throw createManagedIdentityError(Lc)}if(!V.includes("Basic realm=")){throw createManagedIdentityError(Uc)}const le=V.split("Basic realm=")[1];if(!gl.hasOwnProperty(process.platform)){throw createManagedIdentityError(Oc)}const fe=gl[process.platform];const he=pl.basename(le);if(!he.endsWith(".key")){throw createManagedIdentityError(wc)}if(fe+he!==le){throw createManagedIdentityError(Rc)}let ye;try{ye=await(0,dl.statSync)(le).size}catch(e){throw createManagedIdentityError(Nc)}if(ye>ri){throw createManagedIdentityError(Pc)}let ve;try{ve=(0,dl.readFileSync)(le,ko.UTF8)}catch(e){throw createManagedIdentityError(Nc)}const Le=`Basic ${ve}`;this.logger.info(`[Managed Identity] Adding authorization header to the request.`);h.headers[qo.AUTHORIZATION_HEADER_NAME]=Le;try{q=await m.sendGetRequestAsync(h.computeUri(),C)}catch(e){if(e instanceof AuthError){throw e}else{throw ClientAuthError_createClientAuthError(Ws)}}}return this.getServerTokenResponse(q||e)}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class CloudShell extends BaseManagedIdentitySource{constructor(e,m,h,C,q,V){super(e,m,h,C,q);this.msiEndpoint=V}static getEnvironmentVariables(){const e=process.env[Bo.MSI_ENDPOINT];return[e]}static tryCreate(e,m,h,C,q,V){const[le]=CloudShell.getEnvironmentVariables();if(!le){e.info(`[Managed Identity] ${Go.CLOUD_SHELL} managed identity is unavailable because the '${Bo.MSI_ENDPOINT} environment variable is not defined.`);return null}const fe=CloudShell.getValidatedEnvVariableUrlString(Bo.MSI_ENDPOINT,le,Go.CLOUD_SHELL,e);e.info(`[Managed Identity] Environment variable validation passed for ${Go.CLOUD_SHELL} managed identity. Endpoint URI: ${fe}. Creating ${Go.CLOUD_SHELL} managed identity.`);if(V.idType!==zo.SYSTEM_ASSIGNED){throw createManagedIdentityError(Mc)}return new CloudShell(e,m,h,C,q,le)}createRequest(e){const m=new ManagedIdentityRequestParameters(Ho.POST,this.msiEndpoint);m.headers[qo.METADATA_HEADER_NAME]="true";m.bodyParameters[jo.RESOURCE]=e;return m}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ExponentialRetryStrategy{constructor(e,m,h){this.minExponentialBackoff=e;this.maxExponentialBackoff=m;this.exponentialDeltaBackoff=h}calculateDelay(e){if(e===0){return this.minExponentialBackoff}const m=Math.min(Math.pow(2,e-1)*this.exponentialDeltaBackoff,this.maxExponentialBackoff);return m}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const Sl=[to.NOT_FOUND,to.REQUEST_TIMEOUT,to.GONE,to.TOO_MANY_REQUESTS];const El=3;const vl=7;const Cl=1e3;const Il=4e3;const bl=2e3;const Al=10*1e3;class ImdsRetryPolicy{constructor(){this.exponentialRetryStrategy=new ExponentialRetryStrategy(ImdsRetryPolicy.MIN_EXPONENTIAL_BACKOFF_MS,ImdsRetryPolicy.MAX_EXPONENTIAL_BACKOFF_MS,ImdsRetryPolicy.EXPONENTIAL_DELTA_BACKOFF_MS)}static get MIN_EXPONENTIAL_BACKOFF_MS(){return Cl}static get MAX_EXPONENTIAL_BACKOFF_MS(){return Il}static get EXPONENTIAL_DELTA_BACKOFF_MS(){return bl}static get HTTP_STATUS_GONE_RETRY_AFTER_MS(){return Al}set isNewRequest(e){this._isNewRequest=e}async pauseForRetry(e,m,h){if(this._isNewRequest){this._isNewRequest=false;this.maxRetries=e===to.GONE?vl:El}if((Sl.includes(e)||e>=to.SERVER_ERROR_RANGE_START&&e<=to.SERVER_ERROR_RANGE_END&&m<this.maxRetries)&&m<this.maxRetries){const C=e===to.GONE?ImdsRetryPolicy.HTTP_STATUS_GONE_RETRY_AFTER_MS:this.exponentialRetryStrategy.calculateDelay(m);h.verbose(`Retrying request in ${C}ms (retry attempt: ${m+1})`);await new Promise((e=>setTimeout(e,C)));return true}return false}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const wl="/metadata/identity/oauth2/token";const Rl=`http://169.254.169.254${wl}`;const Tl="2018-02-01";class Imds extends BaseManagedIdentitySource{constructor(e,m,h,C,q,V){super(e,m,h,C,q);this.identityEndpoint=V}static tryCreate(e,m,h,C,q){let V;if(process.env[Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST]){e.info(`[Managed Identity] Environment variable ${Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST} for ${Go.IMDS} returned endpoint: ${process.env[Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST]}`);V=Imds.getValidatedEnvVariableUrlString(Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST,`${process.env[Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST]}${wl}`,Go.IMDS,e)}else{e.info(`[Managed Identity] Unable to find ${Bo.AZURE_POD_IDENTITY_AUTHORITY_HOST} environment variable for ${Go.IMDS}, using the default endpoint.`);V=Rl}return new Imds(e,m,h,C,q,V)}createRequest(e,m){const h=new ManagedIdentityRequestParameters(Ho.GET,this.identityEndpoint);h.headers[qo.METADATA_HEADER_NAME]="true";h.queryParameters[jo.API_VERSION]=Tl;h.queryParameters[jo.RESOURCE]=e;if(m.idType!==zo.SYSTEM_ASSIGNED){h.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(m.idType,true)]=m.id}h.retryPolicy=new ImdsRetryPolicy;return h}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const Pl="2019-07-01-preview";class ServiceFabric extends BaseManagedIdentitySource{constructor(e,m,h,C,q,V,le){super(e,m,h,C,q);this.identityEndpoint=V;this.identityHeader=le}static getEnvironmentVariables(){const e=process.env[Bo.IDENTITY_ENDPOINT];const m=process.env[Bo.IDENTITY_HEADER];const h=process.env[Bo.IDENTITY_SERVER_THUMBPRINT];return[e,m,h]}static tryCreate(e,m,h,C,q,V){const[le,fe,he]=ServiceFabric.getEnvironmentVariables();if(!le||!fe||!he){e.info(`[Managed Identity] ${Go.SERVICE_FABRIC} managed identity is unavailable because one or all of the '${Bo.IDENTITY_HEADER}', '${Bo.IDENTITY_ENDPOINT}' or '${Bo.IDENTITY_SERVER_THUMBPRINT}' environment variables are not defined.`);return null}const ye=ServiceFabric.getValidatedEnvVariableUrlString(Bo.IDENTITY_ENDPOINT,le,Go.SERVICE_FABRIC,e);e.info(`[Managed Identity] Environment variables validation passed for ${Go.SERVICE_FABRIC} managed identity. Endpoint URI: ${ye}. Creating ${Go.SERVICE_FABRIC} managed identity.`);if(V.idType!==zo.SYSTEM_ASSIGNED){e.warning(`[Managed Identity] ${Go.SERVICE_FABRIC} user assigned managed identity is configured in the cluster, not during runtime. See also: https://learn.microsoft.com/en-us/azure/service-fabric/configure-existing-cluster-enable-managed-identity-token-service.`)}return new ServiceFabric(e,m,h,C,q,le,fe)}createRequest(e,m){const h=new ManagedIdentityRequestParameters(Ho.GET,this.identityEndpoint);h.headers[qo.ML_AND_SF_SECRET_HEADER_NAME]=this.identityHeader;h.queryParameters[jo.API_VERSION]=Pl;h.queryParameters[jo.RESOURCE]=e;if(m.idType!==zo.SYSTEM_ASSIGNED){h.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(m.idType)]=m.id}return h}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const xl="2017-09-01";const _l=`Only client id is supported for user-assigned managed identity in ${Go.MACHINE_LEARNING}.`;class MachineLearning extends BaseManagedIdentitySource{constructor(e,m,h,C,q,V,le){super(e,m,h,C,q);this.msiEndpoint=V;this.secret=le}static getEnvironmentVariables(){const e=process.env[Bo.MSI_ENDPOINT];const m=process.env[Bo.MSI_SECRET];return[e,m]}static tryCreate(e,m,h,C,q){const[V,le]=MachineLearning.getEnvironmentVariables();if(!V||!le){e.info(`[Managed Identity] ${Go.MACHINE_LEARNING} managed identity is unavailable because one or both of the '${Bo.MSI_ENDPOINT}' and '${Bo.MSI_SECRET}' environment variables are not defined.`);return null}const fe=MachineLearning.getValidatedEnvVariableUrlString(Bo.MSI_ENDPOINT,V,Go.MACHINE_LEARNING,e);e.info(`[Managed Identity] Environment variables validation passed for ${Go.MACHINE_LEARNING} managed identity. Endpoint URI: ${fe}. Creating ${Go.MACHINE_LEARNING} managed identity.`);return new MachineLearning(e,m,h,C,q,V,le)}createRequest(e,m){const h=new ManagedIdentityRequestParameters(Ho.GET,this.msiEndpoint);h.headers[qo.METADATA_HEADER_NAME]="true";h.headers[qo.ML_AND_SF_SECRET_HEADER_NAME]=this.secret;h.queryParameters[jo.API_VERSION]=xl;h.queryParameters[jo.RESOURCE]=e;if(m.idType===zo.SYSTEM_ASSIGNED){h.queryParameters[sl.MANAGED_IDENTITY_CLIENT_ID_2017]=process.env[Bo.DEFAULT_IDENTITY_CLIENT_ID]}else if(m.idType===zo.USER_ASSIGNED_CLIENT_ID){h.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(m.idType,false,true)]=m.id}else{throw new Error(_l)}return h}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -class ManagedIdentityClient{constructor(e,m,h,C,q){this.logger=e;this.nodeStorage=m;this.networkClient=h;this.cryptoProvider=C;this.disableInternalRetries=q}async sendManagedIdentityTokenRequest(e,m,h,C){if(!ManagedIdentityClient.identitySource){ManagedIdentityClient.identitySource=this.selectManagedIdentitySource(this.logger,this.nodeStorage,this.networkClient,this.cryptoProvider,this.disableInternalRetries,m)}return ManagedIdentityClient.identitySource.acquireTokenWithManagedIdentity(e,m,h,C)}allEnvironmentVariablesAreDefined(e){return Object.values(e).every((e=>e!==undefined))}getManagedIdentitySource(){ManagedIdentityClient.sourceName=this.allEnvironmentVariablesAreDefined(ServiceFabric.getEnvironmentVariables())?Go.SERVICE_FABRIC:this.allEnvironmentVariablesAreDefined(AppService.getEnvironmentVariables())?Go.APP_SERVICE:this.allEnvironmentVariablesAreDefined(MachineLearning.getEnvironmentVariables())?Go.MACHINE_LEARNING:this.allEnvironmentVariablesAreDefined(CloudShell.getEnvironmentVariables())?Go.CLOUD_SHELL:this.allEnvironmentVariablesAreDefined(AzureArc.getEnvironmentVariables())?Go.AZURE_ARC:Go.DEFAULT_TO_IMDS;return ManagedIdentityClient.sourceName}selectManagedIdentitySource(e,m,h,C,q,V){const le=ServiceFabric.tryCreate(e,m,h,C,q,V)||AppService.tryCreate(e,m,h,C,q)||MachineLearning.tryCreate(e,m,h,C,q)||CloudShell.tryCreate(e,m,h,C,q,V)||AzureArc.tryCreate(e,m,h,C,q,V)||Imds.tryCreate(e,m,h,C,q);if(!le){throw createManagedIdentityError($c)}return le}} -/*! @azure/msal-node v3.8.8 2026-02-23 */ -const Ol=[Go.SERVICE_FABRIC];class ManagedIdentityApplication{constructor(e){this.config=buildManagedIdentityConfiguration(e||{});this.logger=new Logger(this.config.system.loggerOptions,Cc,Ic);const m={canonicalAuthority:eo.DEFAULT_AUTHORITY};if(!ManagedIdentityApplication.nodeStorage){ManagedIdentityApplication.nodeStorage=new NodeStorage(this.logger,this.config.managedIdentityId.id,Ha,m)}this.networkClient=this.config.system.networkClient;this.cryptoProvider=new CryptoProvider;const h={protocolMode:Fa.AAD,knownAuthorities:[Fo],cloudDiscoveryMetadata:"",authorityMetadata:""};this.fakeAuthority=new Authority(Fo,this.networkClient,ManagedIdentityApplication.nodeStorage,h,this.logger,this.cryptoProvider.createNewGuid(),undefined,true);this.fakeClientCredentialClient=new ClientCredentialClient({authOptions:{clientId:this.config.managedIdentityId.id,authority:this.fakeAuthority}});this.managedIdentityClient=new ManagedIdentityClient(this.logger,ManagedIdentityApplication.nodeStorage,this.networkClient,this.cryptoProvider,this.config.disableInternalRetries);this.hashUtils=new HashUtils}async acquireToken(e){if(!e.resource){throw createClientConfigurationError(vs)}const m={forceRefresh:e.forceRefresh,resource:e.resource.replace("/.default",""),scopes:[e.resource.replace("/.default","")],authority:this.fakeAuthority.canonicalAuthority,correlationId:this.cryptoProvider.createNewGuid(),claims:e.claims,clientCapabilities:this.config.clientCapabilities};if(m.forceRefresh){return this.acquireTokenFromManagedIdentity(m,this.config.managedIdentityId,this.fakeAuthority)}const[h,C]=await this.fakeClientCredentialClient.getCachedAuthenticationResult(m,this.config,this.cryptoProvider,this.fakeAuthority,ManagedIdentityApplication.nodeStorage);if(m.claims){const e=this.managedIdentityClient.getManagedIdentitySource();if(h&&Ol.includes(e)){const e=this.hashUtils.sha256(h.accessToken).toString(ko.HEX);m.revokedTokenSha256Hash=e}return this.acquireTokenFromManagedIdentity(m,this.config.managedIdentityId,this.fakeAuthority)}if(h){if(C===Do.PROACTIVELY_REFRESHED){this.logger.info("ClientCredentialClient:getCachedAuthenticationResult - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.");const e=true;await this.acquireTokenFromManagedIdentity(m,this.config.managedIdentityId,this.fakeAuthority,e)}return h}else{return this.acquireTokenFromManagedIdentity(m,this.config.managedIdentityId,this.fakeAuthority)}}async acquireTokenFromManagedIdentity(e,m,h,C){return this.managedIdentityClient.sendManagedIdentityTokenRequest(e,m,h,C)}getManagedIdentitySource(){return ManagedIdentityClient.sourceName||this.managedIdentityClient.getManagedIdentitySource()}}function random_getRandomIntegerInclusive(e,m){e=Math.ceil(e);m=Math.floor(m);const h=Math.floor(Math.random()*(m-e+1));return h+e}function calculateRetryDelay(e,m){const h=m.retryDelayInMs*Math.pow(2,e);const C=Math.min(m.maxRetryDelayInMs,h);const q=C/2+random_getRandomIntegerInclusive(0,C/2);return{retryAfterInMs:q}}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const m=typeof e.name==="string";const h=typeof e.message==="string";return m&&h}return false}var Dl=__nccwpck_require__(7598);async function computeSha256Hmac(e,m,h){const C=Buffer.from(e,"base64");return createHmac("sha256",C).update(m).digest(h)}async function computeSha256Hash(e,m){return createHash("sha256").update(e).digest(m)}const Ml=typeof window!=="undefined"&&typeof window.document!=="undefined";const $l=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Nl=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const kl=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Ll=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const Ul=Ll&&!kl&&!Nl;const Fl=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";function uint8ArrayToString(e,m){return Buffer.from(e).toString(m)}function stringToUint8Array(e,m){return Buffer.from(e,m)}const ql="REDACTED";const jl=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const Bl=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:m=[]}={}){e=jl.concat(e);m=Bl.concat(m);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(m.map((e=>e.toLowerCase())))}sanitize(e){const m=new Set;return JSON.stringify(e,((e,h)=>{if(h instanceof Error){return{...h,name:h.name,message:h.message}}if(e==="headers"){return this.sanitizeHeaders(h)}else if(e==="url"){return this.sanitizeUrl(h)}else if(e==="query"){return this.sanitizeQuery(h)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(h)||isObject(h)){if(m.has(h)){return"[Circular]"}m.add(h)}return h}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const m=new URL(e);if(!m.search){return e}for(const[e]of m.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){m.searchParams.set(e,ql)}}return m.toString()}sanitizeHeaders(e){const m={};for(const h of Object.keys(e)){if(this.allowedHeaderNames.has(h.toLowerCase())){m[h]=e[h]}else{m[h]=ql}}return m}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const m={};for(const h of Object.keys(e)){if(this.allowedQueryParameters.has(h.toLowerCase())){m[h]=e[h]}else{m[h]=ql}}return m}}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,m){const{cleanupBeforeAbort:h,abortSignal:C,abortErrorMsg:q}=m??{};return new Promise(((m,V)=>{function rejectOnAbort(){V(new AbortError(q??"The operation was aborted."))}function removeListeners(){C?.removeEventListener("abort",onAbort)}function onAbort(){h?.();removeListeners();rejectOnAbort()}if(C?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();m(e)}),(e=>{removeListeners();V(e)}))}catch(e){V(e)}C?.addEventListener("abort",onAbort)}))}const Gl="The delay was aborted.";function delay_delay(e,m){let h;const{abortSignal:C,abortErrorMsg:q}=m??{};return createAbortablePromise((m=>{h=setTimeout(m,e)}),{cleanupBeforeAbort:()=>clearTimeout(h),abortSignal:C,abortErrorMsg:q??Gl})}function delay_calculateRetryDelay(e,m){const h=m.retryDelayInMs*Math.pow(2,e);const C=Math.min(m.maxRetryDelayInMs,h);const q=C/2+getRandomIntegerInclusive(0,C/2);return{retryAfterInMs:q}}function getErrorMessage(e){if(isError(e)){return e.message}else{let m;try{if(typeof e==="object"&&e){m=JSON.stringify(e)}else{m=String(e)}}catch(e){m="[unable to stringify input]"}return`Unknown error ${m}`}}function isDefined(e){return typeof e!=="undefined"&&e!==null}function typeGuards_isObjectWithProperties(e,m){if(!isDefined(e)||typeof e!=="object"){return false}for(const h of m){if(!objectHasProperty(e,h)){return false}}return true}function objectHasProperty(e,m){return isDefined(e)&&typeof e==="object"&&m in e}function esm_calculateRetryDelay(e,m){return calculateRetryDelay(e,m)}function esm_computeSha256Hash(e,m){return tspRuntime.computeSha256Hash(e,m)}function esm_computeSha256Hmac(e,m,h){return tspRuntime.computeSha256Hmac(e,m,h)}function esm_getRandomIntegerInclusive(e,m){return tspRuntime.getRandomIntegerInclusive(e,m)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function randomUUID(){return tspRuntime.randomUUID()}const zl=Ml;const Hl=kl;const Vl=Nl;const Wl=Ll;const Kl=Ll;const Yl=Ul;const Ql=Fl;const Jl=$l;function esm_uint8ArrayToString(e,m){return uint8ArrayToString(e,m)}function esm_stringToUint8Array(e,m){return stringToUint8Array(e,m)}const Xl=credentialLogger("IdentityUtils");const Zl="1.0";function ensureValidMsalToken(e,m,h){const error=m=>{Xl.getToken.info(m);return new AuthenticationRequiredError({scopes:Array.isArray(e)?e:[e],getTokenOptions:h,message:m})};if(!m){throw error("No response")}if(!m.expiresOn){throw error(`Response had no "expiresOn" property.`)}if(!m.accessToken){throw error(`Response had no "accessToken" property.`)}}function getAuthorityHost(e){let m=e?.authorityHost;if(!m&&Kl){m=process.env.AZURE_AUTHORITY_HOST}return m??pr}function getAuthority(e,m){if(!m){m=pr}if(new RegExp(`${e}/?$`).test(m)){return m}if(m.endsWith("/")){return m+e}else{return`${m}/${e}`}}function getKnownAuthorities(e,m,h){if(e==="adfs"&&m||h){return[m]}return[]}const defaultLoggerCallback=(e,m=(Wl?"Node":"Browser"))=>(h,C,q)=>{if(q){return}switch(h){case fs.Error:e.info(`MSAL ${m} V2 error: ${C}`);return;case fs.Info:e.info(`MSAL ${m} V2 info message: ${C}`);return;case fs.Verbose:e.info(`MSAL ${m} V2 verbose message: ${C}`);return;case fs.Warning:e.info(`MSAL ${m} V2 warning: ${C}`);return}};function getMSALLogLevel(e){switch(e){case"error":return fs.Error;case"info":return fs.Info;case"verbose":return fs.Verbose;case"warning":return fs.Warning;default:return fs.Info}}function utils_randomUUID(){return coreRandomUUID()}function handleMsalError(e,m,h){if(m.name==="AuthError"||m.name==="ClientAuthError"||m.name==="BrowserAuthError"){const h=m;switch(h.errorCode){case"endpoints_resolution_error":Xl.info(logging_formatError(e,m.message));return new errors_CredentialUnavailableError(m.message);case"device_code_polling_cancelled":return new AbortError("The authentication has been aborted by the caller.");case"consent_required":case"interaction_required":case"login_required":Xl.info(logging_formatError(e,`Authentication returned errorCode ${h.errorCode}`));break;default:Xl.info(logging_formatError(e,`Failed to acquire token: ${m.message}`));break}}if(m.name==="ClientConfigurationError"||m.name==="BrowserConfigurationAuthError"||m.name==="AbortError"||m.name==="AuthenticationError"){return m}if(m.name==="NativeAuthError"){Xl.info(logging_formatError(e,`Error from the native broker: ${m.message} with status code: ${m.statusCode}`));return m}return new AuthenticationRequiredError({scopes:e,getTokenOptions:h,message:m.message})}function publicToMsal(e){return{localAccountId:e.homeAccountId,environment:e.authority,username:e.username,homeAccountId:e.homeAccountId,tenantId:e.tenantId}}function msalToPublic(e,m){const h={authority:m.environment??mr,homeAccountId:m.homeAccountId,tenantId:m.tenantId||ur,username:m.username,clientId:e,version:Zl};return h}function serializeAuthenticationRecord(e){return JSON.stringify(e)}function deserializeAuthenticationRecord(e){const m=JSON.parse(e);if(m.version&&m.version!==Zl){throw Error("Unsupported AuthenticationRecord version")}return m}class SerializerImpl{modelMappers;isXML;constructor(e={},m=false){this.modelMappers=e;this.isXML=m}validateConstraints(e,m,h){const failValidation=(e,C)=>{throw new Error(`"${h}" with value "${m}" should satisfy the constraint "${e}": ${C}.`)};if(e.constraints&&m!==undefined&&m!==null){const{ExclusiveMaximum:h,ExclusiveMinimum:C,InclusiveMaximum:q,InclusiveMinimum:V,MaxItems:le,MaxLength:fe,MinItems:he,MinLength:ye,MultipleOf:ve,Pattern:Le,UniqueItems:Ue}=e.constraints;if(h!==undefined&&m>=h){failValidation("ExclusiveMaximum",h)}if(C!==undefined&&m<=C){failValidation("ExclusiveMinimum",C)}if(q!==undefined&&m>q){failValidation("InclusiveMaximum",q)}if(V!==undefined&&m<V){failValidation("InclusiveMinimum",V)}if(le!==undefined&&m.length>le){failValidation("MaxItems",le)}if(fe!==undefined&&m.length>fe){failValidation("MaxLength",fe)}if(he!==undefined&&m.length<he){failValidation("MinItems",he)}if(ye!==undefined&&m.length<ye){failValidation("MinLength",ye)}if(ve!==undefined&&m%ve!==0){failValidation("MultipleOf",ve)}if(Le){const e=typeof Le==="string"?new RegExp(Le):Le;if(typeof m!=="string"||m.match(e)===null){failValidation("Pattern",Le)}}if(Ue&&m.some(((e,m,h)=>h.indexOf(e)!==m))){failValidation("UniqueItems",Ue)}}}serialize(e,m,h,C={xml:{}}){const q={xml:{rootName:C.xml.rootName??"",includeRoot:C.xml.includeRoot??false,xmlCharKey:C.xml.xmlCharKey??XML_CHARKEY}};let V={};const le=e.type.name;if(!h){h=e.serializedName}if(le.match(/^Sequence$/i)!==null){V=[]}if(e.isConstant){m=e.defaultValue}const{required:fe,nullable:he}=e;if(fe&&he&&m===undefined){throw new Error(`${h} cannot be undefined.`)}if(fe&&!he&&(m===undefined||m===null)){throw new Error(`${h} cannot be null or undefined.`)}if(!fe&&he===false&&m===null){throw new Error(`${h} cannot be null.`)}if(m===undefined||m===null){V=m}else{if(le.match(/^any$/i)!==null){V=m}else if(le.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){V=serializeBasicTypes(le,h,m)}else if(le.match(/^Enum$/i)!==null){const C=e;V=serializeEnumType(h,C.type.allowedValues,m)}else if(le.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){V=serializeDateTypes(le,m,h)}else if(le.match(/^ByteArray$/i)!==null){V=serializeByteArrayType(h,m)}else if(le.match(/^Base64Url$/i)!==null){V=serializeBase64UrlType(h,m)}else if(le.match(/^Sequence$/i)!==null){V=serializeSequenceType(this,e,m,h,Boolean(this.isXML),q)}else if(le.match(/^Dictionary$/i)!==null){V=serializeDictionaryType(this,e,m,h,Boolean(this.isXML),q)}else if(le.match(/^Composite$/i)!==null){V=serializeCompositeType(this,e,m,h,Boolean(this.isXML),q)}}return V}deserialize(e,m,h,C={xml:{}}){const q={xml:{rootName:C.xml.rootName??"",includeRoot:C.xml.includeRoot??false,xmlCharKey:C.xml.xmlCharKey??XML_CHARKEY},ignoreUnknownProperties:C.ignoreUnknownProperties??false};if(m===undefined||m===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){m=[]}if(e.defaultValue!==undefined){m=e.defaultValue}return m}let V;const le=e.type.name;if(!h){h=e.serializedName}if(le.match(/^Composite$/i)!==null){V=deserializeCompositeType(this,e,m,h,q)}else{if(this.isXML){const e=q.xml.xmlCharKey;if(m[XML_ATTRKEY]!==undefined&&m[e]!==undefined){m=m[e]}}if(le.match(/^Number$/i)!==null){V=parseFloat(m);if(isNaN(V)){V=m}}else if(le.match(/^Boolean$/i)!==null){if(m==="true"){V=true}else if(m==="false"){V=false}else{V=m}}else if(le.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){V=m}else if(le.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){V=new Date(m)}else if(le.match(/^UnixTime$/i)!==null){V=unixTimeToDate(m)}else if(le.match(/^ByteArray$/i)!==null){V=base64.decodeString(m)}else if(le.match(/^Base64Url$/i)!==null){V=base64UrlToByteArray(m)}else if(le.match(/^Sequence$/i)!==null){V=deserializeSequenceType(this,e,m,h,q)}else if(le.match(/^Dictionary$/i)!==null){V=deserializeDictionaryType(this,e,m,h,q)}}if(e.isConstant){V=e.defaultValue}return V}}function createSerializer(e={},m=false){return new SerializerImpl(e,m)}function trimEnd(e,m){let h=e.length;while(h-1>=0&&e[h-1]===m){--h}return e.substr(0,h)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const m=base64.encodeByteArray(e);return trimEnd(m,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return base64.decodeString(e)}function splitSerializeName(e){const m=[];let h="";if(e){const C=e.split(".");for(const e of C){if(e.charAt(e.length-1)==="\\"){h+=e.substr(0,e.length-1)+"."}else{h+=e;m.push(h);h=""}}}return m}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,m,h){if(h!==null&&h!==undefined){if(e.match(/^Number$/i)!==null){if(typeof h!=="number"){throw new Error(`${m} with value ${h} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof h.valueOf()!=="string"){throw new Error(`${m} with value "${h}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof h.valueOf()==="string"&&isValidUuid(h))){throw new Error(`${m} with value "${h}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof h!=="boolean"){throw new Error(`${m} with value ${h} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof h;if(e!=="string"&&typeof h.pipe!=="function"&&typeof h.tee!=="function"&&!(h instanceof ArrayBuffer)&&!ArrayBuffer.isView(h)&&!((typeof Blob==="function"||typeof Blob==="object")&&h instanceof Blob)&&e!=="function"){throw new Error(`${m} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return h}function serializeEnumType(e,m,h){if(!m){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const C=m.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===h.toLowerCase()}return e===h}));if(!C){throw new Error(`${h} is not a valid value for ${e}. The valid values are: ${JSON.stringify(m)}.`)}return h}function serializeByteArrayType(e,m){if(m!==undefined&&m!==null){if(!(m instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}m=base64.encodeByteArray(m)}return m}function serializeBase64UrlType(e,m){if(m!==undefined&&m!==null){if(!(m instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}m=bufferToBase64Url(m)}return m}function serializeDateTypes(e,m,h){if(m!==undefined&&m!==null){if(e.match(/^Date$/i)!==null){if(!(m instanceof Date||typeof m.valueOf()==="string"&&!isNaN(Date.parse(m)))){throw new Error(`${h} must be an instanceof Date or a string in ISO8601 format.`)}m=m instanceof Date?m.toISOString().substring(0,10):new Date(m).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(m instanceof Date||typeof m.valueOf()==="string"&&!isNaN(Date.parse(m)))){throw new Error(`${h} must be an instanceof Date or a string in ISO8601 format.`)}m=m instanceof Date?m.toISOString():new Date(m).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(m instanceof Date||typeof m.valueOf()==="string"&&!isNaN(Date.parse(m)))){throw new Error(`${h} must be an instanceof Date or a string in RFC-1123 format.`)}m=m instanceof Date?m.toUTCString():new Date(m).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(m instanceof Date||typeof m.valueOf()==="string"&&!isNaN(Date.parse(m)))){throw new Error(`${h} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}m=dateToUnixTime(m)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(m)){throw new Error(`${h} must be a string in ISO 8601 format. Instead was "${m}".`)}}}return m}function serializeSequenceType(e,m,h,C,q,V){if(!Array.isArray(h)){throw new Error(`${C} must be of type Array.`)}let le=m.type.element;if(!le||typeof le!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${C}.`)}if(le.type.name==="Composite"&&le.type.className){le=e.modelMappers[le.type.className]??le}const fe=[];for(let m=0;m<h.length;m++){const he=e.serialize(le,h[m],C,V);if(q&&le.xmlNamespace){const e=le.xmlNamespacePrefix?`xmlns:${le.xmlNamespacePrefix}`:"xmlns";if(le.type.name==="Composite"){fe[m]={...he};fe[m][XML_ATTRKEY]={[e]:le.xmlNamespace}}else{fe[m]={};fe[m][V.xml.xmlCharKey]=he;fe[m][XML_ATTRKEY]={[e]:le.xmlNamespace}}}else{fe[m]=he}}return fe}function serializeDictionaryType(e,m,h,C,q,V){if(typeof h!=="object"){throw new Error(`${C} must be of type object.`)}const le=m.type.value;if(!le||typeof le!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${C}.`)}const fe={};for(const m of Object.keys(h)){const he=e.serialize(le,h[m],C,V);fe[m]=getXmlObjectValue(le,he,q,V)}if(q&&m.xmlNamespace){const e=m.xmlNamespacePrefix?`xmlns:${m.xmlNamespacePrefix}`:"xmlns";const h=fe;h[XML_ATTRKEY]={[e]:m.xmlNamespace};return h}return fe}function resolveAdditionalProperties(e,m,h){const C=m.type.additionalProperties;if(!C&&m.type.className){const C=resolveReferencedMapper(e,m,h);return C?.type.additionalProperties}return C}function resolveReferencedMapper(e,m,h){const C=m.type.className;if(!C){throw new Error(`Class name for model "${h}" is not provided in the mapper "${JSON.stringify(m,undefined,2)}".`)}return e.modelMappers[C]}function resolveModelProperties(e,m,h){let C=m.type.modelProperties;if(!C){const q=resolveReferencedMapper(e,m,h);if(!q){throw new Error(`mapper() cannot be null or undefined for model "${m.type.className}".`)}C=q?.type.modelProperties;if(!C){throw new Error(`modelProperties cannot be null or undefined in the `+`mapper "${JSON.stringify(q)}" of type "${m.type.className}" for object "${h}".`)}}return C}function serializeCompositeType(e,m,h,C,q,V){if(getPolymorphicDiscriminatorRecursively(e,m)){m=getPolymorphicMapper(e,m,h,"clientName")}if(h!==undefined&&h!==null){const le={};const fe=resolveModelProperties(e,m,C);for(const he of Object.keys(fe)){const ye=fe[he];if(ye.readOnly){continue}let ve;let Le=le;if(e.isXML){if(ye.xmlIsWrapped){ve=ye.xmlName}else{ve=ye.xmlElementName||ye.xmlName}}else{const e=splitSerializeName(ye.serializedName);ve=e.pop();for(const m of e){const e=Le[m];if((e===undefined||e===null)&&(h[he]!==undefined&&h[he]!==null||ye.defaultValue!==undefined)){Le[m]={}}Le=Le[m]}}if(Le!==undefined&&Le!==null){if(q&&m.xmlNamespace){const e=m.xmlNamespacePrefix?`xmlns:${m.xmlNamespacePrefix}`:"xmlns";Le[XML_ATTRKEY]={...Le[XML_ATTRKEY],[e]:m.xmlNamespace}}const le=ye.serializedName!==""?C+"."+ye.serializedName:C;let fe=h[he];const Ue=getPolymorphicDiscriminatorRecursively(e,m);if(Ue&&Ue.clientName===he&&(fe===undefined||fe===null)){fe=m.serializedName}const qe=e.serialize(ye,fe,le,V);if(qe!==undefined&&ve!==undefined&&ve!==null){const e=getXmlObjectValue(ye,qe,q,V);if(q&&ye.xmlIsAttribute){Le[XML_ATTRKEY]=Le[XML_ATTRKEY]||{};Le[XML_ATTRKEY][ve]=qe}else if(q&&ye.xmlIsWrapped){Le[ve]={[ye.xmlElementName]:e}}else{Le[ve]=e}}}}const he=resolveAdditionalProperties(e,m,C);if(he){const m=Object.keys(fe);for(const q in h){const fe=m.every((e=>e!==q));if(fe){le[q]=e.serialize(he,h[q],C+'["'+q+'"]',V)}}}return le}return h}function getXmlObjectValue(e,m,h,C){if(!h||!e.xmlNamespace){return m}const q=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const V={[q]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(m[XML_ATTRKEY]){return m}else{const e={...m};e[XML_ATTRKEY]=V;return e}}const le={};le[C.xml.xmlCharKey]=m;le[XML_ATTRKEY]=V;return le}function isSpecialXmlProperty(e,m){return[XML_ATTRKEY,m.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,m,h,C,q){const V=q.xml.xmlCharKey??XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,m)){m=getPolymorphicMapper(e,m,h,"serializedName")}const le=resolveModelProperties(e,m,C);let fe={};const he=[];for(const ye of Object.keys(le)){const ve=le[ye];const Le=splitSerializeName(le[ye].serializedName);he.push(Le[0]);const{serializedName:Ue,xmlName:qe,xmlElementName:ze}=ve;let He=C;if(Ue!==""&&Ue!==undefined){He=C+"."+Ue}const We=ve.headerCollectionPrefix;if(We){const m={};for(const C of Object.keys(h)){if(C.startsWith(We)){m[C.substring(We.length)]=e.deserialize(ve.type.value,h[C],He,q)}he.push(C)}fe[ye]=m}else if(e.isXML){if(ve.xmlIsAttribute&&h[XML_ATTRKEY]){fe[ye]=e.deserialize(ve,h[XML_ATTRKEY][qe],He,q)}else if(ve.xmlIsMsText){if(h[V]!==undefined){fe[ye]=h[V]}else if(typeof h==="string"){fe[ye]=h}}else{const m=ze||qe||Ue;if(ve.xmlIsWrapped){const m=h[qe];const C=m?.[ze]??[];fe[ye]=e.deserialize(ve,C,He,q);he.push(qe)}else{const C=h[m];fe[ye]=e.deserialize(ve,C,He,q);he.push(m)}}}else{let C;let V=h;let he=0;for(const e of Le){if(!V)break;he++;V=V[e]}if(V===null&&he<Le.length){V=undefined}C=V;const Ue=m.type.polymorphicDiscriminator;if(Ue&&ye===Ue.clientName&&(C===undefined||C===null)){C=m.serializedName}let qe;if(Array.isArray(h[ye])&&le[ye].serializedName===""){C=h[ye];const m=e.deserialize(ve,C,He,q);for(const[e,h]of Object.entries(fe)){if(!Object.prototype.hasOwnProperty.call(m,e)){m[e]=h}}fe=m}else if(C!==undefined||ve.defaultValue!==undefined){qe=e.deserialize(ve,C,He,q);fe[ye]=qe}}}const ye=m.type.additionalProperties;if(ye){const isAdditionalProperty=e=>{for(const m in le){const h=splitSerializeName(le[m].serializedName);if(h[0]===e){return false}}return true};for(const m in h){if(isAdditionalProperty(m)){fe[m]=e.deserialize(ye,h[m],C+'["'+m+'"]',q)}}}else if(h&&!q.ignoreUnknownProperties){for(const e of Object.keys(h)){if(fe[e]===undefined&&!he.includes(e)&&!isSpecialXmlProperty(e,q)){fe[e]=h[e]}}}return fe}function deserializeDictionaryType(e,m,h,C,q){const V=m.type.value;if(!V||typeof V!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${C}`)}if(h){const m={};for(const le of Object.keys(h)){m[le]=e.deserialize(V,h[le],C,q)}return m}return h}function deserializeSequenceType(e,m,h,C,q){let V=m.type.element;if(!V||typeof V!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${C}`)}if(h){if(!Array.isArray(h)){h=[h]}if(V.type.name==="Composite"&&V.type.className){V=e.modelMappers[V.type.className]??V}const m=[];for(let le=0;le<h.length;le++){m[le]=e.deserialize(V,h[le],`${C}[${le}]`,q)}return m}return h}function getIndexDiscriminator(e,m,h){const C=[h];while(C.length){const h=C.shift();const q=m===h?m:h+"."+m;if(Object.prototype.hasOwnProperty.call(e,q)){return e[q]}else{for(const[m,q]of Object.entries(e)){if(m.startsWith(h+".")&&q.type.uberParent===h&&q.type.className){C.push(q.type.className)}}}}return undefined}function getPolymorphicMapper(e,m,h,C){const q=getPolymorphicDiscriminatorRecursively(e,m);if(q){let V=q[C];if(V){if(C==="serializedName"){V=V.replace(/\\/gi,"")}const q=h[V];const le=m.type.uberParent??m.type.className;if(typeof q==="string"&&le){const h=getIndexDiscriminator(e.modelMappers.discriminators,q,le);if(h){m=h}}}}return m}function getPolymorphicDiscriminatorRecursively(e,m){return m.type.polymorphicDiscriminator||getPolymorphicDiscriminatorSafely(e,m.type.uberParent)||getPolymorphicDiscriminatorSafely(e,m.type.className)}function getPolymorphicDiscriminatorSafely(e,m){return m&&e.modelMappers[m]&&e.modelMappers[m].type.polymorphicDiscriminator}const eu={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"};class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const m of e.values()){yield[m.name,m.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const m of Object.keys(e)){this.set(m,e[m])}}}set(e,m){this._headersMap.set(normalizeName(e),{name:e,value:String(m).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const m={};if(e.preserveCase){for(const e of this._headersMap.values()){m[e.name]=e.value}}else{for(const[e,h]of this._headersMap){m[e]=h.value}}return m}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function uuidUtils_randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||uuidUtils_randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const tu=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,m={}){if(m.phase&&m.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(m.phase&&!tu.has(m.phase)){throw new Error(`Invalid phase name: ${m.phase}`)}if(m.afterPhase&&!tu.has(m.afterPhase)){throw new Error(`Invalid afterPhase name: ${m.afterPhase}`)}this._policies.push({policy:e,options:m});this._orderedPolicies=undefined}removePolicy(e){const m=[];this._policies=this._policies.filter((h=>{if(e.name&&h.policy.name===e.name||e.phase&&h.options.phase===e.phase){m.push(h.policy);return false}else{return true}}));this._orderedPolicies=undefined;return m}sendRequest(e,m){const h=this.getOrderedPolicies();const C=h.reduceRight(((e,m)=>h=>m.sendRequest(h,e)),(m=>e.sendRequest(m)));return C(m)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const m=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const h=createPhase("Serialize");const C=createPhase("None");const q=createPhase("Deserialize");const V=createPhase("Retry");const le=createPhase("Sign");const fe=[h,C,q,V,le];function getPhase(e){if(e==="Retry"){return V}else if(e==="Serialize"){return h}else if(e==="Deserialize"){return q}else if(e==="Sign"){return le}else{return C}}for(const e of this._policies){const h=e.policy;const C=e.options;const q=h.name;if(m.has(q)){throw new Error("Duplicate policy names not allowed in pipeline")}const V={policy:h,dependsOn:new Set,dependants:new Set};if(C.afterPhase){V.afterPhase=getPhase(C.afterPhase);V.afterPhase.hasAfterPolicies=true}m.set(q,V);const le=getPhase(C.phase);le.policies.add(V)}for(const e of this._policies){const{policy:h,options:C}=e;const q=h.name;const V=m.get(q);if(!V){throw new Error(`Missing node for policy ${q}`)}if(C.afterPolicies){for(const e of C.afterPolicies){const h=m.get(e);if(h){V.dependsOn.add(h);h.dependants.add(V)}}}if(C.beforePolicies){for(const e of C.beforePolicies){const h=m.get(e);if(h){h.dependsOn.add(V);V.dependants.add(h)}}}}function walkPhase(h){h.hasRun=true;for(const C of h.policies){if(C.afterPhase&&(!C.afterPhase.hasRun||C.afterPhase.policies.size)){continue}if(C.dependsOn.size===0){e.push(C.policy);for(const e of C.dependants){e.dependsOn.delete(C)}m.delete(C.policy.name);h.policies.delete(C)}}}function walkPhases(){for(const e of fe){walkPhase(e);if(e.policies.size>0&&e!==C){if(!C.hasRun){walkPhase(C)}return}if(e.hasAfterPolicies){walkPhase(C)}}}let he=0;while(m.size>0){he++;const m=e.length;walkPhases();if(e.length<=m&&he>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}const nu=Mr.inspect.custom;const ru=new Sanitizer;class RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,m={}){super(e);this.name="RestError";this.code=m.code;this.statusCode=m.statusCode;Object.defineProperty(this,"request",{value:m.request,enumerable:false});Object.defineProperty(this,"response",{value:m.response,enumerable:false});const h=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,nu,{value:()=>`RestError: ${this.message} \n ${ru.sanitize({...this,request:{...this.request,agent:h},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,RestError.prototype)}}function isRestError(e){if(e instanceof RestError){return true}return isError(e)&&e.name==="RestError"}var ou=__nccwpck_require__(7067);var iu=__nccwpck_require__(4708);const su=m(import.meta.url)("node:zlib");var au=__nccwpck_require__(7075);const cu=createClientLogger("ts-http-runtime");const lu={};function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((m=>{const handler=()=>{m();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends au.Transform{loadedBytes=0;progressCallback;_transform(e,m,h){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});h()}catch(e){h(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const m=new AbortController;let h;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError_AbortError("The operation was aborted. Request has already been canceled.")}h=e=>{if(e.type==="abort"){m.abort()}};e.abortSignal.addEventListener("abort",h)}let C;if(e.timeout>0){C=setTimeout((()=>{const h=new Sanitizer;cu.info(`request to '${h.sanitizeUrl(e.url)}' timed out. canceling...`);m.abort()}),e.timeout)}const q=e.headers.get("Accept-Encoding");const V=q?.includes("gzip")||q?.includes("deflate");let le=typeof e.body==="function"?e.body():e.body;if(le&&!e.headers.has("Content-Length")){const m=getBodyLength(le);if(m!==null){e.headers.set("Content-Length",m)}}let fe;try{if(le&&e.onUploadProgress){const m=e.onUploadProgress;const h=new ReportTransform(m);h.on("error",(e=>{cu.error("Error in upload progress",e)}));if(isReadableStream(le)){le.pipe(h)}else{h.end(le)}le=h}const h=await this.makeRequest(e,m,le);if(C!==undefined){clearTimeout(C)}const q=getResponseHeaders(h);const he=h.statusCode??0;const ye={status:he,headers:q,request:e};if(e.method==="HEAD"){h.resume();return ye}fe=V?getDecodedResponseStream(h,q):h;const ve=e.onDownloadProgress;if(ve){const e=new ReportTransform(ve);e.on("error",(e=>{cu.error("Error in download progress",e)}));fe.pipe(e);fe=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(ye.status)){ye.readableStreamBody=fe}else{ye.bodyAsText=await streamToText(fe)}return ye}finally{if(e.abortSignal&&h){let m=Promise.resolve();if(isReadableStream(le)){m=isStreamComplete(le)}let C=Promise.resolve();if(isReadableStream(fe)){C=isStreamComplete(fe)}Promise.all([m,C]).then((()=>{if(h){e.abortSignal?.removeEventListener("abort",h)}})).catch((e=>{cu.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,m,h){const C=new URL(e.url);const q=C.protocol!=="https:";if(q&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const V=e.agent??this.getOrCreateAgent(e,q);const le={agent:V,hostname:C.hostname,path:`${C.pathname}${C.search}`,port:C.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((C,V)=>{const fe=q?ou.request(le,C):iu.request(le,C);fe.once("error",(m=>{V(new RestError(m.message,{code:m.code??RestError.REQUEST_SEND_ERROR,request:e}))}));m.signal.addEventListener("abort",(()=>{const e=new AbortError_AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");fe.destroy(e);V(e)}));if(h&&isReadableStream(h)){h.pipe(fe)}else if(h){if(typeof h==="string"||Buffer.isBuffer(h)){fe.end(h)}else if(isArrayBuffer(h)){fe.end(ArrayBuffer.isView(h)?Buffer.from(h.buffer):Buffer.from(h))}else{cu.error("Unrecognized body type",h);V(new RestError("Unrecognized body type"))}}else{fe.end()}}))}getOrCreateAgent(e,m){const h=e.disableKeepAlive;if(m){if(h){return ou.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new ou.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(h&&!e.tlsSettings){return iu.globalAgent}const m=e.tlsSettings??lu;let C=this.cachedHttpsAgents.get(m);if(C&&C.options.keepAlive===!h){return C}cu.info("No cached TLS Agent exist, creating a new Agent");C=new iu.Agent({keepAlive:!h,...m});this.cachedHttpsAgents.set(m,C);return C}}}function getResponseHeaders(e){const m=httpHeaders_createHttpHeaders();for(const h of Object.keys(e.headers)){const C=e.headers[h];if(Array.isArray(C)){if(C.length>0){m.set(h,C[0])}}else if(C){m.set(h,C)}}return m}function getDecodedResponseStream(e,m){const h=m.get("Content-Encoding");if(h==="gzip"){const m=su.createGunzip();e.pipe(m);return m}else if(h==="deflate"){const m=su.createInflate();e.pipe(m);return m}return e}function streamToText(e){return new Promise(((m,h)=>{const C=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){C.push(e)}else{C.push(Buffer.from(e))}}));e.on("end",(()=>{m(Buffer.concat(C).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){h(e)}else{h(new RestError(`Error reading response as text: ${e.message}`,{code:RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const uu="logPolicy";function logPolicy(e={}){const m=e.logger??cu.info;const h=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:uu,async sendRequest(e,C){if(!m.enabled){return C(e)}m(`Request: ${h.sanitize(e)}`);const q=await C(e);m(`Response status code: ${q.status}`);m(`Headers: ${h.sanitize(q.headers)}`);return q}}}const du="redirectPolicy";const pu=["GET","HEAD"];function redirectPolicy(e={}){const{maxRetries:m=20}=e;return{name:du,async sendRequest(e,h){const C=await h(e);return handleRedirect(h,C,m)}}}async function handleRedirect(e,m,h,C=0){const{request:q,status:V,headers:le}=m;const fe=le.get("location");if(fe&&(V===300||V===301&&pu.includes(q.method)||V===302&&pu.includes(q.method)||V===303&&q.method==="POST"||V===307)&&C<h){const m=new URL(fe,q.url);q.url=m.toString();if(V===303){q.method="GET";q.headers.delete("Content-Length");delete q.body}q.headers.delete("Authorization");const le=await e(q);return handleRedirect(e,le,h,C+1)}return m}function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if($r&&$r.versions){const m=`${Dr.type()} ${Dr.release()}; ${Dr.arch()}`;const h=$r.versions;if(h.bun){e.set("Bun",`${h.bun} (${m})`)}else if(h.deno){e.set("Deno",`${h.deno} (${m})`)}else if(h.node){e.set("Node",`${h.node} (${m})`)}}}const mu="0.3.3";const fu=3;function getUserAgentString(e){const m=[];for(const[h,C]of e){const e=C?`${h}/${C}`:h;m.push(e)}return m.join(" ")}function getUserAgentHeaderName(){return getHeaderName()}async function getUserAgentValue(e){const m=new Map;m.set("ts-http-runtime",mu);await setPlatformSpecificData(m);const h=getUserAgentString(m);const C=e?`${e} ${h}`:h;return C}const hu=getUserAgentHeaderName();const gu="userAgentPolicy";function userAgentPolicy(e={}){const m=getUserAgentValue(e.userAgentPrefix);return{name:gu,async sendRequest(e,h){if(!e.headers.has(hu)){e.headers.set(hu,await m)}return h(e)}}}const yu="decompressResponsePolicy";function decompressResponsePolicy(){return{name:yu,async sendRequest(e,m){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return m(e)}}}const Su="The operation was aborted.";function helpers_delay(e,m,h){return new Promise(((C,q)=>{let V=undefined;let le=undefined;const rejectOnAbort=()=>q(new AbortError_AbortError(h?.abortErrorMsg?h?.abortErrorMsg:Su));const removeListeners=()=>{if(h?.abortSignal&&le){h.abortSignal.removeEventListener("abort",le)}};le=()=>{if(V){clearTimeout(V)}removeListeners();return rejectOnAbort()};if(h?.abortSignal&&h.abortSignal.aborted){return rejectOnAbort()}V=setTimeout((()=>{removeListeners();C(m)}),e);if(h?.abortSignal){h.abortSignal.addEventListener("abort",le)}}))}function parseHeaderValueAsNumber(e,m){const h=e.headers.get(m);if(!h)return;const C=Number(h);if(Number.isNaN(C))return;return C}const Eu="Retry-After";const vu=["retry-after-ms","x-ms-retry-after-ms",Eu];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const m of vu){const h=parseHeaderValueAsNumber(e,m);if(h===0||h){const e=m===Eu?1e3:1;return h*e}}const m=e.headers.get(Eu);if(!m)return;const h=Date.parse(m);const C=h-Date.now();return Number.isFinite(C)?Math.max(0,C):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const m=getRetryAfterInMs(e);if(!Number.isFinite(m)){return{skipStrategy:true}}return{retryAfterInMs:m}}}}const Cu=1e3;const Iu=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const m=e.retryDelayInMs??Cu;const h=e.maxRetryDelayInMs??Iu;return{name:"exponentialRetryStrategy",retry({retryCount:C,response:q,responseError:V}){const le=isSystemError(V);const fe=le&&e.ignoreSystemErrors;const he=isExponentialRetryResponse(q);const ye=he&&e.ignoreHttpStatusCodes;const ve=q&&(isThrottlingRetryResponse(q)||!he);if(ve||ye||fe){return{skipStrategy:true}}if(V&&!le&&!he){return{errorToThrow:V}}return calculateRetryDelay(C,{retryDelayInMs:m,maxRetryDelayInMs:h})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const bu=createClientLogger("ts-http-runtime retryPolicy");const Au="retryPolicy";function retryPolicy_retryPolicy(e,m={maxRetries:fu}){const h=m.logger||bu;return{name:Au,async sendRequest(C,q){let V;let le;let fe=-1;e:while(true){fe+=1;V=undefined;le=undefined;try{h.info(`Retry ${fe}: Attempting to send request`,C.requestId);V=await q(C);h.info(`Retry ${fe}: Received a response from request`,C.requestId)}catch(e){h.error(`Retry ${fe}: Received an error from request`,C.requestId);le=e;if(!e||le.name!=="RestError"){throw e}V=le.response}if(C.abortSignal?.aborted){h.error(`Retry ${fe}: Request aborted.`);const e=new AbortError_AbortError;throw e}if(fe>=(m.maxRetries??fu)){h.info(`Retry ${fe}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(le){throw le}else if(V){return V}else{throw new Error("Maximum retries reached with no response or error to throw")}}h.info(`Retry ${fe}: Processing ${e.length} retry strategies.`);t:for(const m of e){const e=m.logger||h;e.info(`Retry ${fe}: Processing retry strategy ${m.name}.`);const q=m.retry({retryCount:fe,response:V,responseError:le});if(q.skipStrategy){e.info(`Retry ${fe}: Skipped.`);continue t}const{errorToThrow:he,retryAfterInMs:ye,redirectTo:ve}=q;if(he){e.error(`Retry ${fe}: Retry strategy ${m.name} throws error:`,he);throw he}if(ye||ye===0){e.info(`Retry ${fe}: Retry strategy ${m.name} retries after ${ye}`);await helpers_delay(ye,undefined,{abortSignal:C.abortSignal});continue e}if(ve){e.info(`Retry ${fe}: Retry strategy ${m.name} redirects to ${ve}`);C.url=ve;continue e}}if(le){h.info(`None of the retry strategies could work with the received error. Throwing it.`);throw le}if(V){h.info(`None of the retry strategies could work with the received response. Returning it.`);return V}}}}}const wu="defaultRetryPolicy";function defaultRetryPolicy(e={}){return{name:wu,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??fu}).sendRequest}}const Ru="formDataPolicy";function formDataToFormDataMap(e){const m={};for(const[h,C]of e.entries()){m[h]??=[];m[h].push(C)}return m}function formDataPolicy(){return{name:Ru,async sendRequest(e,m){if(Ll&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const m=e.headers.get("Content-Type");if(m&&m.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return m(e)}}}function wwwFormUrlEncode(e){const m=new URLSearchParams;for(const[h,C]of Object.entries(e)){if(Array.isArray(C)){for(const e of C){m.append(h,e.toString())}}else{m.append(h,C.toString())}}return m.toString()}async function prepareFormData(e,m){const h=m.headers.get("Content-Type");if(h&&!h.startsWith("multipart/form-data")){return}m.headers.set("Content-Type",h??"multipart/form-data");const C=[];for(const[m,h]of Object.entries(e)){for(const e of Array.isArray(h)?h:[h]){if(typeof e==="string"){C.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${m}"`}),body:stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${m}: ${e}. Value should be serialized to string first.`)}else{const h=e.name||"blob";const q=httpHeaders_createHttpHeaders();q.set("Content-Disposition",`form-data; name="${m}"; filename="${h}"`);q.set("Content-Type",e.type||"application/octet-stream");C.push({headers:q,body:e})}}}m.multipartBody={parts:C}}var Tu=__nccwpck_require__(1475);var Pu=__nccwpck_require__(4249);const xu="HTTPS_PROXY";const _u="HTTP_PROXY";const Ou="ALL_PROXY";const Du="NO_PROXY";const Mu="proxyPolicy";const $u=[];let Nu=false;const ku=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(xu);const m=getEnvironmentValue(Ou);const h=getEnvironmentValue(_u);return e||m||h}function isBypassed(e,m,h){if(m.length===0){return false}const C=new URL(e).hostname;if(h?.has(C)){return h.get(C)}let q=false;for(const e of m){if(e[0]==="."){if(C.endsWith(e)){q=true}else{if(C.length===e.length-1&&C===e.slice(1)){q=true}}}else{if(C===e){q=true}}}h?.set(C,q);return q}function loadNoProxy(){const e=getEnvironmentValue(Du);Nu=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const m=new URL(e);const h=m.protocol?m.protocol+"//":"";return{host:h+m.hostname,port:Number.parseInt(m.port||"80"),username:m.username,password:m.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let m;try{m=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}m.port=String(e.port);if(e.username){m.username=e.username}if(e.password){m.password=e.password}return m}function setProxyAgentOnRequest(e,m,h){if(e.agent){return}const C=new URL(e.url);const q=C.protocol!=="https:";if(e.tlsSettings){cu.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const V=e.headers.toJSON();if(q){if(!m.httpProxyAgent){m.httpProxyAgent=new Pu.HttpProxyAgent(h,{headers:V})}e.agent=m.httpProxyAgent}else{if(!m.httpsProxyAgent){m.httpsProxyAgent=new Tu.HttpsProxyAgent(h,{headers:V})}e.agent=m.httpsProxyAgent}}function proxyPolicy(e,m){if(!Nu){$u.push(...loadNoProxy())}const h=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const C={};return{name:Mu,async sendRequest(e,q){if(!e.proxySettings&&h&&!isBypassed(e.url,m?.customNoProxyList??$u,m?.customNoProxyList?undefined:ku)){setProxyAgentOnRequest(e,C,h)}else if(e.proxySettings){setProxyAgentOnRequest(e,C,getUrlFromProxySettings(e.proxySettings))}return q(e)}}}const Lu="agentPolicy";function agentPolicy(e){return{name:Lu,sendRequest:async(m,h)=>{if(!m.agent){m.agent=e}return h(m)}}}const Uu="tlsPolicy";function tlsPolicy(e){return{name:Uu,sendRequest:async(m,h)=>{if(!m.tlsSettings){m.tlsSettings=e}return h(m)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof e.stream==="function"}var Fu=__nccwpck_require__(2203);async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:m,value:h}=await e.read();if(m){return}yield h}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return Fu.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return Fu.Readable.from(Buffer.from(e))}else if(isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const m=e.map((e=>typeof e==="function"?e():e)).map(toStream);return Fu.Readable.from(async function*(){for(const e of m){for await(const m of e){yield m}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${uuidUtils_randomUUID()}`}function encodeHeaders(e){let m="";for(const[h,C]of e){m+=`${h}: ${C}\r\n`}return m}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let m=0;for(const h of e){const e=getLength(h);if(e===undefined){return undefined}else{m+=e}}return m}async function buildRequestBody(e,m,h){const C=[stringToUint8Array(`--${h}`,"utf-8"),...m.flatMap((e=>[stringToUint8Array("\r\n","utf-8"),stringToUint8Array(encodeHeaders(e.headers),"utf-8"),stringToUint8Array("\r\n","utf-8"),e.body,stringToUint8Array(`\r\n--${h}`,"utf-8")])),stringToUint8Array("--\r\n\r\n","utf-8")];const q=getTotalLength(C);if(q){e.headers.set("Content-Length",q)}e.body=await concat(C)}const qu="multipartPolicy";const ju=70;const Bu=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>ju){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!Bu.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy(){return{name:qu,async sendRequest(e,m){if(!e.multipartBody){return m(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let h=e.multipartBody.boundary;const C=e.headers.get("Content-Type")??"multipart/mixed";const q=C.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!q){throw new Error(`Got multipart request body, but content-type header was not multipart: ${C}`)}const[,V,le]=q;if(le&&h&&le!==h){throw new Error(`Multipart boundary was specified as ${le} in the header, but got ${h} in the request body`)}h??=le;if(h){assertValidBoundary(h)}else{h=generateBoundary()}e.headers.set("Content-Type",`${V}; boundary=${h}`);await buildRequestBody(e,e.multipartBody.parts,h);e.multipartBody=undefined;return m(e)}}}function createPipelineFromOptions(e){const m=pipeline_createEmptyPipeline();if(Ll){if(e.agent){m.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){m.addPolicy(tlsPolicy(e.tlsOptions))}m.addPolicy(proxyPolicy(e.proxyOptions));m.addPolicy(decompressResponsePolicy())}m.addPolicy(formDataPolicy(),{beforePolicies:[qu]});m.addPolicy(userAgentPolicy(e.userAgentOptions));m.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});m.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(Ll){m.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}m.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return m}const Gu="ApiVersionPolicy";function apiVersionPolicy(e){return{name:Gu,sendRequest:(m,h)=>{const C=new URL(m.url);if(!C.searchParams.get("api-version")&&e.apiVersion){m.url=`${m.url}${Array.from(C.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return h(m)}}}function isOAuth2TokenCredential(e){return"getOAuth2Token"in e}function isBearerTokenCredential(e){return"getBearerToken"in e}function isBasicCredential(e){return"username"in e&&"password"in e}function isApiKeyCredential(e){return"key"in e}let zu=false;function allowInsecureConnection(e,m){if(m.allowInsecureConnection&&e.allowInsecureConnection){const m=new URL(e.url);if(m.hostname==="localhost"||m.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";cu.warning(e);if(typeof process?.emitWarning==="function"&&!zu){zu=true;process.emitWarning(e)}}function ensureSecureConnection(e,m){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,m)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const Hu="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy(e){return{name:Hu,async sendRequest(m,h){ensureSecureConnection(m,e);const C=(m.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!C){return h(m)}if(C.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${C.apiKeyLocation}`)}m.headers.set(C.name,e.credential.key);return h(m)}}}const Vu="bearerAuthenticationPolicy";function basicAuthenticationPolicy(e){return{name:Vu,async sendRequest(m,h){ensureSecureConnection(m,e);const C=(m.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!C){return h(m)}const{username:q,password:V}=e.credential;const le=uint8ArrayToString(stringToUint8Array(`${q}:${V}`,"utf-8"),"base64");m.headers.set("Authorization",`Basic ${le}`);return h(m)}}}const Wu="bearerAuthenticationPolicy";function bearerAuthenticationPolicy(e){return{name:Wu,async sendRequest(m,h){ensureSecureConnection(m,e);const C=(m.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!C){return h(m)}const q=await e.credential.getBearerToken({abortSignal:m.abortSignal});m.headers.set("Authorization",`Bearer ${q}`);return h(m)}}}const Ku="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy(e){return{name:Ku,async sendRequest(m,h){ensureSecureConnection(m,e);const C=(m.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!C){return h(m)}const q=await e.credential.getOAuth2Token(C.flows,{abortSignal:m.abortSignal});m.headers.set("Authorization",`Bearer ${q}`);return h(m)}}}let Yu;function createDefaultPipeline(e={}){const m=createPipelineFromOptions(e);m.addPolicy(apiVersionPolicy(e));const{credential:h,authSchemes:C,allowInsecureConnection:q}=e;if(h){if(isApiKeyCredential(h)){m.addPolicy(apiKeyAuthenticationPolicy({authSchemes:C,credential:h,allowInsecureConnection:q}))}else if(isBasicCredential(h)){m.addPolicy(basicAuthenticationPolicy({authSchemes:C,credential:h,allowInsecureConnection:q}))}else if(isBearerTokenCredential(h)){m.addPolicy(bearerAuthenticationPolicy({authSchemes:C,credential:h,allowInsecureConnection:q}))}else if(isOAuth2TokenCredential(h)){m.addPolicy(oauth2AuthenticationPolicy({authSchemes:C,credential:h,allowInsecureConnection:q}))}}return m}function getCachedDefaultHttpsClient(){if(!Yu){Yu=defaultHttpClient_createDefaultHttpClient()}return Yu}function getHeaderValue(e,m){if(e.headers){const h=Object.keys(e.headers).find((e=>e.toLowerCase()===m.toLowerCase()));if(h){return e.headers[h]}}return undefined}function getPartContentType(e){const m=getHeaderValue(e,"content-type");if(m){return m}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:h}=e;if(h===null||h===undefined){return undefined}if(typeof h==="string"||typeof h==="number"||typeof h==="boolean"){return"text/plain; charset=UTF-8"}if(h instanceof Blob){return h.type||"application/octet-stream"}if(isBinaryBody(h)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const m=getHeaderValue(e,"content-disposition");if(m){return m}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const h=e.dispositionType??"form-data";let C=h;if(e.name){C+=`; name=${escapeDispositionField(e.name)}`}let q=undefined;if(e.filename){q=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const m=e.body.name;if(m!==""){q=m}}if(q){C+=`; filename=${escapeDispositionField(q)}`}return C}function normalizeBody(e,m){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(m&&/application\/(.+\+)?json(;.+)?/i.test(String(m))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${m}`)}function buildBodyPart(e){const m=getPartContentType(e);const h=getContentDisposition(e);const C=httpHeaders_createHttpHeaders(e.headers??{});if(m){C.set("content-type",m)}if(h){C.set("content-disposition",h)}const q=normalizeBody(e.body,m);return{headers:C,body:q}}function buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest(e,m,h,C={},q){const V=q??getCachedDefaultHttpsClient();const le=buildPipelineRequest(e,m,C);try{const e=await h.sendRequest(V,le);const m=e.headers.toJSON();const q=e.readableStreamBody??e.browserStreamBody;const fe=C.responseAsStream||q!==undefined?undefined:getResponseBody(e);const he=q??fe;if(C?.onResponse){C.onResponse({...e,request:le,rawHeaders:m,parsedBody:fe})}return{request:le,headers:m,status:`${e.status}`,body:he}}catch(e){if(isRestError(e)&&e.response&&C.onResponse){const{response:m}=e;const h=m.headers.toJSON();C?.onResponse({...m,request:le,rawHeaders:h},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(e===undefined){return undefined}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,m,h={}){const C=getRequestContentType(h);const{body:q,multipartBody:V}=getRequestBody(h.body,C);const le=httpHeaders_createHttpHeaders({...h.headers?h.headers:{},accept:h.accept??h.headers?.accept??"application/json",...C&&{"content-type":C}});return pipelineRequest_createPipelineRequest({url:m,method:e,body:q,multipartBody:V,headers:le,allowInsecureConnection:h.allowInsecureConnection,abortSignal:h.abortSignal,onUploadProgress:h.onUploadProgress,onDownloadProgress:h.onDownloadProgress,timeout:h.timeout,enableBrowserStreams:true,streamResponseStatusCodes:h.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,m=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(typeGuards_isReadableStream(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const h=m.split(";")[0];switch(h){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const m=e.headers.get("content-type")??"";const h=m.split(";")[0];const C=e.bodyAsText??"";if(h==="text/plain"){return String(C)}try{return C?JSON.parse(C):undefined}catch(m){if(h==="application/json"){throw createParseError(e,m)}return String(C)}}function createParseError(e,m){const h=`Error "${m}" occurred while parsing the response body - ${e.bodyAsText}.`;const C=m.code??RestError.PARSE_ERROR;return new RestError(h,{code:C,statusCode:e.status,request:e.request,response:e})}function isQueryParameterWithOptions(e){const m=e.value;return m!==undefined&&m.toString!==undefined&&typeof m.toString==="function"}function buildRequestUrl(e,m,h,C={}){if(m.startsWith("https://")||m.startsWith("http://")){return m}e=buildBaseUrl(e,C);m=buildRoutePath(m,h,C);const q=appendQueryParams(`${e}/${m}`,C);const V=new URL(q);return V.toString().replace(/([^:]\/)\/+/g,"$1")}function getQueryParamValue(e,m,h,C){let q;if(h==="pipeDelimited"){q="|"}else if(h==="spaceDelimited"){q="%20"}else{q=","}let V;if(Array.isArray(C)){V=C}else if(typeof C==="object"&&C.toString===Object.prototype.toString){V=Object.entries(C).flat()}else{V=[C]}const le=V.map((h=>{if(h===null||h===undefined){return""}if(!h.toString||typeof h.toString!=="function"){throw new Error(`Query parameters must be able to be represented as string, ${e} can't`)}const C=h.toISOString!==undefined?h.toISOString():h.toString();return m?C:encodeURIComponent(C)})).join(q);return`${m?e:encodeURIComponent(e)}=${le}`}function appendQueryParams(e,m={}){if(!m.queryParameters){return e}const h=new URL(e);const C=m.queryParameters;const q=[];for(const e of Object.keys(C)){const h=C[e];if(h===undefined||h===null){continue}const V=isQueryParameterWithOptions(h);const le=V?h.value:h;const fe=V?h.explode??false:false;const he=V&&h.style?h.style:"form";if(fe){if(Array.isArray(le)){for(const h of le){q.push(getQueryParamValue(e,m.skipUrlEncoding??false,he,h))}}else if(typeof le==="object"){for(const[e,h]of Object.entries(le)){q.push(getQueryParamValue(e,m.skipUrlEncoding??false,he,h))}}else{throw new Error("explode can only be set to true for objects and arrays")}}else{q.push(getQueryParamValue(e,m.skipUrlEncoding??false,he,le))}}if(h.search!==""){h.search+="&"}h.search+=q.join("&");return h.toString()}function buildBaseUrl(e,m){if(!m.pathParameters){return e}const h=m.pathParameters;for(const[C,q]of Object.entries(h)){if(q===undefined||q===null){throw new Error(`Path parameters ${C} must not be undefined or null`)}if(!q.toString||typeof q.toString!=="function"){throw new Error(`Path parameters must be able to be represented as string, ${C} can't`)}let h=q.toISOString!==undefined?q.toISOString():String(q);if(!m.skipUrlEncoding){h=encodeURIComponent(q)}e=replaceAll(e,`{${C}}`,h)??""}return e}function buildRoutePath(e,m,h={}){for(const C of m){const m=typeof C==="object"&&(C.allowReserved??false);let q=typeof C==="object"?C.value:C;if(!h.skipUrlEncoding&&!m){q=encodeURIComponent(q)}e=e.replace(/\{[\w-]+\}/,String(q))}return e}function replaceAll(e,m,h){return!e||!m?e:e.split(m).join(h||"")}function getClient(e,m={}){const h=m.pipeline??createDefaultPipeline(m);if(m.additionalPolicies?.length){for(const{policy:e,position:C}of m.additionalPolicies){const m=C==="perRetry"?"Sign":undefined;h.addPolicy(e,{afterPhase:m})}}const{allowInsecureConnection:C,httpClient:q}=m;const V=m.endpoint??e;const client=(e,...m)=>{const getUrl=h=>buildRequestUrl(V,e,m,{allowInsecureConnection:C,...h});return{get:(e={})=>buildOperation("GET",getUrl(e),h,e,C,q),post:(e={})=>buildOperation("POST",getUrl(e),h,e,C,q),put:(e={})=>buildOperation("PUT",getUrl(e),h,e,C,q),patch:(e={})=>buildOperation("PATCH",getUrl(e),h,e,C,q),delete:(e={})=>buildOperation("DELETE",getUrl(e),h,e,C,q),head:(e={})=>buildOperation("HEAD",getUrl(e),h,e,C,q),options:(e={})=>buildOperation("OPTIONS",getUrl(e),h,e,C,q),trace:(e={})=>buildOperation("TRACE",getUrl(e),h,e,C,q)}};return{path:client,pathUnchecked:client,pipeline:h}}function buildOperation(e,m,h,C,q,V){q=C.allowInsecureConnection??q;return{then:function(le,fe){return sendRequest(e,m,h,{...C,allowInsecureConnection:q},V).then(le,fe)},async asBrowserStream(){if(Ll){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,m,h,{...C,allowInsecureConnection:q,responseAsStream:true},V)}},async asNodeStream(){if(Ll){return sendRequest(e,m,h,{...C,allowInsecureConnection:q,responseAsStream:true},V)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function operationOptionsToRequestParameters(e){return{allowInsecureConnection:e.requestOptions?.allowInsecureConnection,timeout:e.requestOptions?.timeout,skipUrlEncoding:e.requestOptions?.skipUrlEncoding,abortSignal:e.abortSignal,onUploadProgress:e.requestOptions?.onUploadProgress,onDownloadProgress:e.requestOptions?.onDownloadProgress,headers:{...e.requestOptions?.headers},onResponse:e.onResponse}}function createRestError(e,m){const h=typeof e==="string"?m:e;const C=h.body?.error??h.body;const q=typeof e==="string"?e:C?.message??`Unexpected status code: ${h.status}`;return new RestError(q,{statusCode:statusCodeToNumber(h.status),code:C?.code,request:h.request,response:toPipelineResponse(h)})}function toPipelineResponse(e){return{headers:httpHeaders_createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const m=Number.parseInt(e);return Number.isNaN(m)?undefined:m}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const Qu=esm_createClientLogger("core-rest-pipeline");const Ju="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const Xu="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:Xu,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const Zu="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:Zu,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ed=null&&tspLogPolicyName;function logPolicy_logPolicy(e={}){return logPolicy({logger:Qu.info,...e})}const td=null&&tspRedirectPolicyName;function redirectPolicy_redirectPolicy(e={}){return redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function userAgentPlatform_setPlatformSpecificData(e){if($r&&$r.versions){const m=`${Dr.type()} ${Dr.release()}; ${Dr.arch()}`;const h=$r.versions;if(h.bun){e.set("Bun",`${h.bun} (${m})`)}else if(h.deno){e.set("Deno",`${h.deno} (${m})`)}else if(h.node){e.set("Node",`${h.node} (${m})`)}}}const nd="1.22.2";const rd=3;function userAgent_getUserAgentString(e){const m=[];for(const[h,C]of e){const e=C?`${h}/${C}`:h;m.push(e)}return m.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function userAgent_getUserAgentValue(e){const m=new Map;m.set("core-rest-pipeline",nd);await userAgentPlatform_setPlatformSpecificData(m);const h=userAgent_getUserAgentString(m);const C=e?`${e} ${h}`:h;return C}const od=userAgent_getUserAgentHeaderName();const id="userAgentPolicy";function userAgentPolicy_userAgentPolicy(e={}){const m=userAgent_getUserAgentValue(e.userAgentPrefix);return{name:id,async sendRequest(e,h){if(!e.headers.has(od)){e.headers.set(od,await m)}return h(e)}}}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const sd={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const ad=Symbol("rawContent");function hasRawContent(e){return typeof e[ad]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[ad]()}else{return e}}function createFileFromStream(e,m,h={}){return{...sd,type:h.type??"",lastModified:h.lastModified??(new Date).getTime(),webkitRelativePath:h.webkitRelativePath??"",size:h.size??-1,name:m,stream:()=>{const m=e();if(file_isNodeReadableStream(m)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return m},[ad]:e}}function createFile(e,m,h={}){if(isNodeLike){return{...sd,type:h.type??"",lastModified:h.lastModified??(new Date).getTime(),webkitRelativePath:h.webkitRelativePath??"",size:e.byteLength,name:m,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[ad]:()=>e}}else{return new File([toArrayBuffer(e)],m,h)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const cd=qu;function multipartPolicy_multipartPolicy(){const e=multipartPolicy();return{name:cd,sendRequest:async(m,h)=>{if(m.multipartBody){for(const e of m.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(m,h)}}}const ld=null&&tspDecompressResponsePolicyName;function decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy()}const ud=null&&tspDefaultRetryPolicyName;function defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy(e)}const dd=null&&tspFormDataPolicyName;function formDataPolicy_formDataPolicy(){return formDataPolicy()}const pd=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return tspGetDefaultProxySettings(e)}function proxyPolicy_proxyPolicy(e,m){return proxyPolicy(e,m)}const md="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:md,async sendRequest(m,h){if(!m.headers.has(e)){m.headers.set(e,m.requestId)}return h(m)}}}const fd=null&&tspAgentPolicyName;function agentPolicy_agentPolicy(e){return agentPolicy(e)}const hd=null&&tspTlsPolicyName;function tlsPolicy_tlsPolicy(e){return tlsPolicy(e)}const gd=RestError;function restError_isRestError(e){return isRestError(e)}const yd="tracingPolicy";function tracingPolicy(e={}){const m=userAgent_getUserAgentValue(e.userAgentPrefix);const h=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const C=tryCreateTracingClient();return{name:yd,async sendRequest(e,q){if(!C){return q(e)}const V=await m;const le={"http.url":h.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":V,requestId:e.requestId};if(V){le["http.user_agent"]=V}const{span:fe,tracingContext:he}=tryCreateSpan(C,e,le)??{};if(!fe||!he){return q(e)}try{const m=await C.withContext(he,q,e);tryProcessResponse(fe,m);return m}catch(e){tryProcessError(fe,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:nd})}catch(e){Qu.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,m,h){try{const{span:C,updatedOptions:q}=e.startSpan(`HTTP ${m.method}`,{tracingOptions:m.tracingOptions},{spanKind:"client",spanAttributes:h});if(!C.isRecording()){C.end();return undefined}const V=e.createRequestHeaders(q.tracingOptions.tracingContext);for(const[e,h]of Object.entries(V)){m.headers.set(e,h)}return{span:C,tracingContext:q.tracingOptions.tracingContext}}catch(e){Qu.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,m){try{e.setStatus({status:"error",error:esm_isError(m)?m:undefined});if(restError_isRestError(m)&&m.statusCode){e.setAttribute("http.status_code",m.statusCode)}e.end()}catch(e){Qu.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,m){try{e.setAttribute("http.status_code",m.status);const h=m.headers.get("x-ms-request-id");if(h){e.setAttribute("serviceRequestId",h)}if(m.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){Qu.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const m=new AbortController;let h=true;function cleanup(){if(h){e.removeEventListener("abort",listener);h=false}}function listener(){m.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:m.signal,cleanup:cleanup}}const Sd="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:Sd,sendRequest:async(e,m)=>{if(!e.abortSignal){return m(e)}const{abortSignal:h,cleanup:C}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=h;try{return await m(e)}finally{C?.()}}}}function createPipelineFromOptions_createPipelineFromOptions(e){const m=esm_pipeline_createEmptyPipeline();if(Kl){if(e.agent){m.addPolicy(agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){m.addPolicy(tlsPolicy_tlsPolicy(e.tlsOptions))}m.addPolicy(proxyPolicy_proxyPolicy(e.proxyOptions));m.addPolicy(decompressResponsePolicy_decompressResponsePolicy())}m.addPolicy(wrapAbortSignalLikePolicy());m.addPolicy(formDataPolicy_formDataPolicy(),{beforePolicies:[cd]});m.addPolicy(userAgentPolicy_userAgentPolicy(e.userAgentOptions));m.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));m.addPolicy(multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});m.addPolicy(defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});m.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(Kl){m.addPolicy(redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}m.addPolicy(logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return m}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(m){const{abortSignal:h,cleanup:C}=m.abortSignal?wrapAbortSignalLike(m.abortSignal):{};try{m.abortSignal=h;return await e.sendRequest(m)}finally{C?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const Ed=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const vd=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const Cd=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const Id=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,m={maxRetries:rd}){return retryPolicy_retryPolicy(e,{logger:Id,...m})}const bd={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,m,h){async function tryGetAccessToken(){if(Date.now()<h){try{return await e()}catch{return null}}else{const m=await e();if(m===null){throw new Error("Failed to refresh access token.")}return m}}let C=await tryGetAccessToken();while(C===null){await delay_delay(m);C=await tryGetAccessToken()}return C}function tokenCycler_createTokenCycler(e,m){let h=null;let C=null;let q;const V={...bd,...m};const le={get isRefreshing(){return h!==null},get shouldRefresh(){if(le.isRefreshing){return false}if(C?.refreshAfterTimestamp&&C.refreshAfterTimestamp<Date.now()){return true}return(C?.expiresOnTimestamp??0)-V.refreshWindowInMs<Date.now()},get mustRefresh(){return C===null||C.expiresOnTimestamp-V.forcedRefreshWindowInMs<Date.now()}};function refresh(m,fe){if(!le.isRefreshing){const tryGetAccessToken=()=>e.getToken(m,fe);h=beginRefresh(tryGetAccessToken,V.retryIntervalInMs,C?.expiresOnTimestamp??Date.now()).then((e=>{h=null;C=e;q=fe.tenantId;return C})).catch((e=>{h=null;C=null;q=undefined;throw e}))}return h}return async(e,m)=>{const h=Boolean(m.claims);const V=q!==m.tenantId;if(h){C=null}const fe=V||h||le.mustRefresh;if(fe){return refresh(e,m)}if(le.shouldRefresh){refresh(e,m)}return C}}const Ad="bearerTokenAuthenticationPolicy";async function trySendRequest(e,m){try{return[await m(e),undefined]}catch(e){if(restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:m,getAccessToken:h,request:C}=e;const q={abortSignal:C.abortSignal,tracingOptions:C.tracingOptions,enableCae:true};const V=await h(m,q);if(V){e.request.headers.set("Authorization",`Bearer ${V.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,m){const{scopes:h}=e;const C=await e.getAccessToken(h,{enableCae:true,claims:m});if(!C){return false}e.request.headers.set("Authorization",`${C.tokenType??"Bearer"} ${C.token}`);return true}function bearerTokenAuthenticationPolicy_bearerTokenAuthenticationPolicy(e){const{credential:m,scopes:h,challengeCallbacks:C}=e;const q=e.logger||Qu;const V={authorizeRequest:C?.authorizeRequest?.bind(C)??defaultAuthorizeRequest,authorizeRequestOnChallenge:C?.authorizeRequestOnChallenge?.bind(C)};const le=m?tokenCycler_createTokenCycler(m):()=>Promise.resolve(null);return{name:Ad,async sendRequest(e,m){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await V.authorizeRequest({scopes:Array.isArray(h)?h:[h],request:e,getAccessToken:le,logger:q});let C;let fe;let he;[C,fe]=await trySendRequest(e,m);if(isChallengeResponse(C)){let ye=getCaeChallengeClaims(C.headers.get("WWW-Authenticate"));if(ye){let V;try{V=atob(ye)}catch(e){q.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${ye}`);return C}he=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(h)?h:[h],response:C,request:e,getAccessToken:le,logger:q},V);if(he){[C,fe]=await trySendRequest(e,m)}}else if(V.authorizeRequestOnChallenge){he=await V.authorizeRequestOnChallenge({scopes:Array.isArray(h)?h:[h],request:e,response:C,getAccessToken:le,logger:q});if(he){[C,fe]=await trySendRequest(e,m)}if(isChallengeResponse(C)){ye=getCaeChallengeClaims(C.headers.get("WWW-Authenticate"));if(ye){let V;try{V=atob(ye)}catch(e){q.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${ye}`);return C}he=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(h)?h:[h],response:C,request:e,getAccessToken:le,logger:q},V);if(he){[C,fe]=await trySendRequest(e,m)}}}}}if(fe){throw fe}else{return C}}}}function parseChallenges(e){const m=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const h=/(\w+)="([^"]*)"/g;const C=[];let q;while((q=m.exec(e))!==null){const e=q[1];const m=q[2];const V={};let le;while((le=h.exec(m))!==null){V[le[1]]=le[2]}C.push({scheme:e,params:V})}return C}function getCaeChallengeClaims(e){if(!e){return}const m=parseChallenges(e);return m.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const wd="auxiliaryAuthenticationHeaderPolicy";const Rd="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:m,getAccessToken:h,request:C}=e;const q={abortSignal:C.abortSignal,tracingOptions:C.tracingOptions};return(await h(m,q))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:m,scopes:h}=e;const C=e.logger||coreLogger;const q=new WeakMap;return{name:wd,async sendRequest(e,V){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!m||m.length===0){C.info(`${wd} header will not be set due to empty credentials.`);return V(e)}const le=[];for(const V of m){let m=q.get(V);if(!m){m=createTokenCycler(V);q.set(V,m)}le.push(sendAuthorizeRequest({scopes:Array.isArray(h)?h:[h],request:e,getAccessToken:m,logger:C}))}const fe=(await Promise.all(le)).filter((e=>Boolean(e)));if(fe.length===0){C.warning(`None of the auxiliary tokens are valid. ${Rd} header will not be set.`);return V(e)}e.headers.set(Rd,fe.map((e=>`Bearer ${e}`)).join(", "));return V(e)}}}const Td="$";const Pd="_";var xd=__nccwpck_require__(9582);const _d=xd.w;function getOperationArgumentValueFromParameter(e,m,h){let C=m.parameterPath;const q=m.mapper;let V;if(typeof C==="string"){C=[C]}if(Array.isArray(C)){if(C.length>0){if(q.isConstant){V=q.defaultValue}else{let m=getPropertyFromParameterPath(e,C);if(!m.propertyFound&&h){m=getPropertyFromParameterPath(h,C)}let le=false;if(!m.propertyFound){le=q.required||C[0]==="options"&&C.length===2}V=le?q.defaultValue:m.propertyValue}}}else{if(q.required){V={}}for(const m in C){const le=q.type.modelProperties[m];const fe=C[m];const he=getOperationArgumentValueFromParameter(e,{parameterPath:fe,mapper:le},h);if(he!==undefined){if(!V){V={}}V[m]=he}}}return V}function getPropertyFromParameterPath(e,m){const h={propertyFound:false};let C=0;for(;C<m.length;++C){const h=m[C];if(e&&h in e){e=e[h]}else{break}}if(C===m.length){h.propertyValue=e;h.propertyFound=true}return h}const Od=Symbol.for("@azure/core-client original request");function hasOriginalRequest(e){return Od in e}function getOperationRequestInfo(e){if(hasOriginalRequest(e)){return getOperationRequestInfo(e[Od])}let m=_d.operationRequestMap.get(e);if(!m){m={};_d.operationRequestMap.set(e,m)}return m}const Dd=["application/json","text/json"];const Md=["application/xml","application/atom+xml"];const $d="deserializationPolicy";function deserializationPolicy(e={}){const m=e.expectedContentTypes?.json??Dd;const h=e.expectedContentTypes?.xml??Md;const C=e.parseXML;const q=e.serializerOptions;const V={xml:{rootName:q?.xml.rootName??"",includeRoot:q?.xml.includeRoot??false,xmlCharKey:q?.xml.xmlCharKey??Pd}};return{name:$d,async sendRequest(e,q){const le=await q(e);return deserializeResponseBody(m,h,le,V,C)}}}function getOperationResponseMap(e){let m;const h=e.request;const C=getOperationRequestInfo(h);const q=C?.operationSpec;if(q){if(!C?.operationResponseGetter){m=q.responses[e.status]}else{m=C?.operationResponseGetter(q,e)}}return m}function shouldDeserializeResponse(e){const m=e.request;const h=getOperationRequestInfo(m);const C=h?.shouldDeserialize;let q;if(C===undefined){q=true}else if(typeof C==="boolean"){q=C}else{q=C(e)}return q}async function deserializeResponseBody(e,m,h,C,q){const V=await deserializationPolicy_parse(e,m,h,C,q);if(!shouldDeserializeResponse(V)){return V}const le=getOperationRequestInfo(V.request);const fe=le?.operationSpec;if(!fe||!fe.responses){return V}const he=getOperationResponseMap(V);const{error:ye,shouldReturnResponse:ve}=handleErrorResponse(V,fe,he,C);if(ye){throw ye}else if(ve){return V}if(he){if(he.bodyMapper){let e=V.parsedBody;if(fe.isXML&&he.bodyMapper.type.name===eu.Sequence){e=typeof e==="object"?e[he.bodyMapper.xmlElementName]:[]}try{V.parsedBody=fe.serializer.deserialize(he.bodyMapper,e,"operationRes.parsedBody",C)}catch(e){const m=new gd(`Error ${e} occurred in deserializing the responseBody - ${V.bodyAsText}`,{statusCode:V.status,request:V.request,response:V});throw m}}else if(fe.httpMethod==="HEAD"){V.parsedBody=h.status>=200&&h.status<300}if(he.headersMapper){V.parsedHeaders=fe.serializer.deserialize(he.headersMapper,V.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return V}function isOperationSpecEmpty(e){const m=Object.keys(e.responses);return m.length===0||m.length===1&&m[0]==="default"}function handleErrorResponse(e,m,h,C){const q=200<=e.status&&e.status<300;const V=isOperationSpecEmpty(m)?q:!!h;if(V){if(h){if(!h.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const le=h??m.responses.default;const fe=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const he=new gd(fe,{statusCode:e.status,request:e.request,response:e});if(!le&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw he}const ye=le?.bodyMapper;const ve=le?.headersMapper;try{if(e.parsedBody){const h=e.parsedBody;let q;if(ye){let e=h;if(m.isXML&&ye.type.name===eu.Sequence){e=[];const m=ye.xmlElementName;if(typeof h==="object"&&m){e=h[m]}}q=m.serializer.deserialize(ye,e,"error.response.parsedBody",C)}const V=h.error||q||h;he.code=V.code;if(V.message){he.message=V.message}if(ye){he.response.parsedBody=q}}if(e.headers&&ve){he.response.parsedHeaders=m.serializer.deserialize(ve,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(m){he.message=`Error "${m.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:he,shouldReturnResponse:false}}async function deserializationPolicy_parse(e,m,h,C,q){if(!h.request.streamResponseStatusCodes?.has(h.status)&&h.bodyAsText){const V=h.bodyAsText;const le=h.headers.get("Content-Type")||"";const fe=!le?[]:le.split(";").map((e=>e.toLowerCase()));try{if(fe.length===0||fe.some((m=>e.indexOf(m)!==-1))){h.parsedBody=JSON.parse(V);return h}else if(fe.some((e=>m.indexOf(e)!==-1))){if(!q){throw new Error("Parsing XML not supported.")}const e=await q(V,C.xml);h.parsedBody=e;return h}}catch(e){const m=`Error "${e}" occurred while parsing the response body - ${h.bodyAsText}.`;const C=e.code||gd.PARSE_ERROR;const q=new gd(m,{code:C,statusCode:h.status,request:h.request,response:h});throw q}}return h}function getStreamingResponseStatusCodes(e){const m=new Set;for(const h in e.responses){const C=e.responses[h];if(C.bodyMapper&&C.bodyMapper.type.name===eu.Stream){m.add(Number(h))}}return m}function getPathStringFromParameter(e){const{parameterPath:m,mapper:h}=e;let C;if(typeof m==="string"){C=m}else if(Array.isArray(m)){C=m.join(".")}else{C=h.serializedName}return C}const Nd="serializationPolicy";function serializationPolicy(e={}){const m=e.stringifyXML;return{name:Nd,async sendRequest(e,h){const C=getOperationRequestInfo(e);const q=C?.operationSpec;const V=C?.operationArguments;if(q&&V){serializeHeaders(e,V,q);serializeRequestBody(e,V,q,m)}return h(e)}}}function serializeHeaders(e,m,h){if(h.headerParameters){for(const C of h.headerParameters){let q=getOperationArgumentValueFromParameter(m,C);if(q!==null&&q!==undefined||C.mapper.required){q=h.serializer.serialize(C.mapper,q,getPathStringFromParameter(C));const m=C.mapper.headerCollectionPrefix;if(m){for(const h of Object.keys(q)){e.headers.set(m+h,q[h])}}else{e.headers.set(C.mapper.serializedName||getPathStringFromParameter(C),q)}}}}const C=m.options?.requestOptions?.customHeaders;if(C){for(const m of Object.keys(C)){e.headers.set(m,C[m])}}}function serializeRequestBody(e,m,h,C=function(){throw new Error("XML serialization unsupported!")}){const q=m.options?.serializerOptions;const V={xml:{rootName:q?.xml.rootName??"",includeRoot:q?.xml.includeRoot??false,xmlCharKey:q?.xml.xmlCharKey??Pd}};const le=V.xml.xmlCharKey;if(h.requestBody&&h.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(m,h.requestBody);const q=h.requestBody.mapper;const{required:fe,serializedName:he,xmlName:ye,xmlElementName:ve,xmlNamespace:Le,xmlNamespacePrefix:Ue,nullable:qe}=q;const ze=q.type.name;try{if(e.body!==undefined&&e.body!==null||qe&&e.body===null||fe){const m=getPathStringFromParameter(h.requestBody);e.body=h.serializer.serialize(q,e.body,m,V);const fe=ze===eu.Stream;if(h.isXML){const m=Ue?`xmlns:${Ue}`:"xmlns";const h=getXmlValueWithNamespace(Le,m,ze,e.body,V);if(ze===eu.Sequence){e.body=C(prepareXMLRootList(h,ve||ye||he,m,Le),{rootName:ye||he,xmlCharKey:le})}else if(!fe){e.body=C(h,{rootName:ye||he,xmlCharKey:le})}}else if(ze===eu.String&&(h.contentType?.match("text/plain")||h.mediaType==="text")){return}else if(!fe){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(he,undefined," ")}.`)}}else if(h.formDataParameters&&h.formDataParameters.length>0){e.formData={};for(const C of h.formDataParameters){const q=getOperationArgumentValueFromParameter(m,C);if(q!==undefined&&q!==null){const m=C.mapper.serializedName||getPathStringFromParameter(C);e.formData[m]=h.serializer.serialize(C.mapper,q,getPathStringFromParameter(C),V)}}}}function getXmlValueWithNamespace(e,m,h,C,q){if(e&&!["Composite","Sequence","Dictionary"].includes(h)){const h={};h[q.xml.xmlCharKey]=C;h[Td]={[m]:e};return h}return C}function prepareXMLRootList(e,m,h,C){if(!Array.isArray(e)){e=[e]}if(!h||!C){return{[m]:e}}const q={[m]:e};q[Td]={[h]:C};return q}function createClientPipeline(e={}){const m=createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){m.addPolicy(bearerTokenAuthenticationPolicy_bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}m.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});m.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return m}function isPrimitiveBody(e,m){return m!=="Composite"&&m!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||m?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const kd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function utils_isDuration(e){return kd.test(e)}const Ld=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function utils_isValidUuid(e){return Ld.test(e)}function handleNullableResponseAndWrappableBody(e){const m={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(m).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:m}}function flattenResponse(e,m){const h=e.parsedHeaders;if(e.request.method==="HEAD"){return{...h,body:e.parsedBody}}const C=m&&m.bodyMapper;const q=Boolean(C?.nullable);const V=C?.type.name;if(V==="Stream"){return{...h,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const le=V==="Composite"&&C.type.modelProperties||{};const fe=Object.keys(le).some((e=>le[e].serializedName===""));if(V==="Sequence"||fe){const m=e.parsedBody??[];for(const h of Object.keys(le)){if(le[h].serializedName){m[h]=e.parsedBody?.[h]}}if(h){for(const e of Object.keys(h)){m[e]=h[e]}}return q&&!e.parsedBody&&!h&&Object.getOwnPropertyNames(le).length===0?null:m}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:h,hasNullableType:q,shouldWrapBody:isPrimitiveBody(e.parsedBody,V)})}let Ud;function getCachedDefaultHttpClient(){if(!Ud){Ud=esm_defaultHttpClient_createDefaultHttpClient()}return Ud}const Fd={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,m,h,C){const q=calculateUrlReplacements(m,h,C);let V=false;let le=urlHelpers_replaceAll(e,q);if(m.path){let e=urlHelpers_replaceAll(m.path,q);if(m.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){le=e;V=true}else{le=appendPath(le,e)}}const{queryParams:fe,sequenceParams:he}=calculateQueryParameters(m,h,C);le=urlHelpers_appendQueryParams(le,fe,he,V);return le}function urlHelpers_replaceAll(e,m){let h=e;for(const[e,C]of m){h=h.split(e).join(C)}return h}function calculateUrlReplacements(e,m,h){const C=new Map;if(e.urlParameters?.length){for(const q of e.urlParameters){let V=getOperationArgumentValueFromParameter(m,q,h);const le=getPathStringFromParameter(q);V=e.serializer.serialize(q.mapper,V,le);if(!q.skipEncoding){V=encodeURIComponent(V)}C.set(`{${q.mapper.serializedName||le}}`,V)}}return C}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,m){if(!m){return e}const h=new URL(e);let C=h.pathname;if(!C.endsWith("/")){C=`${C}/`}if(m.startsWith("/")){m=m.substring(1)}const q=m.indexOf("?");if(q!==-1){const e=m.substring(0,q);const V=m.substring(q+1);C=C+e;if(V){h.search=h.search?`${h.search}&${V}`:V}}else{C=C+m}h.pathname=C;return h.toString()}function calculateQueryParameters(e,m,h){const C=new Map;const q=new Set;if(e.queryParameters?.length){for(const V of e.queryParameters){if(V.mapper.type.name==="Sequence"&&V.mapper.serializedName){q.add(V.mapper.serializedName)}let le=getOperationArgumentValueFromParameter(m,V,h);if(le!==undefined&&le!==null||V.mapper.required){le=e.serializer.serialize(V.mapper,le,getPathStringFromParameter(V));const m=V.collectionFormat?Fd[V.collectionFormat]:"";if(Array.isArray(le)){le=le.map((e=>{if(e===null||e===undefined){return""}return e}))}if(V.collectionFormat==="Multi"&&le.length===0){continue}else if(Array.isArray(le)&&(V.collectionFormat==="SSV"||V.collectionFormat==="TSV")){le=le.join(m)}if(!V.skipEncoding){if(Array.isArray(le)){le=le.map((e=>encodeURIComponent(e)))}else{le=encodeURIComponent(le)}}if(Array.isArray(le)&&(V.collectionFormat==="CSV"||V.collectionFormat==="Pipes")){le=le.join(m)}C.set(V.mapper.serializedName||getPathStringFromParameter(V),le)}}}return{queryParams:C,sequenceParams:q}}function simpleParseQueryParams(e){const m=new Map;if(!e||e[0]!=="?"){return m}e=e.slice(1);const h=e.split("&");for(const e of h){const[h,C]=e.split("=",2);const q=m.get(h);if(q){if(Array.isArray(q)){q.push(C)}else{m.set(h,[q,C])}}else{m.set(h,C)}}return m}function urlHelpers_appendQueryParams(e,m,h,C=false){if(m.size===0){return e}const q=new URL(e);const V=simpleParseQueryParams(q.search);for(const[e,q]of m){const m=V.get(e);if(Array.isArray(m)){if(Array.isArray(q)){m.push(...q);const h=new Set(m);V.set(e,Array.from(h))}else{m.push(q)}}else if(m){if(Array.isArray(q)){q.unshift(m)}else if(h.has(e)){V.set(e,[m,q])}if(!C){V.set(e,q)}}else{V.set(e,q)}}const le=[];for(const[e,m]of V){if(typeof m==="string"){le.push(`${e}=${m}`)}else if(Array.isArray(m)){for(const h of m){le.push(`${e}=${h}`)}}else{le.push(`${e}=${m}`)}}q.search=le.length?`?${le.join("&")}`:"";return q.toString()}const qd=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){qd.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:m,position:h}of e.additionalPolicies){const e=h==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(m,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,m){const h=m.baseUrl||this._endpoint;if(!h){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const C=getRequestUrl(h,m,e,this);const q=esm_pipelineRequest_createPipelineRequest({url:C});q.method=m.httpMethod;const V=getOperationRequestInfo(q);V.operationSpec=m;V.operationArguments=e;const le=m.contentType||this._requestContentType;if(le&&m.requestBody){q.headers.set("Content-Type",le)}const fe=e.options;if(fe){const e=fe.requestOptions;if(e){if(e.timeout){q.timeout=e.timeout}if(e.onUploadProgress){q.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){q.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){V.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){q.allowInsecureConnection=true}}if(fe.abortSignal){q.abortSignal=fe.abortSignal}if(fe.tracingOptions){q.tracingOptions=fe.tracingOptions}}if(this._allowInsecureConnection){q.allowInsecureConnection=true}if(q.streamResponseStatusCodes===undefined){q.streamResponseStatusCodes=getStreamingResponseStatusCodes(m)}try{const e=await this.sendRequest(q);const h=flattenResponse(e,m.responses[e.status]);if(fe?.onResponse){fe.onResponse(e,h)}return h}catch(e){if(typeof e==="object"&&e?.response){const h=e.response;const C=flattenResponse(h,m.responses[e.statusCode]||m.responses["default"]);e.details=C;if(fe?.onResponse){fe.onResponse(h,C,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const m=getCredentialScopes(e);const h=e.credential&&m?{credentialScopes:m,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:h})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const m=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return m.map((e=>{const m=`${e.trim()}, `.split('", ').filter((e=>e));const h=m.map((e=>(([e,m])=>({[e]:m}))(e.trim().split('="'))));return h.reduce(((e,m)=>({...e,...m})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:m,response:h}=e;const C=e.logger||coreClientLogger;const q=h.headers.get("WWW-Authenticate");if(!q){C.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const V=parseCAEChallenge(q)||[];const le=V.find((e=>e.claims));if(!le){C.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const fe=await e.getAccessToken(le.scope?[le.scope]:m,{claims:decodeStringToString(le.claims)});if(!fe){return false}e.request.headers.set("Authorization",`${fe.tokenType??"Bearer"} ${fe.token}`);return true}const jd={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const m=requestToOptions(e.request);const h=getChallenge(e.response);if(h){const C=parseChallenge(h);const q=buildScopes(e,C);const V=extractTenantId(C);if(!V){return false}const le=await e.getAccessToken(q,{...m,tenantId:V});if(!le){return false}e.request.headers.set(jd.HeaderConstants.AUTHORIZATION,`${le.tokenType??"Bearer"} ${le.token}`);return true}return false};function extractTenantId(e){const m=new URL(e.authorization_uri);const h=m.pathname.split("/");const C=h[1];if(C&&isUuid(C)){return C}return undefined}function buildScopes(e,m){if(!m.resource_id){return e.scopes}const h=new URL(m.resource_id);h.pathname=jd.DefaultScope;let C=h.toString();if(C==="https://disk.azure.com/.default"){C="https://disk.azure.com//.default"}return[C]}function getChallenge(e){const m=e.headers.get("WWW-Authenticate");if(e.status===401&&m){return m}return}function parseChallenge(e){const m=e.slice("Bearer ".length);const h=`${m.trim()} `.split(" ").filter((e=>e));const C=h.map((e=>(([e,m])=>({[e]:m}))(e.trim().split("="))));return C.reduce(((e,m)=>({...e,...m})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}function getIdentityTokenEndpointSuffix(e){if(e==="adfs"){return"oauth2/token"}else{return"oauth2/v2.0/token"}}const Bd="/.default";const Gd="Specifying a `clientId` or `resourceId` is not supported by the Service Fabric managed identity environment. The managed identity configuration is determined by the Service Fabric cluster resource configuration. See https://aka.ms/servicefabricmi for more information";function mapScopesToResource(e){let m="";if(Array.isArray(e)){if(e.length!==1){return}m=e[0]}else if(typeof e==="string"){m=e}if(!m.endsWith(Bd)){return m}return m.substr(0,m.lastIndexOf(Bd))}function parseExpirationTimestamp(e){if(typeof e.expires_on==="number"){return e.expires_on*1e3}if(typeof e.expires_on==="string"){const m=+e.expires_on;if(!isNaN(m)){return m*1e3}const h=Date.parse(e.expires_on);if(!isNaN(h)){return h}}if(typeof e.expires_in==="number"){return Date.now()+e.expires_in*1e3}throw new Error(`Failed to parse token expiration from body. expires_in="${e.expires_in}", expires_on="${e.expires_on}"`)}function parseRefreshTimestamp(e){if(e.refresh_on){if(typeof e.refresh_on==="number"){return e.refresh_on*1e3}if(typeof e.refresh_on==="string"){const m=+e.refresh_on;if(!isNaN(m)){return m*1e3}const h=Date.parse(e.refresh_on);if(!isNaN(h)){return h}}throw new Error(`Failed to parse refresh_on from body. refresh_on="${e.refresh_on}"`)}else{return undefined}}const zd="noCorrelationId";function getIdentityClientAuthorityHost(e){let m=e?.authorityHost;if(Wl){m=m??process.env.AZURE_AUTHORITY_HOST}return m??pr}class identityClient_IdentityClient extends ServiceClient{authorityHost;allowLoggingAccountIdentifiers;abortControllers;allowInsecureConnection=false;tokenCredentialOptions;constructor(e){const m=`azsdk-js-identity/${cr}`;const h=e?.userAgentOptions?.userAgentPrefix?`${e.userAgentOptions.userAgentPrefix} ${m}`:`${m}`;const C=getIdentityClientAuthorityHost(e);if(!C.startsWith("https:")){throw new Error("The authorityHost address must use the 'https' protocol.")}super({requestContentType:"application/json; charset=utf-8",retryOptions:{maxRetries:3},...e,userAgentOptions:{userAgentPrefix:h},baseUri:C});this.authorityHost=C;this.abortControllers=new Map;this.allowLoggingAccountIdentifiers=e?.loggingOptions?.allowLoggingAccountIdentifiers;this.tokenCredentialOptions={...e};if(e?.allowInsecureConnection){this.allowInsecureConnection=e.allowInsecureConnection}}async sendTokenRequest(e){Kr.info(`IdentityClient: sending token request to [${e.url}]`);const m=await this.sendRequest(e);if(m.bodyAsText&&(m.status===200||m.status===201)){const h=JSON.parse(m.bodyAsText);if(!h.access_token){return null}this.logIdentifiers(m);const C={accessToken:{token:h.access_token,expiresOnTimestamp:parseExpirationTimestamp(h),refreshAfterTimestamp:parseRefreshTimestamp(h),tokenType:"Bearer"},refreshToken:h.refresh_token};Kr.info(`IdentityClient: [${e.url}] token acquired, expires on ${C.accessToken.expiresOnTimestamp}`);return C}else{const e=new errors_AuthenticationError(m.status,m.bodyAsText);Kr.warning(`IdentityClient: authentication error. HTTP status: ${m.status}, ${e.errorResponse.errorDescription}`);throw e}}async refreshAccessToken(e,m,h,C,q,V={}){if(C===undefined){return null}Kr.info(`IdentityClient: refreshing access token with client ID: ${m}, scopes: ${h} started`);const le={grant_type:"refresh_token",client_id:m,refresh_token:C,scope:h};if(q!==undefined){le.client_secret=q}const fe=new URLSearchParams(le);return Xr.withSpan("IdentityClient.refreshAccessToken",V,(async h=>{try{const C=getIdentityTokenEndpointSuffix(e);const q=esm_pipelineRequest_createPipelineRequest({url:`${this.authorityHost}/${e}/${C}`,method:"POST",body:fe.toString(),abortSignal:V.abortSignal,headers:esm_httpHeaders_createHttpHeaders({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}),tracingOptions:h.tracingOptions});const le=await this.sendTokenRequest(q);Kr.info(`IdentityClient: refreshed token for client ID: ${m}`);return le}catch(e){if(e.name===_r&&e.errorResponse.error==="interaction_required"){Kr.info(`IdentityClient: interaction required for client ID: ${m}`);return null}else{Kr.warning(`IdentityClient: failed refreshing token for client ID: ${m}: ${e}`);throw e}}}))}generateAbortSignal(e){const m=new AbortController;const h=this.abortControllers.get(e)||[];h.push(m);this.abortControllers.set(e,h);const C=m.signal.onabort;m.signal.onabort=(...h)=>{this.abortControllers.set(e,undefined);if(C){C.apply(m.signal,h)}};return m.signal}abortRequests(e){const m=e||zd;const h=[...this.abortControllers.get(m)||[],...this.abortControllers.get(zd)||[]];if(!h.length){return}for(const e of h){e.abort()}this.abortControllers.set(m,undefined)}getCorrelationId(e){const m=e?.body?.split("&").map((e=>e.split("="))).find((([e])=>e==="client-request-id"));return m&&m.length?m[1]||zd:zd}async sendGetRequestAsync(e,m){const h=esm_pipelineRequest_createPipelineRequest({url:e,method:"GET",body:m?.body,allowInsecureConnection:this.allowInsecureConnection,headers:esm_httpHeaders_createHttpHeaders(m?.headers),abortSignal:this.generateAbortSignal(zd)});const C=await this.sendRequest(h);this.logIdentifiers(C);return{body:C.bodyAsText?JSON.parse(C.bodyAsText):undefined,headers:C.headers.toJSON(),status:C.status}}async sendPostRequestAsync(e,m){const h=esm_pipelineRequest_createPipelineRequest({url:e,method:"POST",body:m?.body,headers:esm_httpHeaders_createHttpHeaders(m?.headers),allowInsecureConnection:this.allowInsecureConnection,abortSignal:this.generateAbortSignal(this.getCorrelationId(m))});const C=await this.sendRequest(h);this.logIdentifiers(C);return{body:C.bodyAsText?JSON.parse(C.bodyAsText):undefined,headers:C.headers.toJSON(),status:C.status}}getTokenCredentialOptions(){return this.tokenCredentialOptions}logIdentifiers(e){if(!this.allowLoggingAccountIdentifiers||!e.bodyAsText){return}const m="No User Principal Name available";try{const h=e.parsedBody||JSON.parse(e.bodyAsText);const C=h.access_token;if(!C){return}const q=C.split(".")[1];const{appid:V,upn:le,tid:fe,oid:he}=JSON.parse(Buffer.from(q,"base64").toString("utf8"));Kr.info(`[Authenticated account] Client ID: ${V}. Tenant ID: ${fe}. User Principal Name: ${le||m}. Object ID (user): ${he}`)}catch(e){Kr.warning("allowLoggingAccountIdentifiers was set, but we couldn't log the account information. Error:",e.message)}}}var Hd;(function(e){e["AutoDiscoverRegion"]="AutoDiscoverRegion";e["USWest"]="westus";e["USWest2"]="westus2";e["USCentral"]="centralus";e["USEast"]="eastus";e["USEast2"]="eastus2";e["USNorthCentral"]="northcentralus";e["USSouthCentral"]="southcentralus";e["USWestCentral"]="westcentralus";e["CanadaCentral"]="canadacentral";e["CanadaEast"]="canadaeast";e["BrazilSouth"]="brazilsouth";e["EuropeNorth"]="northeurope";e["EuropeWest"]="westeurope";e["UKSouth"]="uksouth";e["UKWest"]="ukwest";e["FranceCentral"]="francecentral";e["FranceSouth"]="francesouth";e["SwitzerlandNorth"]="switzerlandnorth";e["SwitzerlandWest"]="switzerlandwest";e["GermanyNorth"]="germanynorth";e["GermanyWestCentral"]="germanywestcentral";e["NorwayWest"]="norwaywest";e["NorwayEast"]="norwayeast";e["AsiaEast"]="eastasia";e["AsiaSouthEast"]="southeastasia";e["JapanEast"]="japaneast";e["JapanWest"]="japanwest";e["AustraliaEast"]="australiaeast";e["AustraliaSouthEast"]="australiasoutheast";e["AustraliaCentral"]="australiacentral";e["AustraliaCentral2"]="australiacentral2";e["IndiaCentral"]="centralindia";e["IndiaSouth"]="southindia";e["IndiaWest"]="westindia";e["KoreaSouth"]="koreasouth";e["KoreaCentral"]="koreacentral";e["UAECentral"]="uaecentral";e["UAENorth"]="uaenorth";e["SouthAfricaNorth"]="southafricanorth";e["SouthAfricaWest"]="southafricawest";e["ChinaNorth"]="chinanorth";e["ChinaEast"]="chinaeast";e["ChinaNorth2"]="chinanorth2";e["ChinaEast2"]="chinaeast2";e["GermanyCentral"]="germanycentral";e["GermanyNorthEast"]="germanynortheast";e["GovernmentUSVirginia"]="usgovvirginia";e["GovernmentUSIowa"]="usgoviowa";e["GovernmentUSArizona"]="usgovarizona";e["GovernmentUSTexas"]="usgovtexas";e["GovernmentUSDodEast"]="usdodeast";e["GovernmentUSDodCentral"]="usdodcentral"})(Hd||(Hd={}));function calculateRegionalAuthority(e){let m=e;if(m===undefined&&globalThis.process?.env?.AZURE_REGIONAL_AUTHORITY_NAME!==undefined){m=process.env.AZURE_REGIONAL_AUTHORITY_NAME}if(m===Hd.AutoDiscoverRegion){return"AUTO_DISCOVER"}return m}function createConfigurationErrorMessage(e){return`The current credential is not configured to acquire tokens for tenant ${e}. To enable acquiring tokens for this tenant add it to the AdditionallyAllowedTenants on the credential options, or add "*" to AdditionallyAllowedTenants to allow acquiring tokens for any tenant.`}function processMultiTenantRequest_processMultiTenantRequest(e,m,h=[],C){let q;if(process.env.AZURE_IDENTITY_DISABLE_MULTITENANTAUTH){q=e}else if(e==="adfs"){q=e}else{q=m?.tenantId??e}if(e&&q!==e&&!h.includes("*")&&!h.some((e=>e.localeCompare(q)===0))){const e=createConfigurationErrorMessage(q);C?.info(e);throw new errors_CredentialUnavailableError(e)}return q}function tenantIdUtils_checkTenantId(e,m){if(!m.match(/^[0-9a-zA-Z-.]+$/)){const m=new Error("Invalid tenant id provided. You can locate your tenant id by following the instructions listed here: https://learn.microsoft.com/partner-center/find-ids-and-domain-names.");e.info(logging_formatError("",m));throw m}}function tenantIdUtils_resolveTenantId(e,m,h){if(m){tenantIdUtils_checkTenantId(e,m);return m}if(!h){h=lr}if(h!==lr){return"common"}return"organizations"}function tenantIdUtils_resolveAdditionallyAllowedTenantIds(e){if(!e||e.length===0){return[]}if(e.includes("*")){return fr}return e}const Vd=credentialLogger("MsalClient");function generateMsalConfiguration(e,m,h={}){const C=tenantIdUtils_resolveTenantId(h.logger??Vd,m,e);const q=getAuthority(C,getAuthorityHost(h));const V=new identityClient_IdentityClient({...h.tokenCredentialOptions,authorityHost:q,loggingOptions:h.loggingOptions});const le={auth:{clientId:e,authority:q,knownAuthorities:getKnownAuthorities(C,q,h.disableInstanceDiscovery)},system:{networkClient:V,loggerOptions:{loggerCallback:defaultLoggerCallback(h.logger??Vd),logLevel:getMSALLogLevel(esm_getLogLevel()),piiLoggingEnabled:h.loggingOptions?.enableUnsafeSupportLogging}}};return le}function msalClient_createMsalClient(e,m,h={}){const C={msalConfig:generateMsalConfiguration(e,m,h),cachedAccount:h.authenticationRecord?publicToMsal(h.authenticationRecord):null,pluginConfiguration:Tr.generatePluginConfiguration(h),logger:h.logger??Vd};const q=new Map;async function getPublicApp(e={}){const m=e.enableCae?"CAE":"default";let h=q.get(m);if(h){C.logger.getToken.info("Existing PublicClientApplication found in cache, returning it.");return h}C.logger.getToken.info(`Creating new PublicClientApplication with CAE ${e.enableCae?"enabled":"disabled"}.`);const V=e.enableCae?C.pluginConfiguration.cache.cachePluginCae:C.pluginConfiguration.cache.cachePlugin;C.msalConfig.auth.clientCapabilities=e.enableCae?["cp1"]:undefined;h=new PublicClientApplication({...C.msalConfig,broker:{nativeBrokerPlugin:C.pluginConfiguration.broker.nativeBrokerPlugin},cache:{cachePlugin:await V}});q.set(m,h);return h}const V=new Map;async function getConfidentialApp(e={}){const m=e.enableCae?"CAE":"default";let h=V.get(m);if(h){C.logger.getToken.info("Existing ConfidentialClientApplication found in cache, returning it.");return h}C.logger.getToken.info(`Creating new ConfidentialClientApplication with CAE ${e.enableCae?"enabled":"disabled"}.`);const q=e.enableCae?C.pluginConfiguration.cache.cachePluginCae:C.pluginConfiguration.cache.cachePlugin;C.msalConfig.auth.clientCapabilities=e.enableCae?["cp1"]:undefined;h=new ConfidentialClientApplication({...C.msalConfig,broker:{nativeBrokerPlugin:C.pluginConfiguration.broker.nativeBrokerPlugin},cache:{cachePlugin:await q}});V.set(m,h);return h}async function getTokenSilent(e,m,h={}){if(C.cachedAccount===null){C.logger.getToken.info("No cached account found in local state.");throw new AuthenticationRequiredError({scopes:m})}if(h.claims){C.cachedClaims=h.claims}const q={account:C.cachedAccount,scopes:m,claims:C.cachedClaims};if(C.pluginConfiguration.broker.isEnabled){q.tokenQueryParameters||={};if(C.pluginConfiguration.broker.enableMsaPassthrough){q.tokenQueryParameters["msal_request_type"]="consumer_passthrough"}}if(h.proofOfPossessionOptions){q.shrNonce=h.proofOfPossessionOptions.nonce;q.authenticationScheme="pop";q.resourceRequestMethod=h.proofOfPossessionOptions.resourceRequestMethod;q.resourceRequestUri=h.proofOfPossessionOptions.resourceRequestUrl}C.logger.getToken.info("Attempting to acquire token silently");try{return await e.acquireTokenSilent(q)}catch(e){throw handleMsalError(m,e,h)}}function calculateRequestAuthority(e){if(e?.tenantId){return getAuthority(e.tenantId,getAuthorityHost(h))}return C.msalConfig.auth.authority}async function withSilentAuthentication(e,m,h,q){let V=null;try{V=await getTokenSilent(e,m,h)}catch(e){if(e.name!=="AuthenticationRequiredError"){throw e}if(h.disableAutomaticAuthentication){throw new AuthenticationRequiredError({scopes:m,getTokenOptions:h,message:"Automatic authentication has been disabled. You may call the authentication() method."})}}if(V===null){try{V=await q()}catch(e){throw handleMsalError(m,e,h)}}ensureValidMsalToken(m,V,h);C.cachedAccount=V?.account??null;C.logger.getToken.info(formatSuccess(m));return{token:V.accessToken,expiresOnTimestamp:V.expiresOn.getTime(),refreshAfterTimestamp:V.refreshOn?.getTime(),tokenType:V.tokenType}}async function getTokenByClientSecret(e,m,h={}){C.logger.getToken.info(`Attempting to acquire token using client secret`);C.msalConfig.auth.clientSecret=m;const q=await getConfidentialApp(h);try{const m=await q.acquireTokenByClientCredential({scopes:e,authority:calculateRequestAuthority(h),azureRegion:calculateRegionalAuthority(),claims:h?.claims});ensureValidMsalToken(e,m,h);C.logger.getToken.info(formatSuccess(e));return{token:m.accessToken,expiresOnTimestamp:m.expiresOn.getTime(),refreshAfterTimestamp:m.refreshOn?.getTime(),tokenType:m.tokenType}}catch(m){throw handleMsalError(e,m,h)}}async function getTokenByClientAssertion(e,m,h={}){C.logger.getToken.info(`Attempting to acquire token using client assertion`);C.msalConfig.auth.clientAssertion=m;const q=await getConfidentialApp(h);try{const V=await q.acquireTokenByClientCredential({scopes:e,authority:calculateRequestAuthority(h),azureRegion:calculateRegionalAuthority(),claims:h?.claims,clientAssertion:m});ensureValidMsalToken(e,V,h);C.logger.getToken.info(formatSuccess(e));return{token:V.accessToken,expiresOnTimestamp:V.expiresOn.getTime(),refreshAfterTimestamp:V.refreshOn?.getTime(),tokenType:V.tokenType}}catch(m){throw handleMsalError(e,m,h)}}async function getTokenByClientCertificate(e,m,h={}){C.logger.getToken.info(`Attempting to acquire token using client certificate`);C.msalConfig.auth.clientCertificate=m;const q=await getConfidentialApp(h);try{const m=await q.acquireTokenByClientCredential({scopes:e,authority:calculateRequestAuthority(h),azureRegion:calculateRegionalAuthority(),claims:h?.claims});ensureValidMsalToken(e,m,h);C.logger.getToken.info(formatSuccess(e));return{token:m.accessToken,expiresOnTimestamp:m.expiresOn.getTime(),refreshAfterTimestamp:m.refreshOn?.getTime(),tokenType:m.tokenType}}catch(m){throw handleMsalError(e,m,h)}}async function getTokenByDeviceCode(e,m,h={}){C.logger.getToken.info(`Attempting to acquire token using device code`);const q=await getPublicApp(h);return withSilentAuthentication(q,e,h,(()=>{const C={scopes:e,cancel:h?.abortSignal?.aborted??false,deviceCodeCallback:m,authority:calculateRequestAuthority(h),claims:h?.claims};const V=q.acquireTokenByDeviceCode(C);if(h.abortSignal){h.abortSignal.addEventListener("abort",(()=>{C.cancel=true}))}return V}))}async function getTokenByUsernamePassword(e,m,h,q={}){C.logger.getToken.info(`Attempting to acquire token using username and password`);const V=await getPublicApp(q);return withSilentAuthentication(V,e,q,(()=>{const C={scopes:e,username:m,password:h,authority:calculateRequestAuthority(q),claims:q?.claims};return V.acquireTokenByUsernamePassword(C)}))}function getActiveAccount(){if(!C.cachedAccount){return undefined}return msalToPublic(e,C.cachedAccount)}async function getTokenByAuthorizationCode(e,m,h,q,V={}){C.logger.getToken.info(`Attempting to acquire token using authorization code`);let le;if(q){C.msalConfig.auth.clientSecret=q;le=await getConfidentialApp(V)}else{le=await getPublicApp(V)}return withSilentAuthentication(le,e,V,(()=>le.acquireTokenByCode({scopes:e,redirectUri:m,code:h,authority:calculateRequestAuthority(V),claims:V?.claims})))}async function getTokenOnBehalfOf(e,m,h,q={}){Vd.getToken.info(`Attempting to acquire token on behalf of another user`);if(typeof h==="string"){Vd.getToken.info(`Using client secret for on behalf of flow`);C.msalConfig.auth.clientSecret=h}else if(typeof h==="function"){Vd.getToken.info(`Using client assertion callback for on behalf of flow`);C.msalConfig.auth.clientAssertion=h}else{Vd.getToken.info(`Using client certificate for on behalf of flow`);C.msalConfig.auth.clientCertificate=h}const V=await getConfidentialApp(q);try{const h=await V.acquireTokenOnBehalfOf({scopes:e,authority:calculateRequestAuthority(q),claims:q.claims,oboAssertion:m});ensureValidMsalToken(e,h,q);Vd.getToken.info(formatSuccess(e));return{token:h.accessToken,expiresOnTimestamp:h.expiresOn.getTime(),refreshAfterTimestamp:h.refreshOn?.getTime(),tokenType:h.tokenType}}catch(m){throw handleMsalError(e,m,q)}}function createBaseInteractiveRequest(e,m){return{openBrowser:async e=>{const m=await __nccwpck_require__.e(360).then(__nccwpck_require__.bind(__nccwpck_require__,6360));await m.default(e,{newInstance:true})},scopes:e,authority:calculateRequestAuthority(m),claims:m?.claims,loginHint:m?.loginHint,errorTemplate:m?.browserCustomizationOptions?.errorMessage,successTemplate:m?.browserCustomizationOptions?.successMessage,prompt:m?.loginHint?"login":"select_account"}}async function getBrokeredTokenInternal(e,m,h={}){Vd.verbose("Authentication will resume through the broker");const q=await getPublicApp(h);const V=createBaseInteractiveRequest(e,h);if(C.pluginConfiguration.broker.parentWindowHandle){V.windowHandle=Buffer.from(C.pluginConfiguration.broker.parentWindowHandle)}else{Vd.warning("Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle.")}if(C.pluginConfiguration.broker.enableMsaPassthrough){(V.tokenQueryParameters??={})["msal_request_type"]="consumer_passthrough"}if(m){V.prompt="none";Vd.verbose("Attempting broker authentication using the default broker account")}else{Vd.verbose("Attempting broker authentication without the default broker account")}if(h.proofOfPossessionOptions){V.shrNonce=h.proofOfPossessionOptions.nonce;V.authenticationScheme="pop";V.resourceRequestMethod=h.proofOfPossessionOptions.resourceRequestMethod;V.resourceRequestUri=h.proofOfPossessionOptions.resourceRequestUrl}try{return await q.acquireTokenInteractive(V)}catch(C){Vd.verbose(`Failed to authenticate through the broker: ${C.message}`);if(h.disableAutomaticAuthentication){throw new AuthenticationRequiredError({scopes:e,getTokenOptions:h,message:"Cannot silently authenticate with default broker account."})}if(m){return getBrokeredTokenInternal(e,false,h)}else{throw C}}}async function getBrokeredToken(e,m,h={}){Vd.getToken.info(`Attempting to acquire token using brokered authentication with useDefaultBrokerAccount: ${m}`);const q=await getBrokeredTokenInternal(e,m,h);ensureValidMsalToken(e,q,h);C.cachedAccount=q?.account??null;C.logger.getToken.info(formatSuccess(e));return{token:q.accessToken,expiresOnTimestamp:q.expiresOn.getTime(),refreshAfterTimestamp:q.refreshOn?.getTime(),tokenType:q.tokenType}}async function getTokenByInteractiveRequest(e,m={}){Vd.getToken.info(`Attempting to acquire token interactively`);const h=await getPublicApp(m);return withSilentAuthentication(h,e,m,(async()=>{const q=createBaseInteractiveRequest(e,m);if(C.pluginConfiguration.broker.isEnabled){return getBrokeredTokenInternal(e,C.pluginConfiguration.broker.useDefaultBrokerAccount??false,m)}if(m.proofOfPossessionOptions){q.shrNonce=m.proofOfPossessionOptions.nonce;q.authenticationScheme="pop";q.resourceRequestMethod=m.proofOfPossessionOptions.resourceRequestMethod;q.resourceRequestUri=m.proofOfPossessionOptions.resourceRequestUrl}return h.acquireTokenInteractive(q)}))}return{getActiveAccount:getActiveAccount,getBrokeredToken:getBrokeredToken,getTokenByClientSecret:getTokenByClientSecret,getTokenByClientAssertion:getTokenByClientAssertion,getTokenByClientCertificate:getTokenByClientCertificate,getTokenByDeviceCode:getTokenByDeviceCode,getTokenByUsernamePassword:getTokenByUsernamePassword,getTokenByAuthorizationCode:getTokenByAuthorizationCode,getTokenOnBehalfOf:getTokenOnBehalfOf,getTokenByInteractiveRequest:getTokenByInteractiveRequest}}const Wd="ClientCertificateCredential";const Kd=credentialLogger(Wd);class ClientCertificateCredential{tenantId;additionallyAllowedTenantIds;certificateConfiguration;sendCertificateChain;msalClient;constructor(e,m,h,C={}){if(!e||!m){throw new Error(`${Wd}: tenantId and clientId are required parameters.`)}this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(C?.additionallyAllowedTenants);this.sendCertificateChain=C.sendCertificateChain;this.certificateConfiguration={...typeof h==="string"?{certificatePath:h}:h};const q=this.certificateConfiguration.certificate;const V=this.certificateConfiguration.certificatePath;if(!this.certificateConfiguration||!(q||V)){throw new Error(`${Wd}: Provide either a PEM certificate in string form, or the path to that certificate in the filesystem. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(q&&V){throw new Error(`${Wd}: To avoid unexpected behaviors, providing both the contents of a PEM certificate and the path to a PEM certificate is forbidden. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}this.msalClient=msalClient_createMsalClient(m,e,{...C,logger:Kd,tokenCredentialOptions:C})}async getToken(e,m={}){return Xr.withSpan(`${Wd}.getToken`,m,(async m=>{m.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds,Kd);const h=Array.isArray(e)?e:[e];const C=await this.buildClientCertificate();return this.msalClient.getTokenByClientCertificate(h,C,m)}))}async buildClientCertificate(){const e=await parseCertificate(this.certificateConfiguration,this.sendCertificateChain??false);let m;if(this.certificateConfiguration.certificatePassword!==undefined){m=(0,Dl.createPrivateKey)({key:e.certificateContents,passphrase:this.certificateConfiguration.certificatePassword,format:"pem"}).export({format:"pem",type:"pkcs8"}).toString()}else{m=e.certificateContents}return{thumbprint:e.thumbprint,thumbprintSha256:e.thumbprintSha256,privateKey:m,x5c:e.x5c}}}async function parseCertificate(e,m){const h=e.certificate;const C=e.certificatePath;const q=h||await(0,bn.readFile)(C,"utf8");const V=m?q:undefined;const le=/(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;const fe=[];let he;do{he=le.exec(q);if(he){fe.push(he[3])}}while(he);if(fe.length===0){throw new Error("The file at the specified path does not contain a PEM-encoded certificate.")}const ye=(0,Dl.createHash)("sha1").update(Buffer.from(fe[0],"base64")).digest("hex").toUpperCase();const ve=(0,Dl.createHash)("sha256").update(Buffer.from(fe[0],"base64")).digest("hex").toUpperCase();return{certificateContents:q,thumbprintSha256:ve,thumbprint:ye,x5c:V}}function scopeUtils_ensureScopes(e){return Array.isArray(e)?e:[e]}function ensureValidScopeForDevTimeCreds(e,m){if(!e.match(/^[0-9a-zA-Z-_.:/]+$/)){const h=new Error("Invalid scope was specified by the user or calling client");m.getToken.info(logging_formatError(e,h));throw h}}function getScopeResource(e){return e.replace(/\/.default$/,"")}const Yd=credentialLogger("ClientSecretCredential");class ClientSecretCredential{tenantId;additionallyAllowedTenantIds;msalClient;clientSecret;constructor(e,m,h,C={}){if(!e){throw new errors_CredentialUnavailableError("ClientSecretCredential: tenantId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.")}if(!m){throw new errors_CredentialUnavailableError("ClientSecretCredential: clientId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.")}if(!h){throw new errors_CredentialUnavailableError("ClientSecretCredential: clientSecret is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.")}this.clientSecret=h;this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(C?.additionallyAllowedTenants);this.msalClient=msalClient_createMsalClient(m,e,{...C,logger:Yd,tokenCredentialOptions:C})}async getToken(e,m={}){return Xr.withSpan(`${this.constructor.name}.getToken`,m,(async m=>{m.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds,Yd);const h=scopeUtils_ensureScopes(e);return this.msalClient.getTokenByClientSecret(h,this.clientSecret,m)}))}}const Qd=credentialLogger("UsernamePasswordCredential");class UsernamePasswordCredential{tenantId;additionallyAllowedTenantIds;msalClient;username;password;constructor(e,m,h,C,q={}){if(!e){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: tenantId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}if(!m){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: clientId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}if(!h){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: username is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}if(!C){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: password is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(q?.additionallyAllowedTenants);this.username=h;this.password=C;this.msalClient=msalClient_createMsalClient(m,this.tenantId,{...q,tokenCredentialOptions:q??{}})}async getToken(e,m={}){return Xr.withSpan(`${this.constructor.name}.getToken`,m,(async m=>{m.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds,Qd);const h=scopeUtils_ensureScopes(e);return this.msalClient.getTokenByUsernamePassword(h,this.username,this.password,m)}))}}const Jd=["AZURE_TENANT_ID","AZURE_CLIENT_ID","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","AZURE_CLIENT_CERTIFICATE_PASSWORD","AZURE_USERNAME","AZURE_PASSWORD","AZURE_ADDITIONALLY_ALLOWED_TENANTS","AZURE_CLIENT_SEND_CERTIFICATE_CHAIN"];function getAdditionallyAllowedTenants(){const e=process.env.AZURE_ADDITIONALLY_ALLOWED_TENANTS??"";return e.split(";")}const Xd="EnvironmentCredential";const Zd=credentialLogger(Xd);function getSendCertificateChain(){const e=(process.env.AZURE_CLIENT_SEND_CERTIFICATE_CHAIN??"").toLowerCase();const m=e==="true"||e==="1";Zd.verbose(`AZURE_CLIENT_SEND_CERTIFICATE_CHAIN: ${process.env.AZURE_CLIENT_SEND_CERTIFICATE_CHAIN}; sendCertificateChain: ${m}`);return m}class EnvironmentCredential{_credential=undefined;constructor(e){const m=processEnvVars(Jd).assigned.join(", ");Zd.info(`Found the following environment variables: ${m}`);const h=process.env.AZURE_TENANT_ID,C=process.env.AZURE_CLIENT_ID,q=process.env.AZURE_CLIENT_SECRET;const V=getAdditionallyAllowedTenants();const le=getSendCertificateChain();const fe={...e,additionallyAllowedTenantIds:V,sendCertificateChain:le};if(h){tenantIdUtils_checkTenantId(Zd,h)}if(h&&C&&q){Zd.info(`Invoking ClientSecretCredential with tenant ID: ${h}, clientId: ${C} and clientSecret: [REDACTED]`);this._credential=new ClientSecretCredential(h,C,q,fe);return}const he=process.env.AZURE_CLIENT_CERTIFICATE_PATH;const ye=process.env.AZURE_CLIENT_CERTIFICATE_PASSWORD;if(h&&C&&he){Zd.info(`Invoking ClientCertificateCredential with tenant ID: ${h}, clientId: ${C} and certificatePath: ${he}`);this._credential=new ClientCertificateCredential(h,C,{certificatePath:he,certificatePassword:ye},fe);return}const ve=process.env.AZURE_USERNAME;const Le=process.env.AZURE_PASSWORD;if(h&&C&&ve&&Le){Zd.info(`Invoking UsernamePasswordCredential with tenant ID: ${h}, clientId: ${C} and username: ${ve}`);Zd.warning("Environment is configured to use username and password authentication. This authentication method is deprecated, as it doesn't support multifactor authentication (MFA). Use a more secure credential. For more details, see https://aka.ms/azsdk/identity/mfa.");this._credential=new UsernamePasswordCredential(h,C,ve,Le,fe)}}async getToken(e,m={}){return Xr.withSpan(`${Xd}.getToken`,m,(async m=>{if(this._credential){try{const h=await this._credential.getToken(e,m);Zd.getToken.info(formatSuccess(e));return h}catch(m){const h=new errors_AuthenticationError(400,{error:`${Xd} authentication failed. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.`,error_description:m.message.toString().split("More details:").join("")});Zd.getToken.info(logging_formatError(e,h));throw h}}throw new errors_CredentialUnavailableError(`${Xd} is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.`)}))}}const ep=1e3*64;const tp=3e3;function imdsRetryPolicy(e){return policies_retryPolicy_retryPolicy([{name:"imdsRetryPolicy",retry:({retryCount:m,response:h})=>{if(h?.status!==404&&h?.status!==410){return{skipStrategy:true}}const C=h?.status===410?Math.max(tp,e.startDelayInMs):e.startDelayInMs;return esm_calculateRetryDelay(m,{retryDelayInMs:C,maxRetryDelayInMs:ep})}}],{maxRetries:e.maxRetries})}const np="ManagedIdentityCredential - IMDS";const rp=credentialLogger(np);const ip="http://169.254.169.254";const sp="/metadata/identity/oauth2/token";function prepareInvalidRequestOptions(e){const m=mapScopesToResource(e);if(!m){throw new Error(`${np}: Multiple scopes are not supported.`)}const h=new URL(sp,process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST??ip);const C={Accept:"application/json"};return{url:`${h}`,method:"GET",headers:esm_httpHeaders_createHttpHeaders(C)}}const ap={name:"imdsMsi",async isAvailable(e){const{scopes:m,identityClient:h,getTokenOptions:C}=e;const q=mapScopesToResource(m);if(!q){rp.info(`${np}: Unavailable. Multiple scopes are not supported.`);return false}if(process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST){return true}if(!h){throw new Error("Missing IdentityClient")}const V=prepareInvalidRequestOptions(q);return Xr.withSpan("ManagedIdentityCredential-pingImdsEndpoint",C??{},(async e=>{V.tracingOptions=e.tracingOptions;const m=esm_pipelineRequest_createPipelineRequest(V);m.timeout=e.requestOptions?.timeout||1e3;m.allowInsecureConnection=true;let C;try{rp.info(`${np}: Pinging the Azure IMDS endpoint`);C=await h.sendRequest(m)}catch(e){if(esm_isError(e)){rp.verbose(`${np}: Caught error ${e.name}: ${e.message}`)}rp.info(`${np}: The Azure IMDS endpoint is unavailable`);return false}if(C.status===403){if(C.bodyAsText?.includes("unreachable")){rp.info(`${np}: The Azure IMDS endpoint is unavailable`);rp.info(`${np}: ${C.bodyAsText}`);return false}}rp.info(`${np}: The Azure IMDS endpoint is available`);return true}))}};const cp=credentialLogger("ClientAssertionCredential");class clientAssertionCredential_ClientAssertionCredential{msalClient;tenantId;additionallyAllowedTenantIds;getAssertion;options;constructor(e,m,h,C={}){if(!e){throw new errors_CredentialUnavailableError("ClientAssertionCredential: tenantId is a required parameter.")}if(!m){throw new errors_CredentialUnavailableError("ClientAssertionCredential: clientId is a required parameter.")}if(!h){throw new errors_CredentialUnavailableError("ClientAssertionCredential: clientAssertion is a required parameter.")}this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(C?.additionallyAllowedTenants);this.options=C;this.getAssertion=h;this.msalClient=msalClient_createMsalClient(m,e,{...C,logger:cp,tokenCredentialOptions:this.options})}async getToken(e,m={}){return Xr.withSpan(`${this.constructor.name}.getToken`,m,(async m=>{m.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds,cp);const h=Array.isArray(e)?e:[e];return this.msalClient.getTokenByClientAssertion(h,this.getAssertion,m)}))}}const lp="WorkloadIdentityCredential";const up=["AZURE_TENANT_ID","AZURE_CLIENT_ID","AZURE_FEDERATED_TOKEN_FILE"];const dp=credentialLogger(lp);class WorkloadIdentityCredential{client;azureFederatedTokenFileContent=undefined;cacheDate=undefined;federatedTokenFilePath;constructor(e){const m=processEnvVars(up).assigned.join(", ");dp.info(`Found the following environment variables: ${m}`);const h=e??{};const C=h.tenantId||process.env.AZURE_TENANT_ID;const q=h.clientId||process.env.AZURE_CLIENT_ID;this.federatedTokenFilePath=h.tokenFilePath||process.env.AZURE_FEDERATED_TOKEN_FILE;if(C){tenantIdUtils_checkTenantId(dp,C)}if(!q){throw new errors_CredentialUnavailableError(`${lp}: is unavailable. clientId is a required parameter. In DefaultAzureCredential and ManagedIdentityCredential, this can be provided as an environment variable - "AZURE_CLIENT_ID".\n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`)}if(!C){throw new errors_CredentialUnavailableError(`${lp}: is unavailable. tenantId is a required parameter. In DefaultAzureCredential and ManagedIdentityCredential, this can be provided as an environment variable - "AZURE_TENANT_ID".\n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`)}if(!this.federatedTokenFilePath){throw new errors_CredentialUnavailableError(`${lp}: is unavailable. federatedTokenFilePath is a required parameter. In DefaultAzureCredential and ManagedIdentityCredential, this can be provided as an environment variable - "AZURE_FEDERATED_TOKEN_FILE".\n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`)}dp.info(`Invoking ClientAssertionCredential with tenant ID: ${C}, clientId: ${h.clientId} and federated token path: [REDACTED]`);this.client=new clientAssertionCredential_ClientAssertionCredential(C,q,this.readFileContents.bind(this),e)}async getToken(e,m){if(!this.client){const e=`${lp}: is unavailable. tenantId, clientId, and federatedTokenFilePath are required parameters. \n In DefaultAzureCredential and ManagedIdentityCredential, these can be provided as environment variables - \n "AZURE_TENANT_ID",\n "AZURE_CLIENT_ID",\n "AZURE_FEDERATED_TOKEN_FILE". See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`;dp.info(e);throw new errors_CredentialUnavailableError(e)}dp.info("Invoking getToken() of Client Assertion Credential");return this.client.getToken(e,m)}async readFileContents(){if(this.cacheDate!==undefined&&Date.now()-this.cacheDate>=1e3*60*5){this.azureFederatedTokenFileContent=undefined}if(!this.federatedTokenFilePath){throw new errors_CredentialUnavailableError(`${lp}: is unavailable. Invalid file path provided ${this.federatedTokenFilePath}.`)}if(!this.azureFederatedTokenFileContent){const e=await(0,bn.readFile)(this.federatedTokenFilePath,"utf8");const m=e.trim();if(!m){throw new errors_CredentialUnavailableError(`${lp}: is unavailable. No content on the file ${this.federatedTokenFilePath}.`)}else{this.azureFederatedTokenFileContent=m;this.cacheDate=Date.now()}}return this.azureFederatedTokenFileContent}}const pp="ManagedIdentityCredential - Token Exchange";const mp=credentialLogger(pp);const fp={name:"tokenExchangeMsi",async isAvailable(e){const m=process.env;const h=Boolean((e||m.AZURE_CLIENT_ID)&&m.AZURE_TENANT_ID&&process.env.AZURE_FEDERATED_TOKEN_FILE);if(!h){mp.info(`${pp}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`)}return h},async getToken(e,m={}){const{scopes:h,clientId:C}=e;const q={};const V=new WorkloadIdentityCredential({clientId:C,tenantId:process.env.AZURE_TENANT_ID,tokenFilePath:process.env.AZURE_FEDERATED_TOKEN_FILE,...q,disableInstanceDiscovery:true});return V.getToken(h,m)}};const hp=credentialLogger("ManagedIdentityCredential");class ManagedIdentityCredential{managedIdentityApp;identityClient;clientId;resourceId;objectId;msiRetryConfig={maxRetries:5,startDelayInMs:800,intervalIncrement:2};isAvailableIdentityClient;sendProbeRequest;constructor(e,m){let h;if(typeof e==="string"){this.clientId=e;h=m??{}}else{this.clientId=e?.clientId;h=e??{}}this.resourceId=h?.resourceId;this.objectId=h?.objectId;this.sendProbeRequest=h?.sendProbeRequest??false;const C=[{key:"clientId",value:this.clientId},{key:"resourceId",value:this.resourceId},{key:"objectId",value:this.objectId}].filter((e=>e.value));if(C.length>1){throw new Error(`ManagedIdentityCredential: only one of 'clientId', 'resourceId', or 'objectId' can be provided. Received values: ${JSON.stringify({clientId:this.clientId,resourceId:this.resourceId,objectId:this.objectId})}`)}h.allowInsecureConnection=true;if(h.retryOptions?.maxRetries!==undefined){this.msiRetryConfig.maxRetries=h.retryOptions.maxRetries}this.identityClient=new identityClient_IdentityClient({...h,additionalPolicies:[{policy:imdsRetryPolicy(this.msiRetryConfig),position:"perCall"}]});this.managedIdentityApp=new ManagedIdentityApplication({managedIdentityIdParams:{userAssignedClientId:this.clientId,userAssignedResourceId:this.resourceId,userAssignedObjectId:this.objectId},system:{disableInternalRetries:true,networkClient:this.identityClient,loggerOptions:{logLevel:getMSALLogLevel(esm_getLogLevel()),piiLoggingEnabled:h.loggingOptions?.enableUnsafeSupportLogging,loggerCallback:defaultLoggerCallback(hp)}}});this.isAvailableIdentityClient=new identityClient_IdentityClient({...h,retryOptions:{maxRetries:0}});const q=this.managedIdentityApp.getManagedIdentitySource();if(q==="CloudShell"){if(this.clientId||this.resourceId||this.objectId){hp.warning(`CloudShell MSI detected with user-provided IDs - throwing. Received values: ${JSON.stringify({clientId:this.clientId,resourceId:this.resourceId,objectId:this.objectId})}.`);throw new errors_CredentialUnavailableError("ManagedIdentityCredential: Specifying a user-assigned managed identity is not supported for CloudShell at runtime. When using Managed Identity in CloudShell, omit the clientId, resourceId, and objectId parameters.")}}if(q==="ServiceFabric"){if(this.clientId||this.resourceId||this.objectId){hp.warning(`Service Fabric detected with user-provided IDs - throwing. Received values: ${JSON.stringify({clientId:this.clientId,resourceId:this.resourceId,objectId:this.objectId})}.`);throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: ${Gd}`)}}hp.info(`Using ${q} managed identity.`);if(C.length===1){const{key:e,value:m}=C[0];hp.info(`${q} with ${e}: ${m}`)}}async getToken(e,m={}){hp.getToken.info("Using the MSAL provider for Managed Identity.");const h=mapScopesToResource(e);if(!h){throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: Multiple scopes are not supported. Scopes: ${JSON.stringify(e)}`)}return Xr.withSpan("ManagedIdentityCredential.getToken",m,(async()=>{try{const C=await fp.isAvailable(this.clientId);const q=this.managedIdentityApp.getManagedIdentitySource();const V=q==="DefaultToImds"||q==="Imds";hp.getToken.info(`MSAL Identity source: ${q}`);if(C){hp.getToken.info("Using the token exchange managed identity.");const m=await fp.getToken({scopes:e,clientId:this.clientId,identityClient:this.identityClient,retryConfig:this.msiRetryConfig,resourceId:this.resourceId});if(m===null){throw new errors_CredentialUnavailableError("Attempted to use the token exchange managed identity, but received a null response.")}return m}else if(V&&this.sendProbeRequest){hp.getToken.info("Using the IMDS endpoint to probe for availability.");const h=await ap.isAvailable({scopes:e,clientId:this.clientId,getTokenOptions:m,identityClient:this.isAvailableIdentityClient,resourceId:this.resourceId});if(!h){throw new errors_CredentialUnavailableError(`Attempted to use the IMDS endpoint, but it is not available.`)}}hp.getToken.info("Calling into MSAL for managed identity token.");const le=await this.managedIdentityApp.acquireToken({resource:h});this.ensureValidMsalToken(e,le,m);hp.getToken.info(formatSuccess(e));return{expiresOnTimestamp:le.expiresOn.getTime(),token:le.accessToken,refreshAfterTimestamp:le.refreshOn?.getTime(),tokenType:"Bearer"}}catch(m){hp.getToken.error(logging_formatError(e,m));if(m.name==="AuthenticationRequiredError"){throw m}if(isNetworkError(m)){throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: Network unreachable. Message: ${m.message}`,{cause:m})}throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: Authentication failed. Message ${m.message}`,{cause:m})}}))}ensureValidMsalToken(e,m,h){const createError=m=>{hp.getToken.info(m);return new AuthenticationRequiredError({scopes:Array.isArray(e)?e:[e],getTokenOptions:h,message:m})};if(!m){throw createError("No response.")}if(!m.expiresOn){throw createError(`Response had no "expiresOn" property.`)}if(!m.accessToken){throw createError(`Response had no "accessToken" property.`)}}}function isNetworkError(e){if(e.errorCode==="network_error"){return true}if(e.code==="ENETUNREACH"||e.code==="EHOSTUNREACH"){return true}if(e.statusCode===403||e.code===403){if(e.message.includes("unreachable")){return true}}return false}const gp=m(import.meta.url)("child_process");const yp=credentialLogger("AzureDeveloperCliCredential");const Sp={notInstalled:"Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.",login:"Please run 'azd auth login' from a command prompt to authenticate before using this credential. For more information, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.",unknown:"Unknown error while trying to retrieve the access token",claim:"This credential doesn't support claims challenges. To authenticate with the required claims, please run the following command:"};const Ep={getSafeWorkingDir(){if(process.platform==="win32"){let e=process.env.SystemRoot||process.env["SYSTEMROOT"];if(!e){yp.getToken.warning("The SystemRoot environment variable is not set. This may cause issues when using the Azure Developer CLI credential.");e="C:\\Windows"}return e}else{return"/bin"}},async getAzdAccessToken(e,m,h,C){let q=[];if(m){q=["--tenant-id",m]}let V=[];if(C){const e=btoa(C);V=["--claims",e]}return new Promise(((m,C)=>{try{const C=["auth","token","--output","json","--no-prompt",...e.reduce(((e,m)=>e.concat("--scope",m)),[]),...q,...V];const le=["azd",...C].join(" ");gp.exec(le,{cwd:Ep.getSafeWorkingDir(),timeout:h},((e,h,C)=>{m({stdout:h,stderr:C,error:e})}))}catch(e){C(e)}}))}};class AzureDeveloperCliCredential{tenantId;additionallyAllowedTenantIds;timeout;constructor(e){if(e?.tenantId){tenantIdUtils_checkTenantId(yp,e?.tenantId);this.tenantId=e?.tenantId}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);this.timeout=e?.processTimeoutInMs}async getToken(e,m={}){const h=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds);if(h){tenantIdUtils_checkTenantId(yp,h)}let C;if(typeof e==="string"){C=[e]}else{C=e}yp.getToken.info(`Using the scopes ${e}`);return Xr.withSpan(`${this.constructor.name}.getToken`,m,(async()=>{try{C.forEach((e=>{ensureValidScopeForDevTimeCreds(e,yp)}));const q=await Ep.getAzdAccessToken(C,h,this.timeout,m.claims);const V=q.stderr?.match("must use multi-factor authentication")||q.stderr?.match("reauthentication required");const le=q.stderr?.match("not logged in, run `azd login` to login")||q.stderr?.match("not logged in, run `azd auth login` to login");const fe=q.stderr?.match("azd:(.*)not found")||q.stderr?.startsWith("'azd' is not recognized");if(fe||q.error&&q.error.code==="ENOENT"){const m=new errors_CredentialUnavailableError(Sp.notInstalled);yp.getToken.info(logging_formatError(e,m));throw m}if(le){const m=new errors_CredentialUnavailableError(Sp.login);yp.getToken.info(logging_formatError(e,m));throw m}if(V){const m=C.reduce(((e,m)=>e.concat("--scope",m)),[]).join(" ");const h=`azd auth login ${m}`;const q=new errors_CredentialUnavailableError(`${Sp.claim} ${h}`);yp.getToken.info(logging_formatError(e,q));throw q}try{const m=JSON.parse(q.stdout);yp.getToken.info(formatSuccess(e));return{token:m.token,expiresOnTimestamp:new Date(m.expiresOn).getTime(),tokenType:"Bearer"}}catch(e){if(q.stderr){throw new errors_CredentialUnavailableError(q.stderr)}throw e}}catch(m){const h=m.name==="CredentialUnavailableError"?m:new errors_CredentialUnavailableError(m.message||Sp.unknown);yp.getToken.info(logging_formatError(e,h));throw h}}))}}function checkSubscription(e,m){if(!m.match(/^[0-9a-zA-Z-._ ]+$/)){const h=new Error(`Subscription '${m}' contains invalid characters. If this is the name of a subscription, use `+`its ID instead. You can locate your subscription by following the instructions listed here: `+`https://learn.microsoft.com/azure/azure-portal/get-subscription-tenant-id`);e.info(logging_formatError("",h));throw h}}const vp=credentialLogger("AzureCliCredential");const Cp={claim:"This credential doesn't support claims challenges. To authenticate with the required claims, please run the following command:",notInstalled:"Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'.",login:"Please run 'az login' from a command prompt to authenticate before using this credential.",unknown:"Unknown error while trying to retrieve the access token",unexpectedResponse:'Unexpected response from Azure CLI when getting token. Expected "expiresOn" to be a RFC3339 date string. Got:'};const Ip={getSafeWorkingDir(){if(process.platform==="win32"){let e=process.env.SystemRoot||process.env["SYSTEMROOT"];if(!e){vp.getToken.warning("The SystemRoot environment variable is not set. This may cause issues when using the Azure CLI credential.");e="C:\\Windows"}return e}else{return"/bin"}},async getAzureCliAccessToken(e,m,h,C){let q=[];let V=[];if(m){q=["--tenant",m]}if(h){V=["--subscription",`"${h}"`]}return new Promise(((m,h)=>{try{const h=["account","get-access-token","--output","json","--resource",e,...q,...V];const le=["az",...h].join(" ");gp.exec(le,{cwd:Ip.getSafeWorkingDir(),timeout:C},((e,h,C)=>{m({stdout:h,stderr:C,error:e})}))}catch(e){h(e)}}))}};class AzureCliCredential{tenantId;additionallyAllowedTenantIds;timeout;subscription;constructor(e){if(e?.tenantId){tenantIdUtils_checkTenantId(vp,e?.tenantId);this.tenantId=e?.tenantId}if(e?.subscription){checkSubscription(vp,e?.subscription);this.subscription=e?.subscription}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);this.timeout=e?.processTimeoutInMs}async getToken(e,m={}){const h=typeof e==="string"?e:e[0];const C=m.claims;if(C&&C.trim()){const e=btoa(C);let q=`az login --claims-challenge ${e} --scope ${h}`;const V=m.tenantId;if(V){q+=` --tenant ${V}`}const le=new errors_CredentialUnavailableError(`${Cp.claim} ${q}`);vp.getToken.info(logging_formatError(h,le));throw le}const q=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds);if(q){tenantIdUtils_checkTenantId(vp,q)}if(this.subscription){checkSubscription(vp,this.subscription)}vp.getToken.info(`Using the scope ${h}`);return Xr.withSpan(`${this.constructor.name}.getToken`,m,(async()=>{try{ensureValidScopeForDevTimeCreds(h,vp);const m=getScopeResource(h);const C=await Ip.getAzureCliAccessToken(m,q,this.subscription,this.timeout);const V=C.stderr?.match("(.*)az login --scope(.*)");const le=C.stderr?.match("(.*)az login(.*)")&&!V;const fe=C.stderr?.match("az:(.*)not found")||C.stderr?.startsWith("'az' is not recognized");if(fe){const m=new errors_CredentialUnavailableError(Cp.notInstalled);vp.getToken.info(logging_formatError(e,m));throw m}if(le){const m=new errors_CredentialUnavailableError(Cp.login);vp.getToken.info(logging_formatError(e,m));throw m}try{const m=C.stdout;const h=this.parseRawResponse(m);vp.getToken.info(formatSuccess(e));return h}catch(e){if(C.stderr){throw new errors_CredentialUnavailableError(C.stderr)}throw e}}catch(m){const h=m.name==="CredentialUnavailableError"?m:new errors_CredentialUnavailableError(m.message||Cp.unknown);vp.getToken.info(logging_formatError(e,h));throw h}}))}parseRawResponse(e){const m=JSON.parse(e);const h=m.accessToken;let C=Number.parseInt(m.expires_on,10)*1e3;if(!isNaN(C)){vp.getToken.info("expires_on is available and is valid, using it");return{token:h,expiresOnTimestamp:C,tokenType:"Bearer"}}C=new Date(m.expiresOn).getTime();if(isNaN(C)){throw new errors_CredentialUnavailableError(`${Cp.unexpectedResponse} "${m.expiresOn}"`)}return{token:h,expiresOnTimestamp:C,tokenType:"Bearer"}}}var bp=__nccwpck_require__(1421);const Ap={execFile(e,m,h){return new Promise(((C,q)=>{bp.execFile(e,m,h,((e,m,h)=>{if(Buffer.isBuffer(m)){m=m.toString("utf8")}if(Buffer.isBuffer(h)){h=h.toString("utf8")}if(h||e){q(h?new Error(h):e)}else{C(m)}}))}))}};const wp=credentialLogger("AzurePowerShellCredential");const Rp=process.platform==="win32";function formatCommand(e){if(Rp){return`${e}.exe`}else{return e}}async function runCommands(e,m){const h=[];for(const C of e){const[e,...q]=C;const V=await Ap.execFile(e,q,{encoding:"utf8",timeout:m});h.push(V)}return h}const Tp={login:"Run Connect-AzAccount to login",installed:"The specified module 'Az.Accounts' with version '2.2.0' was not loaded because no valid module file was found in any module directory"};const Pp={login:"Please run 'Connect-AzAccount' from PowerShell to authenticate before using this credential.",installed:`The 'Az.Account' module >= 2.2.0 is not installed. Install the Azure Az PowerShell module with: "Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force".`,claim:"This credential doesn't support claims challenges. To authenticate with the required claims, please run the following command:",troubleshoot:`To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.`};const isLoginError=e=>e.message.match(`(.*)${Tp.login}(.*)`);const isNotInstalledError=e=>e.message.match(Tp.installed);const xp=[formatCommand("pwsh")];if(Rp){xp.push(formatCommand("powershell"))}class AzurePowerShellCredential{tenantId;additionallyAllowedTenantIds;timeout;constructor(e){if(e?.tenantId){tenantIdUtils_checkTenantId(wp,e?.tenantId);this.tenantId=e?.tenantId}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);this.timeout=e?.processTimeoutInMs}async getAzurePowerShellAccessToken(e,m,h){for(const C of[...xp]){try{await runCommands([[C,"/?"]],h)}catch(e){xp.shift();continue}const q=await runCommands([[C,"-NoProfile","-NonInteractive","-Command",`\n $tenantId = "${m??""}"\n $m = Import-Module Az.Accounts -MinimumVersion 2.2.0 -PassThru\n $useSecureString = $m.Version -ge [version]'2.17.0' -and $m.Version -lt [version]'5.0.0'\n\n $params = @{\n ResourceUrl = "${e}"\n }\n\n if ($tenantId.Length -gt 0) {\n $params["TenantId"] = $tenantId\n }\n\n if ($useSecureString) {\n $params["AsSecureString"] = $true\n }\n\n $token = Get-AzAccessToken @params\n\n $result = New-Object -TypeName PSObject\n $result | Add-Member -MemberType NoteProperty -Name ExpiresOn -Value $token.ExpiresOn\n\n if ($token.Token -is [System.Security.SecureString]) {\n if ($PSVersionTable.PSVersion.Major -lt 7) {\n $ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($token.Token)\n try {\n $result | Add-Member -MemberType NoteProperty -Name Token -Value ([System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr))\n }\n finally {\n [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr)\n }\n }\n else {\n $result | Add-Member -MemberType NoteProperty -Name Token -Value ($token.Token | ConvertFrom-SecureString -AsPlainText)\n }\n }\n else {\n $result | Add-Member -MemberType NoteProperty -Name Token -Value $token.Token\n }\n\n Write-Output (ConvertTo-Json $result)\n `]]);const V=q[0];return parseJsonToken(V)}throw new Error(`Unable to execute PowerShell. Ensure that it is installed in your system`)}async getToken(e,m={}){return Xr.withSpan(`${this.constructor.name}.getToken`,m,(async()=>{const h=typeof e==="string"?e:e[0];const C=m.claims;if(C&&C.trim()){const e=btoa(C);let q=`Connect-AzAccount -ClaimsChallenge ${e}`;const V=m.tenantId;if(V){q+=` -Tenant ${V}`}const le=new errors_CredentialUnavailableError(`${Pp.claim} ${q}`);wp.getToken.info(logging_formatError(h,le));throw le}const q=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds);if(q){tenantIdUtils_checkTenantId(wp,q)}try{ensureValidScopeForDevTimeCreds(h,wp);wp.getToken.info(`Using the scope ${h}`);const m=getScopeResource(h);const C=await this.getAzurePowerShellAccessToken(m,q,this.timeout);wp.getToken.info(formatSuccess(e));return{token:C.Token,expiresOnTimestamp:new Date(C.ExpiresOn).getTime(),tokenType:"Bearer"}}catch(e){if(isNotInstalledError(e)){const e=new errors_CredentialUnavailableError(Pp.installed);wp.getToken.info(logging_formatError(h,e));throw e}else if(isLoginError(e)){const e=new errors_CredentialUnavailableError(Pp.login);wp.getToken.info(logging_formatError(h,e));throw e}const m=new errors_CredentialUnavailableError(`${e}. ${Pp.troubleshoot}`);wp.getToken.info(logging_formatError(h,m));throw m}}))}}async function parseJsonToken(e){const m=/{[^{}]*}/g;const h=e.match(m);let C=e;if(h){try{for(const e of h){try{const m=JSON.parse(e);if(m?.Token){C=C.replace(e,"");if(C){wp.getToken.warning(C)}return m}}catch(e){continue}}}catch(m){throw new Error(`Unable to parse the output of PowerShell. Received output: ${e}`)}}throw new Error(`No access token found in the output. Received output: ${e}`)}const _p="common";const Op="aebc6443-996d-45c2-90f0-388ff96faa56";const Dp=credentialLogger("VisualStudioCodeCredential");const Mp={adfs:"The VisualStudioCodeCredential does not support authentication with ADFS tenants."};function checkUnsupportedTenant(e){const m=Mp[e];if(m){throw new errors_CredentialUnavailableError(m)}}class VisualStudioCodeCredential{tenantId;additionallyAllowedTenantIds;msalClient;options;constructor(e){this.options=e||{};if(e&&e.tenantId){tenantIdUtils_checkTenantId(Dp,e.tenantId);this.tenantId=e.tenantId}else{this.tenantId=_p}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);checkUnsupportedTenant(this.tenantId)}async prepare(e){const m=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,this.options,this.additionallyAllowedTenantIds,Dp)||this.tenantId;if(!hasVSCodePlugin()||!Cr){throw new errors_CredentialUnavailableError("Visual Studio Code Authentication is not available."+" Ensure you have have Azure Resources Extension installed in VS Code,"+" signed into Azure via VS Code, installed the @azure/identity-vscode package,"+" and properly configured the extension.")}const h=await this.loadAuthRecord(Cr,e);this.msalClient=msalClient_createMsalClient(Op,m,{...this.options,isVSCodeCredential:true,brokerOptions:{enabled:true,parentWindowHandle:new Uint8Array(0),useDefaultBrokerAccount:true},authenticationRecord:h})}preparePromise;prepareOnce(e){if(!this.preparePromise){this.preparePromise=this.prepare(e)}return this.preparePromise}async getToken(e,m){const h=scopeUtils_ensureScopes(e);await this.prepareOnce(h);if(!this.msalClient){throw new errors_CredentialUnavailableError("Visual Studio Code Authentication failed to initialize."+" Ensure you have have Azure Resources Extension installed in VS Code,"+" signed into Azure via VS Code, installed the @azure/identity-vscode package,"+" and properly configured the extension.")}return this.msalClient.getTokenByInteractiveRequest(h,{...m,disableAutomaticAuthentication:true})}async loadAuthRecord(e,m){try{const m=await(0,bn.readFile)(e,{encoding:"utf8"});return deserializeAuthenticationRecord(m)}catch(e){Dp.getToken.info(logging_formatError(m,e));throw new errors_CredentialUnavailableError("Cannot load authentication record in Visual Studio Code."+" Ensure you have have Azure Resources Extension installed in VS Code,"+" signed into Azure via VS Code, installed the @azure/identity-vscode package,"+" and properly configured the extension.")}}}const $p=credentialLogger("BrokerCredential");class BrokerCredential{brokerMsalClient;brokerTenantId;brokerAdditionallyAllowedTenantIds;constructor(e){this.brokerTenantId=tenantIdUtils_resolveTenantId($p,e.tenantId);this.brokerAdditionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);const m={...e,tokenCredentialOptions:e,logger:$p,brokerOptions:{enabled:true,parentWindowHandle:new Uint8Array(0),useDefaultBrokerAccount:true}};this.brokerMsalClient=msalClient_createMsalClient(lr,this.brokerTenantId,m)}async getToken(e,m={}){return Xr.withSpan(`${this.constructor.name}.getToken`,m,(async m=>{m.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.brokerTenantId,m,this.brokerAdditionallyAllowedTenantIds,$p);const h=scopeUtils_ensureScopes(e);try{return this.brokerMsalClient.getBrokeredToken(h,true,{...m,disableAutomaticAuthentication:true})}catch(e){$p.getToken.info(logging_formatError(h,e));throw new errors_CredentialUnavailableError("Failed to acquire token using broker authentication",{cause:e})}}))}}function createDefaultBrokerCredential(e={}){return new BrokerCredential(e)}function createDefaultVisualStudioCodeCredential(e={}){return new VisualStudioCodeCredential(e)}function createDefaultManagedIdentityCredential(e={}){e.retryOptions??={maxRetries:5,retryDelayInMs:800};e.sendProbeRequest??=true;const m=e?.managedIdentityClientId??process.env.AZURE_CLIENT_ID;const h=e?.workloadIdentityClientId??m;const C=e?.managedIdentityResourceId;const q=process.env.AZURE_FEDERATED_TOKEN_FILE;const V=e?.tenantId??process.env.AZURE_TENANT_ID;if(C){const m={...e,resourceId:C};return new ManagedIdentityCredential(m)}if(q&&h){const m={...e,tenantId:V};return new ManagedIdentityCredential(h,m)}if(m){const h={...e,clientId:m};return new ManagedIdentityCredential(h)}return new ManagedIdentityCredential(e)}function createDefaultWorkloadIdentityCredential(e){const m=e?.managedIdentityClientId??process.env.AZURE_CLIENT_ID;const h=e?.workloadIdentityClientId??m;const C=process.env.AZURE_FEDERATED_TOKEN_FILE;const q=e?.tenantId??process.env.AZURE_TENANT_ID;if(C&&h){const m={...e,tenantId:q,clientId:h,tokenFilePath:C};return new WorkloadIdentityCredential(m)}if(q){const m={...e,tenantId:q};return new WorkloadIdentityCredential(m)}return new WorkloadIdentityCredential(e)}function createDefaultAzureDeveloperCliCredential(e={}){return new AzureDeveloperCliCredential(e)}function createDefaultAzureCliCredential(e={}){return new AzureCliCredential(e)}function createDefaultAzurePowershellCredential(e={}){return new AzurePowerShellCredential(e)}function createDefaultEnvironmentCredential(e={}){return new EnvironmentCredential(e)}const Np=credentialLogger("DefaultAzureCredential");class UnavailableDefaultCredential{credentialUnavailableErrorMessage;credentialName;constructor(e,m){this.credentialName=e;this.credentialUnavailableErrorMessage=m}getToken(){Np.getToken.info(`Skipping ${this.credentialName}, reason: ${this.credentialUnavailableErrorMessage}`);return Promise.resolve(null)}}class defaultAzureCredential_DefaultAzureCredential extends ChainedTokenCredential{constructor(e){validateRequiredEnvVars(e);const m=process.env.AZURE_TOKEN_CREDENTIALS?process.env.AZURE_TOKEN_CREDENTIALS.trim().toLowerCase():undefined;const h=[createDefaultVisualStudioCodeCredential,createDefaultAzureCliCredential,createDefaultAzurePowershellCredential,createDefaultAzureDeveloperCliCredential,createDefaultBrokerCredential];const C=[createDefaultEnvironmentCredential,createDefaultWorkloadIdentityCredential,createDefaultManagedIdentityCredential];let q=[];const V="EnvironmentCredential, WorkloadIdentityCredential, ManagedIdentityCredential, VisualStudioCodeCredential, AzureCliCredential, AzurePowerShellCredential, AzureDeveloperCliCredential";if(m){switch(m){case"dev":q=h;break;case"prod":q=C;break;case"environmentcredential":q=[createDefaultEnvironmentCredential];break;case"workloadidentitycredential":q=[createDefaultWorkloadIdentityCredential];break;case"managedidentitycredential":q=[()=>createDefaultManagedIdentityCredential({sendProbeRequest:false})];break;case"visualstudiocodecredential":q=[createDefaultVisualStudioCodeCredential];break;case"azureclicredential":q=[createDefaultAzureCliCredential];break;case"azurepowershellcredential":q=[createDefaultAzurePowershellCredential];break;case"azuredeveloperclicredential":q=[createDefaultAzureDeveloperCliCredential];break;default:{const e=`Invalid value for AZURE_TOKEN_CREDENTIALS = ${process.env.AZURE_TOKEN_CREDENTIALS}. Valid values are 'prod' or 'dev' or any of these credentials - ${V}.`;Np.warning(e);throw new Error(e)}}}else{q=[...C,...h]}const le=q.map((m=>{try{return m(e??{})}catch(e){Np.warning(`Skipped ${m.name} because of an error creating the credential: ${e}`);return new UnavailableDefaultCredential(m.name,e.message)}}));super(...le)}}function validateRequiredEnvVars(e){if(e?.requiredEnvVars){const m=Array.isArray(e.requiredEnvVars)?e.requiredEnvVars:[e.requiredEnvVars];const h=m.filter((e=>!process.env[e]));if(h.length>0){const e=`Required environment ${h.length===1?"variable":"variables"} '${h.join(", ")}' for DefaultAzureCredential ${h.length===1?"is":"are"} not set or empty.`;Np.warning(e);throw new Error(e)}}}const kp=credentialLogger("InteractiveBrowserCredential");class InteractiveBrowserCredential{tenantId;additionallyAllowedTenantIds;msalClient;disableAutomaticAuthentication;browserCustomizationOptions;loginHint;constructor(e){this.tenantId=resolveTenantId(kp,e.tenantId,e.clientId);this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);const m={...e,tokenCredentialOptions:e,logger:kp};const h=e;this.browserCustomizationOptions=h.browserCustomizationOptions;this.loginHint=h.loginHint;if(h?.brokerOptions?.enabled){if(!h?.brokerOptions?.parentWindowHandle){throw new Error("In order to do WAM authentication, `parentWindowHandle` under `brokerOptions` is a required parameter")}else{m.brokerOptions={enabled:true,parentWindowHandle:h.brokerOptions.parentWindowHandle,legacyEnableMsaPassthrough:h.brokerOptions?.legacyEnableMsaPassthrough,useDefaultBrokerAccount:h.brokerOptions?.useDefaultBrokerAccount}}}this.msalClient=createMsalClient(e.clientId??DeveloperSignOnClientId,this.tenantId,m);this.disableAutomaticAuthentication=e?.disableAutomaticAuthentication}async getToken(e,m={}){return tracingClient.withSpan(`${this.constructor.name}.getToken`,m,(async m=>{m.tenantId=processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds,kp);const h=ensureScopes(e);return this.msalClient.getTokenByInteractiveRequest(h,{...m,disableAutomaticAuthentication:this.disableAutomaticAuthentication,browserCustomizationOptions:this.browserCustomizationOptions,loginHint:this.loginHint})}))}async authenticate(e,m={}){return tracingClient.withSpan(`${this.constructor.name}.authenticate`,m,(async m=>{const h=ensureScopes(e);await this.msalClient.getTokenByInteractiveRequest(h,{...m,disableAutomaticAuthentication:false,browserCustomizationOptions:this.browserCustomizationOptions,loginHint:this.loginHint});return this.msalClient.getActiveAccount()}))}}const Lp=credentialLogger("DeviceCodeCredential");function defaultDeviceCodePromptCallback(e){console.log(e.message)}class DeviceCodeCredential{tenantId;additionallyAllowedTenantIds;disableAutomaticAuthentication;msalClient;userPromptCallback;constructor(e){this.tenantId=e?.tenantId;this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);const m=e?.clientId??DeveloperSignOnClientId;const h=resolveTenantId(Lp,e?.tenantId,m);this.userPromptCallback=e?.userPromptCallback??defaultDeviceCodePromptCallback;this.msalClient=createMsalClient(m,h,{...e,logger:Lp,tokenCredentialOptions:e||{}});this.disableAutomaticAuthentication=e?.disableAutomaticAuthentication}async getToken(e,m={}){return tracingClient.withSpan(`${this.constructor.name}.getToken`,m,(async m=>{m.tenantId=processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds,Lp);const h=ensureScopes(e);return this.msalClient.getTokenByDeviceCode(h,this.userPromptCallback,{...m,disableAutomaticAuthentication:this.disableAutomaticAuthentication})}))}async authenticate(e,m={}){return tracingClient.withSpan(`${this.constructor.name}.authenticate`,m,(async m=>{const h=Array.isArray(e)?e:[e];await this.msalClient.getTokenByDeviceCode(h,this.userPromptCallback,{...m,disableAutomaticAuthentication:false});return this.msalClient.getActiveAccount()}))}}const Up="AzurePipelinesCredential";const Fp=credentialLogger(Up);const qp="7.1";class AzurePipelinesCredential{clientAssertionCredential;identityClient;constructor(e,m,h,C,q={}){if(!m){throw new CredentialUnavailableError(`${Up}: is unavailable. clientId is a required parameter.`)}if(!e){throw new CredentialUnavailableError(`${Up}: is unavailable. tenantId is a required parameter.`)}if(!h){throw new CredentialUnavailableError(`${Up}: is unavailable. serviceConnectionId is a required parameter.`)}if(!C){throw new CredentialUnavailableError(`${Up}: is unavailable. systemAccessToken is a required parameter.`)}q.loggingOptions={...q?.loggingOptions,additionalAllowedHeaderNames:[...q.loggingOptions?.additionalAllowedHeaderNames??[],"x-vss-e2eid","x-msedge-ref"]};this.identityClient=new IdentityClient(q);checkTenantId(Fp,e);Fp.info(`Invoking AzurePipelinesCredential with tenant ID: ${e}, client ID: ${m}, and service connection ID: ${h}`);if(!process.env.SYSTEM_OIDCREQUESTURI){throw new CredentialUnavailableError(`${Up}: is unavailable. Ensure that you're running this task in an Azure Pipeline, so that following missing system variable(s) can be defined- "SYSTEM_OIDCREQUESTURI"`)}const V=`${process.env.SYSTEM_OIDCREQUESTURI}?api-version=${qp}&serviceConnectionId=${h}`;Fp.info(`Invoking ClientAssertionCredential with tenant ID: ${e}, client ID: ${m} and service connection ID: ${h}`);this.clientAssertionCredential=new ClientAssertionCredential(e,m,this.requestOidcToken.bind(this,V,C),q)}async getToken(e,m){if(!this.clientAssertionCredential){const e=`${Up}: is unavailable. To use Federation Identity in Azure Pipelines, the following parameters are required - \n tenantId,\n clientId,\n serviceConnectionId,\n systemAccessToken,\n "SYSTEM_OIDCREQUESTURI". \n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`;Fp.error(e);throw new CredentialUnavailableError(e)}Fp.info("Invoking getToken() of Client Assertion Credential");return this.clientAssertionCredential.getToken(e,m)}async requestOidcToken(e,m){Fp.info("Requesting OIDC token from Azure Pipelines...");Fp.info(e);const h=createPipelineRequest({url:e,method:"POST",headers:createHttpHeaders({"Content-Type":"application/json",Authorization:`Bearer ${m}`,"X-TFS-FedAuthRedirect":"Suppress"})});const C=await this.identityClient.sendRequest(h);return handleOidcResponse(C)}}function handleOidcResponse(e){const m=e.bodyAsText;if(!m){Fp.error(`${Up}: Authentication Failed. Received null token from OIDC request. Response status- ${e.status}. Complete response - ${JSON.stringify(e)}`);throw new AuthenticationError(e.status,{error:`${Up}: Authentication Failed. Received null token from OIDC request.`,error_description:`${JSON.stringify(e)}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`})}try{const h=JSON.parse(m);if(h?.oidcToken){return h.oidcToken}else{const h=`${Up}: Authentication Failed. oidcToken field not detected in the response.`;let C=``;if(e.status!==200){C=`Response body = ${m}. Response Headers ["x-vss-e2eid"] = ${e.headers.get("x-vss-e2eid")} and ["x-msedge-ref"] = ${e.headers.get("x-msedge-ref")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`}Fp.error(h);Fp.error(C);throw new AuthenticationError(e.status,{error:h,error_description:C})}}catch(h){const C=`${Up}: Authentication Failed. oidcToken field not detected in the response.`;Fp.error(`Response from service = ${m}, Response Headers ["x-vss-e2eid"] = ${e.headers.get("x-vss-e2eid")} \n and ["x-msedge-ref"] = ${e.headers.get("x-msedge-ref")}, error message = ${h.message}`);Fp.error(C);throw new AuthenticationError(e.status,{error:C,error_description:`Response = ${m}. Response headers ["x-vss-e2eid"] = ${e.headers.get("x-vss-e2eid")} and ["x-msedge-ref"] = ${e.headers.get("x-msedge-ref")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`})}}const jp=credentialLogger("AuthorizationCodeCredential");class AuthorizationCodeCredential{msalClient;disableAutomaticAuthentication;authorizationCode;redirectUri;tenantId;additionallyAllowedTenantIds;clientSecret;constructor(e,m,h,C,q,V){checkTenantId(jp,e);this.clientSecret=h;if(typeof q==="string"){this.authorizationCode=C;this.redirectUri=q}else{this.authorizationCode=h;this.redirectUri=C;this.clientSecret=undefined;V=q}this.tenantId=e;this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(V?.additionallyAllowedTenants);this.msalClient=createMsalClient(m,e,{...V,logger:jp,tokenCredentialOptions:V??{}})}async getToken(e,m={}){return tracingClient.withSpan(`${this.constructor.name}.getToken`,m,(async m=>{const h=processMultiTenantRequest(this.tenantId,m,this.additionallyAllowedTenantIds);m.tenantId=h;const C=ensureScopes(e);return this.msalClient.getTokenByAuthorizationCode(C,this.redirectUri,this.authorizationCode,this.clientSecret,{...m,disableAutomaticAuthentication:this.disableAutomaticAuthentication})}))}}const Bp="OnBehalfOfCredential";const Gp=credentialLogger(Bp);class OnBehalfOfCredential{tenantId;additionallyAllowedTenantIds;msalClient;sendCertificateChain;certificatePath;clientSecret;userAssertionToken;clientAssertion;constructor(e){const{clientSecret:m}=e;const{certificatePath:h,sendCertificateChain:C}=e;const{getAssertion:q}=e;const{tenantId:V,clientId:le,userAssertionToken:fe,additionallyAllowedTenants:he}=e;if(!V){throw new CredentialUnavailableError(`${Bp}: tenantId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(!le){throw new CredentialUnavailableError(`${Bp}: clientId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(!m&&!h&&!q){throw new CredentialUnavailableError(`${Bp}: You must provide one of clientSecret, certificatePath, or a getAssertion callback but none were provided. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(!fe){throw new CredentialUnavailableError(`${Bp}: userAssertionToken is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}this.certificatePath=h;this.clientSecret=m;this.userAssertionToken=fe;this.sendCertificateChain=C;this.clientAssertion=q;this.tenantId=V;this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(he);this.msalClient=createMsalClient(le,this.tenantId,{...e,logger:Gp,tokenCredentialOptions:e})}async getToken(e,m={}){return tracingClient.withSpan(`${Bp}.getToken`,m,(async h=>{h.tenantId=processMultiTenantRequest(this.tenantId,h,this.additionallyAllowedTenantIds,Gp);const C=ensureScopes(e);if(this.certificatePath){const e=await this.buildClientCertificate(this.certificatePath);return this.msalClient.getTokenOnBehalfOf(C,this.userAssertionToken,e,h)}else if(this.clientSecret){return this.msalClient.getTokenOnBehalfOf(C,this.userAssertionToken,this.clientSecret,m)}else if(this.clientAssertion){return this.msalClient.getTokenOnBehalfOf(C,this.userAssertionToken,this.clientAssertion,m)}else{throw new Error("Expected either clientSecret or certificatePath or clientAssertion to be defined.")}}))}async buildClientCertificate(e){try{const m=await this.parseCertificate({certificatePath:e},this.sendCertificateChain);return{thumbprint:m.thumbprint,thumbprintSha256:m.thumbprintSha256,privateKey:m.certificateContents,x5c:m.x5c}}catch(e){Gp.info(formatError("",e));throw e}}async parseCertificate(e,m){const h=e.certificatePath;const C=await readFile(h,"utf8");const q=m?C:undefined;const V=/(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;const le=[];let fe;do{fe=V.exec(C);if(fe){le.push(fe[3])}}while(fe);if(le.length===0){throw new Error("The file at the specified path does not contain a PEM-encoded certificate.")}const he=createHash("sha1").update(Buffer.from(le[0],"base64")).digest("hex").toUpperCase();const ye=createHash("sha256").update(Buffer.from(le[0],"base64")).digest("hex").toUpperCase();return{certificateContents:C,thumbprintSha256:ye,thumbprint:he,x5c:q}}}function getBearerTokenProvider(e,m,h){const{abortSignal:C,tracingOptions:q}=h||{};const V=createEmptyPipeline();V.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:m}));async function getRefreshedToken(){const e=await V.sendRequest({sendRequest:e=>Promise.resolve({request:e,status:200,headers:e.headers})},createPipelineRequest({url:"https://example.com",abortSignal:C,tracingOptions:q}));const m=e.headers.get("authorization")?.split(" ")[1];if(!m){throw new Error("Failed to get access token")}return m}return getRefreshedToken}function getDefaultAzureCredential(){return new DefaultAzureCredential}var zp=__nccwpck_require__(7892);const{__extends:Hp,__assign:Vp,__rest:Wp,__decorate:Kp,__param:Yp,__esDecorate:Qp,__runInitializers:Jp,__propKey:Xp,__setFunctionName:Zp,__metadata:em,__awaiter:tm,__generator:nm,__exportStar:rm,__createBinding:om,__values:im,__read:sm,__spread:am,__spreadArrays:cm,__spreadArray:lm,__await:um,__asyncGenerator:dm,__asyncDelegator:pm,__asyncValues:mm,__makeTemplateObject:fm,__importStar:hm,__importDefault:gm,__classPrivateFieldGet:ym,__classPrivateFieldSet:Sm,__classPrivateFieldIn:Em,__addDisposableResource:vm,__disposeResources:Cm,__rewriteRelativeImportExtension:Im}=zp;const bm=null&&tslib;const Am=esm_createClientLogger("keyvault-secrets");const wm=esm_createClientLogger("keyvault-secrets");function restError_createRestError(e,m){if(typeof e==="string"){return createRestError(e,m)}else{return createRestError(e)}}function isKeyCredential(e){return typeGuards_isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,m){if(!e||!m){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=m}update(e,m){if(!e||!m){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=m}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const m=e;return m&&typeof m.getToken==="function"&&(m.signRequest===undefined||m.getToken.length>0)}const Rm="ApiVersionPolicy";function apiVersionPolicy_apiVersionPolicy(e){return{name:Rm,sendRequest:(m,h)=>{const C=new URL(m.url);if(!C.searchParams.get("api-version")&&e.apiVersion){m.url=`${m.url}${Array.from(C.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return h(m)}}}const Tm="keyCredentialAuthenticationPolicy";function keyCredentialAuthenticationPolicy(e,m){return{name:Tm,async sendRequest(h,C){h.headers.set(m,e.key);return C(h)}}}let Pm;function addCredentialPipelinePolicy(e,m,h={}){const{credential:C,clientOptions:q}=h;if(!C){return}if(isTokenCredential(C)){const h=bearerTokenAuthenticationPolicy_bearerTokenAuthenticationPolicy({credential:C,scopes:q?.credentials?.scopes??`${m}/.default`});e.addPolicy(h)}else if(clientHelpers_isKeyCredential(C)){if(!q?.credentials?.apiKeyHeaderName){throw new Error(`Missing API Key Header Name`)}const m=keyCredentialAuthenticationPolicy(C,q?.credentials?.apiKeyHeaderName);e.addPolicy(m)}}function clientHelpers_createDefaultPipeline(e,m,h={}){const C=createPipelineFromOptions_createPipelineFromOptions(h);C.addPolicy(apiVersionPolicy_apiVersionPolicy(h));addCredentialPipelinePolicy(C,e,{credential:m,clientOptions:h});return C}function clientHelpers_isKeyCredential(e){return e.key!==undefined}function clientHelpers_getCachedDefaultHttpsClient(){if(!Pm){Pm=createDefaultHttpClient()}return Pm}function operationOptionHelpers_operationOptionsToRequestParameters(e){return operationOptionsToRequestParameters(e)}function wrapRequestParameters(e){if(e.onResponse){return{...e,onResponse(m,h){e.onResponse?.(m,h,h)}}}return e}function getClient_getClient(e,m,h={}){let C;if(m){if(isCredential(m)){C=m}else{h=m??{}}}const q=clientHelpers_createDefaultPipeline(e,C,h);const V=getClient(e,{...h,pipeline:q});const client=(e,...m)=>({get:(h={})=>V.path(e,...m).get(wrapRequestParameters(h)),post:(h={})=>V.path(e,...m).post(wrapRequestParameters(h)),put:(h={})=>V.path(e,...m).put(wrapRequestParameters(h)),patch:(h={})=>V.path(e,...m).patch(wrapRequestParameters(h)),delete:(h={})=>V.path(e,...m).delete(wrapRequestParameters(h)),head:(h={})=>V.path(e,...m).head(wrapRequestParameters(h)),options:(h={})=>V.path(e,...m).options(wrapRequestParameters(h)),trace:(h={})=>V.path(e,...m).trace(wrapRequestParameters(h))});return{path:client,pathUnchecked:client,pipeline:V.pipeline}}function isCredential(e){return isKeyCredential(e)||isTokenCredential(e)}function createKeyVault(e,m,h={}){var C,q,V,le,fe,he,ye,ve;const Le=(q=(C=h.endpoint)!==null&&C!==void 0?C:h.baseUrl)!==null&&q!==void 0?q:String(e);const Ue=(V=h===null||h===void 0?void 0:h.userAgentOptions)===null||V===void 0?void 0:V.userAgentPrefix;const qe=`azsdk-js-keyvault-secrets/1.0.0-beta.1`;const ze=Ue?`${Ue} azsdk-js-api ${qe}`:`azsdk-js-api ${qe}`;const He=Object.assign(Object.assign({},h),{userAgentOptions:{userAgentPrefix:ze},loggingOptions:{logger:(fe=(le=h.loggingOptions)===null||le===void 0?void 0:le.logger)!==null&&fe!==void 0?fe:wm.info},credentials:{scopes:(ye=(he=h.credentials)===null||he===void 0?void 0:he.scopes)!==null&&ye!==void 0?ye:["https://vault.azure.net/.default"]}}),{apiVersion:We}=He,Qe=Wp(He,["apiVersion"]);const Je=getClient_getClient(Le,m,Qe);Je.pipeline.removePolicy({name:"ApiVersionPolicy"});const It=(ve=h.apiVersion)!==null&&ve!==void 0?ve:"7.6";Je.pipeline.addPolicy({name:"ClientApiVersionPolicy",sendRequest:(e,m)=>{const h=new URL(e.url);if(!h.searchParams.get("api-version")){e.url=`${e.url}${Array.from(h.searchParams.keys()).length>0?"&":"?"}api-version=${It}`}return m(e)}});return Object.assign(Object.assign({},Je),{apiVersion:It})}function secretSetParametersSerializer(e){return{value:e["value"],tags:e["tags"],contentType:e["contentType"],attributes:!e["secretAttributes"]?e["secretAttributes"]:secretAttributesSerializer(e["secretAttributes"])}}function secretAttributesSerializer(e){return{enabled:e["enabled"],nbf:!e["notBefore"]?e["notBefore"]:e["notBefore"].getTime()/1e3|0,exp:!e["expires"]?e["expires"]:e["expires"].getTime()/1e3|0}}function secretAttributesDeserializer(e){return{enabled:e["enabled"],notBefore:!e["nbf"]?e["nbf"]:new Date(e["nbf"]*1e3),expires:!e["exp"]?e["exp"]:new Date(e["exp"]*1e3),created:!e["created"]?e["created"]:new Date(e["created"]*1e3),updated:!e["updated"]?e["updated"]:new Date(e["updated"]*1e3),recoverableDays:e["recoverableDays"],recoveryLevel:e["recoveryLevel"]}}var xm;(function(e){e["Purgeable"]="Purgeable";e["RecoverablePurgeable"]="Recoverable+Purgeable";e["Recoverable"]="Recoverable";e["RecoverableProtectedSubscription"]="Recoverable+ProtectedSubscription";e["CustomizedRecoverablePurgeable"]="CustomizedRecoverable+Purgeable";e["CustomizedRecoverable"]="CustomizedRecoverable";e["CustomizedRecoverableProtectedSubscription"]="CustomizedRecoverable+ProtectedSubscription"})(xm||(xm={}));function secretBundleDeserializer(e){return{value:e["value"],id:e["id"],contentType:e["contentType"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],kid:e["kid"],managed:e["managed"]}}function keyVaultErrorDeserializer(e){return{error:!e["error"]?e["error"]:_keyVaultErrorErrorDeserializer(e["error"])}}function _keyVaultErrorErrorDeserializer(e){return{code:e["code"],message:e["message"],innerError:!e["innererror"]?e["innererror"]:_keyVaultErrorErrorDeserializer(e["innererror"])}}function deletedSecretBundleDeserializer(e){return{value:e["value"],id:e["id"],contentType:e["contentType"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],kid:e["kid"],managed:e["managed"],recoveryId:e["recoveryId"],scheduledPurgeDate:!e["scheduledPurgeDate"]?e["scheduledPurgeDate"]:new Date(e["scheduledPurgeDate"]*1e3),deletedDate:!e["deletedDate"]?e["deletedDate"]:new Date(e["deletedDate"]*1e3)}}function secretUpdateParametersSerializer(e){return{contentType:e["contentType"],attributes:!e["secretAttributes"]?e["secretAttributes"]:secretAttributesSerializer(e["secretAttributes"]),tags:e["tags"]}}function _secretListResultDeserializer(e){return{value:!e["value"]?e["value"]:secretItemArrayDeserializer(e["value"]),nextLink:e["nextLink"]}}function secretItemArrayDeserializer(e){return e.map((e=>secretItemDeserializer(e)))}function secretItemDeserializer(e){return{id:e["id"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],contentType:e["contentType"],managed:e["managed"]}}function _deletedSecretListResultDeserializer(e){return{value:!e["value"]?e["value"]:deletedSecretItemArrayDeserializer(e["value"]),nextLink:e["nextLink"]}}function deletedSecretItemArrayDeserializer(e){return e.map((e=>deletedSecretItemDeserializer(e)))}function deletedSecretItemDeserializer(e){return{id:e["id"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],contentType:e["contentType"],managed:e["managed"],recoveryId:e["recoveryId"],scheduledPurgeDate:!e["scheduledPurgeDate"]?e["scheduledPurgeDate"]:new Date(e["scheduledPurgeDate"]*1e3),deletedDate:!e["deletedDate"]?e["deletedDate"]:new Date(e["deletedDate"]*1e3)}}function backupSecretResultDeserializer(e){return{value:!e["value"]?e["value"]:typeof e["value"]==="string"?esm_stringToUint8Array(e["value"],"base64url"):e["value"]}}function secretRestoreParametersSerializer(e){return{value:esm_uint8ArrayToString(e["secretBundleBackup"],"base64url")}}var _m;(function(e){e["V75"]="7.5";e["V76Preview2"]="7.6-preview.2";e["V76"]="7.6"})(_m||(_m={}));function buildPagedAsyncIterator(e,m,h,C,q={}){var V,le;const fe=(V=q.itemName)!==null&&V!==void 0?V:"value";const he=(le=q.nextLinkName)!==null&&le!==void 0?le:"nextLink";const ye={getPage:async q=>{const V=q===undefined?await m():await e.pathUnchecked(q).get();checkPagingRequest(V,C);const le=await h(V);const ye=getNextLink(le,he);const ve=getElements(le,fe);return{page:ve,nextPageLink:ye}},byPage:e=>{const{continuationToken:m}=e!==null&&e!==void 0?e:{};return getPageAsyncIterator(ye,{pageLink:m})}};return getPagedAsyncIterator(ye)}function getPagedAsyncIterator(e){var m;const h=getItemAsyncIterator(e);return{next(){return h.next()},[Symbol.asyncIterator](){return this},byPage:(m=e===null||e===void 0?void 0:e.byPage)!==null&&m!==void 0?m:m=>{const{continuationToken:h}=m!==null&&m!==void 0?m:{};return getPageAsyncIterator(e,{pageLink:h})}}}function getItemAsyncIterator(e){return dm(this,arguments,(function*getItemAsyncIterator_1(){var m,h,C,q;const V=getPageAsyncIterator(e);try{for(var le=true,fe=mm(V),he;he=yield um(fe.next()),m=he.done,!m;le=true){q=he.value;le=false;const e=q;yield um(yield*pm(mm(e)))}}catch(e){h={error:e}}finally{try{if(!le&&!m&&(C=fe.return))yield um(C.call(fe))}finally{if(h)throw h.error}}}))}function getPageAsyncIterator(e){return dm(this,arguments,(function*getPageAsyncIterator_1(e,m={}){const{pageLink:h}=m;let C=yield um(e.getPage(h!==null&&h!==void 0?h:e.firstPageLink));if(!C){return yield um(void 0)}let q=C.page;q.continuationToken=C.nextPageLink;yield yield um(q);while(C.nextPageLink){C=yield um(e.getPage(C.nextPageLink));if(!C){return yield um(void 0)}q=C.page;q.continuationToken=C.nextPageLink;yield yield um(q)}}))}function getNextLink(e,m){if(!m){return undefined}const h=e[m];if(typeof h!=="string"&&typeof h!=="undefined"&&h!==null){throw new gd(`Body Property ${m} should be a string or undefined or null but got ${typeof h}`)}if(h===null){return undefined}return h}function getElements(e,m){const h=e[m];if(!Array.isArray(h)){throw new gd(`Couldn't paginate response\n Body doesn't contain an array property with name: ${m}`)}return h!==null&&h!==void 0?h:[]}function checkPagingRequest(e,m){if(!m.includes(e.status)){throw restError_createRestError(`Pagination failed with unexpected statusCode ${e.status}`,e)}}function encodeComponent(e,m,h){return(m!==null&&m!==void 0?m:h==="+")||h==="#"?encodeReservedComponent(e):encodeRFC3986URIComponent(e)}function encodeReservedComponent(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((e=>!/%[0-9A-Fa-f]/.test(e)?encodeURI(e):e)).join("")}function encodeRFC3986URIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}function urlTemplate_isDefined(e){return e!==undefined&&e!==null}function getNamedAndIfEmpty(e){return[!!e&&[";","?","&"].includes(e),!!e&&["?","&"].includes(e)?"=":""]}function getFirstOrSep(e,m=false){if(m){return!e||e==="+"?"":e}else if(!e||e==="+"||e==="#"){return","}else if(e==="?"){return"&"}else{return e}}function getExpandedValue(e){let m=e.isFirst;const{op:h,varName:C,varValue:q,reserved:V}=e;const le=[];const[fe,he]=getNamedAndIfEmpty(h);if(Array.isArray(q)){for(const e of q.filter(urlTemplate_isDefined)){le.push(`${getFirstOrSep(h,m)}`);if(fe&&C){le.push(`${encodeURIComponent(C)}`);e===""?le.push(he):le.push("=")}le.push(encodeComponent(e,V,h));m=false}}else if(typeof q==="object"){for(const e of Object.keys(q)){const C=q[e];if(!urlTemplate_isDefined(C)){continue}le.push(`${getFirstOrSep(h,m)}`);if(e){le.push(`${encodeURIComponent(e)}`);fe&&C===""?le.push(he):le.push("=")}le.push(encodeComponent(C,V,h));m=false}}return le.join("")}function getNonExpandedValue(e){const{op:m,varName:h,varValue:C,isFirst:q,reserved:V}=e;const le=[];const fe=getFirstOrSep(m,q);const[he,ye]=getNamedAndIfEmpty(m);if(he&&h){le.push(encodeComponent(h,V,m));if(C===""){if(!ye){le.push(ye)}return!le.join("")?undefined:`${fe}${le.join("")}`}le.push("=")}const ve=[];if(Array.isArray(C)){for(const e of C.filter(urlTemplate_isDefined)){ve.push(encodeComponent(e,V,m))}}else if(typeof C==="object"){for(const e of Object.keys(C)){if(!urlTemplate_isDefined(C[e])){continue}ve.push(encodeRFC3986URIComponent(e));ve.push(encodeComponent(C[e],V,m))}}le.push(ve.join(","));return!le.join(",")?undefined:`${fe}${le.join("")}`}function getVarValue(e){const{op:m,varName:h,modifier:C,isFirst:q,reserved:V,varValue:le}=e;if(!urlTemplate_isDefined(le)){return undefined}else if(["string","number","boolean"].includes(typeof le)){let e=le.toString();const[fe,he]=getNamedAndIfEmpty(m);const ye=[getFirstOrSep(m,q)];if(fe&&h){ye.push(h);e===""?ye.push(he):ye.push("=")}if(C&&C!=="*"){e=e.substring(0,parseInt(C,10))}ye.push(encodeComponent(e,V,m));return ye.join("")}else if(C==="*"){return getExpandedValue(e)}else{return getNonExpandedValue(e)}}function expandUrlTemplate(e,m,h){return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,((e,C,q)=>{if(!C){return encodeReservedComponent(q)}let V;if(["+","#",".","/",";","?","&"].includes(C[0])){V=C[0],C=C.slice(1)}const le=C.split(/,/g);const fe=[];for(const e of le){const C=/([^:\*]*)(?::(\d+)|(\*))?/.exec(e);if(!C||!C[1]){continue}const q=getVarValue({isFirst:fe.length===0,op:V,varValue:m[C[1]],varName:C[1],modifier:C[2]||C[3],reserved:h===null||h===void 0?void 0:h.allowReserved});if(q){fe.push(q)}}return fe.join("")}))}function _restoreSecretSend(e,m,h={requestOptions:{}}){var C,q;const V=expandUrlTemplate("/secrets/restore{?api%2Dversion}",{"api%2Dversion":e.apiVersion},{allowReserved:(C=h===null||h===void 0?void 0:h.requestOptions)===null||C===void 0?void 0:C.skipUrlEncoding});return e.path(V).post(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(h)),{contentType:"application/json",headers:Object.assign({accept:"application/json"},(q=h.requestOptions)===null||q===void 0?void 0:q.headers),body:secretRestoreParametersSerializer(m)}))}async function _restoreSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return secretBundleDeserializer(e.body)}async function restoreSecret(e,m,h={requestOptions:{}}){const C=await _restoreSecretSend(e,m,h);return _restoreSecretDeserialize(C)}function _backupSecretSend(e,m,h={requestOptions:{}}){var C,q;const V=expandUrlTemplate("/secrets/{secret-name}/backup{?api%2Dversion}",{"secret-name":m,"api%2Dversion":e.apiVersion},{allowReserved:(C=h===null||h===void 0?void 0:h.requestOptions)===null||C===void 0?void 0:C.skipUrlEncoding});return e.path(V).post(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(h)),{headers:Object.assign({accept:"application/json"},(q=h.requestOptions)===null||q===void 0?void 0:q.headers)}))}async function _backupSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return backupSecretResultDeserializer(e.body)}async function backupSecret(e,m,h={requestOptions:{}}){const C=await _backupSecretSend(e,m,h);return _backupSecretDeserialize(C)}function _recoverDeletedSecretSend(e,m,h={requestOptions:{}}){var C,q;const V=expandUrlTemplate("/deletedsecrets/{secret-name}/recover{?api%2Dversion}",{"secret-name":m,"api%2Dversion":e.apiVersion},{allowReserved:(C=h===null||h===void 0?void 0:h.requestOptions)===null||C===void 0?void 0:C.skipUrlEncoding});return e.path(V).post(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(h)),{headers:Object.assign({accept:"application/json"},(q=h.requestOptions)===null||q===void 0?void 0:q.headers)}))}async function _recoverDeletedSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return secretBundleDeserializer(e.body)}async function recoverDeletedSecret(e,m,h={requestOptions:{}}){const C=await _recoverDeletedSecretSend(e,m,h);return _recoverDeletedSecretDeserialize(C)}function _purgeDeletedSecretSend(e,m,h={requestOptions:{}}){var C,q;const V=expandUrlTemplate("/deletedsecrets/{secret-name}{?api%2Dversion}",{"secret-name":m,"api%2Dversion":e.apiVersion},{allowReserved:(C=h===null||h===void 0?void 0:h.requestOptions)===null||C===void 0?void 0:C.skipUrlEncoding});return e.path(V).delete(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(h)),{headers:Object.assign({accept:"application/json"},(q=h.requestOptions)===null||q===void 0?void 0:q.headers)}))}async function _purgeDeletedSecretDeserialize(e){const m=["204"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return}async function purgeDeletedSecret(e,m,h={requestOptions:{}}){const C=await _purgeDeletedSecretSend(e,m,h);return _purgeDeletedSecretDeserialize(C)}function _getDeletedSecretSend(e,m,h={requestOptions:{}}){var C,q;const V=expandUrlTemplate("/deletedsecrets/{secret-name}{?api%2Dversion}",{"secret-name":m,"api%2Dversion":e.apiVersion},{allowReserved:(C=h===null||h===void 0?void 0:h.requestOptions)===null||C===void 0?void 0:C.skipUrlEncoding});return e.path(V).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(h)),{headers:Object.assign({accept:"application/json"},(q=h.requestOptions)===null||q===void 0?void 0:q.headers)}))}async function _getDeletedSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return deletedSecretBundleDeserializer(e.body)}async function getDeletedSecret(e,m,h={requestOptions:{}}){const C=await _getDeletedSecretSend(e,m,h);return _getDeletedSecretDeserialize(C)}function _getDeletedSecretsSend(e,m={requestOptions:{}}){var h,C;const q=expandUrlTemplate("/deletedsecrets{?api%2Dversion,maxresults}",{"api%2Dversion":e.apiVersion,maxresults:m===null||m===void 0?void 0:m.maxresults},{allowReserved:(h=m===null||m===void 0?void 0:m.requestOptions)===null||h===void 0?void 0:h.skipUrlEncoding});return e.path(q).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(m)),{headers:Object.assign({accept:"application/json"},(C=m.requestOptions)===null||C===void 0?void 0:C.headers)}))}async function _getDeletedSecretsDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return _deletedSecretListResultDeserializer(e.body)}function getDeletedSecrets(e,m={requestOptions:{}}){return buildPagedAsyncIterator(e,(()=>_getDeletedSecretsSend(e,m)),_getDeletedSecretsDeserialize,["200"],{itemName:"value",nextLinkName:"nextLink"})}function _getSecretVersionsSend(e,m,h={requestOptions:{}}){var C,q;const V=expandUrlTemplate("/secrets/{secret-name}/versions{?api%2Dversion,maxresults}",{"secret-name":m,"api%2Dversion":e.apiVersion,maxresults:h===null||h===void 0?void 0:h.maxresults},{allowReserved:(C=h===null||h===void 0?void 0:h.requestOptions)===null||C===void 0?void 0:C.skipUrlEncoding});return e.path(V).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(h)),{headers:Object.assign({accept:"application/json"},(q=h.requestOptions)===null||q===void 0?void 0:q.headers)}))}async function _getSecretVersionsDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return _secretListResultDeserializer(e.body)}function getSecretVersions(e,m,h={requestOptions:{}}){return buildPagedAsyncIterator(e,(()=>_getSecretVersionsSend(e,m,h)),_getSecretVersionsDeserialize,["200"],{itemName:"value",nextLinkName:"nextLink"})}function _getSecretsSend(e,m={requestOptions:{}}){var h,C;const q=expandUrlTemplate("/secrets{?api%2Dversion,maxresults}",{"api%2Dversion":e.apiVersion,maxresults:m===null||m===void 0?void 0:m.maxresults},{allowReserved:(h=m===null||m===void 0?void 0:m.requestOptions)===null||h===void 0?void 0:h.skipUrlEncoding});return e.path(q).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(m)),{headers:Object.assign({accept:"application/json"},(C=m.requestOptions)===null||C===void 0?void 0:C.headers)}))}async function _getSecretsDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return _secretListResultDeserializer(e.body)}function getSecrets(e,m={requestOptions:{}}){return buildPagedAsyncIterator(e,(()=>_getSecretsSend(e,m)),_getSecretsDeserialize,["200"],{itemName:"value",nextLinkName:"nextLink"})}function _getSecretSend(e,m,h,C={requestOptions:{}}){var q,V;const le=expandUrlTemplate("/secrets/{secret-name}/{secret-version}{?api%2Dversion}",{"secret-name":m,"secret-version":h,"api%2Dversion":e.apiVersion},{allowReserved:(q=C===null||C===void 0?void 0:C.requestOptions)===null||q===void 0?void 0:q.skipUrlEncoding});return e.path(le).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(C)),{headers:Object.assign({accept:"application/json"},(V=C.requestOptions)===null||V===void 0?void 0:V.headers)}))}async function _getSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return secretBundleDeserializer(e.body)}async function getSecret(e,m,h,C={requestOptions:{}}){const q=await _getSecretSend(e,m,h,C);return _getSecretDeserialize(q)}function _updateSecretSend(e,m,h,C,q={requestOptions:{}}){var V,le;const fe=expandUrlTemplate("/secrets/{secret-name}/{secret-version}{?api%2Dversion}",{"secret-name":m,"secret-version":h,"api%2Dversion":e.apiVersion},{allowReserved:(V=q===null||q===void 0?void 0:q.requestOptions)===null||V===void 0?void 0:V.skipUrlEncoding});return e.path(fe).patch(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(q)),{contentType:"application/json",headers:Object.assign({accept:"application/json"},(le=q.requestOptions)===null||le===void 0?void 0:le.headers),body:secretUpdateParametersSerializer(C)}))}async function _updateSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return secretBundleDeserializer(e.body)}async function updateSecret(e,m,h,C,q={requestOptions:{}}){const V=await _updateSecretSend(e,m,h,C,q);return _updateSecretDeserialize(V)}function _deleteSecretSend(e,m,h={requestOptions:{}}){var C,q;const V=expandUrlTemplate("/secrets/{secret-name}{?api%2Dversion}",{"secret-name":m,"api%2Dversion":e.apiVersion},{allowReserved:(C=h===null||h===void 0?void 0:h.requestOptions)===null||C===void 0?void 0:C.skipUrlEncoding});return e.path(V).delete(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(h)),{headers:Object.assign({accept:"application/json"},(q=h.requestOptions)===null||q===void 0?void 0:q.headers)}))}async function _deleteSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return deletedSecretBundleDeserializer(e.body)}async function deleteSecret(e,m,h={requestOptions:{}}){const C=await _deleteSecretSend(e,m,h);return _deleteSecretDeserialize(C)}function _setSecretSend(e,m,h,C={requestOptions:{}}){var q,V;const le=expandUrlTemplate("/secrets/{secret-name}{?api%2Dversion}",{"secret-name":m,"api%2Dversion":e.apiVersion},{allowReserved:(q=C===null||C===void 0?void 0:C.requestOptions)===null||q===void 0?void 0:q.skipUrlEncoding});return e.path(le).put(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(C)),{contentType:"application/json",headers:Object.assign({accept:"application/json"},(V=C.requestOptions)===null||V===void 0?void 0:V.headers),body:secretSetParametersSerializer(h)}))}async function _setSecretDeserialize(e){const m=["200"];if(!m.includes(e.status)){const m=restError_createRestError(e);m.details=keyVaultErrorDeserializer(e.body);throw m}return secretBundleDeserializer(e.body)}async function setSecret(e,m,h,C={requestOptions:{}}){const q=await _setSecretSend(e,m,h,C);return _setSecretDeserialize(q)}class KeyVaultClient{constructor(e,m,h={}){var C;const q=(C=h===null||h===void 0?void 0:h.userAgentOptions)===null||C===void 0?void 0:C.userAgentPrefix;const V=q?`${q} azsdk-js-client`:`azsdk-js-client`;this._client=createKeyVault(e,m,Object.assign(Object.assign({},h),{userAgentOptions:{userAgentPrefix:V}}));this.pipeline=this._client.pipeline}restoreSecret(e,m={requestOptions:{}}){return restoreSecret(this._client,e,m)}backupSecret(e,m={requestOptions:{}}){return backupSecret(this._client,e,m)}recoverDeletedSecret(e,m={requestOptions:{}}){return recoverDeletedSecret(this._client,e,m)}purgeDeletedSecret(e,m={requestOptions:{}}){return purgeDeletedSecret(this._client,e,m)}getDeletedSecret(e,m={requestOptions:{}}){return getDeletedSecret(this._client,e,m)}getDeletedSecrets(e={requestOptions:{}}){return getDeletedSecrets(this._client,e)}getSecretVersions(e,m={requestOptions:{}}){return getSecretVersions(this._client,e,m)}getSecrets(e={requestOptions:{}}){return getSecrets(this._client,e)}getSecret(e,m,h={requestOptions:{}}){return getSecret(this._client,e,m,h)}updateSecret(e,m,h,C={requestOptions:{}}){return updateSecret(this._client,e,m,h,C)}deleteSecret(e,m={requestOptions:{}}){return deleteSecret(this._client,e,m)}setSecret(e,m,h={requestOptions:{}}){return setSecret(this._client,e,m,h)}}const Om=["authorization","authorization_url","resource","scope","tenantId","claims","error"];function parseWWWAuthenticateHeader(e){const m=/,? +/;const h=e.split(m).reduce(((e,m)=>{if(m.match(/\w="/)){const[h,...C]=m.split("=");if(Om.includes(h)){return Object.assign(Object.assign({},e),{[h]:C.join("=").slice(1,-1)})}}return e}),{});if(h.authorization){try{const e=new URL(h.authorization).pathname.substring(1);if(e){h.tenantId=e}}catch(e){throw new Error(`The challenge authorization URI '${h.authorization}' is invalid.`)}}return h}const Dm={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function tokenCycler_beginRefresh(e,m,h){async function tryGetAccessToken(){if(Date.now()<h){try{return await e()}catch(e){return null}}else{const m=await e();if(m===null){throw new Error("Failed to refresh access token.")}return m}}let C=await tryGetAccessToken();while(C===null){await delay_delay(m);C=await tryGetAccessToken()}return C}function esm_tokenCycler_createTokenCycler(e,m){let h=null;let C=null;let q;const V=Object.assign(Object.assign({},Dm),m);const le={get isRefreshing(){return h!==null},get shouldRefresh(){var e;if(le.isRefreshing){return false}if((C===null||C===void 0?void 0:C.refreshAfterTimestamp)&&C.refreshAfterTimestamp<Date.now()){return true}return((e=C===null||C===void 0?void 0:C.expiresOnTimestamp)!==null&&e!==void 0?e:0)-V.refreshWindowInMs<Date.now()},get mustRefresh(){return C===null||C.expiresOnTimestamp-V.forcedRefreshWindowInMs<Date.now()}};function refresh(m,fe){var he;if(!le.isRefreshing){const tryGetAccessToken=()=>e.getToken(m,fe);h=tokenCycler_beginRefresh(tryGetAccessToken,V.retryIntervalInMs,(he=C===null||C===void 0?void 0:C.expiresOnTimestamp)!==null&&he!==void 0?he:Date.now()).then((e=>{h=null;C=e;q=fe.tenantId;return C})).catch((e=>{h=null;C=null;q=undefined;throw e}))}return h}return async(e,m)=>{const h=Boolean(m.claims);const V=q!==m.tenantId;if(h){C=null}const fe=V||h||le.mustRefresh;if(fe){return refresh(e,m)}if(le.shouldRefresh){refresh(e,m)}return C}}const Mm=esm_createClientLogger("keyvault-common");function verifyChallengeResource(e,m){let h;try{h=new URL(e)}catch(m){throw new Error(`The challenge contains invalid scope '${e}'`)}const C=new URL(m.url);if(!C.hostname.endsWith(`.${h.hostname}`)){throw new Error(`The challenge resource '${h.hostname}' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information.`)}}const $m="keyVaultAuthenticationPolicy";function keyVaultAuthenticationPolicy(e,m={}){const{disableChallengeResourceVerification:h}=m;let C={status:"none"};const q=esm_tokenCycler_createTokenCycler(e);function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout>0?e.timeout:undefined},tracingOptions:e.tracingOptions}}async function authorizeRequest(e){const m=requestToOptions(e);switch(C.status){case"none":C={status:"started",originalBody:e.body};e.body=null;break;case"started":break;case"complete":{const h=await q(C.scopes,Object.assign(Object.assign({},m),{enableCae:true,tenantId:C.tenantId}));if(h){e.headers.set("authorization",`Bearer ${h.token}`)}break}}}async function handleChallenge(e,m,V){if(m.status!==401){return m}if(e.body===null&&C.status==="started"){e.body=C.originalBody}const le=requestToOptions(e);const fe=m.headers.get("WWW-Authenticate");if(!fe){Mm.warning("keyVaultAuthentication policy encountered a 401 response without a corresponding WWW-Authenticate header. This is unexpected. Not handling the 401 response.");return m}const he=parseWWWAuthenticateHeader(fe);const ye=he.resource?he.resource+"/.default":he.scope;if(!ye){return m}if(!h){verifyChallengeResource(ye,e)}const ve=await q([ye],Object.assign(Object.assign({},le),{enableCae:true,tenantId:he.tenantId}));if(!ve){return m}e.headers.set("Authorization",`Bearer ${ve.token}`);C={status:"complete",scopes:[ye],tenantId:he.tenantId};return V(e)}async function handleCaeChallenge(e,m,h){if(C.status!=="complete"){return m}if(m.status!==401){return m}const V=requestToOptions(e);const le=m.headers.get("WWW-Authenticate");if(!le){return m}const{claims:fe,error:he}=parseWWWAuthenticateHeader(le);if(he!=="insufficient_claims"||fe===undefined){return m}const ye=atob(fe);const ve=await q(C.scopes,Object.assign(Object.assign({},V),{enableCae:true,tenantId:C.tenantId,claims:ye}));e.headers.set("Authorization",`Bearer ${ve.token}`);return h(e)}async function sendRequest(e,m){await authorizeRequest(e);let h=await m(e);h=await handleChallenge(e,h,m);h=await handleCaeChallenge(e,h,m);return h}return{name:$m,sendRequest:sendRequest}}function parseKeyVaultIdentifier(e,m){if(typeof e!=="string"||!(e=e.trim())){throw new Error("Invalid collection argument")}if(typeof m!=="string"||!(m=m.trim())){throw new Error("Invalid identifier argument")}let h;try{h=new URL(m)}catch(h){throw new Error(`Invalid ${e} identifier: ${m}. Not a valid URI`)}const C=(h.pathname||"").split("/");if(C.length!==3&&C.length!==4){throw new Error(`Invalid ${e} identifier: ${m}. Bad number of segments: ${C.length}`)}if(e!==C[1]){throw new Error(`Invalid ${e} identifier: ${m}. segment [1] should be "${e}", found "${C[1]}"`)}const q=`${h.protocol}//${h.host}`;const V=C[2];const le=C.length===4?C[3]:undefined;return{vaultUrl:q,name:V,version:le}}const Nm="7.6";function parseKeyVaultSecretIdentifier(e){const m=e.split("/");const h=m[3];return Object.assign({sourceId:e},parseKeyVaultIdentifier(h,e))}function getSecretFromSecretBundle(e){const m=e;const h=e;const C=parseKeyVaultSecretIdentifier(m.id);const q=m.attributes;delete m.attributes;const V={value:m.value,name:C.name,properties:{expiresOn:q===null||q===void 0?void 0:q.expires,createdOn:q===null||q===void 0?void 0:q.created,updatedOn:q===null||q===void 0?void 0:q.updated,enabled:q===null||q===void 0?void 0:q.enabled,notBefore:q===null||q===void 0?void 0:q.notBefore,recoverableDays:q===null||q===void 0?void 0:q.recoverableDays,recoveryLevel:q===null||q===void 0?void 0:q.recoveryLevel,id:m.id,contentType:m.contentType,tags:m.tags,managed:m.managed,vaultUrl:C.vaultUrl,version:C.version,name:C.name,certificateKeyId:m.kid}};if(h.recoveryId){V.properties.recoveryId=h.recoveryId;V.properties.scheduledPurgeDate=h.scheduledPurgeDate;V.properties.deletedOn=h.deletedDate;V.recoveryId=h.recoveryId;V.scheduledPurgeDate=h.scheduledPurgeDate;V.deletedOn=h.deletedDate}if(q){if(q.vaultUrl){delete V.properties.vaultUrl}if(q.expires){delete V.properties.expires}if(q.created){delete V.properties.created}if(q.updated){delete V.properties.updated}}return V}function mapPagedAsyncIterable(e,m,h){let C=undefined;return{async next(){C!==null&&C!==void 0?C:C=e(Object.assign(Object.assign({},m),{maxresults:undefined}));const q=await C.next();return Object.assign(Object.assign({},q),{value:q.value&&h(q.value)})},[Symbol.asyncIterator](){return this},byPage(C){return dm(this,arguments,(function*byPage_1(){var q,V,le,fe;const he=e(Object.assign(Object.assign({},m),{maxresults:C===null||C===void 0?void 0:C.maxPageSize})).byPage(C);try{for(var ye=true,ve=mm(he),Le;Le=yield um(ve.next()),q=Le.done,!q;ye=true){fe=Le.value;ye=false;const e=fe;yield yield um(e.map(h))}}catch(e){V={error:e}}finally{try{if(!ye&&!q&&(le=ve.return))yield um(le.call(ve))}finally{if(V)throw V.error}}}))}}}const km="4.10.0";const Lm=createTracingClient({namespace:"Microsoft.KeyVault",packageName:"@azure/keyvault-secrets",packageVersion:km});const Um=esm_createClientLogger("core-lro");const Fm=2e3;const qm=["succeeded","canceled","failed"];function operation_deserializeState(e){try{return JSON.parse(e).state}catch(m){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:m,stateProxy:h,isOperationError:C}=e;return e=>{if(C(e)){h.setError(m,e);h.setFailed(m)}throw e}}function appendReadableErrorMessage(e,m){let h=e;if(h.slice(-1)!=="."){h=h+"."}return h+" "+m}function simplifyError(e){let m=e.message;let h=e.code;let C=e;while(C.innererror){C=C.innererror;h=C.code;m=appendReadableErrorMessage(m,C.message)}return{code:h,message:m}}function processOperationStatus(e){const{state:m,stateProxy:h,status:C,isDone:q,processResult:V,getError:le,response:fe,setErrorAsResult:he}=e;switch(C){case"succeeded":{h.setSucceeded(m);break}case"failed":{const e=le===null||le===void 0?void 0:le(fe);let C="";if(e){const{code:m,message:h}=simplifyError(e);C=`. ${m}. ${h}`}const q=`The long-running operation has failed${C}`;h.setError(m,new Error(q));h.setFailed(m);Um.warning(q);break}case"canceled":{h.setCanceled(m);break}}if((q===null||q===void 0?void 0:q(fe,m))||q===undefined&&["succeeded","canceled"].concat(he?[]:["failed"]).includes(C)){h.setResult(m,buildResult({response:fe,state:m,processResult:V}))}}function buildResult(e){const{processResult:m,response:h,state:C}=e;return m?m(h,C):h}async function operation_initOperation(e){const{init:m,stateProxy:h,processResult:C,getOperationStatus:q,withOperationLocation:V,setErrorAsResult:le}=e;const{operationLocation:fe,resourceLocation:he,metadata:ye,response:ve}=await m();if(fe)V===null||V===void 0?void 0:V(fe,false);const Le={metadata:ye,operationLocation:fe,resourceLocation:he};Um.verbose(`LRO: Operation description:`,Le);const Ue=h.initState(Le);const qe=q({response:ve,state:Ue,operationLocation:fe});processOperationStatus({state:Ue,status:qe,stateProxy:h,response:ve,setErrorAsResult:le,processResult:C});return Ue}async function pollOperationHelper(e){const{poll:m,state:h,stateProxy:C,operationLocation:q,getOperationStatus:V,getResourceLocation:le,isOperationError:fe,options:he}=e;const ye=await m(q,he).catch(setStateError({state:h,stateProxy:C,isOperationError:fe}));const ve=V(ye,h);Um.verbose(`LRO: Status:\n\tPolling from: ${h.config.operationLocation}\n\tOperation status: ${ve}\n\tPolling status: ${qm.includes(ve)?"Stopped":"Running"}`);if(ve==="succeeded"){const e=le(ye,h);if(e!==undefined){return{response:await m(e).catch(setStateError({state:h,stateProxy:C,isOperationError:fe})),status:ve}}}return{response:ye,status:ve}}async function operation_pollOperation(e){const{poll:m,state:h,stateProxy:C,options:q,getOperationStatus:V,getResourceLocation:le,getOperationLocation:fe,isOperationError:he,withOperationLocation:ye,getPollingInterval:ve,processResult:Le,getError:Ue,updateState:qe,setDelay:ze,isDone:He,setErrorAsResult:We}=e;const{operationLocation:Qe}=h.config;if(Qe!==undefined){const{response:e,status:Je}=await pollOperationHelper({poll:m,getOperationStatus:V,state:h,stateProxy:C,operationLocation:Qe,getResourceLocation:le,isOperationError:he,options:q});processOperationStatus({status:Je,response:e,state:h,stateProxy:C,isDone:He,processResult:Le,getError:Ue,setErrorAsResult:We});if(!qm.includes(Je)){const m=ve===null||ve===void 0?void 0:ve(e);if(m)ze(m);const C=fe===null||fe===void 0?void 0:fe(e,h);if(C!==undefined){const e=Qe!==C;h.config.operationLocation=C;ye===null||ye===void 0?void 0:ye(C,e)}else ye===null||ye===void 0?void 0:ye(Qe,false)}qe===null||qe===void 0?void 0:qe(h,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:m,operationLocation:h}=e;return h!==null&&h!==void 0?h:m}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var m;const{location:h,requestMethod:C,requestPath:q,resourceLocationConfig:V}=e;switch(C){case"PUT":{return q}case"DELETE":{return undefined}case"PATCH":{return(m=getDefault())!==null&&m!==void 0?m:q}default:{return getDefault()}}function getDefault(){switch(V){case"azure-async-operation":{return undefined}case"original-uri":{return q}case"location":default:{return h}}}}function operation_inferLroMode(e){const{rawResponse:m,requestMethod:h,requestPath:C,resourceLocationConfig:q}=e;const V=getOperationLocationHeader(m);const le=getAzureAsyncOperationHeader(m);const fe=getOperationLocationPollingUrl({operationLocation:V,azureAsyncOperation:le});const he=getLocationHeader(m);const ye=h===null||h===void 0?void 0:h.toLocaleUpperCase();if(fe!==undefined){return{mode:"OperationLocation",operationLocation:fe,resourceLocation:findResourceLocation({requestMethod:ye,location:he,requestPath:C,resourceLocationConfig:q})}}else if(he!==undefined){return{mode:"ResourceLocation",operationLocation:he}}else if(ye==="PUT"&&C){return{mode:"Body",operationLocation:C}}else{return undefined}}function transformStatus(e){const{status:m,statusCode:h}=e;if(typeof m!=="string"&&m!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${m}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(m===null||m===void 0?void 0:m.toLocaleLowerCase()){case undefined:return toOperationStatus(h);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{Um.verbose(`LRO: unrecognized operation status: ${m}`);return m}}}function getStatus(e){var m;const{status:h}=(m=e.body)!==null&&m!==void 0?m:{};return transformStatus({status:h,statusCode:e.statusCode})}function getProvisioningState(e){var m,h;const{properties:C,provisioningState:q}=(m=e.body)!==null&&m!==void 0?m:{};const V=(h=C===null||C===void 0?void 0:C.provisioningState)!==null&&h!==void 0?h:q;return transformStatus({status:V,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:e}){const m=e.headers["retry-after"];if(m!==undefined){const e=parseInt(m);return isNaN(e)?calculatePollingIntervalFromDate(new Date(m)):e*1e3}return undefined}function operation_getErrorFromResponse(e){const m=accessBodyProperty(e,"error");if(!m){Um.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!m.code||!m.message){Um.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return m}function calculatePollingIntervalFromDate(e){const m=Math.floor((new Date).getTime());const h=e.getTime();if(m<h){return h-m}return undefined}function operation_getStatusFromInitialResponse(e){const{response:m,state:h,operationLocation:C}=e;function helper(){var e;const C=(e=h.config.metadata)===null||e===void 0?void 0:e["mode"];switch(C){case undefined:return toOperationStatus(m.rawResponse.statusCode);case"Body":return operation_getOperationStatus(m,h);default:return"running"}}const q=helper();return q==="running"&&C===undefined?"succeeded":q}async function initHttpOperation(e){const{stateProxy:m,resourceLocationConfig:h,processResult:C,lro:q,setErrorAsResult:V}=e;return operation_initOperation({init:async()=>{const e=await q.sendInitialRequest();const m=operation_inferLroMode({rawResponse:e.rawResponse,requestPath:q.requestPath,requestMethod:q.requestMethod,resourceLocationConfig:h});return Object.assign({response:e,operationLocation:m===null||m===void 0?void 0:m.operationLocation,resourceLocation:m===null||m===void 0?void 0:m.resourceLocation},(m===null||m===void 0?void 0:m.mode)?{metadata:{mode:m.mode}}:{})},stateProxy:m,processResult:C?({flatResponse:e},m)=>C(e,m):({flatResponse:e})=>e,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:V})}function operation_getOperationLocation({rawResponse:e},m){var h;const C=(h=m.config.metadata)===null||h===void 0?void 0:h["mode"];switch(C){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:e},m){var h;const C=(h=m.config.metadata)===null||h===void 0?void 0:h["mode"];switch(C){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${C}`)}}function accessBodyProperty({flatResponse:e,rawResponse:m},h){var C,q;return(C=e===null||e===void 0?void 0:e[h])!==null&&C!==void 0?C:(q=m.body)===null||q===void 0?void 0:q[h]}function operation_getResourceLocation(e,m){const h=accessBodyProperty(e,"resourceLocation");if(h&&typeof h==="string"){m.config.resourceLocation=h}return m.config.resourceLocation}function operation_isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:m,stateProxy:h,options:C,processResult:q,updateState:V,setDelay:le,state:fe,setErrorAsResult:he}=e;return operation_pollOperation({state:fe,stateProxy:h,setDelay:le,processResult:q?({flatResponse:e},m)=>q(e,m):({flatResponse:e})=>e,getError:operation_getErrorFromResponse,updateState:V,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:C,poll:async(e,h)=>m.sendPollRequest(e,h),setErrorAsResult:he})}const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,m)=>e.error=m,setResult:(e,m)=>e.result=m,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function poller_buildCreatePoller(e){const{getOperationLocation:m,getStatusFromInitialResponse:h,getStatusFromPollResponse:C,isOperationError:q,getResourceLocation:V,getPollingInterval:le,getError:fe,resolveOnUnsuccessful:he}=e;return async({init:e,poll:ye},ve)=>{const{processResult:Le,updateState:Ue,withOperationLocation:qe,intervalInMs:ze=POLL_INTERVAL_IN_MS,restoreFrom:He}=ve||{};const We=createStateProxy();const Qe=qe?(()=>{let e=false;return(m,h)=>{if(h)qe(m);else if(!e)qe(m);e=true}})():undefined;const Je=He?deserializeState(He):await initOperation({init:e,stateProxy:We,processResult:Le,getOperationStatus:h,withOperationLocation:Qe,setErrorAsResult:!he});let It;const _t=new AbortController;const Mt=new Map;const handleProgressEvents=async()=>Mt.forEach((e=>e(Je)));const Lt="Operation was canceled";let Ut=ze;const qt={getOperationState:()=>Je,getResult:()=>Je.result,isDone:()=>["succeeded","failed","canceled"].includes(Je.status),isStopped:()=>It===undefined,stopPolling:()=>{_t.abort()},toString:()=>JSON.stringify({state:Je}),onProgress:e=>{const m=Symbol();Mt.set(m,e);return()=>Mt.delete(m)},pollUntilDone:e=>It!==null&&It!==void 0?It:It=(async()=>{const{abortSignal:m}=e||{};function abortListener(){_t.abort()}const h=_t.signal;if(m===null||m===void 0?void 0:m.aborted){_t.abort()}else if(!h.aborted){m===null||m===void 0?void 0:m.addEventListener("abort",abortListener,{once:true})}try{if(!qt.isDone()){await qt.poll({abortSignal:h});while(!qt.isDone()){await delay(Ut,{abortSignal:h});await qt.poll({abortSignal:h})}}}finally{m===null||m===void 0?void 0:m.removeEventListener("abort",abortListener)}if(he){return qt.getResult()}else{switch(Je.status){case"succeeded":return qt.getResult();case"canceled":throw new Error(Lt);case"failed":throw Je.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{It=undefined})),async poll(e){if(he){if(qt.isDone())return}else{switch(Je.status){case"succeeded":return;case"canceled":throw new Error(Lt);case"failed":throw Je.error}}await pollOperation({poll:ye,state:Je,stateProxy:We,getOperationLocation:m,isOperationError:q,withOperationLocation:Qe,getPollingInterval:le,getOperationStatus:C,getResourceLocation:V,processResult:Le,getError:fe,updateState:Ue,options:e,setDelay:e=>{Ut=e},setErrorAsResult:!he});await handleProgressEvents();if(!he){switch(Je.status){case"canceled":throw new Error(Lt);case"failed":throw Je.error}}}};return qt}}async function createHttpPoller(e,m){const{resourceLocationConfig:h,intervalInMs:C,processResult:q,restoreFrom:V,updateState:le,withOperationLocation:fe,resolveOnUnsuccessful:he=false}=m||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:he})({init:async()=>{const m=await e.sendInitialRequest();const C=inferLroMode({rawResponse:m.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:h});return Object.assign({response:m,operationLocation:C===null||C===void 0?void 0:C.operationLocation,resourceLocation:C===null||C===void 0?void 0:C.resourceLocation},(C===null||C===void 0?void 0:C.mode)?{metadata:{mode:C.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:C,withOperationLocation:fe,restoreFrom:V,updateState:le,processResult:q?({flatResponse:e},m)=>q(e,m):({flatResponse:e})=>e})}const operation_createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,m)=>e.error=m,setResult:(e,m)=>e.result=m,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,m,h,C,q,V,le){this.state=e;this.lro=m;this.setErrorAsResult=h;this.lroResourceLocationConfig=C;this.processResult=q;this.updateState=V;this.isDone=le}setPollerConfig(e){this.pollerConfig=e}async update(e){var m;const h=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:h,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const C=this.updateState;const q=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:h,processResult:this.processResult,updateState:C?(e,{rawResponse:m})=>C(e,m):undefined,isDone:q?({flatResponse:e},m)=>q(e,m):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(m=e===null||e===void 0?void 0:e.fireProgress)===null||m===void 0?void 0:m.call(e,this.state);return this}async cancel(){Um.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,m)=>{this.resolve=e;this.reject=m}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const m of this.pollProgressCallbacks){m(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((m=>m!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,m){const{intervalInMs:h=Fm,resumeFrom:C,resolveOnUnsuccessful:q=false,isDone:V,lroResourceLocationConfig:le,processResult:fe,updateState:he}=m||{};const ye=C?operation_deserializeState(C):{};const ve=new GenericPollOperation(ye,e,!q,le,fe,he,V);super(ve);this.resolveOnUnsuccessful=q;this.config={intervalInMs:h};ve.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}class KeyVaultSecretPoller extends Poller{constructor(){super(...arguments);this.intervalInMs=2e3}async delay(){return delay_delay(this.intervalInMs)}}class KeyVaultSecretPollOperation{constructor(e,m={}){this.state=e;this.cancelMessage="";if(m.cancelMessage){this.cancelMessage=m.cancelMessage}}async update(){throw new Error("Operation not supported.")}async cancel(){throw new Error(this.cancelMessage)}toString(){return JSON.stringify({state:this.state})}}class DeleteSecretPollOperation extends KeyVaultSecretPollOperation{constructor(e,m,h={}){super(e,{cancelMessage:"Canceling the deletion of a secret is not supported."});this.state=e;this.client=m;this.operationOptions=h}deleteSecret(e,m={}){return Lm.withSpan("DeleteSecretPoller.deleteSecret",m,(async m=>{const h=await this.client.deleteSecret(e,m);return getSecretFromSecretBundle(h)}))}getDeletedSecret(e,m={}){return Lm.withSpan("DeleteSecretPoller.getDeletedSecret",m,(async m=>{const h=await this.client.getDeletedSecret(e,m);return getSecretFromSecretBundle(h)}))}async update(e={}){const m=this.state;const{name:h}=m;if(e.abortSignal){this.operationOptions.abortSignal=e.abortSignal}if(!m.isStarted){const e=await this.deleteSecret(h,this.operationOptions);m.isStarted=true;m.result=e;if(!e.properties.recoveryId){m.isCompleted=true}}if(!m.isCompleted){try{m.result=await this.getDeletedSecret(h,this.operationOptions);m.isCompleted=true}catch(e){if(e.statusCode===403){m.isCompleted=true}else if(e.statusCode!==404){m.error=e;m.isCompleted=true;throw e}}}return this}}class DeleteSecretPoller extends KeyVaultSecretPoller{constructor(e){const{client:m,name:h,operationOptions:C,intervalInMs:q=2e3,resumeFrom:V}=e;let le;if(V){le=JSON.parse(V).state}const fe=new DeleteSecretPollOperation(Object.assign(Object.assign({},le),{name:h}),m,C);super(fe);this.intervalInMs=q}}class RecoverDeletedSecretPollOperation extends KeyVaultSecretPollOperation{constructor(e,m,h={}){super(e,{cancelMessage:"Canceling the recovery of a deleted secret is not supported."});this.state=e;this.client=m;this.options=h}getSecret(e,m={}){return Lm.withSpan("RecoverDeletedSecretPoller.getSecret",m,(async h=>{const C=await this.client.getSecret(e,m&&m.version?m.version:"",h);return getSecretFromSecretBundle(C)}))}recoverDeletedSecret(e,m={}){return Lm.withSpan("RecoverDeletedSecretPoller.recoverDeletedSecret",m,(async m=>{const h=await this.client.recoverDeletedSecret(e,m);return getSecretFromSecretBundle(h)}))}async update(e={}){const m=this.state;const{name:h}=m;if(e.abortSignal){this.options.abortSignal=e.abortSignal}if(!m.isStarted){try{m.result=(await this.getSecret(h,this.options)).properties;m.isCompleted=true}catch(e){}if(!m.isCompleted){m.result=(await this.recoverDeletedSecret(h,this.options)).properties;m.isStarted=true}}if(!m.isCompleted){try{m.result=(await this.getSecret(h,this.options)).properties;m.isCompleted=true}catch(e){if(e.statusCode===403){m.isCompleted=true}else if(e.statusCode!==404){m.error=e;m.isCompleted=true;throw e}}}return this}}class RecoverDeletedSecretPoller extends KeyVaultSecretPoller{constructor(e){const{client:m,name:h,operationOptions:C,intervalInMs:q=2e3,resumeFrom:V}=e;let le;if(V){le=JSON.parse(V).state}const fe=new RecoverDeletedSecretPollOperation(Object.assign(Object.assign({},le),{name:h}),m,C);super(fe);this.intervalInMs=q}}class SecretClient{constructor(e,m,h={}){var C,q;this.vaultUrl=e;const V=Object.assign(Object.assign({},h),{userAgentOptions:{userAgentPrefix:`${(q=(C=h.userAgentOptions)===null||C===void 0?void 0:C.userAgentPrefix)!==null&&q!==void 0?q:""} azsdk-js-keyvault-secrets/${km}`},apiVersion:h.serviceVersion||Nm,loggingOptions:{logger:Am.info,additionalAllowedHeaderNames:["x-ms-keyvault-region","x-ms-keyvault-network-info","x-ms-keyvault-service-version"]}});this.client=new KeyVaultClient(this.vaultUrl,m,V);this.client.pipeline.removePolicy({name:Ad});this.client.pipeline.addPolicy(keyVaultAuthenticationPolicy(m,h),{});this.client.pipeline.addPolicy({name:"ContentTypePolicy",sendRequest(e,m){var h;const C=(h=e.headers.get("Content-Type"))!==null&&h!==void 0?h:"";if(C.startsWith("application/json")){e.headers.set("Content-Type","application/json")}return m(e)}})}setSecret(e,m,h={}){const{enabled:C,notBefore:q,expiresOn:V,tags:le}=h,fe=Wp(h,["enabled","notBefore","expiresOn","tags"]);return Lm.withSpan("SecretClient.setSecret",fe,(async h=>{const fe=await this.client.setSecret(e,{value:m,secretAttributes:{enabled:C,notBefore:q,expires:V},tags:le},h);return getSecretFromSecretBundle(fe)}))}async beginDeleteSecret(e,m={}){const h=new DeleteSecretPoller(Object.assign(Object.assign({name:e,client:this.client},m),{operationOptions:m}));await h.poll();return h}async updateSecretProperties(e,m,h={}){const{enabled:C,notBefore:q,expiresOn:V,tags:le}=h,fe=Wp(h,["enabled","notBefore","expiresOn","tags"]);return Lm.withSpan("SecretClient.updateSecretProperties",fe,(async h=>{const fe=await this.client.updateSecret(e,m,{secretAttributes:{enabled:C,notBefore:q,expires:V},tags:le},h);return getSecretFromSecretBundle(fe).properties}))}getSecret(e,m={}){return Lm.withSpan("SecretClient.getSecret",m,(async h=>{const C=await this.client.getSecret(e,m&&m.version?m.version:"",h);return getSecretFromSecretBundle(C)}))}getDeletedSecret(e,m={}){return Lm.withSpan("SecretClient.getDeletedSecret",m,(async m=>{const h=await this.client.getDeletedSecret(e,m);return getSecretFromSecretBundle(h)}))}purgeDeletedSecret(e,m={}){return Lm.withSpan("SecretClient.purgeDeletedSecret",m,(async m=>{await this.client.purgeDeletedSecret(e,m)}))}async beginRecoverDeletedSecret(e,m={}){const h=new RecoverDeletedSecretPoller(Object.assign(Object.assign({name:e,client:this.client},m),{operationOptions:m}));await h.poll();return h}backupSecret(e,m={}){return Lm.withSpan("SecretClient.backupSecret",m,(async m=>{const h=await this.client.backupSecret(e,m);return h.value}))}restoreSecretBackup(e,m={}){return Lm.withSpan("SecretClient.restoreSecretBackup",m,(async m=>{const h=await this.client.restoreSecret({secretBundleBackup:e},m);return getSecretFromSecretBundle(h).properties}))}listPropertiesOfSecretVersions(e,m={}){return mapPagedAsyncIterable((m=>this.client.getSecretVersions(e,m)),m,(e=>getSecretFromSecretBundle(e).properties))}listPropertiesOfSecrets(e={}){return mapPagedAsyncIterable(this.client.getSecrets.bind(this.client),e,(e=>getSecretFromSecretBundle(e).properties))}listDeletedSecrets(e={}){return mapPagedAsyncIterable(this.client.getDeletedSecrets.bind(this.client),e,getSecretFromSecretBundle)}}var jm=undefined&&undefined.__decorate||function(e,m,h,C){var q=arguments.length,V=q<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,h):C,le;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(e,m,h,C);else for(var fe=e.length-1;fe>=0;fe--)if(le=e[fe])V=(q<3?le(V):q>3?le(m,h,V):le(m,h))||V;return q>3&&V&&Object.defineProperty(m,h,V),V};var Bm=undefined&&undefined.__metadata||function(e,m){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,m)};var Gm=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};let zm=class AzureKeyVaultSecretProvider{constructor(e){this.normalizedNameRegistry=new Map;this.client=e}getSecret(e){return Gm(this,void 0,void 0,(function*(){var m;const h=this.resolveSecretName(e);try{const e=yield this.client.getSecret(h);return(m=e===null||e===void 0?void 0:e.value)!==null&&m!==void 0?m:undefined}catch(m){if(typeof m==="object"&&m!==null&&"statusCode"in m&&m.statusCode===404){return undefined}const h=m instanceof Error?m.message:String(m);throw new SecretOperationError(`Failed to get secret ${EnvironmentVariable.maskSecretPath(e)}: ${h}`)}}))}setSecret(e,m){return Gm(this,void 0,void 0,(function*(){const h=this.resolveSecretName(e);yield this.client.setSecret(h,m)}))}validateSecretName(e){if(e.trim().length===0){throw new InvalidArgumentError("Invalid secret name: name cannot be empty or whitespace-only.")}if(/[^a-zA-Z0-9\-_/]/.test(e)){throw new InvalidArgumentError(`Invalid secret name '${e}': contains characters not allowed`+" by Azure Key Vault. Only alphanumeric characters,"+" hyphens, slashes, and underscores are accepted.")}}resolveSecretName(e){this.validateSecretName(e);const m=this.normalizeSecretName(e);if(m.length>127){throw new InvalidArgumentError(`Invalid secret name '${e}': normalized name '${m}' exceeds the 127-character limit for Azure Key Vault.`)}const h=this.normalizedNameRegistry.get(m);if(h!==undefined&&h!==e){throw new SecretOperationError(`Secret name collision: '${e}' and '${h}' `+`both normalize to '${m}'. Use distinct `+"Key Vault-compatible names in your map file "+"when targeting Azure.")}this.normalizedNameRegistry.set(m,e);return m}normalizeSecretName(e){let m=e.replace(/^\/+/,"");m=m.replace(/[/_]/g,"-");m=m.toLowerCase();m=m.replace(/[^a-zA-Z0-9-]/g,"");m=m.replace(/-+/g,"-");m=m.replace(/^-+|-+$/g,"");if(m.length>0&&!/^[a-zA-Z]/.test(m)){m=`secret-${m}`}if(m.length===0){m="secret"}return m}};zm=jm([W(),Bm("design:paramtypes",[Function])],zm);const Hm=[".vault.azure.net",".vault.azure.cn",".vault.usgovcloudapi.net",".vault.microsoftazure.de"];function validateAzureVaultUrl(e,m){let h;try{h=new URL(e)}catch(e){throw new InvalidArgumentError("vaultUrl must be a valid URL")}if(h.protocol!=="https:"){throw new InvalidArgumentError("vaultUrl must use https:// protocol")}const C=m.some((e=>{const m=e.startsWith(".")?e.slice(1):e;return h.hostname===m||h.hostname.endsWith(`.${m}`)}));if(!C){throw new InvalidArgumentError(`vaultUrl hostname must end with one of: ${m.join(", ")}`)}}function createAzureSecretProvider(e,m){var h,C;const{vaultUrl:q}=e;if(!q){throw new DependencyMissingError("vaultUrl is required when using Azure provider."+" Set it in $config.vaultUrl in your map file"+" or via --vault-url flag.")}const V=(h=m===null||m===void 0?void 0:m.allowedVaultHosts)!==null&&h!==void 0?h:Hm;const le=(C=m===null||m===void 0?void 0:m.disableChallengeResourceVerification)!==null&&C!==void 0?C:false;validateAzureVaultUrl(q,V);const fe=new defaultAzureCredential_DefaultAzureCredential;const he=new SecretClient(q,fe,{disableChallengeResourceVerification:le});return new zm(he)}const Vm={aws:e=>createAwsSecretProvider(e),azure:(e,m)=>createAzureSecretProvider(e,m)};function configureInfrastructureServices(e,m={},h={}){var C;if(!e.isBound(Pn.ILogger)){e.bind(Pn.ILogger).to(In).inSingletonScope()}if(!e.isBound(Pn.IVariableStore)){e.bind(Pn.IVariableStore).to($n).inSingletonScope()}const q=((C=m.provider)===null||C===void 0?void 0:C.toLowerCase())||"aws";if(m.profile&&q!=="aws"){const m=e.get(Pn.ILogger);m.warn(`--profile is only supported with the aws provider`+` and will be ignored`+` (current provider: ${q}).`)}const V=Vm[q];if(!V){throw new InvalidArgumentError(`Unsupported provider: ${m.provider}.`+` Supported providers:`+` ${Object.keys(Vm).join(", ")}`)}const le=V(m,h);e.bind(Pn.ISecretProvider).toConstantValue(le)}function configureApplicationServices(e){e.bind(Pn.PullSecretsToEnvCommandHandler).to(Hn).inTransientScope();e.bind(Pn.PushEnvToSecretsCommandHandler).to(Qn).inTransientScope();e.bind(Pn.PushSingleCommandHandler).to(tr).inTransientScope();e.bind(Pn.DispatchActionCommandHandler).to(Fn).inTransientScope()}class Startup{constructor(){this.container=new esm_ne}static build(){return new Startup}configureServices(){configureApplicationServices(this.container);return this}configureInfrastructure(e,m){configureInfrastructureServices(this.container,e,m);return this}create(){return this.container}getServiceProvider(){return this.container}}var Wm=undefined&&undefined.__awaiter||function(e,m,h,C){function adopt(e){return e instanceof h?e:new h((function(m){m(e)}))}return new(h||(h=Promise))((function(h,q){function fulfilled(e){try{step(C.next(e))}catch(e){q(e)}}function rejected(e){try{step(C["throw"](e))}catch(e){q(e)}}function step(e){e.done?h(e.value):adopt(e.value).then(fulfilled,rejected)}step((C=C.apply(e,m||[])).next())}))};function readInputs(){const e=process.env.INPUT_MAP_FILE;const m=process.env.INPUT_ENV_FILE;const h=process.env.INPUT_PROVIDER;const C=process.env.INPUT_VAULT_URL;return{options:{map:e,envfile:m,push:false},provider:h||undefined,vaultUrl:C||undefined}}function executeCommand(e,m){return Wm(this,void 0,void 0,(function*(){const h=e.get(Pn.DispatchActionCommandHandler);const C=DispatchActionCommand.fromCliOptions(m);yield h.handleCommand(C)}))}function Gha_main(){return Wm(this,void 0,void 0,(function*(){const{options:e,provider:m,vaultUrl:h}=readInputs();let C;let q=new In;try{const V=e.map?yield readMapFileConfig(e.map):{};const le=Object.assign(Object.assign(Object.assign({},V),m&&{provider:m}),h&&{vaultUrl:h});const fe=Startup.build();fe.configureServices().configureInfrastructure(le);C=fe.create();q=C.get(Pn.ILogger)}catch(e){const m=e instanceof Error?e.message:String(e);q.error(`🚨 Failed to initialize: ${m}`);throw e}try{if(!e.map||!e.envfile){throw new Error("🚨 Missing required inputs! Please provide map-file and env-file.")}q.info("🔑 Envilder GitHub Action - Starting secret pull...");q.info(`📋 Map file: ${e.map}`);q.info(`📄 Env file: ${e.envfile}`);yield executeCommand(C,e);q.info("✅ Secrets pulled successfully!")}catch(e){q.error("🚨 Uh-oh! Looks like Mario fell into the wrong pipe! 🍄💥");q.error(e instanceof Error?e.message:String(e));throw e}}))}Gha_main().catch((e=>{console.error("🚨 Uh-oh! Looks like Mario fell into the wrong pipe! 🍄💥");console.error(e instanceof Error?e.message:String(e));process.exit(1)})); \ No newline at end of file +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Qa="networkClientSendPostRequestAsync";const Ya="refreshTokenClientExecutePostToTokenEndpoint";const Ja="authorizationCodeClientExecutePostToTokenEndpoint";const Xa="refreshTokenClientExecuteTokenRequest";const Za="refreshTokenClientAcquireToken";const ec="refreshTokenClientAcquireTokenWithCachedRefreshToken";const tc="refreshTokenClientCreateTokenRequestBody";const nc="silentFlowClientGenerateResultFromCacheRecord";const rc="getAuthCodeUrl";const oc="handleCodeResponseFromServer";const ic="authClientExecuteTokenRequest";const sc="authClientCreateTokenRequestBody";const ac="updateTokenEndpointAuthority";const cc="popTokenGenerateCnf";const lc="handleServerTokenResponse";const uc="authorityResolveEndpointsAsync";const dc="authorityGetCloudDiscoveryMetadataFromNetwork";const pc="authorityUpdateCloudDiscoveryMetadata";const fc="authorityGetEndpointMetadataFromNetwork";const mc="authorityUpdateEndpointMetadata";const hc="authorityUpdateMetadataWithRegionalInformation";const gc="regionDiscoveryDetectRegion";const yc="regionDiscoveryGetRegionFromIMDS";const Sc="regionDiscoveryGetCurrentVersion";const Ec="cacheManagerGetRefreshToken";const vc="setUserData"; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const invoke=(e,t,n,o,i)=>(...a)=>{n.trace(`Executing function '${t}'`,i);const d=o.startMeasurement(t,i);if(i){o.incrementFields({[`ext.${t}CallCount`]:1},i)}try{const o=e(...a);d.end({success:true});n.trace(`Returning result from '${t}'`,i);return o}catch(e){n.trace(`Error occurred in '${t}'`,i);try{n.trace(JSON.stringify(e),i)}catch(e){n.trace("Unable to print error message.",i)}d.end({success:false},e);throw e}};const invokeAsync=(e,t,n,o,i)=>(...a)=>{n.trace(`Executing function '${t}'`,i);const d=o.startMeasurement(t,i);if(i){o.incrementFields({[`ext.${t}CallCount`]:1},i)}return e(...a).then((e=>{n.trace(`Returning result from '${t}'`,i);d.end({success:true});return e})).catch((e=>{n.trace(`Error occurred in '${t}'`,i);try{n.trace(JSON.stringify(e),i)}catch(e){n.trace("Unable to print error message.",i)}d.end({success:false},e);throw e}))}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class RegionDiscovery{constructor(e,t,n,o){this.networkInterface=e;this.logger=t;this.performanceClient=n;this.correlationId=o}async detectRegion(e,t){let n=e;if(!n){const e=RegionDiscovery.IMDS_OPTIONS;try{const o=await invokeAsync(this.getRegionFromIMDS.bind(this),yc,this.logger,this.performanceClient,this.correlationId)(_r,e);if(o.status===Lr){n=o.body;t.region_source=Wo.IMDS}if(o.status===zr){const o=await invokeAsync(this.getCurrentVersion.bind(this),Sc,this.logger,this.performanceClient,this.correlationId)(e);if(!o){t.region_source=Wo.FAILED_AUTO_DETECTION;return null}const i=await invokeAsync(this.getRegionFromIMDS.bind(this),yc,this.logger,this.performanceClient,this.correlationId)(o,e);if(i.status===Lr){n=i.body;t.region_source=Wo.IMDS}}}catch(e){t.region_source=Wo.FAILED_AUTO_DETECTION;return null}}else{t.region_source=Wo.ENVIRONMENT_VARIABLE}if(!n){t.region_source=Wo.FAILED_AUTO_DETECTION}return n||null}async getRegionFromIMDS(e,t){return this.networkInterface.sendGetRequestAsync(`${xr}?api-version=${e}&format=text`,t,Or)}async getCurrentVersion(e){try{const t=await this.networkInterface.sendGetRequestAsync(`${xr}?format=json`,e);if(t.status===zr&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0){return t.body["newest-versions"][0]}return null}catch(e){return null}}}RegionDiscovery.IMDS_OPTIONS={headers:{Metadata:"true"}}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function extractTokenClaims(e,t){const n=getJWSPayload(e);try{const e=t(n);return JSON.parse(e)}catch(e){throw ClientAuthError_createClientAuthError(Ti)}}function isKmsi(e){if(!e.signin_state){return false}const t=["kmsi","dvc_dmjd"];return e.signin_state.some((e=>t.includes(e.trim().toLowerCase())))}function getJWSPayload(e){if(!e){throw ClientAuthError_createClientAuthError(xi)}const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/;const n=t.exec(e);if(!n||n.length<4){throw ClientAuthError_createClientAuthError(Ti)}return n[2]}function checkMaxAge(e,t){const n=3e5;if(t===0||Date.now()-n>e+t){throw ClientAuthError_createClientAuthError(Fi)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function nowSeconds(){return Math.round((new Date).getTime()/1e3)}function toSecondsFromDate(e){return e.getTime()/1e3}function toDateFromSeconds(e){if(e){return new Date(Number(e)*1e3)}return new Date}function isTokenExpired(e,t){const n=Number(e)||0;const o=nowSeconds()+t;return o>n}function isCacheExpired(e,t){const n=Number(e)+t*24*60*60*1e3;return Date.now()>n}function wasClockTurnedBack(e){const t=Number(e);return t>nowSeconds()}function TimeUtils_delay(e,t){return new Promise((n=>setTimeout((()=>n(t)),e)))} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function createIdTokenEntity(e,t,n,o,i){const a={credentialType:Co.ID_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:n,realm:i,lastUpdatedAt:Date.now().toString()};return a}function createAccessTokenEntity(e,t,n,o,i,a,d,f,m,h,C,P,D){const k={homeAccountId:e,credentialType:Co.ACCESS_TOKEN,secret:n,cachedAt:nowSeconds().toString(),expiresOn:d.toString(),extendedExpiresOn:f.toString(),environment:t,clientId:o,realm:i,target:a,tokenType:C||Fo.BEARER,lastUpdatedAt:Date.now().toString()};if(P){k.userAssertionHash=P}if(h){k.refreshOn=h.toString()}if(k.tokenType?.toLowerCase()!==Fo.BEARER.toLowerCase()){k.credentialType=Co.ACCESS_TOKEN_WITH_AUTH_SCHEME;switch(k.tokenType){case Fo.POP:const e=extractTokenClaims(n,m);if(!e?.cnf?.kid){throw ClientAuthError_createClientAuthError(Zi)}k.keyId=e.cnf.kid;break;case Fo.SSH:k.keyId=D}}return k}function createRefreshTokenEntity(e,t,n,o,i,a,d){const f={credentialType:Co.REFRESH_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:n,lastUpdatedAt:Date.now().toString()};if(a){f.userAssertionHash=a}if(i){f.familyId=i}if(d){f.expiresOn=d.toString()}return f}function isCredentialEntity(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function isAccessTokenEntity(e){if(!e){return false}return isCredentialEntity(e)&&e.hasOwnProperty("realm")&&e.hasOwnProperty("target")&&(e["credentialType"]===Co.ACCESS_TOKEN||e["credentialType"]===Co.ACCESS_TOKEN_WITH_AUTH_SCHEME)}function isIdTokenEntity(e){if(!e){return false}return isCredentialEntity(e)&&e.hasOwnProperty("realm")&&e["credentialType"]===Co.ID_TOKEN}function isRefreshTokenEntity(e){if(!e){return false}return isCredentialEntity(e)&&e["credentialType"]===Co.REFRESH_TOKEN}function isServerTelemetryEntity(e,t){const n=e.indexOf(Do)===0;let o=true;if(t){o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")}return n&&o}function isThrottlingEntity(e,t){let n=false;if(e){n=e.indexOf(jo)===0}let o=true;if(t){o=t.hasOwnProperty("throttleTime")}return n&&o}function generateAppMetadataKey({environment:e,clientId:t}){const n=[bo,e,t];return n.join(Eo).toLowerCase()}function isAppMetadataEntity(e,t){if(!t){return false}return e.indexOf(bo)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment")}function isAuthorityMetadataEntity(e,t){if(!t){return false}return e.indexOf(Ro)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri")}function generateAuthorityMetadataExpiresAt(){return nowSeconds()+Po}function updateAuthorityEndpointMetadata(e,t,n){e.authorization_endpoint=t.authorization_endpoint;e.token_endpoint=t.token_endpoint;e.end_session_endpoint=t.end_session_endpoint;e.issuer=t.issuer;e.endpointsFromNetwork=n;e.jwks_uri=t.jwks_uri}function updateCloudDiscoveryMetadata(e,t,n){e.aliases=t.aliases;e.preferred_cache=t.preferred_cache;e.preferred_network=t.preferred_network;e.aliasesFromNetwork=n}function isAuthorityMetadataExpired(e){return e.expiresAt<=nowSeconds()} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class Authority{constructor(e,t,n,o,i,a,d,f){this.canonicalAuthority=e;this._canonicalAuthority.validateAsUri();this.networkInterface=t;this.cacheManager=n;this.authorityOptions=o;this.regionDiscoveryMetadata={region_used:undefined,region_source:undefined,region_outcome:undefined};this.logger=i;this.performanceClient=d;this.correlationId=a;this.managedIdentity=f||false;this.regionDiscovery=new RegionDiscovery(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(mr)){return Sa.Ciam}const t=e.PathSegments;if(t.length){switch(t[0].toLowerCase()){case dr:return Sa.Adfs;case pr:return Sa.Dsts}}return Sa.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new UrlString(e);this._canonicalAuthority.validateAsUri();this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){if(!this._canonicalAuthorityUrlComponents){this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()}return this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete()){return this.replacePath(this.metadata.authorization_endpoint)}else{throw ClientAuthError_createClientAuthError(_i)}}get tokenEndpoint(){if(this.discoveryComplete()){return this.replacePath(this.metadata.token_endpoint)}else{throw ClientAuthError_createClientAuthError(_i)}}get deviceCodeEndpoint(){if(this.discoveryComplete()){return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"))}else{throw ClientAuthError_createClientAuthError(_i)}}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint){throw ClientAuthError_createClientAuthError(ns)}return this.replacePath(this.metadata.end_session_endpoint)}else{throw ClientAuthError_createClientAuthError(_i)}}get selfSignedJwtAudience(){if(this.discoveryComplete()){return this.replacePath(this.metadata.issuer)}else{throw ClientAuthError_createClientAuthError(_i)}}get jwksUri(){if(this.discoveryComplete()){return this.replacePath(this.metadata.jwks_uri)}else{throw ClientAuthError_createClientAuthError(_i)}}canReplaceTenant(e){return e.PathSegments.length===1&&!Authority.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Sa.Default&&this.protocolMode!==Wa.OIDC}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const n=new UrlString(this.metadata.canonical_authority);const o=n.getUrlComponents();const i=o.PathSegments;const a=this.canonicalAuthorityUrlComponents.PathSegments;a.forEach(((e,n)=>{let a=i[n];if(n===0&&this.canReplaceTenant(o)){const e=new UrlString(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];if(a!==e){this.logger.verbose(`Replacing tenant domain name '${a}' with id '${e}'`,this.correlationId);a=e}}if(e!==a){t=t.replace(`/${a}/`,`/${e}/`)}}));return this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;if(this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Sa.Adfs||this.protocolMode===Wa.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(e)){return`${this.canonicalAuthority}.well-known/openid-configuration`}return`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){const e=this.getCurrentMetadataEntity();const t=await invokeAsync(this.updateCloudDiscoveryMetadata.bind(this),pc,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const n=await invokeAsync(this.updateEndpointMetadata.bind(this),mc,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:n});this.performanceClient?.addFields({cloudDiscoverySource:t,authorityEndpointSource:n},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort,this.correlationId);if(!e){e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:false,endpointsFromNetwork:false,expiresAt:generateAuthorityMetadataExpiresAt(),jwks_uri:""}}return e}updateCachedMetadata(e,t,n){if(t!==To.CACHE&&n?.source!==To.CACHE){e.expiresAt=generateAuthorityMetadataExpiresAt();e.canonical_authority=this.canonicalAuthority}const o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache,this.correlationId);this.cacheManager.setAuthorityMetadata(o,e,this.correlationId);this.metadata=e}async updateEndpointMetadata(e){const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===To.HARDCODED_VALUES){if(this.authorityOptions.azureRegionConfiguration?.azureRegion){if(t.metadata){const n=await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this),hc,this.logger,this.performanceClient,this.correlationId)(t.metadata);updateAuthorityEndpointMetadata(e,n,false);e.canonical_authority=this.canonicalAuthority}}}return t.source}let n=await invokeAsync(this.getEndpointMetadataFromNetwork.bind(this),fc,this.logger,this.performanceClient,this.correlationId)();if(n){if(this.authorityOptions.azureRegionConfiguration?.azureRegion){n=await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this),hc,this.logger,this.performanceClient,this.correlationId)(n)}updateAuthorityEndpointMetadata(e,n,true);return To.NETWORK}else{throw ClientAuthError_createClientAuthError(Mi,this.defaultOpenIdConfigurationEndpoint)}}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration",this.correlationId);const t=this.getEndpointMetadataFromConfig();if(t){this.logger.verbose("Found endpoint metadata in authority configuration",this.correlationId);updateAuthorityEndpointMetadata(e,t,false);return{source:To.CONFIG}}this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values.",this.correlationId);const n=this.getEndpointMetadataFromHardcodedValues();if(n){updateAuthorityEndpointMetadata(e,n,false);return{source:To.HARDCODED_VALUES,metadata:n}}else{this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.",this.correlationId)}const o=isAuthorityMetadataExpired(e);if(this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!o){this.logger.verbose("Found endpoint metadata in the cache.","");return{source:To.CACHE}}else if(o){this.logger.verbose("The metadata entity is expired.","")}return null}isAuthoritySameType(e){const t=new UrlString(e.canonical_authority);const n=t.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata){try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw createClientConfigurationError(Oa)}}return null}async getEndpointMetadataFromNetwork(){const e={};const t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from '${t}'`,this.correlationId);try{const n=await this.networkInterface.sendGetRequestAsync(t,e);const o=isOpenIdConfigResponse(n.body);if(o){return n.body}else{this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration`,this.correlationId);return null}}catch(e){this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: '${e}'`,this.correlationId);return null}}getEndpointMetadataFromHardcodedValues(){if(this.hostnameAndPort in Ha){return Ha[this.hostnameAndPort]}return null}async updateMetadataWithRegionalInformation(e){const t=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(t){if(t!==Mr){this.regionDiscoveryMetadata.region_outcome=Ko.CONFIGURED_NO_AUTO_DETECTION;this.regionDiscoveryMetadata.region_used=t;return Authority.replaceWithRegionalInformation(e,t)}const n=await invokeAsync(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),gc,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(n){this.regionDiscoveryMetadata.region_outcome=Ko.AUTO_DETECTION_REQUESTED_SUCCESSFUL;this.regionDiscoveryMetadata.region_used=n;return Authority.replaceWithRegionalInformation(e,n)}this.regionDiscoveryMetadata.region_outcome=Ko.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t){return t}const n=await invokeAsync(this.getCloudDiscoveryMetadataFromNetwork.bind(this),dc,this.logger,this.performanceClient,this.correlationId)();if(n){updateCloudDiscoveryMetadata(e,n,true);return To.NETWORK}throw createClientConfigurationError(Ma)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration",this.correlationId);this.logger.verbosePii(`Known Authorities: '${this.authorityOptions.knownAuthorities||Rr}'`,this.correlationId);this.logger.verbosePii(`Authority Metadata: '${this.authorityOptions.authorityMetadata||Rr}'`,this.correlationId);this.logger.verbosePii(`Canonical Authority: '${e.canonical_authority||Rr}'`,this.correlationId);const t=this.getCloudDiscoveryMetadataFromConfig();if(t){this.logger.verbose("Found cloud discovery metadata in authority configuration",this.correlationId);updateCloudDiscoveryMetadata(e,t,false);return To.CONFIG}this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values.",this.correlationId);const n=getCloudDiscoveryMetadataFromHardcodedValues(this.hostnameAndPort);if(n){this.logger.verbose("Found cloud discovery metadata from hardcoded values.",this.correlationId);updateCloudDiscoveryMetadata(e,n,false);return To.HARDCODED_VALUES}this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.",this.correlationId);const o=isAuthorityMetadataExpired(e);if(this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o){this.logger.verbose("Found cloud discovery metadata in the cache.","");return To.CACHE}else if(o){this.logger.verbose("The metadata entity is expired.","")}return null}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Sa.Ciam){this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host.",this.correlationId);return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)}if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.",this.correlationId);try{this.logger.verbose("Attempting to parse the cloud discovery metadata.",this.correlationId);const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata);const t=getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);this.logger.verbose("Parsed the cloud discovery metadata.","");if(t){this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata.",this.correlationId);return t}else{this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.",this.correlationId)}}catch(e){this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error.",this.correlationId);throw createClientConfigurationError(_a)}}if(this.isInKnownAuthorities()){this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.",this.correlationId);return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)}return null}async getCloudDiscoveryMetadataFromNetwork(){const e=`${fr}${this.canonicalAuthority}oauth2/v2.0/authorize`;const t={};let n=null;try{const o=await this.networkInterface.sendGetRequestAsync(e,t);let i;let a;if(isCloudInstanceDiscoveryResponse(o.body)){i=o.body;a=i.metadata;this.logger.verbosePii(`tenant_discovery_endpoint is: '${i.tenant_discovery_endpoint}'`,this.correlationId)}else if(isCloudInstanceDiscoveryErrorResponse(o.body)){this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: '${o.status}'`,this.correlationId);i=o.body;if(i.error===kr){this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance.",this.correlationId);return null}this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is '${i.error}'`,this.correlationId);this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is '${i.error_description}'`,this.correlationId);this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network, correlationId) to []",this.correlationId);a=[]}else{this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse",this.correlationId);return null}this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.",this.correlationId);n=getCloudDiscoveryMetadataFromNetworkResponse(a,this.hostnameAndPort)}catch(e){if(e instanceof AuthError){this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.\nError: '${e.errorCode}'\nError Description: '${e.errorMessage}'`,this.correlationId)}else{const t=e;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: '${t.name}'\nError Description: '${t.message}'`,this.correlationId)}return null}if(!n){this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.",this.correlationId);this.logger.verbose("Creating custom Authority for custom domain scenario.",this.correlationId);n=Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)}return n}isInKnownAuthorities(){const e=this.authorityOptions.knownAuthorities.filter((e=>e&&UrlString.getDomainFromUrl(e).toLowerCase()===this.hostnameAndPort));return e.length>0}static generateAuthority(e,t){let n;if(t&&t.azureCloudInstance!==Ka.None){const e=t.tenant?t.tenant:ur;n=`${t.azureCloudInstance}/${e}/`}return n?n:e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity){return lr}else if(this.discoveryComplete()){return this.metadata.preferred_cache}else{throw ClientAuthError_createClientAuthError(_i)}}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Ga.has(e)}static isPublicCloudAuthority(e){return $r.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,n){const o=new UrlString(e);o.validateAsUri();const i=o.getUrlComponents();let a=`${t}.${i.HostNameAndPort}`;if(this.isPublicCloudAuthority(i.HostNameAndPort)){a=`${t}.${Dr}`}const d=UrlString.constructAuthorityUriFromObject({...o.getUrlComponents(),HostNameAndPort:a}).urlString;if(n)return`${d}?${n}`;return d}static replaceWithRegionalInformation(e,t){const n={...e};n.authorization_endpoint=Authority.buildRegionalAuthorityString(n.authorization_endpoint,t);n.token_endpoint=Authority.buildRegionalAuthorityString(n.token_endpoint,t);if(n.end_session_endpoint){n.end_session_endpoint=Authority.buildRegionalAuthorityString(n.end_session_endpoint,t)}return n}static transformCIAMAuthority(e){let t=e;const n=new UrlString(e);const o=n.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(mr)){const e=o.HostNameAndPort.split(".")[0];t=`${t}${e}${hr}`}return t}}Authority.reservedTenantDomains=new Set(["{tenant}","{tenantid}",ao.COMMON,ao.CONSUMERS,ao.ORGANIZATIONS]);function getTenantFromAuthorityString(e){const t=new UrlString(e);const n=t.getUrlComponents();const o=n.PathSegments.slice(-1)[0]?.toLowerCase();switch(o){case ao.COMMON:case ao.ORGANIZATIONS:case ao.CONSUMERS:return undefined;default:return o}}function formatAuthorityUri(e){return e.endsWith(Tr)?e:`${e}${Tr}`}function buildStaticAuthorityOptions(e){const t=e.cloudDiscoveryMetadata;let n=undefined;if(t){try{n=JSON.parse(t)}catch(e){throw createClientConfigurationError(_a)}}return{canonicalAuthority:e.authority?formatAuthorityUri(e.authority):undefined,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:n}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class ScopeSet{constructor(e){const t=e?StringUtils_StringUtils.trimArrayEntries([...e]):[];const n=t?StringUtils_StringUtils.removeEmptyStringsFromArray(t):[];if(!n||!n.length){throw createClientConfigurationError(wa)}this.scopes=new Set;n.forEach((e=>this.scopes.add(e)))}static fromString(e){const t=e||"";const n=t.split(" ");return new ScopeSet(n)}static createSearchScopes(e){const t=e&&e.length>0?e:[...ro];const n=new ScopeSet(t);if(!n.containsOnlyOIDCScopes()){n.removeOIDCScopes()}else{n.removeScope(vr)}return n}containsScope(e){const t=this.printScopesLowerCase().split(" ");const n=new ScopeSet(t);return e?n.scopes.has(e.toLowerCase()):false}containsScopeSet(e){if(!e||e.scopes.size<=0){return false}return this.scopes.size>=e.scopes.size&&e.asArray().every((e=>this.containsScope(e)))}containsOnlyOIDCScopes(){let e=0;oo.forEach((t=>{if(this.containsScope(t)){e+=1}}));return this.scopes.size===e}appendScope(e){if(e){this.scopes.add(e.trim())}}appendScopes(e){try{e.forEach((e=>this.appendScope(e)))}catch(e){throw ClientAuthError_createClientAuthError(Hi)}}removeScope(e){if(!e){throw ClientAuthError_createClientAuthError(zi)}this.scopes.delete(e.trim())}removeOIDCScopes(){oo.forEach((e=>{this.scopes.delete(e)}))}unionScopeSets(e){if(!e){throw ClientAuthError_createClientAuthError(Vi)}const t=new Set;e.scopes.forEach((e=>t.add(e.toLowerCase())));this.scopes.forEach((e=>t.add(e.toLowerCase())));return t}intersectingScopeSets(e){if(!e){throw ClientAuthError_createClientAuthError(Vi)}if(!e.containsOnlyOIDCScopes()){e.removeOIDCScopes()}const t=this.unionScopeSets(e);const n=e.getScopeCount();const o=this.getScopeCount();const i=t.size;return i<o+n}getScopeCount(){return this.scopes.size}asArray(){const e=[];this.scopes.forEach((t=>e.push(t)));return e}printScopes(){if(this.scopes){const e=this.asArray();return e.join(" ")}return""}printScopesLowerCase(){return this.printScopes().toLowerCase()}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function instrumentBrokerParams(e,t,n){if(!t){return}const o=e.get(ps);if(o&&e.has(da)){n?.addFields({embeddedClientId:o,embeddedRedirectUri:e.get(fs)},t)}}function addResponseType(e,t){e.set(ms,t)}function addResponseMode(e,t){e.set(hs,t?t:fo.QUERY)}function addNativeBroker(e){e.set(NATIVE_BROKER,"1")}function addScopes(e,t,n=true,o=ro){if(n&&!o.includes("openid")&&!t.includes("openid")){o.push("openid")}const i=n?[...t||[],...o]:t||[];const a=new ScopeSet(i);e.set(Ss,a.printScopes())}function addClientId(e,t){e.set(ps,t)}function addRedirectUri(e,t){e.set(fs,t)}function addPostLogoutRedirectUri(e,t){e.set(Vs,t)}function addIdTokenHint(e,t){e.set(Gs,t)}function addDomainHint(e,t){e.set(la,t)}function addLoginHint(e,t){e.set(ca,t)}function addCcsUpn(e,t){e.set(io.CCS_HEADER,`UPN:${t}`)}function addCcsOid(e,t){e.set(io.CCS_HEADER,`Oid:${t.uid}@${t.utid}`)}function addSid(e,t){e.set(aa,t)}function addClaims(e,t,n){const o=addClientCapabilitiesToClaims(t,n);try{JSON.parse(o)}catch(e){throw createClientConfigurationError(Aa)}e.set(ys,o)}function addCorrelationId(e,t){e.set(Ns,t)}function addLibraryInfo(e,t){e.set(ks,t.sku);e.set(Ls,t.version);if(t.os){e.set(Us,t.os)}if(t.cpu){e.set(Fs,t.cpu)}}function addApplicationTelemetry(e,t){if(t?.appName){e.set(zs,t.appName)}if(t?.appVersion){e.set(Hs,t.appVersion)}}function addPrompt(e,t){e.set(Ts,t)}function addState(e,t){if(t){e.set(Rs,t)}}function addNonce(e,t){e.set(Ps,t)}function addCodeChallengeParams(e,t,n){if(t&&n){e.set(Ms,t);e.set(Ds,n)}else{throw createClientConfigurationError(xa)}}function addAuthorizationCode(e,t){e.set(Os,t)}function addDeviceCode(e,t){e.set(Ws,t)}function addRefreshToken(e,t){e.set(bs,t)}function addCodeVerifier(e,t){e.set($s,t)}function addClientSecret(e,t){e.set(Ks,t)}function addClientAssertion(e,t){if(t){e.set(Qs,t)}}function addClientAssertionType(e,t){if(t){e.set(Ys,t)}}function addOboAssertion(e,t){e.set(Zs,t)}function addRequestTokenUse(e,t){e.set(ea,t)}function addGrantType(e,t){e.set(gs,t)}function addClientInfo(e){e.set(wo,"1")}function addCliData(e){e.set(ya,"1")}function addInstanceAware(e){if(!e.has(fa)){e.set(fa,"true")}}function addExtraParameters(e,t){Object.entries(t).forEach((([t,n])=>{if(!e.has(t)&&n){e.set(t,n)}}))}function addClientCapabilitiesToClaims(e,t){let n;if(!e){n={}}else{try{n=JSON.parse(e)}catch(e){throw createClientConfigurationError(Aa)}}if(t&&t.length>0){if(!n.hasOwnProperty(co.ACCESS_TOKEN)){n[co.ACCESS_TOKEN]={}}n[co.ACCESS_TOKEN][co.XMS_CC]={values:t}}return JSON.stringify(n)}function addUsername(e,t){e.set(Go.username,t)}function addPassword(e,t){e.set(Go.password,t)}function addPopToken(e,t){if(t){e.set(Js,Fo.POP);e.set(Xs,t)}}function addSshJwk(e,t){if(t){e.set(Js,Fo.SSH);e.set(Xs,t)}}function addServerTelemetry(e,t){e.set(Bs,t.generateCurrentRequestHeaderValue());e.set(qs,t.generateLastRequestHeaderValue())}function addThrottling(e){e.set(js,zo)}function addLogoutHint(e,t){e.set(sa,t)}function addBrokerParameters(e,t,n){if(!e.has(da)){e.set(da,t)}if(!e.has(pa)){e.set(pa,n)}}function addEARParameters(e,t){e.set(EAR_JWK,encodeURIComponent(t));const n="eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0";e.set(EAR_JWE_CRYPTO,n)}function addResource(e,t){if(t){e.set(ga,t)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function canonicalizeUrl(e){if(!e){return e}let t=e.toLowerCase();if(StringUtils.endsWith(t,"?")){t=t.slice(0,-1)}else if(StringUtils.endsWith(t,"?/")){t=t.slice(0,-2)}if(!StringUtils.endsWith(t,"/")){t+="/"}return t}function stripLeadingHashOrQuery(e){if(e.startsWith("#/")){return e.substring(2)}else if(e.startsWith("#")||e.startsWith("?")){return e.substring(1)}return e}function getDeserializedResponse(e){if(!e||e.indexOf("=")<0){return null}try{const t=stripLeadingHashOrQuery(e);const n=Object.fromEntries(new URLSearchParams(t));if(n.code||n.ear_jwe||n.error||n.error_description||n.state){return n}}catch(e){throw ClientAuthError_createClientAuthError(Di)}return null}function mapToQueryString(e){const t=new Array;e.forEach(((e,n)=>{t.push(`${n}=${encodeURIComponent(e)}`)}));return t.join("&")}function normalizeUrlForComparison(e){if(!e){return e}const t=e.split("#")[0];try{const e=new URL(t);const n=e.origin+e.pathname+e.search;return canonicalizeUrl(n)}catch(e){return canonicalizeUrl(t)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Cc={createNewGuid:()=>{throw ClientAuthError_createClientAuthError(as)},base64Decode:()=>{throw ClientAuthError_createClientAuthError(as)},base64Encode:()=>{throw ClientAuthError_createClientAuthError(as)},base64UrlEncode:()=>{throw ClientAuthError_createClientAuthError(as)},encodeKid:()=>{throw ClientAuthError_createClientAuthError(as)},async getPublicKeyThumbprint(){throw ClientAuthError_createClientAuthError(as)},async removeTokenBindingKey(){throw ClientAuthError_createClientAuthError(as)},async clearKeystore(){throw ClientAuthError_createClientAuthError(as)},async signJwt(){throw ClientAuthError_createClientAuthError(as)},async hashString(){throw ClientAuthError_createClientAuthError(as)}}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Ic="@azure/msal-common";const bc="16.4.0"; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function tenantIdMatchesHomeTenant(e,t){return!!e&&!!t&&e===t.split(".")[1]}function AccountInfo_buildTenantProfile(e,t,n,o){if(o){const{oid:t,sub:n,tid:i,name:a,tfp:d,acr:f,preferred_username:m,upn:h,login_hint:C}=o;const P=i||d||f||"";return{tenantId:P,localAccountId:t||n||"",name:a,username:m||h||"",loginHint:C,isHomeTenant:tenantIdMatchesHomeTenant(P,e)}}else{return{tenantId:n,localAccountId:t,username:"",isHomeTenant:tenantIdMatchesHomeTenant(n,e)}}}function updateAccountTenantProfileData(e,t,n,o){let i=e;if(t){const{isHomeTenant:n,...o}=t;i={...e,...o}}if(n){const{isHomeTenant:t,...a}=AccountInfo_buildTenantProfile(e.homeAccountId,e.localAccountId,e.tenantId,n);i={...i,...a,idTokenClaims:n,idToken:o};return i}return i} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const wc="cache_quota_exceeded";const Ac="cache_error_unknown"; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class CacheError extends Error{constructor(e,t){const n=t||getDefaultErrorMessage(e);super(n);Object.setPrototypeOf(this,CacheError.prototype);this.name="CacheError";this.errorCode=e;this.errorMessage=n}}function createCacheError(e){if(!(e instanceof Error)){return new CacheError(Ac)}if(e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED"||e.message.includes("exceeded the quota")){return new CacheError(wc)}else{return new CacheError(e.name,e.message)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function buildClientInfo(e,t){if(!e){throw ClientAuthError_createClientAuthError(Pi)}try{const n=t(e);return JSON.parse(n)}catch(e){throw ClientAuthError_createClientAuthError(Ri)}}function buildClientInfoFromHomeAccountId(e){if(!e){throw ClientAuthError_createClientAuthError(Ri)}const t=e.split(vo,2);return{uid:t[0],utid:t.length<2?"":t[1]}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function getTenantIdFromIdTokenClaims(e){if(e){const t=e.tid||e.tfp||e.acr;return t||null}return null} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function generateAccountId(e){const t=[e.homeAccountId,e.environment];return t.join(CACHE_KEY_SEPARATOR).toLowerCase()}function getAccountInfo(e){const t=e.tenantProfiles||[];if(t.length===0&&e.realm&&e.localAccountId){t.push(AccountInfo_buildTenantProfile(e.homeAccountId,e.localAccountId,e.realm))}return{homeAccountId:e.homeAccountId,environment:e.environment,tenantId:e.realm,username:e.username,localAccountId:e.localAccountId,loginHint:e.loginHint,name:e.name,nativeAccountId:e.nativeAccountId,authorityType:e.authorityType,tenantProfiles:new Map(t.map((e=>[e.tenantId,e]))),dataBoundary:e.dataBoundary}}function isSingleTenant(e){return!e.tenantProfiles}function createAccountEntity(e,t,n){let o;if(t.authorityType===Sa.Adfs){o=go}else if(t.protocolMode===Wa.OIDC){o=So}else{o=ho}let i;let a;if(e.clientInfo&&n){i=buildClientInfo(e.clientInfo,n);if(i.xms_tdbr){a=i.xms_tdbr==="EU"?"EU":"None"}}const d=e.environment||t&&t.getPreferredCache();if(!d){throw ClientAuthError_createClientAuthError(Ki)}const f=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn;const m=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null;const h=f||m||"";const C=e.idTokenClaims?.login_hint;const P=i?.utid||getTenantIdFromIdTokenClaims(e.idTokenClaims)||"";const D=i?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"";let k;if(e.tenantProfiles){k=e.tenantProfiles}else{const t=AccountInfo_buildTenantProfile(e.homeAccountId,D,P,e.idTokenClaims);k=[t]}return{homeAccountId:e.homeAccountId,environment:d,realm:P,localAccountId:D,username:h,authorityType:o,loginHint:C,clientInfo:e.clientInfo,name:e.idTokenClaims?.name||"",lastModificationTime:undefined,lastModificationApp:undefined,cloudGraphHostName:e.cloudGraphHostName,msGraphHost:e.msGraphHost,nativeAccountId:e.nativeAccountId,tenantProfiles:k,dataBoundary:a}}function createAccountEntityFromAccountInfo(e,t,n){const o=Array.from(e.tenantProfiles?.values()||[]);if(o.length===0&&e.tenantId&&e.localAccountId){o.push(buildTenantProfile(e.homeAccountId,e.localAccountId,e.tenantId,e.idTokenClaims))}return{authorityType:e.authorityType||CACHE_ACCOUNT_TYPE_GENERIC,homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,nativeAccountId:e.nativeAccountId,realm:e.tenantId,environment:e.environment,username:e.username,loginHint:e.loginHint,name:e.name,cloudGraphHostName:t,msGraphHost:n,tenantProfiles:o,dataBoundary:e.dataBoundary}}function generateHomeAccountId(e,t,n,o,i,a){if(!(t===Sa.Adfs||t===Sa.Dsts)){if(e){try{const t=buildClientInfo(e,o.base64Decode);if(t.uid&&t.utid){return`${t.uid}.${t.utid}`}}catch(e){}}n.warning("No client info in response",i)}return a?.sub||""}function isAccountEntity(e){if(!e){return false}return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class CacheManager{constructor(e,t,n,o,i){this.clientId=e;this.cryptoImpl=t;this.commonLogger=n.clone(Ic,bc);this.staticAuthorityOptions=i;this.performanceClient=o}getAllAccounts(e={},t){return this.buildTenantProfiles(this.getAccountsFilteredBy(e,t),t,e)}getAccountInfoFilteredBy(e,t){if(Object.keys(e).length===0||Object.values(e).every((e=>e===null||e===undefined||e===""))){this.commonLogger.warning("getAccountInfoFilteredBy: Account filter is empty or invalid, returning null",t);return null}const n=this.getAllAccounts(e,t);if(n.length>1){const e=n.sort((e=>e.idTokenClaims?-1:1));return e[0]}else if(n.length===1){return n[0]}else{return null}}getBaseAccountInfo(e,t){const n=this.getAccountsFilteredBy(e,t);if(n.length>0){return getAccountInfo(n[0])}else{return null}}buildTenantProfiles(e,t,n){return e.flatMap((e=>this.getTenantProfilesFromAccountEntity(e,t,n?.tenantId,n)))}getTenantedAccountInfoByFilter(e,t,n,o,i){let a=null;let d;if(i){if(!this.tenantProfileMatchesFilter(n,i)){return null}}const f=this.getIdToken(e,o,t,n.tenantId);if(f){d=extractTokenClaims(f.secret,this.cryptoImpl.base64Decode);if(!this.idTokenClaimsMatchTenantProfileFilter(d,i)){return null}}a=updateAccountTenantProfileData(e,n,d,f?.secret);return a}getTenantProfilesFromAccountEntity(e,t,n,o){const i=getAccountInfo(e);let a=i.tenantProfiles||new Map;const d=this.getTokenKeys();if(n){const e=a.get(n);if(e){a=new Map([[n,e]])}else{return[]}}const f=[];a.forEach((e=>{const n=this.getTenantedAccountInfoByFilter(i,d,e,t,o);if(n){f.push(n)}}));return f}tenantProfileMatchesFilter(e,t){if(!!t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId)){return false}if(!!t.name&&!(e.name===t.name)){return false}if(t.isHomeTenant!==undefined&&!(e.isHomeTenant===t.isHomeTenant)){return false}return true}idTokenClaimsMatchTenantProfileFilter(e,t){if(t){if(!!t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId)){return false}if(!!t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint)){return false}if(!!t.username&&!this.matchUsername(e.preferred_username,t.username)){return false}if(!!t.name&&!this.matchName(e,t.name)){return false}if(!!t.sid&&!this.matchSid(e,t.sid)){return false}}return true}async saveCacheRecord(e,t,n,o,i){if(!e){throw ClientAuthError_createClientAuthError(Wi)}try{if(!!e.account){await this.setAccount(e.account,t,n,o)}if(!!e.idToken&&i?.idToken!==false){await this.setIdTokenCredential(e.idToken,t,n)}if(!!e.accessToken&&i?.accessToken!==false){await this.saveAccessToken(e.accessToken,t,n)}if(!!e.refreshToken&&i?.refreshToken!==false){await this.setRefreshTokenCredential(e.refreshToken,t,n)}if(!!e.appMetadata){this.setAppMetadata(e.appMetadata,t)}}catch(e){this.commonLogger?.error(`CacheManager.saveCacheRecord: failed`,t);if(e instanceof AuthError){throw e}else{throw createCacheError(e)}}}async saveAccessToken(e,t,n){const o={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType};const i=this.getTokenKeys();const a=ScopeSet.fromString(e.target);i.accessToken.forEach((e=>{if(!this.accessTokenKeyMatchesFilter(e,o,false)){return}const n=this.getAccessTokenCredential(e,t);if(n&&this.credentialMatchesFilter(n,o,t)){const o=ScopeSet.fromString(n.target);if(o.intersectingScopeSets(a)){this.removeAccessToken(e,t)}}}));await this.setAccessTokenCredential(e,t,n)}getAccountsFilteredBy(e,t){const n=this.getAccountKeys();const o=[];n.forEach((n=>{const i=this.getAccount(n,t);if(!i){return}if(!!e.homeAccountId&&!this.matchHomeAccountId(i,e.homeAccountId)){return}if(!!e.username&&!this.matchUsername(i.username,e.username)){return}if(!!e.environment&&!this.matchEnvironment(i,e.environment,t)){return}if(!!e.realm&&!this.matchRealm(i,e.realm)){return}if(!!e.nativeAccountId&&!this.matchNativeAccountId(i,e.nativeAccountId)){return}if(!!e.authorityType&&!this.matchAuthorityType(i,e.authorityType)){return}const a={localAccountId:e?.localAccountId,name:e?.name};const d=i.tenantProfiles?.filter((e=>this.tenantProfileMatchesFilter(e,a)));if(d&&d.length===0){return}o.push(i)}));return o}credentialMatchesFilter(e,t,n){if(!!t.clientId&&!this.matchClientId(e,t.clientId)){return false}if(!!t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)){return false}if(typeof t.homeAccountId==="string"&&!this.matchHomeAccountId(e,t.homeAccountId)){return false}if(!!t.environment&&!this.matchEnvironment(e,t.environment,n)){return false}if(!!t.realm&&!this.matchRealm(e,t.realm)){return false}if(!!t.credentialType&&!this.matchCredentialType(e,t.credentialType)){return false}if(!!t.familyId&&!this.matchFamilyId(e,t.familyId)){return false}if(!!t.target&&!this.matchTarget(e,t.target)){return false}if(e.credentialType===Co.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(!!t.tokenType&&!this.matchTokenType(e,t.tokenType)){return false}if(t.tokenType===Fo.SSH){if(t.keyId&&!this.matchKeyId(e,t.keyId)){return false}}}return true}getAppMetadataFilteredBy(e,t){const n=this.getKeys();const o={};n.forEach((n=>{if(!this.isAppMetadata(n)){return}const i=this.getAppMetadata(n,t);if(!i){return}if(!!e.environment&&!this.matchEnvironment(i,e.environment,t)){return}if(!!e.clientId&&!this.matchClientId(i,e.clientId)){return}o[n]=i}));return o}getAuthorityMetadataByAlias(e,t){const n=this.getAuthorityMetadataKeys();let o=null;n.forEach((n=>{if(!this.isAuthorityMetadata(n)||n.indexOf(this.clientId)===-1){return}const i=this.getAuthorityMetadata(n,t);if(!i){return}if(i.aliases.indexOf(e)===-1){return}o=i}));return o}removeAllAccounts(e){const t=this.getAllAccounts({},e);t.forEach((t=>{this.removeAccount(t,e)}))}removeAccount(e,t){this.removeAccountContext(e,t);const n=this.getAccountKeys();const keyFilter=t=>t.includes(e.homeAccountId)&&t.includes(e.environment);n.filter(keyFilter).forEach((e=>{this.removeItem(e,t);this.performanceClient.incrementFields({accountsRemoved:1},t)}))}removeAccountContext(e,t){const n=this.getTokenKeys();const keyFilter=t=>t.includes(e.homeAccountId)&&t.includes(e.environment);n.idToken.filter(keyFilter).forEach((e=>{this.removeIdToken(e,t)}));n.accessToken.filter(keyFilter).forEach((e=>{this.removeAccessToken(e,t)}));n.refreshToken.filter(keyFilter).forEach((e=>{this.removeRefreshToken(e,t)}))}removeAccessToken(e,t){const n=this.getAccessTokenCredential(e,t);if(!n){return}this.removeItem(e,t);this.performanceClient.incrementFields({accessTokensRemoved:1},t);if(n.credentialType.toLowerCase()===Co.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()){if(n.tokenType===Fo.POP){const e=n;const o=e.keyId;if(o){void this.cryptoImpl.removeTokenBindingKey(o,t).catch((()=>{this.commonLogger.error(`Failed to remove token binding key '${o}'`,t);this.performanceClient?.incrementFields({removeTokenBindingKeyFailure:1},t)}))}}}}removeAppMetadata(e){const t=this.getKeys();t.forEach((t=>{if(this.isAppMetadata(t)){this.removeItem(t,e)}}));return true}getIdToken(e,t,n,o){this.commonLogger.trace("CacheManager - getIdToken called",t);const i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Co.ID_TOKEN,clientId:this.clientId,realm:o};const a=this.getIdTokensByFilter(i,t,n);const d=a.size;if(d<1){this.commonLogger.info("CacheManager:getIdToken - No token found",t);return null}else if(d>1){let n=a;if(!o){const o=new Map;a.forEach(((t,n)=>{if(t.realm===e.tenantId){o.set(n,t)}}));const i=o.size;if(i<1){this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result",t);return a.values().next().value}else if(i===1){this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile",t);return o.values().next().value}else{n=o}}this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them",t);n.forEach(((e,n)=>{this.removeIdToken(n,t)}));this.performanceClient.addFields({multiMatchedID:a.size},t);return null}this.commonLogger.info("CacheManager:getIdToken - Returning ID token",t);return a.values().next().value}getIdTokensByFilter(e,t,n){const o=n&&n.idToken||this.getTokenKeys().idToken;const i=new Map;o.forEach((n=>{if(!this.idTokenKeyMatchesFilter(n,{clientId:this.clientId,...e})){return}const o=this.getIdTokenCredential(n,t);if(o&&this.credentialMatchesFilter(o,e,t)){i.set(n,o)}}));return i}idTokenKeyMatchesFilter(e,t){const n=e.toLowerCase();if(t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1){return false}if(t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1){return false}return true}removeIdToken(e,t){this.removeItem(e,t)}removeRefreshToken(e,t){this.removeItem(e,t)}getAccessToken(e,t,n,o){const i=t.correlationId;this.commonLogger.trace("CacheManager - getAccessToken called",i);const a=ScopeSet.createSearchScopes(t.scopes);const d=t.authenticationScheme||Fo.BEARER;const f=d&&d.toLowerCase()!==Fo.BEARER.toLowerCase()?Co.ACCESS_TOKEN_WITH_AUTH_SCHEME:Co.ACCESS_TOKEN;const m={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:f,clientId:this.clientId,realm:o||e.tenantId,target:a,tokenType:d,keyId:t.sshKid};const h=n&&n.accessToken||this.getTokenKeys().accessToken;const C=[];h.forEach((e=>{if(this.accessTokenKeyMatchesFilter(e,m,true)){const t=this.getAccessTokenCredential(e,i);if(t&&this.credentialMatchesFilter(t,m,i)){C.push(t)}}}));const P=C.length;if(P<1){this.commonLogger.info("CacheManager:getAccessToken - No token found",i);return null}else if(P>1){this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them",i);C.forEach((e=>{this.removeAccessToken(this.generateCredentialKey(e),i)}));this.performanceClient.addFields({multiMatchedAT:C.length},i);return null}this.commonLogger.info("CacheManager:getAccessToken - Returning access token",i);return C[0]}accessTokenKeyMatchesFilter(e,t,n){const o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1){return false}if(t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1){return false}if(t.realm&&o.indexOf(t.realm.toLowerCase())===-1){return false}if(t.target){const e=t.target.asArray();for(let t=0;t<e.length;t++){if(n&&!o.includes(e[t].toLowerCase())){return false}else if(!n&&o.includes(e[t].toLowerCase())){return true}}}return true}getAccessTokensByFilter(e,t){const n=this.getTokenKeys();const o=[];n.accessToken.forEach((n=>{if(!this.accessTokenKeyMatchesFilter(n,e,true)){return}const i=this.getAccessTokenCredential(n,t);if(i&&this.credentialMatchesFilter(i,e,t)){o.push(i)}}));return o}getRefreshToken(e,t,n,o){this.commonLogger.trace("CacheManager - getRefreshToken called",n);const i=t?Ao:undefined;const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Co.REFRESH_TOKEN,clientId:this.clientId,familyId:i};const d=o&&o.refreshToken||this.getTokenKeys().refreshToken;const f=[];d.forEach((e=>{if(this.refreshTokenKeyMatchesFilter(e,a)){const t=this.getRefreshTokenCredential(e,n);if(t&&this.credentialMatchesFilter(t,a,n)){f.push(t)}}}));const m=f.length;if(m<1){this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found.",n);return null}if(m>1){this.performanceClient.addFields({multiMatchedRT:m},n)}this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token",n);return f[0]}refreshTokenKeyMatchesFilter(e,t){const n=e.toLowerCase();if(t.familyId&&n.indexOf(t.familyId.toLowerCase())===-1){return false}if(!t.familyId&&t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1){return false}if(t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1){return false}return true}readAppMetadataFromCache(e,t){const n={environment:e,clientId:this.clientId};const o=this.getAppMetadataFilteredBy(n,t);const i=Object.keys(o).map((e=>o[e]));const a=i.length;if(a<1){return null}else if(a>1){throw ClientAuthError_createClientAuthError(qi)}return i[0]}isAppMetadataFOCI(e,t){const n=this.readAppMetadataFromCache(e,t);return!!(n&&n.familyId===Ao)}matchHomeAccountId(e,t){return!!(typeof e.homeAccountId==="string"&&t===e.homeAccountId)}matchLocalAccountIdFromTokenClaims(e,t){const n=e.oid||e.sub;return t===n}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){return!!(t.toLowerCase()===e.name?.toLowerCase())}matchUsername(e,t){return!!(e&&typeof e==="string"&&t?.toLowerCase()===e.toLowerCase())}matchUserAssertionHash(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)}matchEnvironment(e,t,n){if(this.staticAuthorityOptions){const o=getAliasesFromStaticSources(this.staticAuthorityOptions,this.commonLogger,n);if(o.includes(t)&&o.includes(e.environment)){return true}}const o=this.getAuthorityMetadataByAlias(t,n);if(o&&o.aliases.indexOf(e.environment)>-1){return true}return false}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!!(e.clientId&&t===e.clientId)}matchFamilyId(e,t){return!!(e.familyId&&t===e.familyId)}matchRealm(e,t){return!!(e.realm?.toLowerCase()===t.toLowerCase())}matchNativeAccountId(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){if(e.login_hint===t){return true}if(e.preferred_username===t){return true}if(e.upn===t){return true}return false}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!!(e.authorityType&&t.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,t){const n=e.credentialType!==Co.ACCESS_TOKEN&&e.credentialType!==Co.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target){return false}const o=ScopeSet.fromString(e.target);return o.containsScopeSet(t)}matchTokenType(e,t){return!!(e.tokenType&&e.tokenType===t)}matchKeyId(e,t){return!!(e.keyId&&e.keyId===t)}isAppMetadata(e){return e.indexOf(bo)!==-1}isAuthorityMetadata(e){return e.indexOf(Ro)!==-1}generateAuthorityMetadataCacheKey(e){return`${Ro}-${this.clientId}-${e}`}static toObject(e,t){for(const n in t){e[n]=t[n]}return e}}class DefaultStorageClass extends CacheManager{async setAccount(){throw ClientAuthError_createClientAuthError(as)}getAccount(){throw ClientAuthError_createClientAuthError(as)}async setIdTokenCredential(){throw ClientAuthError_createClientAuthError(as)}getIdTokenCredential(){throw ClientAuthError_createClientAuthError(as)}async setAccessTokenCredential(){throw ClientAuthError_createClientAuthError(as)}getAccessTokenCredential(){throw ClientAuthError_createClientAuthError(as)}async setRefreshTokenCredential(){throw ClientAuthError_createClientAuthError(as)}getRefreshTokenCredential(){throw ClientAuthError_createClientAuthError(as)}setAppMetadata(){throw ClientAuthError_createClientAuthError(as)}getAppMetadata(){throw ClientAuthError_createClientAuthError(as)}setServerTelemetry(){throw ClientAuthError_createClientAuthError(as)}getServerTelemetry(){throw ClientAuthError_createClientAuthError(as)}setAuthorityMetadata(){throw ClientAuthError_createClientAuthError(as)}getAuthorityMetadata(){throw ClientAuthError_createClientAuthError(as)}getAuthorityMetadataKeys(){throw ClientAuthError_createClientAuthError(as)}setThrottlingCache(){throw ClientAuthError_createClientAuthError(as)}getThrottlingCache(){throw ClientAuthError_createClientAuthError(as)}removeItem(){throw ClientAuthError_createClientAuthError(as)}getKeys(){throw ClientAuthError_createClientAuthError(as)}getAccountKeys(){throw ClientAuthError_createClientAuthError(as)}getTokenKeys(){throw ClientAuthError_createClientAuthError(as)}generateCredentialKey(){throw ClientAuthError_createClientAuthError(as)}generateAccountKey(){throw ClientAuthError_createClientAuthError(as)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Rc={NotStarted:0,InProgress:1,Completed:2};const Pc="ext.";const Tc=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","startTimeMs","status","multiMatchedAT","multiMatchedID","multiMatchedRT","unencryptedCacheCount","encryptedCacheExpiredCount","oldAccountCount","oldAccessCount","oldIdCount","oldRefreshCount","currAccountCount","currAccessCount","currIdCount","currRefreshCount","expiredCacheRemovedCount","upgradedCacheCount","networkRtt","redirectBridgeTimeoutMs","redirectBridgeMessageVersion"]); +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class StubPerformanceClient{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Rc.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""}}}endMeasurement(){return null}discardMeasurements(){return}removePerformanceCallback(){return true}addPerformanceCallback(){return""}emitEvents(){return}addFields(){return}incrementFields(){return}cacheEventByCorrelationId(){return}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const xc={tokenRenewalOffsetSeconds:Xo,preventCorsPreflight:false};const _c={loggerCallback:()=>{},piiLoggingEnabled:false,logLevel:ei.Info,correlationId:""};const Oc={async sendGetRequestAsync(){throw ClientAuthError_createClientAuthError(as)},async sendPostRequestAsync(){throw ClientAuthError_createClientAuthError(as)}};const Mc={sku:ar,version:bc,cpu:"",os:""};const Dc={clientSecret:"",clientAssertion:undefined};const $c={azureCloudInstance:Ka.None,tenant:`${ur}`};const Nc={application:{appName:"",appVersion:""}};function buildClientConfiguration({authOptions:e,systemOptions:t,loggerOptions:n,storageInterface:o,networkInterface:i,cryptoInterface:a,clientCredentials:d,libraryInfo:f,telemetry:m,serverTelemetryManager:h,persistencePlugin:C,serializableCache:P}){const D={..._c,...n};return{authOptions:buildAuthOptions(e),systemOptions:{...xc,...t},loggerOptions:D,storageInterface:o||new DefaultStorageClass(e.clientId,Cc,new Logger(D),new StubPerformanceClient),networkInterface:i||Oc,cryptoInterface:a||Cc,clientCredentials:d||Dc,libraryInfo:{...Mc,...f},telemetry:{...Nc,...m},serverTelemetryManager:h||null,persistencePlugin:C||null,serializableCache:P||null}}function buildAuthOptions(e){return{clientCapabilities:[],azureCloudOptions:$c,instanceAware:false,isMcp:false,...e}}function isOidcProtocolMode(e){return e.authOptions.authority.options.protocolMode===Wa.OIDC} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const kc="no_tokens_found";const Lc="native_account_unavailable";const Uc="refresh_token_expired";const Fc="ux_not_allowed";const Bc="interaction_required";const qc="consent_required";const jc="login_required";const zc="bad_token";const Hc="interrupted_user"; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Vc=[Bc,qc,jc,zc,Fc,Hc];const Gc=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token","ux_not_allowed","interrupted_user"];class InteractionRequiredAuthError_InteractionRequiredAuthError extends AuthError{constructor(e,t,n,o,i,a,d,f){super(e,t,n);Object.setPrototypeOf(this,InteractionRequiredAuthError_InteractionRequiredAuthError.prototype);this.timestamp=o||"";this.traceId=i||"";this.correlationId=a||"";this.claims=d||"";this.name="InteractionRequiredAuthError";this.errorNo=f}}function InteractionRequiredAuthError_isInteractionRequiredError(e,t,n){const o=!!e&&Vc.indexOf(e)>-1;const i=!!n&&Gc.indexOf(n)>-1;const a=!!t&&Vc.some((e=>t.indexOf(e)>-1));return o||a||i}function createInteractionRequiredAuthError(e,t){return new InteractionRequiredAuthError_InteractionRequiredAuthError(e,t)} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function setRequestState(e,t,n){const o=generateLibraryState(e,n);return t?`${o}${RESOURCE_DELIM}${t}`:o}function generateLibraryState(e,t){if(!e){throw createClientAuthError(noCryptoObject)}const n={id:e.createNewGuid()};if(t){n.meta=t}const o=JSON.stringify(n);return e.base64Encode(o)}function parseRequestState(e,t){if(!e){throw ClientAuthError_createClientAuthError(Yi)}if(!t){throw ClientAuthError_createClientAuthError($i)}try{const n=t.split(gr);const o=n[0];const i=n.length>1?n.slice(1).join(gr):"";const a=e(o);const d=JSON.parse(a);return{userRequestState:i||"",libraryState:d}}catch(e){throw ClientAuthError_createClientAuthError($i)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Wc={SW:"sw"};class PopTokenGenerator{constructor(e,t){this.cryptoUtils=e;this.performanceClient=t}async generateCnf(e,t){const n=await invokeAsync(this.generateKid.bind(this),cc,t,this.performanceClient,e.correlationId)(e);const o=this.cryptoUtils.base64UrlEncode(JSON.stringify(n));return{kid:n.kid,reqCnfString:o}}async generateKid(e){const t=await this.cryptoUtils.getPublicKeyThumbprint(e);return{kid:t,xms_ksl:Wc.SW}}async signPopToken(e,t,n){return this.signPayload(e,t,n)}async signPayload(e,t,n,o){const{resourceRequestMethod:i,resourceRequestUri:a,shrClaims:d,shrNonce:f,shrOptions:m}=n;const h=a?new UrlString(a):undefined;const C=h?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:nowSeconds(),m:i?.toUpperCase(),u:C?.HostNameAndPort,nonce:f||this.cryptoUtils.createNewGuid(),p:C?.AbsolutePath,q:C?.QueryString?[[],C.QueryString]:undefined,client_claims:d||undefined,...o},t,m,n.correlationId)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class TokenCacheContext{constructor(e,t){this.cache=e;this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class ResponseHandler{constructor(e,t,n,o,i,a,d){this.clientId=e;this.cacheStorage=t;this.cryptoObj=n;this.logger=o;this.performanceClient=i;this.serializableCache=a;this.persistencePlugin=d}validateTokenResponse(e,t,n){if(e.error||e.error_description||e.suberror){const o=`Error(s): ${e.error_codes||Pr} - Timestamp: ${e.timestamp||Pr} - Description: ${e.error_description||Pr} - Correlation ID: ${e.correlation_id||Pr} - Trace ID: ${e.trace_id||Pr}`;const i=e.error_codes?.length?e.error_codes[0]:undefined;const a=new ServerError_ServerError(e.error,o,e.suberror,i,e.status);if(n&&e.status&&e.status>=Jr&&e.status<=eo){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.\n${a}`,t);return}else if(n&&e.status&&e.status>=jr&&e.status<=Qr){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.\n${a}`,t);return}if(InteractionRequiredAuthError_isInteractionRequiredError(e.error,e.error_description,e.suberror)){throw new InteractionRequiredAuthError_InteractionRequiredAuthError(e.error,e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",i)}throw a}}async handleServerTokenResponse(e,t,n,o,i,a,d,f,m,h){let C;if(e.id_token){C=extractTokenClaims(e.id_token||"",this.cryptoObj.base64Decode);if(a&&a.nonce){if(C.nonce!==a.nonce){throw ClientAuthError_createClientAuthError(Li)}}if(o.maxAge||o.maxAge===0){const e=C.auth_time;if(!e){throw ClientAuthError_createClientAuthError(Ui)}checkMaxAge(e,o.maxAge)}}this.homeAccountIdentifier=generateHomeAccountId(e.client_info||"",t.authorityType,this.logger,this.cryptoObj,o.correlationId,C);let P;if(!!a&&!!a.state){P=parseRequestState(this.cryptoObj.base64Decode,a.state)}e.key_id=e.key_id||o.sshKid||undefined;const D=this.generateCacheRecord(e,t,n,o,C,d,a);let k;try{if(this.persistencePlugin&&this.serializableCache){this.logger.verbose("Persistence enabled, calling beforeCacheAccess",o.correlationId);k=new TokenCacheContext(this.serializableCache,true);await this.persistencePlugin.beforeCacheAccess(k)}if(f&&!m&&D.account){const e=this.cacheStorage.getAllAccounts({homeAccountId:D.account.homeAccountId,environment:D.account.environment},o.correlationId);if(e.length<1){this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache",o.correlationId);this.performanceClient?.addFields({acntLoggedOut:true},o.correlationId);return await ResponseHandler.generateAuthenticationResult(this.cryptoObj,t,D,false,o,this.performanceClient,C,P,undefined,h)}}await this.cacheStorage.saveCacheRecord(D,o.correlationId,isKmsi(C||{}),i,o.storeInCache)}finally{if(this.persistencePlugin&&this.serializableCache&&k){this.logger.verbose("Persistence enabled, calling afterCacheAccess",o.correlationId);await this.persistencePlugin.afterCacheAccess(k)}}return ResponseHandler.generateAuthenticationResult(this.cryptoObj,t,D,false,o,this.performanceClient,C,P,e,h)}generateCacheRecord(e,t,n,o,i,a,d){const f=t.getPreferredCache();if(!f){throw ClientAuthError_createClientAuthError(Ki)}const m=getTenantIdFromIdTokenClaims(i);let h;let C;if(e.id_token&&!!i){h=createIdTokenEntity(this.homeAccountIdentifier,f,e.id_token,this.clientId,m||"");C=buildAccountToCache(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,o.correlationId,i,e.client_info,f,m,d,undefined,this.logger)}let P=null;if(e.access_token){const i=e.scope?ScopeSet.fromString(e.scope):new ScopeSet(o.scopes||[]);const d=(typeof e.expires_in==="string"?parseInt(e.expires_in,10):e.expires_in)||0;const h=(typeof e.ext_expires_in==="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0;const C=(typeof e.refresh_in==="string"?parseInt(e.refresh_in,10):e.refresh_in)||undefined;const D=n+d;const k=D+h;const L=C&&C>0?n+C:undefined;P=createAccessTokenEntity(this.homeAccountIdentifier,f,e.access_token,this.clientId,m||t.tenant||"",i.printScopes(),D,k,this.cryptoObj.base64Decode,L,e.token_type,a,e.key_id);const F=o.resource||null;if(F){P.resource=F}}let D=null;if(e.refresh_token){let t;if(e.refresh_token_expires_in){const i=typeof e.refresh_token_expires_in==="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;t=n+i;this.performanceClient?.addFields({ntwkRtExpiresOnSeconds:t},o.correlationId)}D=createRefreshTokenEntity(this.homeAccountIdentifier,f,e.refresh_token,this.clientId,e.foci,a,t)}let k=null;if(e.foci){k={clientId:this.clientId,environment:f,familyId:e.foci}}return{account:C,idToken:h,accessToken:P,refreshToken:D,appMetadata:k}}static async generateAuthenticationResult(e,t,n,o,i,a,d,f,m,h){let C="";let P=[];let D=null;let k;let L;let F="";if(n.accessToken){if(n.accessToken.tokenType===Fo.POP&&!i.popKid){const t=new PopTokenGenerator(e,a);const{secret:o,keyId:d}=n.accessToken;if(!d){throw ClientAuthError_createClientAuthError(rs)}C=await t.signPopToken(o,d,i)}else{C=n.accessToken.secret}P=ScopeSet.fromString(n.accessToken.target).asArray();D=toDateFromSeconds(n.accessToken.expiresOn);k=toDateFromSeconds(n.accessToken.extendedExpiresOn);if(n.accessToken.refreshOn){L=toDateFromSeconds(n.accessToken.refreshOn)}}if(n.appMetadata){F=n.appMetadata.familyId===Ao?Ao:""}const q=d?.oid||d?.sub||"";const V=d?.tid||"";if(m?.spa_accountid&&!!n.account){n.account.nativeAccountId=m?.spa_accountid}const ee=n.account?updateAccountTenantProfileData(getAccountInfo(n.account),undefined,d,n.idToken?.secret):null;return{authority:t.canonicalAuthority,uniqueId:q,tenantId:V,scopes:P,account:ee,idToken:n?.idToken?.secret||"",idTokenClaims:d||{},accessToken:C,fromCache:o,expiresOn:D,extExpiresOn:k,refreshOn:L,correlationId:i.correlationId,requestId:h||"",familyId:F,tokenType:n.accessToken?.tokenType||"",state:f?f.userRequestState:"",cloudGraphHostName:n.account?.cloudGraphHostName||"",msGraphHost:n.account?.msGraphHost||"",code:m?.spa_code,fromPlatformBroker:false}}}function buildAccountToCache(e,t,n,o,i,a,d,f,m,h,C,P){P?.verbose("setCachedAccount called",i);const D=e.getAccountKeys();const k=D.find((e=>e.startsWith(n)));let L=null;if(k){L=e.getAccount(k,i)}const F=L||createAccountEntity({homeAccountId:n,idTokenClaims:a,clientInfo:d,environment:f,cloudGraphHostName:h?.cloud_graph_host_name,msGraphHost:h?.msgraph_host,nativeAccountId:C},t,o);const q=F.tenantProfiles||[];const V=m||F.realm;if(V&&!q.find((e=>e.tenantId===V))){const e=AccountInfo_buildTenantProfile(n,F.localAccountId,V,a);q.push(e)}F.tenantProfiles=q;return F} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Kc={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"}; +/*! @azure/msal-common v16.4.0 2026-03-18 */ +async function getClientAssertion(e,t,n){if(typeof e==="string"){return e}else{const o={clientId:t,tokenEndpoint:n};return e(o)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function getRequestThumbprint(e,t,n){return{clientId:e,authority:t.authority,scopes:t.scopes,homeAccountIdentifier:n,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid,embeddedClientId:t.embeddedClientId||t.extraParameters?.clientId}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class ThrottlingUtils{static generateThrottlingStorageKey(e){return`${jo}.${JSON.stringify(e)}`}static preProcess(e,t,n){const o=ThrottlingUtils.generateThrottlingStorageKey(t);const i=e.getThrottlingCache(o,n);if(i){if(i.throttleTime<Date.now()){e.removeItem(o,n);return}throw new ServerError_ServerError(i.errorCodes?.join(" ")||"",i.errorMessage,i.subError)}}static postProcess(e,t,n,o){if(ThrottlingUtils.checkResponseStatus(n)||ThrottlingUtils.checkResponseForRetryAfter(n)){const i={throttleTime:ThrottlingUtils.calculateThrottleTime(parseInt(n.headers[io.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(t),i,o)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){if(e.headers){return e.headers.hasOwnProperty(io.RETRY_AFTER)&&(e.status<200||e.status>=300)}return false}static calculateThrottleTime(e){const t=e<=0?0:e;const n=Date.now()/1e3;return Math.floor(Math.min(n+(t||Bo),n+qo)*1e3)}static removeThrottle(e,t,n,o){const i=getRequestThumbprint(t,n,o);const a=this.generateThrottlingStorageKey(i);e.removeItem(a,n.correlationId)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class NetworkError extends AuthError{constructor(e,t,n){super(e.errorCode,e.errorMessage,e.subError);Object.setPrototypeOf(this,NetworkError.prototype);this.name="NetworkError";this.error=e;this.httpStatus=t;this.responseHeaders=n}}function createNetworkError(e,t,n,o){e.errorMessage=`${e.errorMessage}, additionalErrorInfo: error.name:${o?.name}, error.message:${o?.message}`;return new NetworkError(e,t,n)} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function createTokenRequestHeaders(e,t,n){const o={};o[io.CONTENT_TYPE]=wr;if(!t&&n){switch(n.type){case Kc.HOME_ACCOUNT_ID:try{const e=buildClientInfoFromHomeAccountId(n.credential);o[io.CCS_HEADER]=`Oid:${e.uid}@${e.utid}`}catch(t){e.verbose(`Could not parse home account ID for CCS Header: '${t}'`,"")}break;case Kc.UPN:o[io.CCS_HEADER]=`UPN: ${n.credential}`;break}}return o}function createTokenQueryParameters(e,t,n,o){const i=new Map;if(e.embeddedClientId){addBrokerParameters(i,t,n)}if(e.extraQueryParameters){addExtraParameters(i,e.extraQueryParameters)}addCorrelationId(i,e.correlationId);instrumentBrokerParams(i,e.correlationId,o);return mapToQueryString(i)}async function executePostToTokenEndpoint(e,t,n,o,i,a,d,f,m,h){const C=await sendPostRequest(o,e,{body:t,headers:n},i,a,d,f,m);if(h&&C.status<500&&C.status!==429){h.clearTelemetryCache()}return C}async function sendPostRequest(e,t,n,o,i,a,d,f){ThrottlingUtils.preProcess(i,e,o);let m;try{m=await invokeAsync(a.sendPostRequestAsync.bind(a),Qa,d,f,o)(t,n);const e=m.headers||{};f?.addFields({refreshTokenSize:m.body.refresh_token?.length||0,httpVerToken:e[io.X_MS_HTTP_VERSION]||"",requestId:e[io.X_MS_REQUEST_ID]||""},o)}catch(e){if(e instanceof NetworkError){const t=e.responseHeaders;if(t){f?.addFields({httpVerToken:t[io.X_MS_HTTP_VERSION]||"",requestId:t[io.X_MS_REQUEST_ID]||"",contentTypeHeader:t[io.CONTENT_TYPE]||undefined,contentLengthHeader:t[io.CONTENT_LENGTH]||undefined,httpStatus:e.httpStatus},o)}throw e.error}if(e instanceof AuthError){throw e}else{throw ClientAuthError_createClientAuthError(Oi)}}ThrottlingUtils.postProcess(i,e,m,o);return m} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +async function createDiscoveredInstance(e,t,n,o,i,a,d){const f=Authority.transformCIAMAuthority(formatAuthorityUri(e));const m=new Authority(f,t,n,o,i,a,d);try{await invokeAsync(m.resolveEndpointsAsync.bind(m),uc,i,d,a)();return m}catch(e){throw ClientAuthError_createClientAuthError(_i)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class AuthorizationCodeClient{constructor(e,t){this.includeRedirectUri=true;this.config=buildClientConfiguration(e);this.logger=new Logger(this.config.loggerOptions,Ic,bc);this.cryptoUtils=this.config.cryptoInterface;this.cacheManager=this.config.storageInterface;this.networkClient=this.config.networkInterface;this.serverTelemetryManager=this.config.serverTelemetryManager;this.authority=this.config.authOptions.authority;this.performanceClient=t;this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async acquireToken(e,t,n){if(!e.code){throw ClientAuthError_createClientAuthError(ji)}if(n&&n.cloud_instance_host_name){await invokeAsync(this.updateTokenEndpointAuthority.bind(this),ac,this.logger,this.performanceClient,e.correlationId)(n.cloud_instance_host_name,e.correlationId)}const o=nowSeconds();const i=await invokeAsync(this.executeTokenRequest.bind(this),ic,this.logger,this.performanceClient,e.correlationId)(this.authority,e,this.serverTelemetryManager);const a=i.headers?.[io.X_MS_REQUEST_ID];const d=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);d.validateTokenResponse(i.body,e.correlationId);return invokeAsync(d.handleServerTokenResponse.bind(d),lc,this.logger,this.performanceClient,e.correlationId)(i.body,this.authority,o,e,t,n,undefined,undefined,undefined,a)}getLogoutUri(e){if(!e){throw createClientConfigurationError(Pa)}const t=this.createLogoutUrlQueryString(e);return UrlString.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t,n){const o=createTokenQueryParameters(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient);const i=UrlString.appendQueryString(e.tokenEndpoint,o);const a=await invokeAsync(this.createTokenRequestBody.bind(this),sc,this.logger,this.performanceClient,t.correlationId)(t);let d=undefined;if(t.clientInfo){try{const e=buildClientInfo(t.clientInfo,this.cryptoUtils.base64Decode);d={credential:`${e.uid}${vo}${e.utid}`,type:Kc.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose(`Could not parse client info for CCS Header: '${e}'`,t.correlationId)}}const f=createTokenRequestHeaders(this.logger,this.config.systemOptions.preventCorsPreflight,d||t.ccsCredential);const m=getRequestThumbprint(this.config.authOptions.clientId,t);return invokeAsync(executePostToTokenEndpoint,Ja,this.logger,this.performanceClient,t.correlationId)(i,a,f,m,t.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,n)}async createTokenRequestBody(e){const t=new Map;addClientId(t,e.embeddedClientId||e.extraParameters?.[ps]||this.config.authOptions.clientId);if(!this.includeRedirectUri){if(!e.redirectUri){throw createClientConfigurationError(Ea)}}else{addRedirectUri(t,e.redirectUri)}addScopes(t,e.scopes,true,this.oidcDefaultScopes);addResource(t,e.resource);addAuthorizationCode(t,e.code);addLibraryInfo(t,this.config.libraryInfo);addApplicationTelemetry(t,this.config.telemetry.application);addThrottling(t);if(this.serverTelemetryManager&&!isOidcProtocolMode(this.config)){addServerTelemetry(t,this.serverTelemetryManager)}if(e.codeVerifier){addCodeVerifier(t,e.codeVerifier)}if(this.config.clientCredentials.clientSecret){addClientSecret(t,this.config.clientCredentials.clientSecret)}if(this.config.clientCredentials.clientAssertion){const n=this.config.clientCredentials.clientAssertion;addClientAssertion(t,await getClientAssertion(n.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(t,n.assertionType)}addGrantType(t,mo.AUTHORIZATION_CODE_GRANT);addClientInfo(t);if(e.authenticationScheme===Fo.POP){const n=new PopTokenGenerator(this.cryptoUtils,this.performanceClient);let o;if(!e.popKid){const t=await invokeAsync(n.generateCnf.bind(n),cc,this.logger,this.performanceClient,e.correlationId)(e,this.logger);o=t.reqCnfString}else{o=this.cryptoUtils.encodeKid(e.popKid)}addPopToken(t,o)}else if(e.authenticationScheme===Fo.SSH){if(e.sshJwk){addSshJwk(t,e.sshJwk)}else{throw createClientConfigurationError(Da)}}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(t,e.claims,this.config.authOptions.clientCapabilities)}let n=undefined;if(e.clientInfo){try{const t=buildClientInfo(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${t.uid}${vo}${t.utid}`,type:Kc.HOME_ACCOUNT_ID}}catch(t){this.logger.verbose(`Could not parse client info for CCS Header: '${t}'`,e.correlationId)}}else{n=e.ccsCredential}if(this.config.systemOptions.preventCorsPreflight&&n){switch(n.type){case Kc.HOME_ACCOUNT_ID:try{const e=buildClientInfoFromHomeAccountId(n.credential);addCcsOid(t,e)}catch(t){this.logger.verbose(`Could not parse home account ID for CCS Header: '${t}'`,e.correlationId)}break;case Kc.UPN:addCcsUpn(t,n.credential);break}}if(e.embeddedClientId){addBrokerParameters(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri)}if(e.extraParameters){addExtraParameters(t,e.extraParameters)}if(e.enableSpaAuthorizationCode&&(!e.extraParameters||!e.extraParameters[oa])){addExtraParameters(t,{[oa]:"1"})}instrumentBrokerParams(t,e.correlationId,this.performanceClient);return mapToQueryString(t)}createLogoutUrlQueryString(e){const t=new Map;if(e.postLogoutRedirectUri){addPostLogoutRedirectUri(t,e.postLogoutRedirectUri)}if(e.correlationId){addCorrelationId(t,e.correlationId)}if(e.idTokenHint){addIdTokenHint(t,e.idTokenHint)}if(e.state){addState(t,e.state)}if(e.logoutHint){addLogoutHint(t,e.logoutHint)}if(e.extraQueryParameters){addExtraParameters(t,e.extraQueryParameters)}if(this.config.authOptions.instanceAware){addInstanceAware(t)}return mapToQueryString(t)}async updateTokenEndpointAuthority(e,t){const n=`https://${e}/${this.authority.tenant}/`;const o=await createDiscoveredInstance(n,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=o}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Qc=300;class RefreshTokenClient{constructor(e,t){this.config=buildClientConfiguration(e);this.logger=new Logger(this.config.loggerOptions,Ic,bc);this.cryptoUtils=this.config.cryptoInterface;this.cacheManager=this.config.storageInterface;this.networkClient=this.config.networkInterface;this.serverTelemetryManager=this.config.serverTelemetryManager;this.authority=this.config.authOptions.authority;this.performanceClient=t}async acquireToken(e,t){const n=nowSeconds();const o=await invokeAsync(this.executeTokenRequest.bind(this),Xa,this.logger,this.performanceClient,e.correlationId)(e,this.authority);const i=o.headers?.[io.X_MS_REQUEST_ID];const a=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);a.validateTokenResponse(o.body,e.correlationId);return invokeAsync(a.handleServerTokenResponse.bind(a),lc,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,n,e,t,undefined,undefined,true,e.forceCache,i)}async acquireTokenByRefreshToken(e,t){if(!e){throw createClientConfigurationError(Ra)}if(!e.account){throw ClientAuthError_createClientAuthError(Gi)}const n=this.cacheManager.isAppMetadataFOCI(e.account.environment,e.correlationId);if(n){try{return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ec,this.logger,this.performanceClient,e.correlationId)(e,true,t)}catch(n){const o=n instanceof InteractionRequiredAuthError_InteractionRequiredAuthError&&n.errorCode===kc;const i=n instanceof ServerError_ServerError&&n.errorCode===Ho&&n.subError===Vo;if(o||i){return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ec,this.logger,this.performanceClient,e.correlationId)(e,false,t)}else{throw n}}}return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ec,this.logger,this.performanceClient,e.correlationId)(e,false,t)}async acquireTokenWithCachedRefreshToken(e,t,n){const o=invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager),Ec,this.logger,this.performanceClient,e.correlationId)(e.account,t,e.correlationId,undefined);if(!o){throw createInteractionRequiredAuthError(kc)}if(o.expiresOn){const t=e.refreshTokenExpirationOffsetSeconds||Qc;this.performanceClient?.addFields({cacheRtExpiresOnSeconds:Number(o.expiresOn),rtOffsetSeconds:t},e.correlationId);if(isTokenExpired(o.expiresOn,t)){throw createInteractionRequiredAuthError(Uc)}}const i={...e,refreshToken:o.secret,authenticationScheme:e.authenticationScheme||Fo.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:Kc.HOME_ACCOUNT_ID}};try{return await invokeAsync(this.acquireToken.bind(this),Za,this.logger,this.performanceClient,e.correlationId)(i,n)}catch(t){if(t instanceof InteractionRequiredAuthError_InteractionRequiredAuthError){if(t.subError===zc){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache",e.correlationId);const t=this.cacheManager.generateCredentialKey(o);this.cacheManager.removeRefreshToken(t,e.correlationId)}}throw t}}async executeTokenRequest(e,t){const n=createTokenQueryParameters(e,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient);const o=UrlString.appendQueryString(t.tokenEndpoint,n);const i=await invokeAsync(this.createTokenRequestBody.bind(this),tc,this.logger,this.performanceClient,e.correlationId)(e);const a=createTokenRequestHeaders(this.logger,this.config.systemOptions.preventCorsPreflight,e.ccsCredential);const d=getRequestThumbprint(this.config.authOptions.clientId,e);return invokeAsync(executePostToTokenEndpoint,Ya,this.logger,this.performanceClient,e.correlationId)(o,i,a,d,e.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,this.serverTelemetryManager)}async createTokenRequestBody(e){const t=new Map;addClientId(t,e.embeddedClientId||e.extraParameters?.[ps]||this.config.authOptions.clientId);if(e.redirectUri){addRedirectUri(t,e.redirectUri)}addScopes(t,e.scopes,true,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes);addGrantType(t,mo.REFRESH_TOKEN_GRANT);addClientInfo(t);addLibraryInfo(t,this.config.libraryInfo);addApplicationTelemetry(t,this.config.telemetry.application);addThrottling(t);if(this.serverTelemetryManager&&!isOidcProtocolMode(this.config)){addServerTelemetry(t,this.serverTelemetryManager)}addRefreshToken(t,e.refreshToken);if(this.config.clientCredentials.clientSecret){addClientSecret(t,this.config.clientCredentials.clientSecret)}if(this.config.clientCredentials.clientAssertion){const n=this.config.clientCredentials.clientAssertion;addClientAssertion(t,await getClientAssertion(n.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(t,n.assertionType)}if(e.authenticationScheme===Fo.POP){const n=new PopTokenGenerator(this.cryptoUtils,this.performanceClient);let o;if(!e.popKid){const t=await invokeAsync(n.generateCnf.bind(n),cc,this.logger,this.performanceClient,e.correlationId)(e,this.logger);o=t.reqCnfString}else{o=this.cryptoUtils.encodeKid(e.popKid)}addPopToken(t,o)}else if(e.authenticationScheme===Fo.SSH){if(e.sshJwk){addSshJwk(t,e.sshJwk)}else{throw createClientConfigurationError(Da)}}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(t,e.claims,this.config.authOptions.clientCapabilities)}if(this.config.systemOptions.preventCorsPreflight&&e.ccsCredential){switch(e.ccsCredential.type){case Kc.HOME_ACCOUNT_ID:try{const n=buildClientInfoFromHomeAccountId(e.ccsCredential.credential);addCcsOid(t,n)}catch(t){this.logger.verbose(`Could not parse home account ID for CCS Header: '${t}'`,e.correlationId)}break;case Kc.UPN:addCcsUpn(t,e.ccsCredential.credential);break}}if(e.embeddedClientId){addBrokerParameters(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri)}if(e.extraParameters){addExtraParameters(t,{...e.extraParameters})}instrumentBrokerParams(t,e.correlationId,this.performanceClient);return mapToQueryString(t)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +class SilentFlowClient{constructor(e,t){this.config=buildClientConfiguration(e);this.logger=new Logger(this.config.loggerOptions,Ic,bc);this.cryptoUtils=this.config.cryptoInterface;this.cacheManager=this.config.storageInterface;this.networkClient=this.config.networkInterface;this.serverTelemetryManager=this.config.serverTelemetryManager;this.authority=this.config.authOptions.authority;this.performanceClient=t}async acquireCachedToken(e){let t=Qo.NOT_APPLICABLE;if(e.forceRefresh||!StringUtils_StringUtils.isEmptyObj(e.claims)){this.setCacheOutcome(Qo.FORCE_REFRESH_OR_CLAIMS,e.correlationId);throw ClientAuthError_createClientAuthError(Xi)}if(!e.account){throw ClientAuthError_createClientAuthError(Gi)}const n=e.account.tenantId||getTenantFromAuthorityString(e.authority);const o=this.cacheManager.getTokenKeys();const i=this.cacheManager.getAccessToken(e.account,e,o,n);if(!i){this.setCacheOutcome(Qo.NO_CACHED_ACCESS_TOKEN,e.correlationId);throw ClientAuthError_createClientAuthError(Xi)}else if(wasClockTurnedBack(i.cachedAt)||isTokenExpired(i.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds)){this.setCacheOutcome(Qo.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId);throw ClientAuthError_createClientAuthError(Xi)}else if(e.resource){if(i.resource!==e.resource){this.setCacheOutcome(Qo.NO_CACHED_ACCESS_TOKEN,e.correlationId);throw ClientAuthError_createClientAuthError(Xi)}}else if(i.refreshOn&&isTokenExpired(i.refreshOn,0)){t=Qo.PROACTIVELY_REFRESHED}const a=e.authority||this.authority.getPreferredCache();const d={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(e.account),e.correlationId),accessToken:i,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,o,n),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(a,e.correlationId)};this.setCacheOutcome(t,e.correlationId);if(this.config.serverTelemetryManager){this.config.serverTelemetryManager.incrementCacheHits()}return[await invokeAsync(this.generateResultFromCacheRecord.bind(this),nc,this.logger,this.performanceClient,e.correlationId)(d,e),t]}setCacheOutcome(e,t){this.serverTelemetryManager?.setCacheOutcome(e);this.performanceClient?.addFields({cacheOutcome:e},t);if(e!==Qo.NOT_APPLICABLE){this.logger.info(`Token refresh is required due to cache outcome: '${e}'`,t)}}async generateResultFromCacheRecord(e,t){let n;if(e.idToken){n=extractTokenClaims(e.idToken.secret,this.config.cryptoInterface.base64Decode)}if(t.maxAge||t.maxAge===0){const e=n?.auth_time;if(!e){throw ClientAuthError_createClientAuthError(Ui)}checkMaxAge(e,t.maxAge)}return ResponseHandler.generateAuthenticationResult(this.cryptoUtils,this.authority,e,true,t,this.performanceClient,n)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class HttpClient{async sendGetRequestAsync(e,t,n){return this.sendRequest(e,pi.GET,t,n)}async sendPostRequestAsync(e,t){return this.sendRequest(e,pi.POST,t)}async sendRequest(e,t,n,o){const i=new AbortController;let a;if(o){a=setTimeout((()=>{i.abort()}),o)}const d={method:t,headers:getFetchHeaders(n),signal:i.signal};if(t===pi.POST){d.body=n?.body||""}let f;try{f=await fetch(e,d)}catch(e){if(a){clearTimeout(a)}if(e instanceof Error&&e.name==="AbortError"){throw createAuthError(Oi,"Request timeout")}const t=createAuthError(Oi,`Network request failed: ${e instanceof Error?e.message:"unknown"}`);throw createNetworkError(t,undefined,undefined,e instanceof Error?e:undefined)}if(a){clearTimeout(a)}try{return{headers:getHeaderDict(f.headers),body:await f.json(),status:f.status}}catch(e){throw createAuthError(Ti,`Failed to parse response: ${e instanceof Error?e.message:"unknown"}`)}}}function getHeaderDict(e){const t={};e.forEach(((e,n)=>{t[n]=e}));return t}function getFetchHeaders(e){const t=new Headers;if(!(e&&e.headers)){return t}Object.entries(e.headers).forEach((([e,n])=>{t.append(e,n)}));return t} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const Yc="invalid_file_extension";const Jc="invalid_file_path";const Xc="invalid_managed_identity_id_type";const Zc="invalid_secret";const el="missing_client_id";const tl="network_unavailable";const nl="platform_not_supported";const rl="unable_to_create_azure_arc";const ol="unable_to_create_cloud_shell";const il="unable_to_create_source";const sl="unable_to_read_secret_file";const al="user_assigned_not_available_at_runtime";const cl="www_authenticate_header_missing";const ll="www_authenticate_header_unsupported_format";const ul={[li.AZURE_POD_IDENTITY_AUTHORITY_HOST]:"azure_pod_identity_authority_host_url_malformed",[li.IDENTITY_ENDPOINT]:"identity_endpoint_url_malformed",[li.IMDS_ENDPOINT]:"imds_endpoint_url_malformed",[li.MSI_ENDPOINT]:"msi_endpoint_url_malformed"}; +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const dl={[Yc]:"The file path in the WWW-Authenticate header does not contain a .key file.",[Jc]:"The file path in the WWW-Authenticate header is not in a valid Windows or Linux Format.",[Xc]:"More than one ManagedIdentityIdType was provided.",[Zc]:"The secret in the file on the file path in the WWW-Authenticate header is greater than 4096 bytes.",[nl]:"The platform is not supported by Azure Arc. Azure Arc only supports Windows and Linux.",[el]:"A ManagedIdentityId id was not provided.",[ul.AZURE_POD_IDENTITY_AUTHORITY_HOST]:`The Managed Identity's '${li.AZURE_POD_IDENTITY_AUTHORITY_HOST}' environment variable is malformed.`,[ul.IDENTITY_ENDPOINT]:`The Managed Identity's '${li.IDENTITY_ENDPOINT}' environment variable is malformed.`,[ul.IMDS_ENDPOINT]:`The Managed Identity's '${li.IMDS_ENDPOINT}' environment variable is malformed.`,[ul.MSI_ENDPOINT]:`The Managed Identity's '${li.MSI_ENDPOINT}' environment variable is malformed.`,[tl]:"Authentication unavailable. The request to the managed identity endpoint timed out.",[rl]:"Azure Arc Managed Identities can only be system assigned.",[ol]:"Cloud Shell Managed Identities can only be system assigned.",[il]:"Unable to create a Managed Identity source based on environment variables.",[sl]:"Unable to read the secret file.",[al]:"Service Fabric user assigned managed identity ClientId or ResourceId is not configurable at runtime.",[cl]:"A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is missing.",[ll]:"A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format."};class ManagedIdentityError extends AuthError{constructor(e){super(e,dl[e]);this.name="ManagedIdentityError";Object.setPrototypeOf(this,ManagedIdentityError.prototype)}}function createManagedIdentityError(e){return new ManagedIdentityError(e)} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ManagedIdentityId{get id(){return this._id}set id(e){this._id=e}get idType(){return this._idType}set idType(e){this._idType=e}constructor(e){const t=e?.userAssignedClientId;const n=e?.userAssignedResourceId;const o=e?.userAssignedObjectId;if(t){if(n||o){throw createManagedIdentityError(Xc)}this.id=t;this.idType=di.USER_ASSIGNED_CLIENT_ID}else if(n){if(t||o){throw createManagedIdentityError(Xc)}this.id=n;this.idType=di.USER_ASSIGNED_RESOURCE_ID}else if(o){if(t||n){throw createManagedIdentityError(Xc)}this.id=o;this.idType=di.USER_ASSIGNED_OBJECT_ID}else{this.id=oi;this.idType=di.SYSTEM_ASSIGNED}}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const pl={invalidLoopbackAddressType:{code:"invalid_loopback_server_address_type",desc:"Loopback server address is not type string. This is unexpected."},unableToLoadRedirectUri:{code:"unable_to_load_redirectUrl",desc:"Loopback server callback was invoked without a url. This is unexpected."},noAuthCodeInResponse:{code:"no_auth_code_in_response",desc:"No auth code found in the server response. Please check your network trace to determine what happened."},noLoopbackServerExists:{code:"no_loopback_server_exists",desc:"No loopback server exists yet."},loopbackServerAlreadyExists:{code:"loopback_server_already_exists",desc:"Loopback server already exists. Cannot create another."},loopbackServerTimeout:{code:"loopback_server_timeout",desc:"Timed out waiting for auth code listener to be registered."},stateNotFoundError:{code:"state_not_found",desc:"State not found. Please verify that the request originated from msal."},thumbprintMissing:{code:"thumbprint_missing_from_client_certificate",desc:"Client certificate does not contain a SHA-1 or SHA-256 thumbprint."},redirectUriNotSupported:{code:"redirect_uri_not_supported",desc:"RedirectUri is not supported in this scenario. Please remove redirectUri from the request."}};class NodeAuthError extends AuthError{constructor(e,t){super(e,t);this.name="NodeAuthError"}static createInvalidLoopbackAddressTypeError(){return new NodeAuthError(pl.invalidLoopbackAddressType.code,`${pl.invalidLoopbackAddressType.desc}`)}static createUnableToLoadRedirectUrlError(){return new NodeAuthError(pl.unableToLoadRedirectUri.code,`${pl.unableToLoadRedirectUri.desc}`)}static createNoAuthCodeInResponseError(){return new NodeAuthError(pl.noAuthCodeInResponse.code,`${pl.noAuthCodeInResponse.desc}`)}static createNoLoopbackServerExistsError(){return new NodeAuthError(pl.noLoopbackServerExists.code,`${pl.noLoopbackServerExists.desc}`)}static createLoopbackServerAlreadyExistsError(){return new NodeAuthError(pl.loopbackServerAlreadyExists.code,`${pl.loopbackServerAlreadyExists.desc}`)}static createLoopbackServerTimeoutError(){return new NodeAuthError(pl.loopbackServerTimeout.code,`${pl.loopbackServerTimeout.desc}`)}static createStateNotFoundError(){return new NodeAuthError(pl.stateNotFoundError.code,pl.stateNotFoundError.desc)}static createThumbprintMissingError(){return new NodeAuthError(pl.thumbprintMissing.code,pl.thumbprintMissing.desc)}static createRedirectUriNotSupportedError(){return new NodeAuthError(pl.redirectUriNotSupported.code,pl.redirectUriNotSupported.desc)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const fl={clientId:"",authority:cr,clientSecret:"",clientAssertion:"",clientCertificate:{thumbprint:"",thumbprintSha256:"",privateKey:"",x5c:""},knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",clientCapabilities:[],azureCloudOptions:{azureCloudInstance:Ka.None,tenant:""},isMcp:false};const ml={loggerCallback:()=>{},piiLoggingEnabled:false,logLevel:ei.Info};const hl={loggerOptions:ml,networkClient:new HttpClient,disableInternalRetries:false,protocolMode:Wa.AAD};const gl={application:{appName:"",appVersion:""}};function buildAppConfiguration({auth:e,broker:t,cache:n,system:o,telemetry:i}){const a={...hl,networkClient:new HttpClient,loggerOptions:o?.loggerOptions||ml,disableInternalRetries:o?.disableInternalRetries||false};if(!!e.clientCertificate&&!!!e.clientCertificate.thumbprint&&!!!e.clientCertificate.thumbprintSha256){throw NodeAuthError.createStateNotFoundError()}return{auth:{...fl,...e},broker:{...t},cache:{...n},system:{...a,...o},telemetry:{...gl,...i}}}function buildManagedIdentityConfiguration({clientCapabilities:e,managedIdentityIdParams:t,system:n}){const o=new ManagedIdentityId(t);const i=n?.loggerOptions||ml;let a;if(n?.networkClient){a=n.networkClient}else{a=new HttpClient}return{clientCapabilities:e||[],managedIdentityId:o,system:{loggerOptions:i,networkClient:a},disableInternalRetries:n?.disableInternalRetries||false}}var yl=__nccwpck_require__(4345);const Sl=yl.v1;const El=yl.v3;const vl=yl.v4;const Cl=yl.v5;const Il=yl.wD;const bl=yl.rE;const wl=yl.tf;const Al=yl.As;const Rl=yl.qg; +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class GuidGenerator{generateGuid(){return vl()}isGuid(e){const t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class EncodingUtils{static base64Encode(e,t){return Buffer.from(e,t).toString(Zo.BASE64)}static base64EncodeUrl(e,t){return EncodingUtils.base64Encode(e,t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}static base64Decode(e){return Buffer.from(e,Zo.BASE64).toString("utf8")}static base64DecodeUrl(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");while(t.length%4){t+="="}return EncodingUtils.base64Decode(t)}}var Pl=__nccwpck_require__(6982); +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class HashUtils{sha256(e){return Pl.createHash(gi.SHA256).update(e).digest()}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class PkceGenerator{constructor(){this.hashUtils=new HashUtils}async generatePkceCodes(){const e=this.generateCodeVerifier();const t=this.generateCodeChallengeFromVerifier(e);return{verifier:e,challenge:t}}generateCodeVerifier(){const e=[];const t=256-256%yi.CV_CHARSET.length;while(e.length<=hi){const n=Pl.randomBytes(1)[0];if(n>=t){continue}const o=n%yi.CV_CHARSET.length;e.push(yi.CV_CHARSET[o])}const n=e.join("");return EncodingUtils.base64EncodeUrl(n)}generateCodeChallengeFromVerifier(e){return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(e).toString(Zo.BASE64),Zo.BASE64)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class CryptoProvider{constructor(){this.pkceGenerator=new PkceGenerator;this.guidGenerator=new GuidGenerator;this.hashUtils=new HashUtils}base64UrlEncode(){throw new Error("Method not implemented.")}encodeKid(){throw new Error("Method not implemented.")}createNewGuid(){return this.guidGenerator.generateGuid()}base64Encode(e){return EncodingUtils.base64Encode(e)}base64Decode(e){return EncodingUtils.base64Decode(e)}generatePkceCodes(){return this.pkceGenerator.generatePkceCodes()}getPublicKeyThumbprint(){throw new Error("Method not implemented.")}removeTokenBindingKey(){throw new Error("Method not implemented.")}clearKeystore(){throw new Error("Method not implemented.")}signJwt(){throw new Error("Method not implemented.")}async hashString(e){return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(e).toString(Zo.BASE64),Zo.BASE64)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class Deserializer{static deserializeJSONBlob(e){const t=!e?{}:JSON.parse(e);return t}static deserializeAccounts(e){const t={};if(e){Object.keys(e).map((function(n){const o=e[n];const i={homeAccountId:o.home_account_id,environment:o.environment,realm:o.realm,localAccountId:o.local_account_id,username:o.username,authorityType:o.authority_type,name:o.name,clientInfo:o.client_info,lastModificationTime:o.last_modification_time,lastModificationApp:o.last_modification_app,tenantProfiles:o.tenantProfiles?.map((e=>JSON.parse(e))),lastUpdatedAt:Date.now().toString()};const a={};CacheManager.toObject(a,i);t[n]=a}))}return t}static deserializeIdTokens(e){const t={};if(e){Object.keys(e).map((function(n){const o=e[n];const i={homeAccountId:o.home_account_id,environment:o.environment,credentialType:o.credential_type,clientId:o.client_id,secret:o.secret,realm:o.realm,lastUpdatedAt:Date.now().toString()};t[n]=i}))}return t}static deserializeAccessTokens(e){const t={};if(e){Object.keys(e).map((function(n){const o=e[n];const i={homeAccountId:o.home_account_id,environment:o.environment,credentialType:o.credential_type,clientId:o.client_id,secret:o.secret,realm:o.realm,target:o.target,cachedAt:o.cached_at,expiresOn:o.expires_on,extendedExpiresOn:o.extended_expires_on,refreshOn:o.refresh_on,keyId:o.key_id,tokenType:o.token_type,userAssertionHash:o.userAssertionHash,resource:o.resource,lastUpdatedAt:Date.now().toString()};t[n]=i}))}return t}static deserializeRefreshTokens(e){const t={};if(e){Object.keys(e).map((function(n){const o=e[n];const i={homeAccountId:o.home_account_id,environment:o.environment,credentialType:o.credential_type,clientId:o.client_id,secret:o.secret,familyId:o.family_id,target:o.target,realm:o.realm,lastUpdatedAt:Date.now().toString()};t[n]=i}))}return t}static deserializeAppMetadata(e){const t={};if(e){Object.keys(e).map((function(n){const o=e[n];t[n]={clientId:o.client_id,environment:o.environment,familyId:o.family_id}}))}return t}static deserializeAllCache(e){return{accounts:e.Account?this.deserializeAccounts(e.Account):{},idTokens:e.IdToken?this.deserializeIdTokens(e.IdToken):{},accessTokens:e.AccessToken?this.deserializeAccessTokens(e.AccessToken):{},refreshTokens:e.RefreshToken?this.deserializeRefreshTokens(e.RefreshToken):{},appMetadata:e.AppMetadata?this.deserializeAppMetadata(e.AppMetadata):{}}}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class Serializer{static serializeJSONBlob(e){return JSON.stringify(e)}static serializeAccounts(e){const t={};Object.keys(e).map((function(n){const o=e[n];t[n]={home_account_id:o.homeAccountId,environment:o.environment,realm:o.realm,local_account_id:o.localAccountId,username:o.username,authority_type:o.authorityType,name:o.name,client_info:o.clientInfo,last_modification_time:o.lastModificationTime,last_modification_app:o.lastModificationApp,tenantProfiles:o.tenantProfiles?.map((e=>JSON.stringify(e)))}}));return t}static serializeIdTokens(e){const t={};Object.keys(e).map((function(n){const o=e[n];t[n]={home_account_id:o.homeAccountId,environment:o.environment,credential_type:o.credentialType,client_id:o.clientId,secret:o.secret,realm:o.realm}}));return t}static serializeAccessTokens(e){const t={};Object.keys(e).map((function(n){const o=e[n];t[n]={home_account_id:o.homeAccountId,environment:o.environment,credential_type:o.credentialType,client_id:o.clientId,secret:o.secret,realm:o.realm,target:o.target,cached_at:o.cachedAt,expires_on:o.expiresOn,extended_expires_on:o.extendedExpiresOn,refresh_on:o.refreshOn,key_id:o.keyId,token_type:o.tokenType,userAssertionHash:o.userAssertionHash,resource:o.resource}}));return t}static serializeRefreshTokens(e){const t={};Object.keys(e).map((function(n){const o=e[n];t[n]={home_account_id:o.homeAccountId,environment:o.environment,credential_type:o.credentialType,client_id:o.clientId,secret:o.secret,family_id:o.familyId,target:o.target,realm:o.realm}}));return t}static serializeAppMetadata(e){const t={};Object.keys(e).map((function(n){const o=e[n];t[n]={client_id:o.clientId,environment:o.environment,family_id:o.familyId}}));return t}static serializeAllCache(e){return{Account:this.serializeAccounts(e.accounts),IdToken:this.serializeIdTokens(e.idTokens),AccessToken:this.serializeAccessTokens(e.accessTokens),RefreshToken:this.serializeRefreshTokens(e.refreshTokens),AppMetadata:this.serializeAppMetadata(e.appMetadata)}}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +function generateCredentialKey(e){const t=e.credentialType===Co.REFRESH_TOKEN&&e.familyId||e.clientId;const n=e.tokenType&&e.tokenType.toLowerCase()!==Fo.BEARER.toLowerCase()?e.tokenType.toLowerCase():"";const o=[e.homeAccountId,e.environment,e.credentialType,t,e.realm||"",e.target||"",n];return o.join(Si.KEY_SEPARATOR).toLowerCase()}function generateAccountKey(e){const t=e.homeAccountId.split(".")[1];const n=[e.homeAccountId,e.environment,t||e.tenantId||""];return n.join(Si.KEY_SEPARATOR).toLowerCase()} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class NodeStorage extends CacheManager{constructor(e,t,n,o){super(t,n,e,new StubPerformanceClient,o);this.cache={};this.changeEmitters=[];this.logger=e}registerChangeEmitter(e){this.changeEmitters.push(e)}emitChange(){this.changeEmitters.forEach((e=>e.call(null)))}cacheToInMemoryCache(e){const t={accounts:{},idTokens:{},accessTokens:{},refreshTokens:{},appMetadata:{}};for(const n in e){const o=e[n];if(typeof o!=="object"){continue}if(isAccountEntity(o)){t.accounts[n]=o}else if(isIdTokenEntity(o)){t.idTokens[n]=o}else if(isAccessTokenEntity(o)){t.accessTokens[n]=o}else if(isRefreshTokenEntity(o)){t.refreshTokens[n]=o}else if(isAppMetadataEntity(n,o)){t.appMetadata[n]=o}else{continue}}return t}inMemoryCacheToCache(e){let t=this.getCache();t={...t,...e.accounts,...e.idTokens,...e.accessTokens,...e.refreshTokens,...e.appMetadata};return t}getInMemoryCache(){this.logger.trace("Getting in-memory cache","");const e=this.cacheToInMemoryCache(this.getCache());return e}setInMemoryCache(e){this.logger.trace("Setting in-memory cache","");const t=this.inMemoryCacheToCache(e);this.setCache(t);this.emitChange()}getCache(){this.logger.trace("Getting cache key-value store","");return this.cache}setCache(e){this.logger.trace("Setting cache key value store","");this.cache=e;this.emitChange()}getItem(e){this.logger.tracePii(`Item key: ${e}`,"");const t=this.getCache();return t[e]}setItem(e,t){this.logger.tracePii(`Item key: ${e}`,"");const n=this.getCache();n[e]=t;this.setCache(n)}generateCredentialKey(e){return generateCredentialKey(e)}generateAccountKey(e){return generateAccountKey(e)}getAccountKeys(){const e=this.getInMemoryCache();const t=Object.keys(e.accounts);return t}getTokenKeys(){const e=this.getInMemoryCache();const t={idToken:Object.keys(e.idTokens),accessToken:Object.keys(e.accessTokens),refreshToken:Object.keys(e.refreshTokens)};return t}getAccount(e){const t=this.getItem(e);return t&&typeof t==="object"?{...t}:null}async setAccount(e){const t=this.generateAccountKey(getAccountInfo(e));this.setItem(t,e)}getIdTokenCredential(e){const t=this.getItem(e);if(isIdTokenEntity(t)){return t}return null}async setIdTokenCredential(e){const t=this.generateCredentialKey(e);this.setItem(t,e)}getAccessTokenCredential(e){const t=this.getItem(e);if(isAccessTokenEntity(t)){return t}return null}async setAccessTokenCredential(e){const t=this.generateCredentialKey(e);this.setItem(t,e)}getRefreshTokenCredential(e){const t=this.getItem(e);if(isRefreshTokenEntity(t)){return t}return null}async setRefreshTokenCredential(e){const t=this.generateCredentialKey(e);this.setItem(t,e)}getAppMetadata(e){const t=this.getItem(e);if(isAppMetadataEntity(e,t)){return t}return null}setAppMetadata(e){const t=generateAppMetadataKey(e);this.setItem(t,e)}getServerTelemetry(e){const t=this.getItem(e);if(t&&isServerTelemetryEntity(e,t)){return t}return null}setServerTelemetry(e,t){this.setItem(e,t)}getAuthorityMetadata(e){const t=this.getItem(e);if(t&&isAuthorityMetadataEntity(e,t)){return t}return null}getAuthorityMetadataKeys(){return this.getKeys().filter((e=>this.isAuthorityMetadata(e)))}setAuthorityMetadata(e,t){this.setItem(e,t)}getThrottlingCache(e){const t=this.getItem(e);if(t&&isThrottlingEntity(e,t)){return t}return null}setThrottlingCache(e,t){this.setItem(e,t)}removeItem(e){this.logger.tracePii(`Item key: ${e}`,"");let t=false;const n=this.getCache();if(!!n[e]){delete n[e];t=true}if(t){this.setCache(n);this.emitChange()}return t}removeOutdatedAccount(e){this.removeItem(e)}containsKey(e){return this.getKeys().includes(e)}getKeys(){this.logger.trace("Retrieving all cache keys","");const e=this.getCache();return[...Object.keys(e)]}clear(){this.logger.trace("Clearing cache entries created by MSAL","");const e=this.getKeys();e.forEach((e=>{this.removeItem(e)}));this.emitChange()}static generateInMemoryCache(e){return Deserializer.deserializeAllCache(Deserializer.deserializeJSONBlob(e))}static generateJsonCache(e){return Serializer.serializeAllCache(e)}updateCredentialCacheKey(e,t){const n=this.generateCredentialKey(t);if(e!==n){const o=this.getItem(e);if(o){this.removeItem(e);this.setItem(n,o);this.logger.verbose(`Updated an outdated ${t.credentialType} cache key`,"");return n}else{this.logger.error(`Attempted to update an outdated ${t.credentialType} cache key but no item matching the outdated key was found in storage`,"")}}return e}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const Tl={Account:{},IdToken:{},AccessToken:{},RefreshToken:{},AppMetadata:{}};class TokenCache{constructor(e,t,n){this.cacheHasChanged=false;this.storage=e;this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));if(n){this.persistence=n}this.logger=t}hasChanged(){return this.cacheHasChanged}serialize(){this.logger.trace("Serializing in-memory cache","");let e=Serializer.serializeAllCache(this.storage.getInMemoryCache());if(this.cacheSnapshot){this.logger.trace("Reading cache snapshot from disk","");e=this.mergeState(JSON.parse(this.cacheSnapshot),e)}else{this.logger.trace("No cache snapshot to merge","")}this.cacheHasChanged=false;return JSON.stringify(e)}deserialize(e){this.logger.trace("Deserializing JSON to in-memory cache","");this.cacheSnapshot=e;if(this.cacheSnapshot){this.logger.trace("Reading cache snapshot from disk","");const e=Deserializer.deserializeAllCache(this.overlayDefaults(JSON.parse(this.cacheSnapshot)));this.storage.setInMemoryCache(e)}else{this.logger.trace("No cache snapshot to deserialize","")}}getKVStore(){return this.storage.getCache()}getCacheSnapshot(){const e=NodeStorage.generateInMemoryCache(this.cacheSnapshot);return this.storage.inMemoryCacheToCache(e)}async getAllAccounts(e=(new CryptoProvider).createNewGuid()){this.logger.trace("getAllAccounts called",e);let t;try{if(this.persistence){t=new TokenCacheContext(this,false);await this.persistence.beforeCacheAccess(t)}return this.storage.getAllAccounts({},e)}finally{if(this.persistence&&t){await this.persistence.afterCacheAccess(t)}}}async getAccountByHomeId(e){const t=await this.getAllAccounts();if(e&&t&&t.length){return t.filter((t=>t.homeAccountId===e))[0]||null}else{return null}}async getAccountByLocalId(e){const t=await this.getAllAccounts();if(e&&t&&t.length){return t.filter((t=>t.localAccountId===e))[0]||null}else{return null}}async removeAccount(e,t){this.logger.trace("removeAccount called",t||"");let n;try{if(this.persistence){n=new TokenCacheContext(this,true);await this.persistence.beforeCacheAccess(n)}this.storage.removeAccount(e,t||(new GuidGenerator).generateGuid())}finally{if(this.persistence&&n){await this.persistence.afterCacheAccess(n)}}}async overwriteCache(){if(!this.persistence){this.logger.info("No persistence layer specified, cache cannot be overwritten","");return}this.logger.info("Overwriting in-memory cache with persistent cache","");this.storage.clear();const e=new TokenCacheContext(this,false);await this.persistence.beforeCacheAccess(e);const t=this.getCacheSnapshot();this.storage.setCache(t);await this.persistence.afterCacheAccess(e)}handleChangeEvent(){this.cacheHasChanged=true}mergeState(e,t){this.logger.trace("Merging in-memory cache with cache snapshot","");const n=this.mergeRemovals(e,t);return this.mergeUpdates(n,t)}mergeUpdates(e,t){Object.keys(t).forEach((n=>{const o=t[n];if(!e.hasOwnProperty(n)){if(o!==null){e[n]=o}}else{const t=o!==null;const i=typeof o==="object";const a=!Array.isArray(o);const d=typeof e[n]!=="undefined"&&e[n]!==null;if(t&&i&&a&&d){this.mergeUpdates(e[n],o)}else{e[n]=o}}}));return e}mergeRemovals(e,t){this.logger.trace("Remove updated entries in cache","");const n=e.Account?this.mergeRemovalsDict(e.Account,t.Account):e.Account;const o=e.AccessToken?this.mergeRemovalsDict(e.AccessToken,t.AccessToken):e.AccessToken;const i=e.RefreshToken?this.mergeRemovalsDict(e.RefreshToken,t.RefreshToken):e.RefreshToken;const a=e.IdToken?this.mergeRemovalsDict(e.IdToken,t.IdToken):e.IdToken;const d=e.AppMetadata?this.mergeRemovalsDict(e.AppMetadata,t.AppMetadata):e.AppMetadata;return{...e,Account:n,AccessToken:o,RefreshToken:i,IdToken:a,AppMetadata:d}}mergeRemovalsDict(e,t){const n={...e};Object.keys(e).forEach((e=>{if(!t||!t.hasOwnProperty(e)){delete n[e]}}));return n}overlayDefaults(e){this.logger.trace("Overlaying input cache with the default cache","");return{Account:{...Tl.Account,...e.Account},IdToken:{...Tl.IdToken,...e.IdToken},AccessToken:{...Tl.AccessToken,...e.AccessToken},RefreshToken:{...Tl.RefreshToken,...e.RefreshToken},AppMetadata:{...Tl.AppMetadata,...e.AppMetadata}}}}var xl=__nccwpck_require__(8457); +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const _l="missing_tenant_id_error";const Ol="user_timeout_reached";const Ml="invalid_assertion";const Dl="invalid_client_credential";const $l="device_code_polling_cancelled";const Nl="device_code_expired";const kl="device_code_unknown_error"; +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ClientAssertion{static fromAssertion(e){const t=new ClientAssertion;t.jwt=e;return t}static fromCertificate(e,t,n){const o=new ClientAssertion;o.privateKey=t;o.thumbprint=e;o.useSha256=false;if(n){o.publicCertificate=this.parseCertificate(n)}return o}static fromCertificateWithSha256Thumbprint(e,t,n){const o=new ClientAssertion;o.privateKey=t;o.thumbprint=e;o.useSha256=true;if(n){o.publicCertificate=this.parseCertificate(n)}return o}getJwt(e,t,n){if(this.privateKey&&this.thumbprint){if(this.jwt&&!this.isExpired()&&t===this.issuer&&n===this.jwtAudience){return this.jwt}return this.createJwt(e,t,n)}if(this.jwt){return this.jwt}throw ClientAuthError_createClientAuthError(Ml)}createJwt(e,t,n){this.issuer=t;this.jwtAudience=n;const o=nowSeconds();this.expirationTime=o+600;const i=this.useSha256?Ci.PSS_256:Ci.RSA_256;const a={alg:i};const d=this.useSha256?Ci.X5T_256:Ci.X5T;Object.assign(a,{[d]:EncodingUtils.base64EncodeUrl(this.thumbprint,Zo.HEX)});if(this.publicCertificate){Object.assign(a,{[Ci.X5C]:this.publicCertificate})}const f={[Ci.AUDIENCE]:this.jwtAudience,[Ci.EXPIRATION_TIME]:this.expirationTime,[Ci.ISSUER]:this.issuer,[Ci.SUBJECT]:this.issuer,[Ci.NOT_BEFORE]:o,[Ci.JWT_ID]:e.createNewGuid()};this.jwt=xl.sign(f,this.privateKey,{header:a});return this.jwt}isExpired(){return this.expirationTime<nowSeconds()}static parseCertificate(e){const t=/-----BEGIN CERTIFICATE-----\r*\n(.+?)\r*\n-----END CERTIFICATE-----/gs;const n=[];let o;while((o=t.exec(e))!==null){n.push(o[1].replace(/\r*\n/g,""))}return n}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const Ll="@azure/msal-node";const Ul="5.1.1"; +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class BaseClient{constructor(e){this.config=buildClientConfiguration(e);this.logger=new Logger(this.config.loggerOptions,Ll,Ul);this.cryptoUtils=this.config.cryptoInterface;this.cacheManager=this.config.storageInterface;this.networkClient=this.config.networkInterface;this.serverTelemetryManager=this.config.serverTelemetryManager;this.authority=this.config.authOptions.authority;this.performanceClient=new StubPerformanceClient}createTokenRequestHeaders(e){return createTokenRequestHeaders(this.logger,false,e)}async executePostToTokenEndpoint(e,t,n,o,i){return executePostToTokenEndpoint(e,t,n,o,i,this.cacheManager,this.networkClient,this.logger,this.performanceClient,this.serverTelemetryManager)}async sendPostRequest(e,t,n,o){return sendPostRequest(e,t,n,o,this.cacheManager,this.networkClient,this.logger,this.performanceClient)}createTokenQueryParameters(e){return createTokenQueryParameters(e,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class UsernamePasswordClient extends BaseClient{constructor(e){super(e)}async acquireToken(e){this.logger.info("in acquireToken call in username-password client",e.correlationId);const t=nowSeconds();const n=await this.executeTokenRequest(this.authority,e);const o=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);o.validateTokenResponse(n.body,e.correlationId);const i=o.handleServerTokenResponse(n.body,this.authority,t,e,vi.acquireTokenByUsernamePassword);return i}async executeTokenRequest(e,t){const n=this.createTokenQueryParameters(t);const o=UrlString.appendQueryString(e.tokenEndpoint,n);const i=await this.createTokenRequestBody(t);const a=this.createTokenRequestHeaders({credential:t.username,type:Kc.UPN});const d={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return this.executePostToTokenEndpoint(o,i,a,d,t.correlationId)}async createTokenRequestBody(e){const t=new Map;addClientId(t,this.config.authOptions.clientId);addUsername(t,e.username);addPassword(t,e.password);addScopes(t,e.scopes);addResponseType(t,po.IDTOKEN_TOKEN);addGrantType(t,mo.RESOURCE_OWNER_PASSWORD_GRANT);addClientInfo(t);addLibraryInfo(t,this.config.libraryInfo);addApplicationTelemetry(t,this.config.telemetry.application);addThrottling(t);if(this.serverTelemetryManager){addServerTelemetry(t,this.serverTelemetryManager)}const n=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(t,n);if(this.config.clientCredentials.clientSecret){addClientSecret(t,this.config.clientCredentials.clientSecret)}const o=this.config.clientCredentials.clientAssertion;if(o){addClientAssertion(t,await getClientAssertion(o.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(t,o.assertionType)}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(t,e.claims,this.config.authOptions.clientCapabilities)}if(this.config.systemOptions.preventCorsPreflight&&e.username){addCcsUpn(t,e.username)}return mapToQueryString(t)}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +function getStandardAuthorizeRequestParameters(e,t,n,o){const i=t.correlationId;const a=new Map;addClientId(a,t.embeddedClientId||t.extraQueryParameters?.[ps]||e.clientId);const d=[...t.scopes||[],...t.extraScopesToConsent||[]];addScopes(a,d,true,e.authority.options.OIDCOptions?.defaultScopes);addResource(a,t.resource);addRedirectUri(a,t.redirectUri);addCorrelationId(a,i);addResponseMode(a,t.responseMode);addClientInfo(a);addCliData(a);if(t.prompt){addPrompt(a,t.prompt);o?.addFields({prompt:t.prompt},i)}if(t.domainHint){addDomainHint(a,t.domainHint);o?.addFields({domainHintFromRequest:true},i)}if(t.prompt!==lo.SELECT_ACCOUNT){if(t.sid&&t.prompt===lo.NONE){n.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request",t.correlationId);addSid(a,t.sid);o?.addFields({sidFromRequest:true},i)}else if(t.account){const e=extractAccountSid(t.account);let d=extractLoginHint(t.account);if(d&&t.domainHint){n.warning(`AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint`,t.correlationId);d=null}if(d){n.verbose("createAuthCodeUrlQueryString: login_hint claim present on account",t.correlationId);addLoginHint(a,d);o?.addFields({loginHintFromClaim:true},i);try{const e=buildClientInfoFromHomeAccountId(t.account.homeAccountId);addCcsOid(a,e)}catch(e){n.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header",t.correlationId)}}else if(e&&t.prompt===lo.NONE){n.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account",t.correlationId);addSid(a,e);o?.addFields({sidFromClaim:true},i);try{const e=buildClientInfoFromHomeAccountId(t.account.homeAccountId);addCcsOid(a,e)}catch(e){n.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header",t.correlationId)}}else if(t.loginHint){n.verbose("createAuthCodeUrlQueryString: Adding login_hint from request",t.correlationId);addLoginHint(a,t.loginHint);addCcsUpn(a,t.loginHint);o?.addFields({loginHintFromRequest:true},i)}else if(t.account.username){n.verbose("createAuthCodeUrlQueryString: Adding login_hint from account",t.correlationId);addLoginHint(a,t.account.username);o?.addFields({loginHintFromUpn:true},i);try{const e=buildClientInfoFromHomeAccountId(t.account.homeAccountId);addCcsOid(a,e)}catch(e){n.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header",t.correlationId)}}}else if(t.loginHint){n.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request",t.correlationId);addLoginHint(a,t.loginHint);addCcsUpn(a,t.loginHint);o?.addFields({loginHintFromRequest:true},i)}}else{n.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints",t.correlationId)}if(t.nonce){addNonce(a,t.nonce)}if(t.state){addState(a,t.state)}if(t.claims||e.clientCapabilities&&e.clientCapabilities.length>0){addClaims(a,t.claims,e.clientCapabilities)}if(t.embeddedClientId){addBrokerParameters(a,e.clientId,e.redirectUri)}if(e.instanceAware&&(!t.extraQueryParameters||!Object.keys(t.extraQueryParameters).includes(fa))){addInstanceAware(a)}return a}function getAuthorizeUrl(e,t){const n=mapToQueryString(t);return UrlString.appendQueryString(e.authorizationEndpoint,n)}function getAuthorizationCodePayload(e,t){validateAuthorizationResponse(e,t);if(!e.code){throw createClientAuthError(authorizationCodeMissingFromServerResponse)}return e}function validateAuthorizationResponse(e,t){if(!e.state||!t){throw e.state?createClientAuthError(stateNotFound,"Cached State"):createClientAuthError(stateNotFound,"Server State")}let n;let o;try{n=decodeURIComponent(e.state)}catch(t){throw createClientAuthError(invalidState,e.state)}try{o=decodeURIComponent(t)}catch(t){throw createClientAuthError(invalidState,e.state)}if(n!==o){throw createClientAuthError(stateMismatch)}if(e.error||e.error_description||e.suberror){const t=parseServerErrorNo(e);if(isInteractionRequiredError(e.error,e.error_description,e.suberror)){throw new InteractionRequiredAuthError(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",t)}throw new ServerError(e.error||"",e.error_description,e.suberror,t)}}function parseServerErrorNo(e){const t="code=";const n=e.error_uri?.lastIndexOf(t);return n&&n>=0?e.error_uri?.substring(n+t.length):undefined}function extractAccountSid(e){return e.idTokenClaims?.sid||null}function extractLoginHint(e){return e.loginHint||e.idTokenClaims?.login_hint||null} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +function getAuthCodeRequestUrl(e,t,n,o){const i=getStandardAuthorizeRequestParameters({...e.auth,authority:t,redirectUri:n.redirectUri||""},n,o);addLibraryInfo(i,{sku:Ei.MSAL_SKU,version:Ul,cpu:process.arch||"",os:process.platform||""});if(e.system.protocolMode!==Wa.OIDC){addApplicationTelemetry(i,e.telemetry.application)}addResponseType(i,po.CODE);if(n.codeChallenge&&n.codeChallengeMethod){addCodeChallengeParams(i,n.codeChallenge,n.codeChallengeMethod)}addExtraParameters(i,n.extraQueryParameters||{});return getAuthorizeUrl(t,i)} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ClientApplication{constructor(e){this.config=buildAppConfiguration(e);this.cryptoProvider=new CryptoProvider;this.logger=new Logger(this.config.system.loggerOptions,Ll,Ul);this.storage=new NodeStorage(this.logger,this.config.auth.clientId,this.cryptoProvider,buildStaticAuthorityOptions(this.config.auth));this.tokenCache=new TokenCache(this.storage,this.logger,this.config.cache.cachePlugin)}async getAuthCodeUrl(e){this.logger.info("getAuthCodeUrl called",e.correlationId||"");const t={...e,...await this.initializeBaseRequest(e),responseMode:e.responseMode||fo.QUERY,authenticationScheme:Fo.BEARER,state:e.state||"",nonce:e.nonce||""};const n=await this.createAuthority(t.authority,t.correlationId,undefined,e.azureCloudOptions);return getAuthCodeRequestUrl(this.config,n,t,this.logger)}async acquireTokenByCode(e,t){this.logger.info("acquireTokenByCode called",e.correlationId||"");if(e.state&&t){this.logger.info("acquireTokenByCode - validating state",e.correlationId||"");this.validateState(e.state,t.state||"");t={...t,state:""}}const n={...e,...await this.initializeBaseRequest(e),authenticationScheme:Fo.BEARER};const o=this.initializeServerTelemetryManager(vi.acquireTokenByCode,n.correlationId);try{const i=await this.createAuthority(n.authority,n.correlationId,undefined,e.azureCloudOptions);const a=await this.buildOauthClientConfiguration(i,n.correlationId,n.redirectUri,o);const d=new AuthorizationCodeClient(a,new StubPerformanceClient);this.logger.verbose("Auth code client created",n.correlationId);return await d.acquireToken(n,vi.acquireTokenByCode,t)}catch(e){if(e instanceof AuthError){e.setCorrelationId(n.correlationId)}o.cacheFailedRequest(e);throw e}}async acquireTokenByRefreshToken(e){this.logger.info("acquireTokenByRefreshToken called",e.correlationId||"");const t={...e,...await this.initializeBaseRequest(e),authenticationScheme:Fo.BEARER};const n=this.initializeServerTelemetryManager(vi.acquireTokenByRefreshToken,t.correlationId);try{const o=await this.createAuthority(t.authority,t.correlationId,undefined,e.azureCloudOptions);const i=await this.buildOauthClientConfiguration(o,t.correlationId,t.redirectUri||"",n);const a=new RefreshTokenClient(i,new StubPerformanceClient);this.logger.verbose("Refresh token client created",t.correlationId);return await a.acquireToken(t,vi.acquireTokenByRefreshToken)}catch(e){if(e instanceof AuthError){e.setCorrelationId(t.correlationId)}n.cacheFailedRequest(e);throw e}}async acquireTokenSilent(e){const t={...e,...await this.initializeBaseRequest(e),forceRefresh:e.forceRefresh||false};const n=this.initializeServerTelemetryManager(vi.acquireTokenSilent,t.correlationId,t.forceRefresh);try{const o=await this.createAuthority(t.authority,t.correlationId,undefined,e.azureCloudOptions);const i=await this.buildOauthClientConfiguration(o,t.correlationId,t.redirectUri||"",n);const a=new SilentFlowClient(i,new StubPerformanceClient);this.logger.verbose("Silent flow client created",t.correlationId);try{await this.tokenCache.overwriteCache();return await this.acquireCachedTokenSilent(t,a,i)}catch(e){if(e instanceof ClientAuthError&&e.errorCode===Xi){const e=new RefreshTokenClient(i,new StubPerformanceClient);return e.acquireTokenByRefreshToken(t,vi.acquireTokenSilent)}throw e}}catch(e){if(e instanceof AuthError){e.setCorrelationId(t.correlationId)}n.cacheFailedRequest(e);throw e}}async acquireCachedTokenSilent(e,t,n){const[o,i]=await t.acquireCachedToken({...e,scopes:e.scopes?.length?e.scopes:[...ro]});if(i===Qo.PROACTIVELY_REFRESHED){this.logger.info("ClientApplication:acquireCachedTokenSilent - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.",e.correlationId);const t=new RefreshTokenClient(n,new StubPerformanceClient);try{await t.acquireTokenByRefreshToken(e,vi.acquireTokenSilent)}catch{}}return o}async acquireTokenByUsernamePassword(e){this.logger.info("acquireTokenByUsernamePassword called",e.correlationId||"");const t={...e,...await this.initializeBaseRequest(e)};const n=this.initializeServerTelemetryManager(vi.acquireTokenByUsernamePassword,t.correlationId);try{const o=await this.createAuthority(t.authority,t.correlationId,undefined,e.azureCloudOptions);const i=await this.buildOauthClientConfiguration(o,t.correlationId,"",n);const a=new UsernamePasswordClient(i);this.logger.verbose("Username password client created",t.correlationId);return await a.acquireToken(t)}catch(e){if(e instanceof AuthError){e.setCorrelationId(t.correlationId)}n.cacheFailedRequest(e);throw e}}getTokenCache(){this.logger.info("getTokenCache called","");return this.tokenCache}validateState(e,t){if(!e){throw NodeAuthError.createStateNotFoundError()}if(e!==t){throw ClientAuthError_createClientAuthError(Ni)}}getLogger(){return this.logger}setLogger(e){this.logger=e}async buildOauthClientConfiguration(e,t,n,o){this.logger.verbose("buildOauthClientConfiguration called",t);this.logger.info(`Building oauth client configuration with the following authority: ${e.tokenEndpoint}.`,t);o?.updateRegionDiscoveryMetadata(e.regionDiscoveryMetadata);const i={authOptions:{clientId:this.config.auth.clientId,authority:e,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:n,isMcp:this.config.auth.isMcp},loggerOptions:{logLevel:this.config.system.loggerOptions.logLevel,loggerCallback:this.config.system.loggerOptions.loggerCallback,piiLoggingEnabled:this.config.system.loggerOptions.piiLoggingEnabled,correlationId:t},cryptoInterface:this.cryptoProvider,networkInterface:this.config.system.networkClient,storageInterface:this.storage,serverTelemetryManager:o,clientCredentials:{clientSecret:this.clientSecret,clientAssertion:await this.getClientAssertion(e)},libraryInfo:{sku:Ei.MSAL_SKU,version:Ul,cpu:process.arch||"",os:process.platform||""},telemetry:this.config.telemetry,persistencePlugin:this.config.cache.cachePlugin,serializableCache:this.tokenCache};return i}async getClientAssertion(e){if(this.developerProvidedClientAssertion){this.clientAssertion=ClientAssertion.fromAssertion(await getClientAssertion(this.developerProvidedClientAssertion,this.config.auth.clientId,e.tokenEndpoint))}return this.clientAssertion&&{assertion:this.clientAssertion.getJwt(this.cryptoProvider,this.config.auth.clientId,e.tokenEndpoint),assertionType:Ei.JWT_BEARER_ASSERTION_TYPE}}async initializeBaseRequest(e){const t=e.correlationId||this.cryptoProvider.createNewGuid();this.logger.verbose("initializeRequestScopes called",t);if(e.authenticationScheme&&e.authenticationScheme===Fo.POP){this.logger.verbose("Authentication Scheme 'pop' is not supported yet, setting Authentication Scheme to 'Bearer' for request",t)}e.authenticationScheme=Fo.BEARER;return{...e,scopes:[...e&&e.scopes||[],...ro],correlationId:t,authority:e.authority||this.config.auth.authority}}initializeServerTelemetryManager(e,t,n){const o={clientId:this.config.auth.clientId,correlationId:t,apiId:e,forceRefresh:n||false};return new ServerTelemetryManager(o,this.storage)}async createAuthority(e,t,n,o){this.logger.verbose("createAuthority called",t);const i=Authority.generateAuthority(e,o||this.config.auth.azureCloudOptions);const a={protocolMode:this.config.system.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,azureRegionConfiguration:n};return createDiscoveredInstance(i,this.config.system.networkClient,this.storage,a,this.logger,t,new StubPerformanceClient)}clearCache(){this.storage.clear()}}var Fl=__nccwpck_require__(8611); +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class LoopbackClient{async listenForAuthCode(e,t){if(this.server){throw NodeAuthError.createLoopbackServerAlreadyExistsError()}return new Promise(((n,o)=>{this.server=Fl.createServer(((i,a)=>{const d=i.url;if(!d){a.end(t||"Error occurred loading redirectUrl");o(NodeAuthError.createUnableToLoadRedirectUrlError());return}else if(d===Tr){a.end(e||"Auth code was successfully acquired. You can close this window now.");return}const f=this.getRedirectUri();const m=new URL(d,f);const h=getDeserializedResponse(m.search)||{};if(h.code){a.writeHead(Br,{location:f});a.end()}if(h.error){a.end(t||`Error occurred: ${h.error}`)}n(h)}));this.server.listen(0,"127.0.0.1")}))}getRedirectUri(){if(!this.server||!this.server.listening){throw NodeAuthError.createNoLoopbackServerExistsError()}const e=this.server.address();if(!e||typeof e==="string"||!e.port){this.closeServer();throw NodeAuthError.createInvalidLoopbackAddressTypeError()}const t=e&&e.port;return`${Ei.HTTP_PROTOCOL}${Ei.LOCALHOST}:${t}`}closeServer(){if(this.server){this.server.close();if(typeof this.server.closeAllConnections==="function"){this.server.closeAllConnections()}this.server.unref();this.server=undefined}}} +/*! @azure/msal-common v16.4.0 2026-03-18 */ +const Bl="unexpected_error";const ql="post_request_failed"; +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class DeviceCodeClient extends BaseClient{constructor(e){super(e)}async acquireToken(e){const t=await this.getDeviceCode(e);e.deviceCodeCallback(t);const n=nowSeconds();const o=await this.acquireTokenWithDeviceCode(e,t);const i=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);i.validateTokenResponse(o,e.correlationId);return i.handleServerTokenResponse(o,this.authority,n,e,vi.acquireTokenByDeviceCode)}async getDeviceCode(e){const t=this.createExtraQueryParameters(e);const n=UrlString.appendQueryString(this.authority.deviceCodeEndpoint,t);const o=this.createQueryString(e);const i=this.createTokenRequestHeaders();const a={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return this.executePostRequestToDeviceCodeEndpoint(n,o,i,a,e.correlationId)}createExtraQueryParameters(e){const t=new Map;if(e.extraQueryParameters){addExtraParameters(t,e.extraQueryParameters)}return mapToQueryString(t)}async executePostRequestToDeviceCodeEndpoint(e,t,n,o,i){const{body:{user_code:a,device_code:d,verification_uri:f,expires_in:m,interval:h,message:C}}=await this.sendPostRequest(o,e,{body:t,headers:n},i);return{userCode:a,deviceCode:d,verificationUri:f,expiresIn:m,interval:h,message:C}}createQueryString(e){const t=new Map;addScopes(t,e.scopes);addClientId(t,this.config.authOptions.clientId);if(e.extraQueryParameters){addExtraParameters(t,e.extraQueryParameters)}if(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(t,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(t)}continuePolling(e,t,n){if(n){this.logger.error("Token request cancelled by setting DeviceCodeRequest.cancel = true","");throw ClientAuthError_createClientAuthError($l)}else if(t&&t<e&&nowSeconds()>t){this.logger.error(`User defined timeout for device code polling reached. The timeout was set for ${t}`,"");throw ClientAuthError_createClientAuthError(Ol)}else if(nowSeconds()>e){if(t){this.logger.verbose(`User specified timeout ignored as the device code has expired before the timeout elapsed. The user specified timeout was set for ${t}`,"")}this.logger.error(`Device code expired. Expiration time of device code was ${e}`,"");throw ClientAuthError_createClientAuthError(Nl)}return true}async acquireTokenWithDeviceCode(e,t){const n=this.createTokenQueryParameters(e);const o=UrlString.appendQueryString(this.authority.tokenEndpoint,n);const i=this.createTokenRequestBody(e,t);const a=this.createTokenRequestHeaders();const d=e.timeout?nowSeconds()+e.timeout:undefined;const f=nowSeconds()+t.expiresIn;const m=t.interval*1e3;while(this.continuePolling(f,d,e.cancel)){const t={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};const n=await this.executePostToTokenEndpoint(o,i,a,t,e.correlationId);if(n.body&&n.body.error){if(n.body.error===Ar){this.logger.info("Authorization pending. Continue polling.",e.correlationId);await TimeUtils_delay(m)}else{this.logger.info("Unexpected error in polling from the server",e.correlationId);throw createAuthError(ql,n.body.error)}}else{this.logger.verbose("Authorization completed successfully. Polling stopped.",e.correlationId);return n.body}}this.logger.error("Polling stopped for unknown reasons.",e.correlationId);throw ClientAuthError_createClientAuthError(kl)}createTokenRequestBody(e,t){const n=new Map;addScopes(n,e.scopes);addClientId(n,this.config.authOptions.clientId);addGrantType(n,mo.DEVICE_CODE_GRANT);addDeviceCode(n,t.deviceCode);const o=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(n,o);addClientInfo(n);addLibraryInfo(n,this.config.libraryInfo);addApplicationTelemetry(n,this.config.telemetry.application);addThrottling(n);if(this.serverTelemetryManager){addServerTelemetry(n,this.serverTelemetryManager)}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(n,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(n)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class PublicClientApplication extends ClientApplication{constructor(e){super(e);if(this.config.broker.nativeBrokerPlugin){if(this.config.broker.nativeBrokerPlugin.isBrokerAvailable){this.nativeBrokerPlugin=this.config.broker.nativeBrokerPlugin;this.nativeBrokerPlugin.setLogger(this.config.system.loggerOptions)}else{this.logger.warning("NativeBroker implementation was provided but the broker is unavailable.","")}}this.skus=ServerTelemetryManager.makeExtraSkuString({libraryName:Ei.MSAL_SKU,libraryVersion:Ul})}async acquireTokenByDeviceCode(e){this.logger.info("acquireTokenByDeviceCode called",e.correlationId||"");enforceResourceParameter(this.config.auth.isMcp,e);const t=Object.assign(e,await this.initializeBaseRequest(e));const n=this.initializeServerTelemetryManager(vi.acquireTokenByDeviceCode,t.correlationId);try{const o=await this.createAuthority(t.authority,t.correlationId,undefined,e.azureCloudOptions);const i=await this.buildOauthClientConfiguration(o,t.correlationId,"",n);const a=new DeviceCodeClient(i);this.logger.verbose("Device code client created",t.correlationId);return await a.acquireToken(t)}catch(e){if(e instanceof AuthError){e.setCorrelationId(t.correlationId)}n.cacheFailedRequest(e);throw e}}async acquireTokenInteractive(e){const t=e.correlationId||this.cryptoProvider.createNewGuid();this.logger.trace("acquireTokenInteractive called",t);enforceResourceParameter(this.config.auth.isMcp,e);const{openBrowser:n,successTemplate:o,errorTemplate:i,windowHandle:a,loopbackClient:d,...f}=e;if(this.nativeBrokerPlugin){const n={...f,clientId:this.config.auth.clientId,scopes:e.scopes||ro,redirectUri:e.redirectUri||"",authority:e.authority||this.config.auth.authority,correlationId:t,extraParameters:{...f.extraQueryParameters,...f.extraParameters,[ua]:this.skus},accountId:f.account?.nativeAccountId};return this.nativeBrokerPlugin.acquireTokenInteractive(n,a)}if(e.redirectUri){if(!this.config.broker.nativeBrokerPlugin){throw NodeAuthError.createRedirectUriNotSupportedError()}e.redirectUri=""}const{verifier:m,challenge:h}=await this.cryptoProvider.generatePkceCodes();const C=d||new LoopbackClient;let P={};let D=null;try{const a=C.listenForAuthCode(o,i).then((e=>{P=e})).catch((e=>{D=e}));const d=await this.waitForRedirectUri(C);const k={...f,correlationId:t,scopes:e.scopes||ro,redirectUri:d,responseMode:fo.QUERY,codeChallenge:h,codeChallengeMethod:uo.S256};const L=await this.getAuthCodeUrl(k);await n(L);await a;if(D){throw D}if(P.error){throw new ServerError_ServerError(P.error,P.error_description,P.suberror)}else if(!P.code){throw NodeAuthError.createNoAuthCodeInResponseError()}const F=P.client_info;const q={code:P.code,codeVerifier:m,clientInfo:F||"",...k};return await this.acquireTokenByCode(q)}finally{C.closeServer()}}async acquireTokenSilent(e){const t=e.correlationId||this.cryptoProvider.createNewGuid();this.logger.trace("acquireTokenSilent called",t);enforceResourceParameter(this.config.auth.isMcp,e);if(this.nativeBrokerPlugin){const n={...e,clientId:this.config.auth.clientId,scopes:e.scopes||ro,redirectUri:e.redirectUri||"",authority:e.authority||this.config.auth.authority,correlationId:t,extraParameters:{...e.extraQueryParameters,...e.extraParameters,[ua]:this.skus},accountId:e.account.nativeAccountId,forceRefresh:e.forceRefresh||false};return this.nativeBrokerPlugin.acquireTokenSilent(n)}if(e.redirectUri){if(!this.config.broker.nativeBrokerPlugin){throw NodeAuthError.createRedirectUriNotSupportedError()}e.redirectUri=""}return super.acquireTokenSilent(e)}async acquireTokenByCode(e,t){enforceResourceParameter(this.config.auth.isMcp,e);return super.acquireTokenByCode(e,t)}async acquireTokenByRefreshToken(e){enforceResourceParameter(this.config.auth.isMcp,e);return super.acquireTokenByRefreshToken(e)}async signOut(e){if(this.nativeBrokerPlugin&&e.account.nativeAccountId){const t={clientId:this.config.auth.clientId,accountId:e.account.nativeAccountId,correlationId:e.correlationId||this.cryptoProvider.createNewGuid()};await this.nativeBrokerPlugin.signOut(t)}await this.getTokenCache().removeAccount(e.account,e.correlationId)}async getAllAccounts(){if(this.nativeBrokerPlugin){const e=this.cryptoProvider.createNewGuid();return this.nativeBrokerPlugin.getAllAccounts(this.config.auth.clientId,e)}return this.getTokenCache().getAllAccounts()}async waitForRedirectUri(e){return new Promise(((t,n)=>{let o=0;const i=setInterval((()=>{if(Ii.TIMEOUT_MS/Ii.INTERVAL_MS<o){clearInterval(i);n(NodeAuthError.createLoopbackServerTimeoutError());return}try{const n=e.getRedirectUri();clearInterval(i);t(n);return}catch(e){if(e instanceof AuthError&&e.errorCode===pl.noLoopbackServerExists.code){o++;return}clearInterval(i);n(e);return}}),Ii.INTERVAL_MS)}))}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ClientCredentialClient extends BaseClient{constructor(e,t){super(e);this.appTokenProvider=t}async acquireToken(e){if(e.skipCache||e.claims){return this.executeTokenRequest(e,this.authority)}const[t,n]=await this.getCachedAuthenticationResult(e,this.config,this.cryptoUtils,this.authority,this.cacheManager,this.serverTelemetryManager);if(t){if(n===Qo.PROACTIVELY_REFRESHED){this.logger.info("ClientCredentialClient:getCachedAuthenticationResult - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.",e.correlationId);const t=true;await this.executeTokenRequest(e,this.authority,t)}return t}else{return this.executeTokenRequest(e,this.authority)}}async getCachedAuthenticationResult(e,t,n,o,i,a){const d=t;const f=t;let m=Qo.NOT_APPLICABLE;let h;if(d.serializableCache&&d.persistencePlugin){h=new TokenCacheContext(d.serializableCache,false);await d.persistencePlugin.beforeCacheAccess(h)}const C=this.readAccessTokenFromCache(o,f.managedIdentityId?.id||d.authOptions.clientId,new ScopeSet(e.scopes||[]),i,e.correlationId);if(d.serializableCache&&d.persistencePlugin&&h){await d.persistencePlugin.afterCacheAccess(h)}if(!C){a?.setCacheOutcome(Qo.NO_CACHED_ACCESS_TOKEN);return[null,Qo.NO_CACHED_ACCESS_TOKEN]}if(isTokenExpired(C.expiresOn,d.systemOptions?.tokenRenewalOffsetSeconds||Xo)){a?.setCacheOutcome(Qo.CACHED_ACCESS_TOKEN_EXPIRED);return[null,Qo.CACHED_ACCESS_TOKEN_EXPIRED]}if(C.refreshOn&&isTokenExpired(C.refreshOn.toString(),0)){m=Qo.PROACTIVELY_REFRESHED;a?.setCacheOutcome(Qo.PROACTIVELY_REFRESHED)}return[await ResponseHandler.generateAuthenticationResult(n,o,{account:null,idToken:null,accessToken:C,refreshToken:null,appMetadata:null},true,e,this.performanceClient),m]}readAccessTokenFromCache(e,t,n,o,i){const a={homeAccountId:"",environment:e.canonicalAuthorityUrlComponents.HostNameAndPort,credentialType:Co.ACCESS_TOKEN,clientId:t,realm:e.tenant,target:ScopeSet.createSearchScopes(n.asArray())};const d=o.getAccessTokensByFilter(a,i);if(d.length<1){return null}else if(d.length>1){throw ClientAuthError_createClientAuthError(Bi)}return d[0]}async executeTokenRequest(e,t,n){let o;let i;if(this.appTokenProvider){this.logger.info("Using appTokenProvider extensibility.",e.correlationId);const t={correlationId:e.correlationId,tenantId:this.config.authOptions.authority.tenant,scopes:e.scopes,claims:e.claims};i=nowSeconds();const n=await this.appTokenProvider(t);o={access_token:n.accessToken,expires_in:n.expiresInSeconds,refresh_in:n.refreshInSeconds,token_type:Fo.BEARER}}else{const n=this.createTokenQueryParameters(e);const a=UrlString.appendQueryString(t.tokenEndpoint,n);const d=await this.createTokenRequestBody(e);const f=this.createTokenRequestHeaders();const m={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};this.logger.info("Sending token request to endpoint: "+t.tokenEndpoint,e.correlationId);i=nowSeconds();const h=await this.executePostToTokenEndpoint(a,d,f,m,e.correlationId);o=h.body;o.status=h.status}const a=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);a.validateTokenResponse(o,e.correlationId,n);const d=await a.handleServerTokenResponse(o,this.authority,i,e,vi.acquireTokenByClientCredential);return d}async createTokenRequestBody(e){const t=new Map;addClientId(t,this.config.authOptions.clientId);addScopes(t,e.scopes,false);addGrantType(t,mo.CLIENT_CREDENTIALS_GRANT);addLibraryInfo(t,this.config.libraryInfo);addApplicationTelemetry(t,this.config.telemetry.application);addThrottling(t);if(this.serverTelemetryManager){addServerTelemetry(t,this.serverTelemetryManager)}const n=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(t,n);if(this.config.clientCredentials.clientSecret){addClientSecret(t,this.config.clientCredentials.clientSecret)}const o=e.clientAssertion||this.config.clientCredentials.clientAssertion;if(o){addClientAssertion(t,await getClientAssertion(o.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(t,o.assertionType)}if(!StringUtils_StringUtils.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(t,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(t)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class OnBehalfOfClient extends BaseClient{constructor(e){super(e)}async acquireToken(e){this.scopeSet=new ScopeSet(e.scopes||[]);this.userAssertionHash=await this.cryptoUtils.hashString(e.oboAssertion);if(e.skipCache||e.claims){return this.executeTokenRequest(e,this.authority,this.userAssertionHash)}try{return await this.getCachedAuthenticationResult(e)}catch(t){return await this.executeTokenRequest(e,this.authority,this.userAssertionHash)}}async getCachedAuthenticationResult(e){const t=this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId,e);if(!t){this.serverTelemetryManager?.setCacheOutcome(Qo.NO_CACHED_ACCESS_TOKEN);this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.",e.correlationId);throw ClientAuthError_createClientAuthError(Xi)}else if(isTokenExpired(t.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds)){this.serverTelemetryManager?.setCacheOutcome(Qo.CACHED_ACCESS_TOKEN_EXPIRED);this.logger.info(`OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`,e.correlationId);throw ClientAuthError_createClientAuthError(Xi)}const n=this.readIdTokenFromCacheForOBO(t.homeAccountId,e.correlationId);let o;let i=null;if(n){o=extractTokenClaims(n.secret,EncodingUtils.base64Decode);const t=o.oid||o.sub;const a={homeAccountId:n.homeAccountId,environment:n.environment,tenantId:n.realm,username:"",localAccountId:t||""};i=this.cacheManager.getAccount(this.cacheManager.generateAccountKey(a),e.correlationId)}if(this.config.serverTelemetryManager){this.config.serverTelemetryManager.incrementCacheHits()}return ResponseHandler.generateAuthenticationResult(this.cryptoUtils,this.authority,{account:i,accessToken:t,idToken:n,refreshToken:null,appMetadata:null},true,e,this.performanceClient,o)}readIdTokenFromCacheForOBO(e,t){const n={homeAccountId:e,environment:this.authority.canonicalAuthorityUrlComponents.HostNameAndPort,credentialType:Co.ID_TOKEN,clientId:this.config.authOptions.clientId,realm:this.authority.tenant};const o=this.cacheManager.getIdTokensByFilter(n,t);if(Object.values(o).length<1){return null}return Object.values(o)[0]}readAccessTokenFromCacheForOBO(e,t){const n=t.authenticationScheme||Fo.BEARER;const o=n&&n.toLowerCase()!==Fo.BEARER.toLowerCase()?Co.ACCESS_TOKEN_WITH_AUTH_SCHEME:Co.ACCESS_TOKEN;const i={credentialType:o,clientId:e,target:ScopeSet.createSearchScopes(this.scopeSet.asArray()),tokenType:n,keyId:t.sshKid,userAssertionHash:this.userAssertionHash};const a=this.cacheManager.getAccessTokensByFilter(i,t.correlationId);const d=a.length;if(d<1){return null}else if(d>1){throw ClientAuthError_createClientAuthError(Bi)}return a[0]}async executeTokenRequest(e,t,n){const o=this.createTokenQueryParameters(e);const i=UrlString.appendQueryString(t.tokenEndpoint,o);const a=await this.createTokenRequestBody(e);const d=this.createTokenRequestHeaders();const f={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};const m=nowSeconds();const h=await this.executePostToTokenEndpoint(i,a,d,f,e.correlationId);const C=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);C.validateTokenResponse(h.body,e.correlationId);const P=await C.handleServerTokenResponse(h.body,this.authority,m,e,vi.acquireTokenByOBO,undefined,n);return P}async createTokenRequestBody(e){const t=new Map;addClientId(t,this.config.authOptions.clientId);addScopes(t,e.scopes);addGrantType(t,mo.JWT_BEARER);addClientInfo(t);addLibraryInfo(t,this.config.libraryInfo);addApplicationTelemetry(t,this.config.telemetry.application);addThrottling(t);if(this.serverTelemetryManager){addServerTelemetry(t,this.serverTelemetryManager)}const n=e.correlationId||this.config.cryptoInterface.createNewGuid();addCorrelationId(t,n);addRequestTokenUse(t,ta);addOboAssertion(t,e.oboAssertion);if(this.config.clientCredentials.clientSecret){addClientSecret(t,this.config.clientCredentials.clientSecret)}const o=this.config.clientCredentials.clientAssertion;if(o){addClientAssertion(t,await getClientAssertion(o.assertion,this.config.authOptions.clientId,e.resourceRequestUri));addClientAssertionType(t,o.assertionType)}if(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0){addClaims(t,e.claims,this.config.authOptions.clientCapabilities)}return mapToQueryString(t)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ConfidentialClientApplication extends ClientApplication{constructor(e){super(e);const t=!!this.config.auth.clientSecret;const n=!!this.config.auth.clientAssertion;const o=(!!this.config.auth.clientCertificate?.thumbprint||!!this.config.auth.clientCertificate?.thumbprintSha256)&&!!this.config.auth.clientCertificate?.privateKey;if(this.appTokenProvider){return}if(t&&n||n&&o||t&&o){throw ClientAuthError_createClientAuthError(Dl)}if(this.config.auth.clientSecret){this.clientSecret=this.config.auth.clientSecret;return}if(this.config.auth.clientAssertion){this.developerProvidedClientAssertion=this.config.auth.clientAssertion;return}if(!o){throw ClientAuthError_createClientAuthError(Dl)}else{this.clientAssertion=!!this.config.auth.clientCertificate.thumbprintSha256?ClientAssertion.fromCertificateWithSha256Thumbprint(this.config.auth.clientCertificate.thumbprintSha256,this.config.auth.clientCertificate.privateKey,this.config.auth.clientCertificate.x5c):ClientAssertion.fromCertificate(this.config.auth.clientCertificate.thumbprint,this.config.auth.clientCertificate.privateKey,this.config.auth.clientCertificate.x5c)}this.appTokenProvider=undefined}SetAppTokenProvider(e){this.appTokenProvider=e}async acquireTokenByClientCredential(e){this.logger.info("acquireTokenByClientCredential called",e.correlationId||"");let t;if(e.clientAssertion){t={assertion:await getClientAssertion(e.clientAssertion,this.config.auth.clientId),assertionType:Ei.JWT_BEARER_ASSERTION_TYPE}}const n=await this.initializeBaseRequest(e);const o={...n,scopes:n.scopes.filter((e=>!ro.includes(e)))};const i={...e,...o,clientAssertion:t};const a=new UrlString(i.authority);const d=a.getUrlComponents().PathSegments[0];if(Object.values(ao).includes(d)){throw ClientAuthError_createClientAuthError(_l)}const f=process.env[mi];let m;if(i.azureRegion!=="DisableMsalForceRegion"){if(!i.azureRegion&&f){m=f}else{m=i.azureRegion}}const h={azureRegion:m,environmentRegion:process.env[fi]};const C=this.initializeServerTelemetryManager(vi.acquireTokenByClientCredential,i.correlationId,i.skipCache);try{const t=await this.createAuthority(i.authority,i.correlationId,h,e.azureCloudOptions);const n=await this.buildOauthClientConfiguration(t,i.correlationId,"",C);const o=new ClientCredentialClient(n,this.appTokenProvider);this.logger.verbose("Client credential client created",i.correlationId);return await o.acquireToken(i)}catch(e){if(e instanceof AuthError){e.setCorrelationId(i.correlationId)}C.cacheFailedRequest(e);throw e}}async acquireTokenOnBehalfOf(e){this.logger.info("acquireTokenOnBehalfOf called",e.correlationId||"");const t={...e,...await this.initializeBaseRequest(e)};try{const n=await this.createAuthority(t.authority,t.correlationId,undefined,e.azureCloudOptions);const o=await this.buildOauthClientConfiguration(n,t.correlationId,"",undefined);const i=new OnBehalfOfClient(o);this.logger.verbose("On behalf of client created",t.correlationId);return await i.acquireToken(t)}catch(e){if(e instanceof AuthError){e.setCorrelationId(t.correlationId)}throw e}}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +function isIso8601(e){if(typeof e!=="string"){return false}const t=new Date(e);return!isNaN(t.getTime())&&t.toISOString()===e} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class HttpClientWithRetries{constructor(e,t,n){this.httpClientNoRetries=e;this.retryPolicy=t;this.logger=n}async sendNetworkRequestAsyncHelper(e,t,n){if(e===pi.GET){return this.httpClientNoRetries.sendGetRequestAsync(t,n)}else{return this.httpClientNoRetries.sendPostRequestAsync(t,n)}}async sendNetworkRequestAsync(e,t,n){let o=await this.sendNetworkRequestAsyncHelper(e,t,n);if("isNewRequest"in this.retryPolicy){this.retryPolicy.isNewRequest=true}let i=0;while(await this.retryPolicy.pauseForRetry(o.status,i,this.logger,o.headers[io.RETRY_AFTER])){o=await this.sendNetworkRequestAsyncHelper(e,t,n);i++}return o}async sendGetRequestAsync(e,t){return this.sendNetworkRequestAsync(pi.GET,e,t)}async sendPostRequestAsync(e,t){return this.sendNetworkRequestAsync(pi.POST,e,t)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const jl={MANAGED_IDENTITY_CLIENT_ID_2017:"clientid",MANAGED_IDENTITY_CLIENT_ID:"client_id",MANAGED_IDENTITY_OBJECT_ID:"object_id",MANAGED_IDENTITY_RESOURCE_ID_IMDS:"msi_res_id",MANAGED_IDENTITY_RESOURCE_ID_NON_IMDS:"mi_res_id"};class BaseManagedIdentitySource{constructor(e,t,n,o,i){this.logger=e;this.nodeStorage=t;this.networkClient=n;this.cryptoProvider=o;this.disableInternalRetries=i}async getServerTokenResponseAsync(e,t,n,o){return this.getServerTokenResponse(e)}getServerTokenResponse(e){let t,n;if(e.body.expires_on){if(isIso8601(e.body.expires_on)){e.body.expires_on=new Date(e.body.expires_on).getTime()/1e3}n=e.body.expires_on-nowSeconds();if(n>2*3600){t=n/2}}const o={status:e.status,access_token:e.body.access_token,expires_in:n,scope:e.body.resource,token_type:e.body.token_type,refresh_in:t,correlation_id:e.body.correlation_id||e.body.correlationId,error:typeof e.body.error==="string"?e.body.error:e.body.error?.code,error_description:e.body.message||(typeof e.body.error==="string"?e.body.error_description:e.body.error?.message),error_codes:e.body.error_codes,timestamp:e.body.timestamp,trace_id:e.body.trace_id};return o}async acquireTokenWithManagedIdentity(e,t,n,o){const i=this.createRequest(e.resource,t);if(e.revokedTokenSha256Hash){this.logger.info(`[Managed Identity] The following claims are present in the request: ${e.claims}`,"");i.queryParameters[ci.SHA256_TOKEN_TO_REFRESH]=e.revokedTokenSha256Hash}if(e.clientCapabilities?.length){const t=e.clientCapabilities.toString();this.logger.info(`[Managed Identity] The following client capabilities are present in the request: ${t}`,"");i.queryParameters[ci.XMS_CC]=t}const a=i.headers;a[io.CONTENT_TYPE]=wr;const d={headers:a};if(Object.keys(i.bodyParameters).length){d.body=i.computeParametersBodyString()}const f=this.disableInternalRetries?this.networkClient:new HttpClientWithRetries(this.networkClient,i.retryPolicy,this.logger);const m=nowSeconds();let h;try{if(i.httpMethod===pi.POST){h=await f.sendPostRequestAsync(i.computeUri(),d)}else{h=await f.sendGetRequestAsync(i.computeUri(),d)}}catch(e){if(e instanceof AuthError){throw e}else{throw ClientAuthError_createClientAuthError(Oi)}}const C=new ResponseHandler(t.id,this.nodeStorage,this.cryptoProvider,this.logger,new StubPerformanceClient,null,null);const P=await this.getServerTokenResponseAsync(h,f,i,d);C.validateTokenResponse(P,P.correlation_id||"",o);return C.handleServerTokenResponse(P,n,m,e,vi.acquireTokenWithManagedIdentity)}getManagedIdentityUserAssignedIdQueryParameterKey(e,t,n){switch(e){case di.USER_ASSIGNED_CLIENT_ID:this.logger.info(`[Managed Identity] [API version ${n?"2017+":"2019+"}] Adding user assigned client id to the request.`,"");return n?jl.MANAGED_IDENTITY_CLIENT_ID_2017:jl.MANAGED_IDENTITY_CLIENT_ID;case di.USER_ASSIGNED_RESOURCE_ID:this.logger.info("[Managed Identity] Adding user assigned resource id to the request.","");return t?jl.MANAGED_IDENTITY_RESOURCE_ID_IMDS:jl.MANAGED_IDENTITY_RESOURCE_ID_NON_IMDS;case di.USER_ASSIGNED_OBJECT_ID:this.logger.info("[Managed Identity] Adding user assigned object id to the request.","");return jl.MANAGED_IDENTITY_OBJECT_ID;default:throw createManagedIdentityError(Xc)}}}BaseManagedIdentitySource.getValidatedEnvVariableUrlString=(e,t,n,o)=>{try{return new UrlString(t).urlString}catch(t){o.info(`[Managed Identity] ${n} managed identity is unavailable because the '${e}' environment variable is malformed.`,"");throw createManagedIdentityError(ul[e])}}; +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class LinearRetryStrategy{calculateDelay(e,t){if(!e){return t}let n=Math.round(parseFloat(e)*1e3);if(isNaN(n)){n=new Date(e).valueOf()-(new Date).valueOf()}return Math.max(t,n)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const zl=3;const Hl=1e3;const Vl=[Vr,Gr,Kr,Yr,Xr,Zr];class DefaultManagedIdentityRetryPolicy{constructor(){this.linearRetryStrategy=new LinearRetryStrategy}static get DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS(){return Hl}async pauseForRetry(e,t,n,o){if(Vl.includes(e)&&t<zl){const e=this.linearRetryStrategy.calculateDelay(o,DefaultManagedIdentityRetryPolicy.DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS);n.verbose(`Retrying request in ${e}ms (retry attempt: ${t+1})`,"");await new Promise((t=>setTimeout(t,e)));return true}return false}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ManagedIdentityRequestParameters{constructor(e,t,n){this.httpMethod=e;this._baseEndpoint=t;this.headers={};this.bodyParameters={};this.queryParameters={};this.retryPolicy=n||new DefaultManagedIdentityRetryPolicy}computeUri(){const e=new Map;if(this.queryParameters){addExtraParameters(e,this.queryParameters)}const t=mapToQueryString(e);return UrlString.appendQueryString(this._baseEndpoint,t)}computeParametersBodyString(){const e=new Map;if(this.bodyParameters){addExtraParameters(e,this.bodyParameters)}return mapToQueryString(e)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const Gl="2019-08-01";class AppService extends BaseManagedIdentitySource{constructor(e,t,n,o,i,a,d){super(e,t,n,o,i);this.identityEndpoint=a;this.identityHeader=d}static getEnvironmentVariables(){const e=process.env[li.IDENTITY_ENDPOINT];const t=process.env[li.IDENTITY_HEADER];return[e,t]}static tryCreate(e,t,n,o,i){const[a,d]=AppService.getEnvironmentVariables();if(!a||!d){e.info(`[Managed Identity] ${ui.APP_SERVICE} managed identity is unavailable because one or both of the '${li.IDENTITY_HEADER}' and '${li.IDENTITY_ENDPOINT}' environment variables are not defined.`,"");return null}const f=AppService.getValidatedEnvVariableUrlString(li.IDENTITY_ENDPOINT,a,ui.APP_SERVICE,e);e.info(`[Managed Identity] Environment variables validation passed for ${ui.APP_SERVICE} managed identity. Endpoint URI: ${f}. Creating ${ui.APP_SERVICE} managed identity.`,"");return new AppService(e,t,n,o,i,a,d)}createRequest(e,t){const n=new ManagedIdentityRequestParameters(pi.GET,this.identityEndpoint);n.headers[ai.APP_SERVICE_SECRET_HEADER_NAME]=this.identityHeader;n.queryParameters[ci.API_VERSION]=Gl;n.queryParameters[ci.RESOURCE]=e;if(t.idType!==di.SYSTEM_ASSIGNED){n.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(t.idType)]=t.id}return n}}var Wl=__nccwpck_require__(9896);var Kl=__nccwpck_require__(6928); +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const Ql="2019-11-01";const Yl="http://127.0.0.1:40342/metadata/identity/oauth2/token";const Jl="N/A: himds executable exists";const Xl={win32:`${process.env["ProgramData"]}\\AzureConnectedMachineAgent\\Tokens\\`,linux:"/var/opt/azcmagent/tokens/"};const Zl={win32:`${process.env["ProgramFiles"]}\\AzureConnectedMachineAgent\\himds.exe`,linux:"/opt/azcmagent/bin/himds"};class AzureArc extends BaseManagedIdentitySource{constructor(e,t,n,o,i,a){super(e,t,n,o,i);this.identityEndpoint=a}static getEnvironmentVariables(){let e=process.env[li.IDENTITY_ENDPOINT];let t=process.env[li.IMDS_ENDPOINT];if(!e||!t){const n=Zl[process.platform];try{(0,Wl.accessSync)(n,Wl.constants.F_OK|Wl.constants.R_OK);e=Yl;t=Jl}catch(e){}}return[e,t]}static tryCreate(e,t,n,o,i,a){const[d,f]=AzureArc.getEnvironmentVariables();if(!d||!f){e.info(`[Managed Identity] ${ui.AZURE_ARC} managed identity is unavailable through environment variables because one or both of '${li.IDENTITY_ENDPOINT}' and '${li.IMDS_ENDPOINT}' are not defined. ${ui.AZURE_ARC} managed identity is also unavailable through file detection.`,"");return null}if(f===Jl){e.info(`[Managed Identity] ${ui.AZURE_ARC} managed identity is available through file detection. Defaulting to known ${ui.AZURE_ARC} endpoint: ${Yl}. Creating ${ui.AZURE_ARC} managed identity.`,"")}else{const t=AzureArc.getValidatedEnvVariableUrlString(li.IDENTITY_ENDPOINT,d,ui.AZURE_ARC,e);t.endsWith("/")?t.slice(0,-1):t;AzureArc.getValidatedEnvVariableUrlString(li.IMDS_ENDPOINT,f,ui.AZURE_ARC,e);e.info(`[Managed Identity] Environment variables validation passed for ${ui.AZURE_ARC} managed identity. Endpoint URI: ${t}. Creating ${ui.AZURE_ARC} managed identity.`,"")}if(a.idType!==di.SYSTEM_ASSIGNED){throw createManagedIdentityError(rl)}return new AzureArc(e,t,n,o,i,d)}createRequest(e){const t=new ManagedIdentityRequestParameters(pi.GET,this.identityEndpoint.replace("localhost","127.0.0.1"));t.headers[ai.METADATA_HEADER_NAME]="true";t.queryParameters[ci.API_VERSION]=Ql;t.queryParameters[ci.RESOURCE]=e;return t}async getServerTokenResponseAsync(e,t,n,o){let i;if(e.status===Hr){const a=e.headers["www-authenticate"];if(!a){throw createManagedIdentityError(cl)}if(!a.includes("Basic realm=")){throw createManagedIdentityError(ll)}const d=a.split("Basic realm=")[1];if(!Xl.hasOwnProperty(process.platform)){throw createManagedIdentityError(nl)}const f=Xl[process.platform];const m=Kl.basename(d);if(!m.endsWith(".key")){throw createManagedIdentityError(Yc)}if(f+m!==d){throw createManagedIdentityError(Jc)}let h;try{h=await(0,Wl.statSync)(d).size}catch(e){throw createManagedIdentityError(sl)}if(h>bi){throw createManagedIdentityError(Zc)}let C;try{C=(0,Wl.readFileSync)(d,Zo.UTF8)}catch(e){throw createManagedIdentityError(sl)}const P=`Basic ${C}`;this.logger.info(`[Managed Identity] Adding authorization header to the request.`,"");n.headers[ai.AUTHORIZATION_HEADER_NAME]=P;try{i=await t.sendGetRequestAsync(n.computeUri(),o)}catch(e){if(e instanceof AuthError){throw e}else{throw ClientAuthError_createClientAuthError(Oi)}}}return this.getServerTokenResponse(i||e)}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class CloudShell extends BaseManagedIdentitySource{constructor(e,t,n,o,i,a){super(e,t,n,o,i);this.msiEndpoint=a}static getEnvironmentVariables(){const e=process.env[li.MSI_ENDPOINT];return[e]}static tryCreate(e,t,n,o,i,a){const[d]=CloudShell.getEnvironmentVariables();if(!d){e.info(`[Managed Identity] ${ui.CLOUD_SHELL} managed identity is unavailable because the '${li.MSI_ENDPOINT} environment variable is not defined.`,"");return null}const f=CloudShell.getValidatedEnvVariableUrlString(li.MSI_ENDPOINT,d,ui.CLOUD_SHELL,e);e.info(`[Managed Identity] Environment variable validation passed for ${ui.CLOUD_SHELL} managed identity. Endpoint URI: ${f}. Creating ${ui.CLOUD_SHELL} managed identity.`,"");if(a.idType!==di.SYSTEM_ASSIGNED){throw createManagedIdentityError(ol)}return new CloudShell(e,t,n,o,i,d)}createRequest(e){const t=new ManagedIdentityRequestParameters(pi.POST,this.msiEndpoint);t.headers[ai.METADATA_HEADER_NAME]="true";t.bodyParameters[ci.RESOURCE]=e;return t}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ExponentialRetryStrategy{constructor(e,t,n){this.minExponentialBackoff=e;this.maxExponentialBackoff=t;this.exponentialDeltaBackoff=n}calculateDelay(e){if(e===0){return this.minExponentialBackoff}const t=Math.min(Math.pow(2,e-1)*this.exponentialDeltaBackoff,this.maxExponentialBackoff);return t}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const eu=[Vr,Gr,Wr,Kr];const tu=3;const nu=7;const ru=1e3;const ou=4e3;const iu=2e3;const su=10*1e3;class ImdsRetryPolicy{constructor(){this.exponentialRetryStrategy=new ExponentialRetryStrategy(ImdsRetryPolicy.MIN_EXPONENTIAL_BACKOFF_MS,ImdsRetryPolicy.MAX_EXPONENTIAL_BACKOFF_MS,ImdsRetryPolicy.EXPONENTIAL_DELTA_BACKOFF_MS)}static get MIN_EXPONENTIAL_BACKOFF_MS(){return ru}static get MAX_EXPONENTIAL_BACKOFF_MS(){return ou}static get EXPONENTIAL_DELTA_BACKOFF_MS(){return iu}static get HTTP_STATUS_GONE_RETRY_AFTER_MS(){return su}set isNewRequest(e){this._isNewRequest=e}async pauseForRetry(e,t,n){if(this._isNewRequest){this._isNewRequest=false;this.maxRetries=e===Wr?nu:tu}if((eu.includes(e)||e>=Jr&&e<=eo&&t<this.maxRetries)&&t<this.maxRetries){const o=e===Wr?ImdsRetryPolicy.HTTP_STATUS_GONE_RETRY_AFTER_MS:this.exponentialRetryStrategy.calculateDelay(t);n.verbose(`Retrying request in ${o}ms (retry attempt: ${t+1})`,"");await new Promise((e=>setTimeout(e,o)));return true}return false}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const au="/metadata/identity/oauth2/token";const cu=`http://169.254.169.254${au}`;const lu="2018-02-01";class Imds extends BaseManagedIdentitySource{constructor(e,t,n,o,i,a){super(e,t,n,o,i);this.identityEndpoint=a}static tryCreate(e,t,n,o,i){let a;if(process.env[li.AZURE_POD_IDENTITY_AUTHORITY_HOST]){e.info(`[Managed Identity] Environment variable ${li.AZURE_POD_IDENTITY_AUTHORITY_HOST} for ${ui.IMDS} returned endpoint: ${process.env[li.AZURE_POD_IDENTITY_AUTHORITY_HOST]}`,"");a=Imds.getValidatedEnvVariableUrlString(li.AZURE_POD_IDENTITY_AUTHORITY_HOST,`${process.env[li.AZURE_POD_IDENTITY_AUTHORITY_HOST]}${au}`,ui.IMDS,e)}else{e.info(`[Managed Identity] Unable to find ${li.AZURE_POD_IDENTITY_AUTHORITY_HOST} environment variable for ${ui.IMDS}, using the default endpoint.`,"");a=cu}return new Imds(e,t,n,o,i,a)}createRequest(e,t){const n=new ManagedIdentityRequestParameters(pi.GET,this.identityEndpoint);n.headers[ai.METADATA_HEADER_NAME]="true";n.queryParameters[ci.API_VERSION]=lu;n.queryParameters[ci.RESOURCE]=e;if(t.idType!==di.SYSTEM_ASSIGNED){n.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(t.idType,true)]=t.id}n.retryPolicy=new ImdsRetryPolicy;return n}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const uu="2019-07-01-preview";class ServiceFabric extends BaseManagedIdentitySource{constructor(e,t,n,o,i,a,d){super(e,t,n,o,i);this.identityEndpoint=a;this.identityHeader=d}static getEnvironmentVariables(){const e=process.env[li.IDENTITY_ENDPOINT];const t=process.env[li.IDENTITY_HEADER];const n=process.env[li.IDENTITY_SERVER_THUMBPRINT];return[e,t,n]}static tryCreate(e,t,n,o,i,a){const[d,f,m]=ServiceFabric.getEnvironmentVariables();if(!d||!f||!m){e.info(`[Managed Identity] ${ui.SERVICE_FABRIC} managed identity is unavailable because one or all of the '${li.IDENTITY_HEADER}', '${li.IDENTITY_ENDPOINT}' or '${li.IDENTITY_SERVER_THUMBPRINT}' environment variables are not defined.`,"");return null}const h=ServiceFabric.getValidatedEnvVariableUrlString(li.IDENTITY_ENDPOINT,d,ui.SERVICE_FABRIC,e);e.info(`[Managed Identity] Environment variables validation passed for ${ui.SERVICE_FABRIC} managed identity. Endpoint URI: ${h}. Creating ${ui.SERVICE_FABRIC} managed identity.`,"");if(a.idType!==di.SYSTEM_ASSIGNED){e.warning(`[Managed Identity] ${ui.SERVICE_FABRIC} user assigned managed identity is configured in the cluster, not during runtime. See also: https://learn.microsoft.com/en-us/azure/service-fabric/configure-existing-cluster-enable-managed-identity-token-service.`,"")}return new ServiceFabric(e,t,n,o,i,d,f)}createRequest(e,t){const n=new ManagedIdentityRequestParameters(pi.GET,this.identityEndpoint);n.headers[ai.ML_AND_SF_SECRET_HEADER_NAME]=this.identityHeader;n.queryParameters[ci.API_VERSION]=uu;n.queryParameters[ci.RESOURCE]=e;if(t.idType!==di.SYSTEM_ASSIGNED){n.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(t.idType)]=t.id}return n}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const du="2017-09-01";const pu=`Only client id is supported for user-assigned managed identity in ${ui.MACHINE_LEARNING}.`;class MachineLearning extends BaseManagedIdentitySource{constructor(e,t,n,o,i,a,d){super(e,t,n,o,i);this.msiEndpoint=a;this.secret=d}static getEnvironmentVariables(){const e=process.env[li.MSI_ENDPOINT];const t=process.env[li.MSI_SECRET];return[e,t]}static tryCreate(e,t,n,o,i){const[a,d]=MachineLearning.getEnvironmentVariables();if(!a||!d){e.info(`[Managed Identity] ${ui.MACHINE_LEARNING} managed identity is unavailable because one or both of the '${li.MSI_ENDPOINT}' and '${li.MSI_SECRET}' environment variables are not defined.`,"");return null}const f=MachineLearning.getValidatedEnvVariableUrlString(li.MSI_ENDPOINT,a,ui.MACHINE_LEARNING,e);e.info(`[Managed Identity] Environment variables validation passed for ${ui.MACHINE_LEARNING} managed identity. Endpoint URI: ${f}. Creating ${ui.MACHINE_LEARNING} managed identity.`,"");return new MachineLearning(e,t,n,o,i,a,d)}createRequest(e,t){const n=new ManagedIdentityRequestParameters(pi.GET,this.msiEndpoint);n.headers[ai.METADATA_HEADER_NAME]="true";n.headers[ai.ML_AND_SF_SECRET_HEADER_NAME]=this.secret;n.queryParameters[ci.API_VERSION]=du;n.queryParameters[ci.RESOURCE]=e;if(t.idType===di.SYSTEM_ASSIGNED){n.queryParameters[jl.MANAGED_IDENTITY_CLIENT_ID_2017]=process.env[li.DEFAULT_IDENTITY_CLIENT_ID]}else if(t.idType===di.USER_ASSIGNED_CLIENT_ID){n.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(t.idType,false,true)]=t.id}else{throw new Error(pu)}return n}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +class ManagedIdentityClient{constructor(e,t,n,o,i){this.logger=e;this.nodeStorage=t;this.networkClient=n;this.cryptoProvider=o;this.disableInternalRetries=i}async sendManagedIdentityTokenRequest(e,t,n,o){if(!ManagedIdentityClient.identitySource){ManagedIdentityClient.identitySource=this.selectManagedIdentitySource(this.logger,this.nodeStorage,this.networkClient,this.cryptoProvider,this.disableInternalRetries,t)}return ManagedIdentityClient.identitySource.acquireTokenWithManagedIdentity(e,t,n,o)}allEnvironmentVariablesAreDefined(e){return Object.values(e).every((e=>e!==undefined))}getManagedIdentitySource(){ManagedIdentityClient.sourceName=this.allEnvironmentVariablesAreDefined(ServiceFabric.getEnvironmentVariables())?ui.SERVICE_FABRIC:this.allEnvironmentVariablesAreDefined(AppService.getEnvironmentVariables())?ui.APP_SERVICE:this.allEnvironmentVariablesAreDefined(MachineLearning.getEnvironmentVariables())?ui.MACHINE_LEARNING:this.allEnvironmentVariablesAreDefined(CloudShell.getEnvironmentVariables())?ui.CLOUD_SHELL:this.allEnvironmentVariablesAreDefined(AzureArc.getEnvironmentVariables())?ui.AZURE_ARC:ui.DEFAULT_TO_IMDS;return ManagedIdentityClient.sourceName}selectManagedIdentitySource(e,t,n,o,i,a){const d=ServiceFabric.tryCreate(e,t,n,o,i,a)||AppService.tryCreate(e,t,n,o,i)||MachineLearning.tryCreate(e,t,n,o,i)||CloudShell.tryCreate(e,t,n,o,i,a)||AzureArc.tryCreate(e,t,n,o,i,a)||Imds.tryCreate(e,t,n,o,i);if(!d){throw createManagedIdentityError(il)}return d}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const fu=[ui.SERVICE_FABRIC];class ManagedIdentityApplication{constructor(e){this.config=buildManagedIdentityConfiguration(e||{});this.logger=new Logger(this.config.system.loggerOptions,Ll,Ul);const t={canonicalAuthority:cr};if(!ManagedIdentityApplication.nodeStorage){ManagedIdentityApplication.nodeStorage=new NodeStorage(this.logger,this.config.managedIdentityId.id,Cc,t)}this.networkClient=this.config.system.networkClient;this.cryptoProvider=new CryptoProvider;const n={protocolMode:Wa.AAD,knownAuthorities:[si],cloudDiscoveryMetadata:"",authorityMetadata:""};this.fakeAuthority=new Authority(si,this.networkClient,ManagedIdentityApplication.nodeStorage,n,this.logger,this.cryptoProvider.createNewGuid(),new StubPerformanceClient,true);this.fakeClientCredentialClient=new ClientCredentialClient({authOptions:{clientId:this.config.managedIdentityId.id,authority:this.fakeAuthority}});this.managedIdentityClient=new ManagedIdentityClient(this.logger,ManagedIdentityApplication.nodeStorage,this.networkClient,this.cryptoProvider,this.config.disableInternalRetries);this.hashUtils=new HashUtils}async acquireToken(e){if(!e.resource){throw createClientConfigurationError(ba)}const t={forceRefresh:e.forceRefresh,resource:e.resource.replace("/.default",""),scopes:[e.resource.replace("/.default","")],authority:this.fakeAuthority.canonicalAuthority,correlationId:this.cryptoProvider.createNewGuid(),claims:e.claims,clientCapabilities:this.config.clientCapabilities};if(t.forceRefresh){return this.acquireTokenFromManagedIdentity(t,this.config.managedIdentityId,this.fakeAuthority)}const[n,o]=await this.fakeClientCredentialClient.getCachedAuthenticationResult(t,this.config,this.cryptoProvider,this.fakeAuthority,ManagedIdentityApplication.nodeStorage);if(t.claims){const e=this.managedIdentityClient.getManagedIdentitySource();if(n&&fu.includes(e)){const e=this.hashUtils.sha256(n.accessToken).toString(Zo.HEX);t.revokedTokenSha256Hash=e}return this.acquireTokenFromManagedIdentity(t,this.config.managedIdentityId,this.fakeAuthority)}if(n){if(o===Qo.PROACTIVELY_REFRESHED){this.logger.info("ClientCredentialClient:getCachedAuthenticationResult - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.",t.correlationId);const e=true;await this.acquireTokenFromManagedIdentity(t,this.config.managedIdentityId,this.fakeAuthority,e)}return n}else{return this.acquireTokenFromManagedIdentity(t,this.config.managedIdentityId,this.fakeAuthority)}}async acquireTokenFromManagedIdentity(e,t,n,o){return this.managedIdentityClient.sendManagedIdentityTokenRequest(e,t,n,o)}getManagedIdentitySource(){return ManagedIdentityClient.sourceName||this.managedIdentityClient.getManagedIdentitySource()}} +/*! @azure/msal-node v5.1.1 2026-03-18 */ +const mu=lo;const hu=fo;function random_getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const i=o/2+random_getRandomIntegerInclusive(0,o/2);return{retryAfterInMs:i}}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}var gu=__nccwpck_require__(7598);async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return createHmac("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}const yu=typeof window!=="undefined"&&typeof window.document!=="undefined";const Su=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Eu=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const vu=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Cu=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const Iu=Cu&&!vu&&!Eu;const bu=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";function bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:o,abortErrorMsg:i}=t??{};return new Promise(((t,a)=>{function rejectOnAbort(){a(new AbortError(i??"The operation was aborted."))}function removeListeners(){o?.removeEventListener("abort",onAbort)}function onAbort(){n?.();removeListeners();rejectOnAbort()}if(o?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();a(e)}))}catch(e){a(e)}o?.addEventListener("abort",onAbort)}))}const wu="The delay was aborted.";function delay_delay(e,t){let n;const{abortSignal:o,abortErrorMsg:i}=t??{};return createAbortablePromise((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:i??wu})}function delay_calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const i=o/2+getRandomIntegerInclusive(0,o/2);return{retryAfterInMs:i}}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}function isDefined(e){return typeof e!=="undefined"&&e!==null}function typeGuards_isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}function esm_calculateRetryDelay(e,t){return calculateRetryDelay(e,t)}function esm_computeSha256Hash(e,t){return tspRuntime.computeSha256Hash(e,t)}function esm_computeSha256Hmac(e,t,n){return tspRuntime.computeSha256Hmac(e,t,n)}function esm_getRandomIntegerInclusive(e,t){return tspRuntime.getRandomIntegerInclusive(e,t)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function randomUUID(){return tspRuntime.randomUUID()}const Au=yu;const Ru=vu;const Pu=Eu;const Tu=Cu;const xu=Cu;const _u=Iu;const Ou=bu;const Mu=Su;function esm_uint8ArrayToString(e,t){return bytesEncoding_uint8ArrayToString(e,t)}function esm_stringToUint8Array(e,t){return bytesEncoding_stringToUint8Array(e,t)}const Du=credentialLogger("IdentityUtils");const $u="1.0";function ensureValidMsalToken(e,t,n){const error=t=>{Du.getToken.info(t);return new AuthenticationRequiredError({scopes:Array.isArray(e)?e:[e],getTokenOptions:n,message:t})};if(!t){throw error("No response")}if(!t.expiresOn){throw error(`Response had no "expiresOn" property.`)}if(!t.accessToken){throw error(`Response had no "accessToken" property.`)}}function getAuthorityHost(e){let t=e?.authorityHost;if(!t&&xu){t=process.env.AZURE_AUTHORITY_HOST}return t??En}function getAuthority(e,t){if(!t){t=En}if(new RegExp(`${e}/?$`).test(t)){return t}if(t.endsWith("/")){return t+e}else{return`${t}/${e}`}}function getKnownAuthorities(e,t,n){if(e==="adfs"&&t||n){return[t]}return[]}const defaultLoggerCallback=(e,t=(Tu?"Node":"Browser"))=>(n,o,i)=>{if(i){return}switch(n){case ei.Error:e.info(`MSAL ${t} V2 error: ${o}`);return;case ei.Info:e.info(`MSAL ${t} V2 info message: ${o}`);return;case ei.Verbose:e.info(`MSAL ${t} V2 verbose message: ${o}`);return;case ei.Warning:e.info(`MSAL ${t} V2 warning: ${o}`);return}};function getMSALLogLevel(e){switch(e){case"error":return ei.Error;case"info":return ei.Info;case"verbose":return ei.Verbose;case"warning":return ei.Warning;default:return ei.Info}}function utils_randomUUID(){return coreRandomUUID()}function handleMsalError(e,t,n){if(t.name==="AuthError"||t.name==="ClientAuthError"||t.name==="BrowserAuthError"){const n=t;switch(n.errorCode){case"endpoints_resolution_error":Du.info(logging_formatError(e,t.message));return new errors_CredentialUnavailableError(t.message);case"device_code_polling_cancelled":return new AbortError("The authentication has been aborted by the caller.");case"consent_required":case"interaction_required":case"login_required":Du.info(logging_formatError(e,`Authentication returned errorCode ${n.errorCode}`));break;default:Du.info(logging_formatError(e,`Failed to acquire token: ${t.message}`));break}}if(t.name==="ClientConfigurationError"||t.name==="BrowserConfigurationAuthError"||t.name==="AbortError"||t.name==="AuthenticationError"){return t}if(t.name==="NativeAuthError"){Du.info(logging_formatError(e,`Error from the native broker: ${t.message} with status code: ${t.statusCode}`));return t}return new AuthenticationRequiredError({scopes:e,getTokenOptions:n,message:t.message})}function publicToMsal(e){return{localAccountId:e.homeAccountId,environment:e.authority,username:e.username,homeAccountId:e.homeAccountId,tenantId:e.tenantId}}function msalToPublic(e,t){const n={authority:t.environment??vn,homeAccountId:t.homeAccountId,tenantId:t.tenantId||yn,username:t.username,clientId:e,version:$u};return n}function serializeAuthenticationRecord(e){return JSON.stringify(e)}function deserializeAuthenticationRecord(e){const t=JSON.parse(e);if(t.version&&t.version!==$u){throw Error("Unsupported AuthenticationRecord version")}return t}class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,n){const failValidation=(e,o)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${o}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:n,ExclusiveMinimum:o,InclusiveMaximum:i,InclusiveMinimum:a,MaxItems:d,MaxLength:f,MinItems:m,MinLength:h,MultipleOf:C,Pattern:P,UniqueItems:D}=e.constraints;if(n!==undefined&&t>=n){failValidation("ExclusiveMaximum",n)}if(o!==undefined&&t<=o){failValidation("ExclusiveMinimum",o)}if(i!==undefined&&t>i){failValidation("InclusiveMaximum",i)}if(a!==undefined&&t<a){failValidation("InclusiveMinimum",a)}if(d!==undefined&&t.length>d){failValidation("MaxItems",d)}if(f!==undefined&&t.length>f){failValidation("MaxLength",f)}if(m!==undefined&&t.length<m){failValidation("MinItems",m)}if(h!==undefined&&t.length<h){failValidation("MinLength",h)}if(C!==undefined&&t%C!==0){failValidation("MultipleOf",C)}if(P){const e=typeof P==="string"?new RegExp(P):P;if(typeof t!=="string"||t.match(e)===null){failValidation("Pattern",P)}}if(D&&t.some(((e,t,n)=>n.indexOf(e)!==t))){failValidation("UniqueItems",D)}}}serialize(e,t,n,o={xml:{}}){const i={xml:{rootName:o.xml.rootName??"",includeRoot:o.xml.includeRoot??false,xmlCharKey:o.xml.xmlCharKey??XML_CHARKEY}};let a={};const d=e.type.name;if(!n){n=e.serializedName}if(d.match(/^Sequence$/i)!==null){a=[]}if(e.isConstant){t=e.defaultValue}const{required:f,nullable:m}=e;if(f&&m&&t===undefined){throw new Error(`${n} cannot be undefined.`)}if(f&&!m&&(t===undefined||t===null)){throw new Error(`${n} cannot be null or undefined.`)}if(!f&&m===false&&t===null){throw new Error(`${n} cannot be null.`)}if(t===undefined||t===null){a=t}else{if(d.match(/^any$/i)!==null){a=t}else if(d.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){a=serializeBasicTypes(d,n,t)}else if(d.match(/^Enum$/i)!==null){const o=e;a=serializeEnumType(n,o.type.allowedValues,t)}else if(d.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){a=serializeDateTypes(d,t,n)}else if(d.match(/^ByteArray$/i)!==null){a=serializeByteArrayType(n,t)}else if(d.match(/^Base64Url$/i)!==null){a=serializeBase64UrlType(n,t)}else if(d.match(/^Sequence$/i)!==null){a=serializeSequenceType(this,e,t,n,Boolean(this.isXML),i)}else if(d.match(/^Dictionary$/i)!==null){a=serializeDictionaryType(this,e,t,n,Boolean(this.isXML),i)}else if(d.match(/^Composite$/i)!==null){a=serializeCompositeType(this,e,t,n,Boolean(this.isXML),i)}}return a}deserialize(e,t,n,o={xml:{}}){const i={xml:{rootName:o.xml.rootName??"",includeRoot:o.xml.includeRoot??false,xmlCharKey:o.xml.xmlCharKey??XML_CHARKEY},ignoreUnknownProperties:o.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let a;const d=e.type.name;if(!n){n=e.serializedName}if(d.match(/^Composite$/i)!==null){a=deserializeCompositeType(this,e,t,n,i)}else{if(this.isXML){const e=i.xml.xmlCharKey;if(t[XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(d.match(/^Number$/i)!==null){a=parseFloat(t);if(isNaN(a)){a=t}}else if(d.match(/^Boolean$/i)!==null){if(t==="true"){a=true}else if(t==="false"){a=false}else{a=t}}else if(d.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){a=t}else if(d.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){a=new Date(t)}else if(d.match(/^UnixTime$/i)!==null){a=unixTimeToDate(t)}else if(d.match(/^ByteArray$/i)!==null){a=base64.decodeString(t)}else if(d.match(/^Base64Url$/i)!==null){a=base64UrlToByteArray(t)}else if(d.match(/^Sequence$/i)!==null){a=deserializeSequenceType(this,e,t,n,i)}else if(d.match(/^Dictionary$/i)!==null){a=deserializeDictionaryType(this,e,t,n,i)}}if(e.isConstant){a=e.defaultValue}return a}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let n=e.length;while(n-1>=0&&e[n-1]===t){--n}return e.substr(0,n)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=base64.encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return base64.decodeString(e)}function splitSerializeName(e){const t=[];let n="";if(e){const o=e.split(".");for(const e of o){if(e.charAt(e.length-1)==="\\"){n+=e.substr(0,e.length-1)+"."}else{n+=e;t.push(n);n=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,n){if(n!==null&&n!==undefined){if(e.match(/^Number$/i)!==null){if(typeof n!=="number"){throw new Error(`${t} with value ${n} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=="string"){throw new Error(`${t} with value "${n}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==="string"&&isValidUuid(n))){throw new Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=="boolean"){throw new Error(`${t} with value ${n} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof n;if(e!=="string"&&typeof n.pipe!=="function"&&typeof n.tee!=="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==="function"||typeof Blob==="object")&&n instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return n}function serializeEnumType(e,t,n){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const o=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===n.toLowerCase()}return e===n}));if(!o){throw new Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return n}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=base64.encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,n){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,n,o,i,a){if(!Array.isArray(n)){throw new Error(`${o} must be of type Array.`)}let d=t.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}.`)}if(d.type.name==="Composite"&&d.type.className){d=e.modelMappers[d.type.className]??d}const f=[];for(let t=0;t<n.length;t++){const m=e.serialize(d,n[t],o,a);if(i&&d.xmlNamespace){const e=d.xmlNamespacePrefix?`xmlns:${d.xmlNamespacePrefix}`:"xmlns";if(d.type.name==="Composite"){f[t]={...m};f[t][XML_ATTRKEY]={[e]:d.xmlNamespace}}else{f[t]={};f[t][a.xml.xmlCharKey]=m;f[t][XML_ATTRKEY]={[e]:d.xmlNamespace}}}else{f[t]=m}}return f}function serializeDictionaryType(e,t,n,o,i,a){if(typeof n!=="object"){throw new Error(`${o} must be of type object.`)}const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${o}.`)}const f={};for(const t of Object.keys(n)){const m=e.serialize(d,n[t],o,a);f[t]=getXmlObjectValue(d,m,i,a)}if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";const n=f;n[XML_ATTRKEY]={[e]:t.xmlNamespace};return n}return f}function resolveAdditionalProperties(e,t,n){const o=t.type.additionalProperties;if(!o&&t.type.className){const o=resolveReferencedMapper(e,t,n);return o?.type.additionalProperties}return o}function resolveReferencedMapper(e,t,n){const o=t.type.className;if(!o){throw new Error(`Class name for model "${n}" is not provided in the mapper "${JSON.stringify(t,undefined,2)}".`)}return e.modelMappers[o]}function resolveModelProperties(e,t,n){let o=t.type.modelProperties;if(!o){const i=resolveReferencedMapper(e,t,n);if(!i){throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`)}o=i?.type.modelProperties;if(!o){throw new Error(`modelProperties cannot be null or undefined in the `+`mapper "${JSON.stringify(i)}" of type "${t.type.className}" for object "${n}".`)}}return o}function serializeCompositeType(e,t,n,o,i,a){if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"clientName")}if(n!==undefined&&n!==null){const d={};const f=resolveModelProperties(e,t,o);for(const m of Object.keys(f)){const h=f[m];if(h.readOnly){continue}let C;let P=d;if(e.isXML){if(h.xmlIsWrapped){C=h.xmlName}else{C=h.xmlElementName||h.xmlName}}else{const e=splitSerializeName(h.serializedName);C=e.pop();for(const t of e){const e=P[t];if((e===undefined||e===null)&&(n[m]!==undefined&&n[m]!==null||h.defaultValue!==undefined)){P[t]={}}P=P[t]}}if(P!==undefined&&P!==null){if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";P[XML_ATTRKEY]={...P[XML_ATTRKEY],[e]:t.xmlNamespace}}const d=h.serializedName!==""?o+"."+h.serializedName:o;let f=n[m];const D=getPolymorphicDiscriminatorRecursively(e,t);if(D&&D.clientName===m&&(f===undefined||f===null)){f=t.serializedName}const k=e.serialize(h,f,d,a);if(k!==undefined&&C!==undefined&&C!==null){const e=getXmlObjectValue(h,k,i,a);if(i&&h.xmlIsAttribute){P[XML_ATTRKEY]=P[XML_ATTRKEY]||{};P[XML_ATTRKEY][C]=k}else if(i&&h.xmlIsWrapped){P[C]={[h.xmlElementName]:e}}else{P[C]=e}}}}const m=resolveAdditionalProperties(e,t,o);if(m){const t=Object.keys(f);for(const i in n){const f=t.every((e=>e!==i));if(f){d[i]=e.serialize(m,n[i],o+'["'+i+'"]',a)}}}return d}return n}function getXmlObjectValue(e,t,n,o){if(!n||!e.xmlNamespace){return t}const i=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const a={[i]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[XML_ATTRKEY]){return t}else{const e={...t};e[XML_ATTRKEY]=a;return e}}const d={};d[o.xml.xmlCharKey]=t;d[XML_ATTRKEY]=a;return d}function isSpecialXmlProperty(e,t){return[XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,n,o,i){const a=i.xml.xmlCharKey??XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"serializedName")}const d=resolveModelProperties(e,t,o);let f={};const m=[];for(const h of Object.keys(d)){const C=d[h];const P=splitSerializeName(d[h].serializedName);m.push(P[0]);const{serializedName:D,xmlName:k,xmlElementName:L}=C;let F=o;if(D!==""&&D!==undefined){F=o+"."+D}const q=C.headerCollectionPrefix;if(q){const t={};for(const o of Object.keys(n)){if(o.startsWith(q)){t[o.substring(q.length)]=e.deserialize(C.type.value,n[o],F,i)}m.push(o)}f[h]=t}else if(e.isXML){if(C.xmlIsAttribute&&n[XML_ATTRKEY]){f[h]=e.deserialize(C,n[XML_ATTRKEY][k],F,i)}else if(C.xmlIsMsText){if(n[a]!==undefined){f[h]=n[a]}else if(typeof n==="string"){f[h]=n}}else{const t=L||k||D;if(C.xmlIsWrapped){const t=n[k];const o=t?.[L]??[];f[h]=e.deserialize(C,o,F,i);m.push(k)}else{const o=n[t];f[h]=e.deserialize(C,o,F,i);m.push(t)}}}else{let o;let a=n;let m=0;for(const e of P){if(!a)break;m++;a=a[e]}if(a===null&&m<P.length){a=undefined}o=a;const D=t.type.polymorphicDiscriminator;if(D&&h===D.clientName&&(o===undefined||o===null)){o=t.serializedName}let k;if(Array.isArray(n[h])&&d[h].serializedName===""){o=n[h];const t=e.deserialize(C,o,F,i);for(const[e,n]of Object.entries(f)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=n}}f=t}else if(o!==undefined||C.defaultValue!==undefined){k=e.deserialize(C,o,F,i);f[h]=k}}}const h=t.type.additionalProperties;if(h){const isAdditionalProperty=e=>{for(const t in d){const n=splitSerializeName(d[t].serializedName);if(n[0]===e){return false}}return true};for(const t in n){if(isAdditionalProperty(t)){f[t]=e.deserialize(h,n[t],o+'["'+t+'"]',i)}}}else if(n&&!i.ignoreUnknownProperties){for(const e of Object.keys(n)){if(f[e]===undefined&&!m.includes(e)&&!isSpecialXmlProperty(e,i)){f[e]=n[e]}}}return f}function deserializeDictionaryType(e,t,n,o,i){const a=t.type.value;if(!a||typeof a!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){const t={};for(const d of Object.keys(n)){t[d]=e.deserialize(a,n[d],o,i)}return t}return n}function deserializeSequenceType(e,t,n,o,i){let a=t.type.element;if(!a||typeof a!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){if(!Array.isArray(n)){n=[n]}if(a.type.name==="Composite"&&a.type.className){a=e.modelMappers[a.type.className]??a}const t=[];for(let d=0;d<n.length;d++){t[d]=e.deserialize(a,n[d],`${o}[${d}]`,i)}return t}return n}function getIndexDiscriminator(e,t,n){const o=[n];while(o.length){const n=o.shift();const i=t===n?t:n+"."+t;if(Object.prototype.hasOwnProperty.call(e,i)){return e[i]}else{for(const[t,i]of Object.entries(e)){if(t.startsWith(n+".")&&i.type.uberParent===n&&i.type.className){o.push(i.type.className)}}}}return undefined}function getPolymorphicMapper(e,t,n,o){const i=getPolymorphicDiscriminatorRecursively(e,t);if(i){let a=i[o];if(a){if(o==="serializedName"){a=a.replace(/\\/gi,"")}const i=n[a];const d=t.type.uberParent??t.type.className;if(typeof i==="string"&&d){const n=getIndexDiscriminator(e.modelMappers.discriminators,i,d);if(n){t=n}}}}return t}function getPolymorphicDiscriminatorRecursively(e,t){return t.type.polymorphicDiscriminator||getPolymorphicDiscriminatorSafely(e,t.type.uberParent)||getPolymorphicDiscriminatorSafely(e,t.type.className)}function getPolymorphicDiscriminatorSafely(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}const Nu={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"};class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function log_log(e,...t){qn.stderr.write(`${Bn.format(e,...t)}${Fn.EOL}`)}const ku=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let Lu;let Uu=[];let Fu=[];const Bu=[];if(ku){debug_enable(ku)}const qu=Object.assign((e=>debug_createDebugger(e)),{enable:debug_enable,enabled:debug_enabled,disable:debug_disable,log:log_log});function debug_enable(e){Lu=e;Uu=[];Fu=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){Fu.push(e.substring(1))}else{Uu.push(e)}}for(const e of Bu){e.enabled=debug_enabled(e.namespace)}}function debug_enabled(e){if(e.endsWith("*")){return true}for(const t of Fu){if(debug_namespaceMatches(e,t)){return false}}for(const t of Uu){if(debug_namespaceMatches(e,t)){return true}}return false}function debug_namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let n=t;if(t.indexOf("**")!==-1){const e=[];let o="";for(const n of t){if(n==="*"&&o==="*"){continue}else{o=n;e.push(n)}}n=e.join("")}let o=0;let i=0;const a=n.length;const d=e.length;let f=-1;let m=-1;while(o<d&&i<a){if(n[i]==="*"){f=i;i++;if(i===a){return true}while(e[o]!==n[i]){o++;if(o===d){return false}}m=o;o++;i++;continue}else if(n[i]===e[o]){i++;o++}else if(f>=0){i=f+1;o=m+1;if(o===d){return false}while(e[o]!==n[i]){o++;if(o===d){return false}}m=o;o++;i++;continue}else{return false}}const h=o===e.length;const C=i===n.length;const P=i===n.length-1&&n[i]==="*";return h&&(C||P)}function debug_disable(){const e=Lu||"";debug_enable("");return e}function debug_createDebugger(e){const t=Object.assign(debug,{enabled:debug_enabled(e),destroy:debug_destroy,log:qu.log,namespace:e,extend:debug_extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}Bu.push(t);return t}function debug_destroy(){const e=Bu.indexOf(this);if(e>=0){Bu.splice(e,1);return true}return false}function debug_extend(e){const t=debug_createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const ju=qu;const zu=["verbose","info","warning","error"];const Hu={verbose:400,info:300,warning:200,error:100};function logger_patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function logger_isTypeSpecRuntimeLogLevel(e){return zu.includes(e)}function logger_createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let o;const i=ju(e.namespace);i.log=(...e)=>{ju.log(...e)};function contextSetLogLevel(e){if(e&&!logger_isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${zu.join(",")}`)}o=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}ju.enable(n.join(","))}if(n){if(logger_isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${zu.join(", ")}.`)}}function shouldEnable(e){return Boolean(o&&Hu[e.level]<=Hu[o])}function createLogger(e,n){const o=Object.assign(e.extend(n),{level:n});logger_patchLogMethod(e,o);if(shouldEnable(o)){const e=ju.disable();ju.enable(e+","+o.namespace)}t.add(o);return o}function contextGetLogLevel(){return o}function contextCreateClientLogger(e){const t=i.extend(e);logger_patchLogMethod(i,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:i}}const Vu=logger_createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const Gu=Vu.logger;function logger_setLogLevel(e){Vu.setLogLevel(e)}function logger_getLogLevel(){return Vu.getLogLevel()}function logger_createClientLogger(e){return Vu.createClientLogger(e)}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function uuidUtils_randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||uuidUtils_randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const Wu=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!Wu.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!Wu.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const o=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return o(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const o=createPhase("None");const i=createPhase("Deserialize");const a=createPhase("Retry");const d=createPhase("Sign");const f=[n,o,i,a,d];function getPhase(e){if(e==="Retry"){return a}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return i}else if(e==="Sign"){return d}else{return o}}for(const e of this._policies){const n=e.policy;const o=e.options;const i=n.name;if(t.has(i)){throw new Error("Duplicate policy names not allowed in pipeline")}const a={policy:n,dependsOn:new Set,dependants:new Set};if(o.afterPhase){a.afterPhase=getPhase(o.afterPhase);a.afterPhase.hasAfterPolicies=true}t.set(i,a);const d=getPhase(o.phase);d.policies.add(a)}for(const e of this._policies){const{policy:n,options:o}=e;const i=n.name;const a=t.get(i);if(!a){throw new Error(`Missing node for policy ${i}`)}if(o.afterPolicies){for(const e of o.afterPolicies){const n=t.get(e);if(n){a.dependsOn.add(n);n.dependants.add(a)}}}if(o.beforePolicies){for(const e of o.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(a);a.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const o of n.policies){if(o.afterPhase&&(!o.afterPhase.hasRun||o.afterPhase.policies.size)){continue}if(o.dependsOn.size===0){e.push(o.policy);for(const e of o.dependants){e.dependsOn.delete(o)}t.delete(o.policy.name);n.policies.delete(o)}}}function walkPhases(){for(const e of f){walkPhase(e);if(e.policies.size>0&&e!==o){if(!o.hasRun){walkPhase(o)}return}if(e.hasAfterPolicies){walkPhase(o)}}}let m=0;while(t.size>0){m++;const t=e.length;walkPhases();if(e.length<=t&&m>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function object_isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function error_isError(e){if(object_isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}const Ku=Bn.inspect.custom;const Qu="REDACTED";const Yu=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const Ju=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Yu.concat(e);t=Ju.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return{...n,name:n.name,message:n.message}}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||object_isObject(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,Qu)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=Qu}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=Qu}}return t}}const Xu=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,Ku,{value:()=>`RestError: ${this.message} \n ${Xu.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(e){if(e instanceof restError_RestError){return true}return error_isError(e)&&e.name==="RestError"}var Zu=__nccwpck_require__(7067);var ed=__nccwpck_require__(4708);const td=e(import.meta.url)("node:zlib");var nd=__nccwpck_require__(7075);const rd=logger_createClientLogger("ts-http-runtime");const od={};function nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends nd.Transform{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let n;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError_AbortError("The operation was aborted. Request has already been canceled.")}n=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",n)}let o;if(e.timeout>0){o=setTimeout((()=>{const n=new Sanitizer;rd.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const i=e.headers.get("Accept-Encoding");const a=i?.includes("gzip")||i?.includes("deflate");let d=typeof e.body==="function"?e.body():e.body;if(d&&!e.headers.has("Content-Length")){const t=getBodyLength(d);if(t!==null){e.headers.set("Content-Length",t)}}let f;try{if(d&&e.onUploadProgress){const t=e.onUploadProgress;const n=new ReportTransform(t);n.on("error",(e=>{rd.error("Error in upload progress",e)}));if(nodeHttpClient_isReadableStream(d)){d.pipe(n)}else{n.end(d)}d=n}const n=await this.makeRequest(e,t,d);if(o!==undefined){clearTimeout(o)}const i=getResponseHeaders(n);const m=n.statusCode??0;const h={status:m,headers:i,request:e};if(e.method==="HEAD"){n.resume();return h}f=a?getDecodedResponseStream(n,i):n;const C=e.onDownloadProgress;if(C){const e=new ReportTransform(C);e.on("error",(e=>{rd.error("Error in download progress",e)}));f.pipe(e);f=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)){h.readableStreamBody=f}else{h.bodyAsText=await streamToText(f)}return h}finally{if(e.abortSignal&&n){let t=Promise.resolve();if(nodeHttpClient_isReadableStream(d)){t=isStreamComplete(d)}let o=Promise.resolve();if(nodeHttpClient_isReadableStream(f)){o=isStreamComplete(f)}Promise.all([t,o]).then((()=>{if(n){e.abortSignal?.removeEventListener("abort",n)}})).catch((e=>{rd.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){const o=new URL(e.url);const i=o.protocol!=="https:";if(i&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const a=e.agent??this.getOrCreateAgent(e,i);const d={agent:a,hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((o,a)=>{const f=i?Zu.request(d,o):ed.request(d,o);f.once("error",(t=>{a(new restError_RestError(t.message,{code:t.code??restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new AbortError_AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");f.destroy(e);a(e)}));if(n&&nodeHttpClient_isReadableStream(n)){n.pipe(f)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){f.end(n)}else if(isArrayBuffer(n)){f.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{rd.error("Unrecognized body type",n);a(new restError_RestError("Unrecognized body type"))}}else{f.end()}}))}getOrCreateAgent(e,t){const n=e.disableKeepAlive;if(t){if(n){return Zu.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new Zu.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(n&&!e.tlsSettings){return ed.globalAgent}const t=e.tlsSettings??od;let o=this.cachedHttpsAgents.get(t);if(o&&o.options.keepAlive===!n){return o}rd.info("No cached TLS Agent exist, creating a new Agent");o=new ed.Agent({keepAlive:!n,...t});this.cachedHttpsAgents.set(t,o);return o}}}function getResponseHeaders(e){const t=httpHeaders_createHttpHeaders();for(const n of Object.keys(e.headers)){const o=e.headers[n];if(Array.isArray(o)){if(o.length>0){t.set(n,o[0])}}else if(o){t.set(n,o)}}return t}function getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=td.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=td.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,n)=>{const o=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){o.push(e)}else{o.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(o).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){n(e)}else{n(new restError_RestError(`Error reading response as text: ${e.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(nodeHttpClient_isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const id="logPolicy";function logPolicy_logPolicy(e={}){const t=e.logger??rd.info;const n=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:id,async sendRequest(e,o){if(!t.enabled){return o(e)}t(`Request: ${n.sanitize(e)}`);const i=await o(e);t(`Response status code: ${i.status}`);t(`Headers: ${n.sanitize(i.headers)}`);return i}}}const sd="redirectPolicy";const ad=["GET","HEAD"];function redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20,allowCrossOriginRedirects:n=false}=e;return{name:sd,async sendRequest(e,o){const i=await o(e);return handleRedirect(o,i,t,n)}}}async function handleRedirect(e,t,n,o,i=0){const{request:a,status:d,headers:f}=t;const m=f.get("location");if(m&&(d===300||d===301&&ad.includes(a.method)||d===302&&ad.includes(a.method)||d===303&&a.method==="POST"||d===307)&&i<n){const f=new URL(m,a.url);if(!o){const e=new URL(a.url);if(f.origin!==e.origin){rd.verbose(`Skipping cross-origin redirect from ${e.origin} to ${f.origin}.`);return t}}a.url=f.toString();if(d===303){a.method="GET";a.headers.delete("Content-Length");delete a.body}a.headers.delete("Authorization");const h=await e(a);return handleRedirect(e,h,n,o,i+1)}return t}function getHeaderName(){return"User-Agent"}async function userAgentPlatform_setPlatformSpecificData(e){if(process&&process.versions){const t=`${os.type()} ${os.release()}; ${os.arch()}`;const n=process.versions;if(n.bun){e.set("Bun",`${n.bun} (${t})`)}else if(n.deno){e.set("Deno",`${n.deno} (${t})`)}else if(n.node){e.set("Node",`${n.node} (${t})`)}}}function getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return getHeaderName()}async function userAgent_getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",SDK_VERSION);await setPlatformSpecificData(t);const n=getUserAgentString(t);const o=e?`${e} ${n}`:n;return o}const cd=getUserAgentHeaderName();const ld="userAgentPolicy";function userAgentPolicy_userAgentPolicy(e={}){const t=getUserAgentValue(e.userAgentPrefix);return{name:ld,async sendRequest(e,n){if(!e.headers.has(cd)){e.headers.set(cd,await t)}return n(e)}}}function util_random_getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function util_delay_calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const i=o/2+util_random_getRandomIntegerInclusive(0,o/2);return{retryAfterInMs:i}}const ud="The operation was aborted.";function helpers_delay(e,t,n){return new Promise(((o,i)=>{let a=undefined;let d=undefined;const rejectOnAbort=()=>i(new AbortError_AbortError(n?.abortErrorMsg?n?.abortErrorMsg:ud));const removeListeners=()=>{if(n?.abortSignal&&d){n.abortSignal.removeEventListener("abort",d)}};d=()=>{if(a){clearTimeout(a)}removeListeners();return rejectOnAbort()};if(n?.abortSignal&&n.abortSignal.aborted){return rejectOnAbort()}a=setTimeout((()=>{removeListeners();o(t)}),e);if(n?.abortSignal){n.abortSignal.addEventListener("abort",d)}}))}function parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const o=Number(n);if(Number.isNaN(o))return;return o}const dd="Retry-After";const pd=["retry-after-ms","x-ms-retry-after-ms",dd];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of pd){const n=parseHeaderValueAsNumber(e,t);if(n===0||n){const e=t===dd?1e3:1;return n*e}}const t=e.headers.get(dd);if(!t)return;const n=Date.parse(t);const o=n-Date.now();return Number.isFinite(o)?Math.max(0,o):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const fd=1e3;const md=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??fd;const n=e.maxRetryDelayInMs??md;return{name:"exponentialRetryStrategy",retry({retryCount:o,response:i,responseError:a}){const d=isSystemError(a);const f=d&&e.ignoreSystemErrors;const m=isExponentialRetryResponse(i);const h=m&&e.ignoreHttpStatusCodes;const C=i&&(isThrottlingRetryResponse(i)||!m);if(C||h||f){return{skipStrategy:true}}if(a&&!d&&!m){return{errorToThrow:a}}return util_delay_calculateRetryDelay(o,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const hd="0.3.4";const gd=3;const yd=logger_createClientLogger("ts-http-runtime retryPolicy");const Sd="retryPolicy";function retryPolicy_retryPolicy(e,t={maxRetries:gd}){const n=t.logger||yd;return{name:Sd,async sendRequest(o,i){let a;let d;let f=-1;e:while(true){f+=1;a=undefined;d=undefined;try{n.info(`Retry ${f}: Attempting to send request`,o.requestId);a=await i(o);n.info(`Retry ${f}: Received a response from request`,o.requestId)}catch(e){n.error(`Retry ${f}: Received an error from request`,o.requestId);d=e;if(!e||d.name!=="RestError"){throw e}a=d.response}if(o.abortSignal?.aborted){n.error(`Retry ${f}: Request aborted.`);const e=new AbortError_AbortError;throw e}if(f>=(t.maxRetries??gd)){n.info(`Retry ${f}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(d){throw d}else if(a){return a}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${f}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${f}: Processing retry strategy ${t.name}.`);const i=t.retry({retryCount:f,response:a,responseError:d});if(i.skipStrategy){e.info(`Retry ${f}: Skipped.`);continue t}const{errorToThrow:m,retryAfterInMs:h,redirectTo:C}=i;if(m){e.error(`Retry ${f}: Retry strategy ${t.name} throws error:`,m);throw m}if(h||h===0){e.info(`Retry ${f}: Retry strategy ${t.name} retries after ${h}`);await helpers_delay(h,undefined,{abortSignal:o.abortSignal});continue e}if(C){e.info(`Retry ${f}: Retry strategy ${t.name} redirects to ${C}`);o.url=C;continue e}}if(d){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw d}if(a){n.info(`None of the retry strategies could work with the received response. Returning it.`);return a}}}}}const Ed="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Ed,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??gd}).sendRequest}}function util_bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function util_bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}const vd=typeof window!=="undefined"&&typeof window.document!=="undefined";const Cd=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Id=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const bd=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const wd=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const Ad=wd&&!bd&&!Id;const Rd=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const Pd="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[n,o]of e.entries()){t[n]??=[];t[n].push(o)}return t}function formDataPolicy_formDataPolicy(){return{name:Pd,async sendRequest(e,t){if(wd&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.append(n,e.toString())}}else{t.append(n,o.toString())}}return t.toString()}async function prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n??"multipart/form-data");const o=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){o.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:util_bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const i=httpHeaders_createHttpHeaders();i.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);i.set("Content-Type",e.type||"application/octet-stream");o.push({headers:i,body:e})}}}t.multipartBody={parts:o}}var Td=__nccwpck_require__(1475);var xd=__nccwpck_require__(4249);const _d="HTTPS_PROXY";const Od="HTTP_PROXY";const Md="ALL_PROXY";const Dd="NO_PROXY";const $d="proxyPolicy";const Nd=[];let kd=false;const Ld=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(_d);const t=getEnvironmentValue(Md);const n=getEnvironmentValue(Od);return e||t||n}function isBypassed(e,t,n){if(t.length===0){return false}const o=new URL(e).hostname;if(n?.has(o)){return n.get(o)}let i=false;for(const e of t){if(e[0]==="."){if(o.endsWith(e)){i=true}else{if(o.length===e.length-1&&o===e.slice(1)){i=true}}}else{if(o===e){i=true}}}n?.set(o,i);return i}function loadNoProxy(){const e=getEnvironmentValue(Dd);kd=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,n){if(e.agent){return}const o=new URL(e.url);const i=o.protocol!=="https:";if(e.tlsSettings){rd.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const a=e.headers.toJSON();if(i){if(!t.httpProxyAgent){t.httpProxyAgent=new xd.HttpProxyAgent(n,{headers:a})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new Td.HttpsProxyAgent(n,{headers:a})}e.agent=t.httpsProxyAgent}}function proxyPolicy_proxyPolicy(e,t){if(!kd){Nd.push(...loadNoProxy())}const n=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const o={};return{name:$d,async sendRequest(e,i){if(!e.proxySettings&&n&&!isBypassed(e.url,t?.customNoProxyList??Nd,t?.customNoProxyList?undefined:Ld)){setProxyAgentOnRequest(e,o,n)}else if(e.proxySettings){setProxyAgentOnRequest(e,o,getUrlFromProxySettings(e.proxySettings))}return i(e)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function typeGuards_isBlob(e){return typeof e.stream==="function"}var Ud=__nccwpck_require__(2203);async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:n}=await e.read();if(t){return}yield n}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return Ud.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return Ud.Readable.from(Buffer.from(e))}else if(typeGuards_isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return Ud.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${uuidUtils_randomUUID()}`}function encodeHeaders(e){let t="";for(const[n,o]of e){t+=`${n}: ${o}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(typeGuards_isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const n of e){const e=getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,n){const o=[util_bytesEncoding_stringToUint8Array(`--${n}`,"utf-8"),...t.flatMap((e=>[util_bytesEncoding_stringToUint8Array("\r\n","utf-8"),util_bytesEncoding_stringToUint8Array(encodeHeaders(e.headers),"utf-8"),util_bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,util_bytesEncoding_stringToUint8Array(`\r\n--${n}`,"utf-8")])),util_bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const i=getTotalLength(o);if(i){e.headers.set("Content-Length",i)}e.body=await concat(o)}const Fd="multipartPolicy";const Bd=70;const qd=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>Bd){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!qd.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:Fd,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let n=e.multipartBody.boundary;const o=e.headers.get("Content-Type")??"multipart/mixed";const i=o.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i){throw new Error(`Got multipart request body, but content-type header was not multipart: ${o}`)}const[,a,d]=i;if(d&&n&&d!==n){throw new Error(`Multipart boundary was specified as ${d} in the header, but got ${n} in the request body`)}n??=d;if(n){assertValidBoundary(n)}else{n=generateBoundary()}e.headers.set("Content-Type",`${a}; boundary=${n}`);await buildRequestBody(e,e.multipartBody.parts,n);e.multipartBody=undefined;return t(e)}}}function createPipelineFromOptions_createPipelineFromOptions(e){const t=createEmptyPipeline();if(isNodeLike){if(e.agent){t.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(tlsPolicy(e.tlsOptions))}t.addPolicy(proxyPolicy(e.proxyOptions));t.addPolicy(decompressResponsePolicy())}t.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});t.addPolicy(userAgentPolicy(e.userAgentOptions));t.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(isNodeLike){t.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}let jd=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(e);if(typeof process?.emitWarning==="function"&&!jd){jd=true;process.emitWarning(e)}}function checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const zd="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:zd,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!o){return n(t)}if(o.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${o.apiKeyLocation}`)}t.headers.set(o.name,e.credential.key);return n(t)}}}const Hd="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:Hd,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!o){return n(t)}const{username:i,password:a}=e.credential;const d=uint8ArrayToString(stringToUint8Array(`${i}:${a}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${d}`);return n(t)}}}const Vd="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:Vd,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!o){return n(t)}const i=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}const Gd="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:Gd,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!o){return n(t)}const i=await e.credential.getOAuth2Token(o.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}let Wd;function clientHelpers_createDefaultPipeline(e={}){const t=createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy(e));const{credential:n,authSchemes:o,allowInsecureConnection:i}=e;if(n){if(isApiKeyCredential(n)){t.addPolicy(apiKeyAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isBasicCredential(n)){t.addPolicy(basicAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isBearerTokenCredential(n)){t.addPolicy(bearerAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isOAuth2TokenCredential(n)){t.addPolicy(oauth2AuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}}return t}function clientHelpers_getCachedDefaultHttpsClient(){if(!Wd){Wd=createDefaultHttpClient()}return Wd}function getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if(isBinaryBody(n)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const n=e.dispositionType??"form-data";let o=n;if(e.name){o+=`; name=${escapeDispositionField(e.name)}`}let i=undefined;if(e.filename){i=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){i=t}}if(i){o+=`; filename=${escapeDispositionField(i)}`}return o}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const n=getContentDisposition(e);const o=createHttpHeaders(e.headers??{});if(t){o.set("content-type",t)}if(n){o.set("content-disposition",n)}const i=normalizeBody(e.body,t);return{headers:o,body:i}}function multipart_buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest_sendRequest(e,t,n,o={},i){const a=i??getCachedDefaultHttpsClient();const d=buildPipelineRequest(e,t,o);try{const e=await n.sendRequest(a,d);const t=e.headers.toJSON();const i=e.readableStreamBody??e.browserStreamBody;const f=o.responseAsStream||i!==undefined?undefined:getResponseBody(e);const m=i??f;if(o?.onResponse){o.onResponse({...e,request:d,rawHeaders:t,parsedBody:f})}return{request:d,headers:t,status:`${e.status}`,body:m}}catch(e){if(isRestError(e)&&e.response&&o.onResponse){const{response:t}=e;const n=t.headers.toJSON();o?.onResponse({...t,request:d,rawHeaders:n},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(e===undefined){return undefined}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(isBlob(e)&&e.type){return e.type}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,n={}){const o=getRequestContentType(n);const{body:i,multipartBody:a}=getRequestBody(n.body,o);const d=createHttpHeaders({...n.headers?n.headers:{},accept:n.accept??n.headers?.accept??"application/json",...o&&{"content-type":o}});return createPipelineRequest({url:t,method:e,body:i,multipartBody:a,headers:d,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(isBlob(e)){return{body:e}}if(isReadableStream(e)||typeof e==="function"){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const n=t.split(";")[0];const o=e.bodyAsText??"";if(n==="text/plain"){return String(o)}try{return o?JSON.parse(o):undefined}catch(t){if(n==="application/json"){throw createParseError(e,t)}return String(o)}}function createParseError(e,t){const n=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const o=t.code??RestError.PARSE_ERROR;return new RestError(n,{code:o,statusCode:e.status,request:e.request,response:e})}function getClient(e,t={}){const n=t.pipeline??createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:o}of t.additionalPolicies){const t=o==="perRetry"?"Sign":undefined;n.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:o,httpClient:i}=t;const a=t.endpoint??e;const client=(e,...t)=>{const getUrl=n=>buildRequestUrl(a,e,t,{allowInsecureConnection:o,...n});return{get:(e={})=>buildOperation("GET",getUrl(e),n,e,o,i),post:(e={})=>buildOperation("POST",getUrl(e),n,e,o,i),put:(e={})=>buildOperation("PUT",getUrl(e),n,e,o,i),patch:(e={})=>buildOperation("PATCH",getUrl(e),n,e,o,i),delete:(e={})=>buildOperation("DELETE",getUrl(e),n,e,o,i),head:(e={})=>buildOperation("HEAD",getUrl(e),n,e,o,i),options:(e={})=>buildOperation("OPTIONS",getUrl(e),n,e,o,i),trace:(e={})=>buildOperation("TRACE",getUrl(e),n,e,o,i)}};return{path:client,pathUnchecked:client,pipeline:n}}function buildOperation(e,t,n,o,i,a){i=o.allowInsecureConnection??i;return{then:function(d,f){return sendRequest(e,t,n,{...o,allowInsecureConnection:i},a).then(d,f)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},a)}},async asNodeStream(){if(isNodeLike){return sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},a)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(e,t){const n=typeof e==="string"?t:e;const o=n.body?.error??n.body;const i=typeof e==="string"?e:o?.message??`Unexpected status code: ${n.status}`;return new RestError(i,{statusCode:statusCodeToNumber(n.status),code:o?.code,request:n.request,response:toPipelineResponse(n)})}function toPipelineResponse(e){return{headers:createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const Kd=esm_createClientLogger("core-rest-pipeline");const Qd="agentPolicy";function agentPolicy_agentPolicy(e){return{name:Qd,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}const Yd="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:Yd,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const Jd="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const Xd="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:Xd,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const Zd="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:Zd,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ep="tlsPolicy";function tlsPolicy_tlsPolicy(e){return{name:ep,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}const tp=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(e={}){return logPolicy_logPolicy({logger:Kd.info,...e})}const np=null&&tspRedirectPolicyName;function policies_redirectPolicy_redirectPolicy(e={}){return redirectPolicy_redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(e){if(qn&&qn.versions){const t=`${Fn.type()} ${Fn.release()}; ${Fn.arch()}`;const n=qn.versions;if(n.bun){e.set("Bun",`${n.bun} (${t})`)}else if(n.deno){e.set("Deno",`${n.deno} (${t})`)}else if(n.node){e.set("Node",`${n.node} (${t})`)}}}const rp="1.22.3";const ip=3;function userAgent_getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",rp);await util_userAgentPlatform_setPlatformSpecificData(t);const n=userAgent_getUserAgentString(t);const o=e?`${e} ${n}`:n;return o}const sp=userAgent_getUserAgentHeaderName();const ap="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:ap,async sendRequest(e,n){if(!e.headers.has(sp)){e.headers.set(sp,await t)}return n(e)}}}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const cp={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const lp=Symbol("rawContent");function hasRawContent(e){return typeof e[lp]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[lp]()}else{return e}}function createFileFromStream(e,t,n={}){return{...cp,type:n.type??"",lastModified:n.lastModified??(new Date).getTime(),webkitRelativePath:n.webkitRelativePath??"",size:n.size??-1,name:t,stream:()=>{const t=e();if(file_isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[lp]:e}}function createFile(e,t,n={}){if(isNodeLike){return{...cp,type:n.type??"",lastModified:n.lastModified??(new Date).getTime(),webkitRelativePath:n.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[lp]:()=>e}}else{return new File([toArrayBuffer(e)],t,n)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const up=Fd;function policies_multipartPolicy_multipartPolicy(){const e=multipartPolicy_multipartPolicy();return{name:up,sendRequest:async(t,n)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(t,n)}}}const dp=null&&tspDecompressResponsePolicyName;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const pp=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy_defaultRetryPolicy(e)}const fp=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const mp=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return tspGetDefaultProxySettings(e)}function policies_proxyPolicy_proxyPolicy(e,t){return proxyPolicy_proxyPolicy(e,t)}const hp="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:hp,async sendRequest(t,n){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return n(t)}}}const gp=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(e){return agentPolicy_agentPolicy(e)}const yp=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(e){return tlsPolicy_tlsPolicy(e)}const Sp=restError_RestError;function esm_restError_isRestError(e){return restError_isRestError(e)}async function sha256_computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return createHmac("sha256",o).update(t).digest(n)}async function sha256_computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}const Ep="tracingPolicy";function tracingPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);const n=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const o=tryCreateTracingClient();return{name:Ep,async sendRequest(e,i){if(!o){return i(e)}const a=await t;const d={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};if(a){d["http.user_agent"]=a}const{span:f,tracingContext:m}=tryCreateSpan(o,e,d)??{};if(!f||!m){return i(e)}try{const t=await o.withContext(m,i,e);tryProcessResponse(f,t);return t}catch(e){tryProcessError(f,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:rp})}catch(e){Kd.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,t,n){try{const{span:o,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:n});if(!o.isRecording()){o.end();return undefined}const a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(const[e,n]of Object.entries(a)){t.headers.set(e,n)}return{span:o,tracingContext:i.tracingOptions.tracingContext}}catch(e){Kd.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:esm_isError(t)?t:undefined});if(esm_restError_isRestError(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){Kd.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");if(n){e.setAttribute("serviceRequestId",n)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){Kd.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let n=true;function cleanup(){if(n){e.removeEventListener("abort",listener);n=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}const vp="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:vp,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:n,cleanup:o}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{o?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=esm_pipeline_createEmptyPipeline();if(xu){if(e.agent){t.addPolicy(policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(wrapAbortSignalLikePolicy());t.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[up]});t.addPolicy(policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});t.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(xu){t.addPolicy(policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(t){const{abortSignal:n,cleanup:o}=t.abortSignal?wrapAbortSignalLike(t.abortSignal):{};try{t.abortSignal=n;return await e.sendRequest(t)}finally{o?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const Cp=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const Ip=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const bp=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const wp=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,t={maxRetries:ip}){return retryPolicy_retryPolicy(e,{logger:wp,...t})}const Ap={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()<n){try{return await e()}catch{return null}}else{const t=await e();if(t===null){throw new Error("Failed to refresh access token.")}return t}}let o=await tryGetAccessToken();while(o===null){await delay_delay(t);o=await tryGetAccessToken()}return o}function tokenCycler_createTokenCycler(e,t){let n=null;let o=null;let i;const a={...Ap,...t};const d={get isRefreshing(){return n!==null},get shouldRefresh(){if(d.isRefreshing){return false}if(o?.refreshAfterTimestamp&&o.refreshAfterTimestamp<Date.now()){return true}return(o?.expiresOnTimestamp??0)-a.refreshWindowInMs<Date.now()},get mustRefresh(){return o===null||o.expiresOnTimestamp-a.forcedRefreshWindowInMs<Date.now()}};function refresh(t,f){if(!d.isRefreshing){const tryGetAccessToken=()=>e.getToken(t,f);n=beginRefresh(tryGetAccessToken,a.retryIntervalInMs,o?.expiresOnTimestamp??Date.now()).then((e=>{n=null;o=e;i=f.tenantId;return o})).catch((e=>{n=null;o=null;i=undefined;throw e}))}return n}return async(e,t)=>{const n=Boolean(t.claims);const a=i!==t.tenantId;if(n){o=null}const f=a||n||d.mustRefresh;if(f){return refresh(e,t)}if(d.shouldRefresh){refresh(e,t)}return o}}const Rp="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if(esm_restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions,enableCae:true};const a=await n(t,i);if(a){e.request.headers.set("Authorization",`Bearer ${a.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:n}=e;const o=await e.getAccessToken(n,{enableCae:true,claims:t});if(!o){return false}e.request.headers.set("Authorization",`${o.tokenType??"Bearer"} ${o.token}`);return true}function bearerTokenAuthenticationPolicy_bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:n,challengeCallbacks:o}=e;const i=e.logger||Kd;const a={authorizeRequest:o?.authorizeRequest?.bind(o)??defaultAuthorizeRequest,authorizeRequestOnChallenge:o?.authorizeRequestOnChallenge?.bind(o)};const d=t?tokenCycler_createTokenCycler(t):()=>Promise.resolve(null);return{name:Rp,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:d,logger:i});let o;let f;let m;[o,f]=await trySendRequest(e,t);if(isChallengeResponse(o)){let h=getCaeChallengeClaims(o.headers.get("WWW-Authenticate"));if(h){let a;try{a=atob(h)}catch(e){i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`);return o}m=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(n)?n:[n],response:o,request:e,getAccessToken:d,logger:i},a);if(m){[o,f]=await trySendRequest(e,t)}}else if(a.authorizeRequestOnChallenge){m=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:o,getAccessToken:d,logger:i});if(m){[o,f]=await trySendRequest(e,t)}if(isChallengeResponse(o)){h=getCaeChallengeClaims(o.headers.get("WWW-Authenticate"));if(h){let a;try{a=atob(h)}catch(e){i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`);return o}m=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(n)?n:[n],response:o,request:e,getAccessToken:d,logger:i},a);if(m){[o,f]=await trySendRequest(e,t)}}}}}if(f){throw f}else{return o}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const n=/(\w+)="([^"]*)"/g;const o=[];let i;while((i=t.exec(e))!==null){const e=i[1];const t=i[2];const a={};let d;while((d=n.exec(t))!==null){a[d[1]]=d[2]}o.push({scheme:e,params:a})}return o}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const Pp="auxiliaryAuthenticationHeaderPolicy";const Tp="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions};return(await n(t,i))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:n}=e;const o=e.logger||coreLogger;const i=new WeakMap;return{name:Pp,async sendRequest(e,a){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){o.info(`${Pp} header will not be set due to empty credentials.`);return a(e)}const d=[];for(const a of t){let t=i.get(a);if(!t){t=createTokenCycler(a);i.set(a,t)}d.push(sendAuthorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:t,logger:o}))}const f=(await Promise.all(d)).filter((e=>Boolean(e)));if(f.length===0){o.warning(`None of the auxiliary tokens are valid. ${Tp} header will not be set.`);return a(e)}e.headers.set(Tp,f.map((e=>`Bearer ${e}`)).join(", "));return a(e)}}}const xp="$";const _p="_";var Op=__nccwpck_require__(9582);const Mp=Op.w;function getOperationArgumentValueFromParameter(e,t,n){let o=t.parameterPath;const i=t.mapper;let a;if(typeof o==="string"){o=[o]}if(Array.isArray(o)){if(o.length>0){if(i.isConstant){a=i.defaultValue}else{let t=getPropertyFromParameterPath(e,o);if(!t.propertyFound&&n){t=getPropertyFromParameterPath(n,o)}let d=false;if(!t.propertyFound){d=i.required||o[0]==="options"&&o.length===2}a=d?i.defaultValue:t.propertyValue}}}else{if(i.required){a={}}for(const t in o){const d=i.type.modelProperties[t];const f=o[t];const m=getOperationArgumentValueFromParameter(e,{parameterPath:f,mapper:d},n);if(m!==undefined){if(!a){a={}}a[t]=m}}}return a}function getPropertyFromParameterPath(e,t){const n={propertyFound:false};let o=0;for(;o<t.length;++o){const n=t[o];if(e&&n in e){e=e[n]}else{break}}if(o===t.length){n.propertyValue=e;n.propertyFound=true}return n}const Dp=Symbol.for("@azure/core-client original request");function hasOriginalRequest(e){return Dp in e}function getOperationRequestInfo(e){if(hasOriginalRequest(e)){return getOperationRequestInfo(e[Dp])}let t=Mp.operationRequestMap.get(e);if(!t){t={};Mp.operationRequestMap.set(e,t)}return t}const $p=["application/json","text/json"];const Np=["application/xml","application/atom+xml"];const kp="deserializationPolicy";function deserializationPolicy(e={}){const t=e.expectedContentTypes?.json??$p;const n=e.expectedContentTypes?.xml??Np;const o=e.parseXML;const i=e.serializerOptions;const a={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??false,xmlCharKey:i?.xml.xmlCharKey??_p}};return{name:kp,async sendRequest(e,i){const d=await i(e);return deserializeResponseBody(t,n,d,a,o)}}}function getOperationResponseMap(e){let t;const n=e.request;const o=getOperationRequestInfo(n);const i=o?.operationSpec;if(i){if(!o?.operationResponseGetter){t=i.responses[e.status]}else{t=o?.operationResponseGetter(i,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const n=getOperationRequestInfo(t);const o=n?.shouldDeserialize;let i;if(o===undefined){i=true}else if(typeof o==="boolean"){i=o}else{i=o(e)}return i}async function deserializeResponseBody(e,t,n,o,i){const a=await deserializationPolicy_parse(e,t,n,o,i);if(!shouldDeserializeResponse(a)){return a}const d=getOperationRequestInfo(a.request);const f=d?.operationSpec;if(!f||!f.responses){return a}const m=getOperationResponseMap(a);const{error:h,shouldReturnResponse:C}=handleErrorResponse(a,f,m,o);if(h){throw h}else if(C){return a}if(m){if(m.bodyMapper){let e=a.parsedBody;if(f.isXML&&m.bodyMapper.type.name===Nu.Sequence){e=typeof e==="object"?e[m.bodyMapper.xmlElementName]:[]}try{a.parsedBody=f.serializer.deserialize(m.bodyMapper,e,"operationRes.parsedBody",o)}catch(e){const t=new Sp(`Error ${e} occurred in deserializing the responseBody - ${a.bodyAsText}`,{statusCode:a.status,request:a.request,response:a});throw t}}else if(f.httpMethod==="HEAD"){a.parsedBody=n.status>=200&&n.status<300}if(m.headersMapper){a.parsedHeaders=f.serializer.deserialize(m.headersMapper,a.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return a}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,n,o){const i=200<=e.status&&e.status<300;const a=isOperationSpecEmpty(t)?i:!!n;if(a){if(n){if(!n.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const d=n??t.responses.default;const f=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const m=new Sp(f,{statusCode:e.status,request:e.request,response:e});if(!d&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw m}const h=d?.bodyMapper;const C=d?.headersMapper;try{if(e.parsedBody){const n=e.parsedBody;let i;if(h){let e=n;if(t.isXML&&h.type.name===Nu.Sequence){e=[];const t=h.xmlElementName;if(typeof n==="object"&&t){e=n[t]}}i=t.serializer.deserialize(h,e,"error.response.parsedBody",o)}const a=n.error||i||n;m.code=a.code;if(a.message){m.message=a.message}if(h){m.response.parsedBody=i}}if(e.headers&&C){m.response.parsedHeaders=t.serializer.deserialize(C,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){m.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:m,shouldReturnResponse:false}}async function deserializationPolicy_parse(e,t,n,o,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){const a=n.bodyAsText;const d=n.headers.get("Content-Type")||"";const f=!d?[]:d.split(";").map((e=>e.toLowerCase()));try{if(f.length===0||f.some((t=>e.indexOf(t)!==-1))){n.parsedBody=JSON.parse(a);return n}else if(f.some((e=>t.indexOf(e)!==-1))){if(!i){throw new Error("Parsing XML not supported.")}const e=await i(a,o.xml);n.parsedBody=e;return n}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`;const o=e.code||Sp.PARSE_ERROR;const i=new Sp(t,{code:o,statusCode:n.status,request:n.request,response:n});throw i}}return n}function getStreamingResponseStatusCodes(e){const t=new Set;for(const n in e.responses){const o=e.responses[n];if(o.bodyMapper&&o.bodyMapper.type.name===Nu.Stream){t.add(Number(n))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:n}=e;let o;if(typeof t==="string"){o=t}else if(Array.isArray(t)){o=t.join(".")}else{o=n.serializedName}return o}const Lp="serializationPolicy";function serializationPolicy(e={}){const t=e.stringifyXML;return{name:Lp,async sendRequest(e,n){const o=getOperationRequestInfo(e);const i=o?.operationSpec;const a=o?.operationArguments;if(i&&a){serializeHeaders(e,a,i);serializeRequestBody(e,a,i,t)}return n(e)}}}function serializeHeaders(e,t,n){if(n.headerParameters){for(const o of n.headerParameters){let i=getOperationArgumentValueFromParameter(t,o);if(i!==null&&i!==undefined||o.mapper.required){i=n.serializer.serialize(o.mapper,i,getPathStringFromParameter(o));const t=o.mapper.headerCollectionPrefix;if(t){for(const n of Object.keys(i)){e.headers.set(t+n,i[n])}}else{e.headers.set(o.mapper.serializedName||getPathStringFromParameter(o),i)}}}}const o=t.options?.requestOptions?.customHeaders;if(o){for(const t of Object.keys(o)){e.headers.set(t,o[t])}}}function serializeRequestBody(e,t,n,o=function(){throw new Error("XML serialization unsupported!")}){const i=t.options?.serializerOptions;const a={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??false,xmlCharKey:i?.xml.xmlCharKey??_p}};const d=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(t,n.requestBody);const i=n.requestBody.mapper;const{required:f,serializedName:m,xmlName:h,xmlElementName:C,xmlNamespace:P,xmlNamespacePrefix:D,nullable:k}=i;const L=i.type.name;try{if(e.body!==undefined&&e.body!==null||k&&e.body===null||f){const t=getPathStringFromParameter(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);const f=L===Nu.Stream;if(n.isXML){const t=D?`xmlns:${D}`:"xmlns";const n=getXmlValueWithNamespace(P,t,L,e.body,a);if(L===Nu.Sequence){e.body=o(prepareXMLRootList(n,C||h||m,t,P),{rootName:h||m,xmlCharKey:d})}else if(!f){e.body=o(n,{rootName:h||m,xmlCharKey:d})}}else if(L===Nu.String&&(n.contentType?.match("text/plain")||n.mediaType==="text")){return}else if(!f){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(m,undefined," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(const o of n.formDataParameters){const i=getOperationArgumentValueFromParameter(t,o);if(i!==undefined&&i!==null){const t=o.mapper.serializedName||getPathStringFromParameter(o);e.formData[t]=n.serializer.serialize(o.mapper,i,getPathStringFromParameter(o),a)}}}}function getXmlValueWithNamespace(e,t,n,o,i){if(e&&!["Composite","Sequence","Dictionary"].includes(n)){const n={};n[i.xml.xmlCharKey]=o;n[xp]={[t]:e};return n}return o}function prepareXMLRootList(e,t,n,o){if(!Array.isArray(e)){e=[e]}if(!n||!o){return{[t]:e}}const i={[t]:e};i[xp]={[n]:o};return i}function createClientPipeline(e={}){const t=esm_createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){t.addPolicy(bearerTokenAuthenticationPolicy_bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});t.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return t}function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const Up=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function utils_isDuration(e){return Up.test(e)}const Fp=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function utils_isValidUuid(e){return Fp.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const n=e.parsedHeaders;if(e.request.method==="HEAD"){return{...n,body:e.parsedBody}}const o=t&&t.bodyMapper;const i=Boolean(o?.nullable);const a=o?.type.name;if(a==="Stream"){return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const d=a==="Composite"&&o.type.modelProperties||{};const f=Object.keys(d).some((e=>d[e].serializedName===""));if(a==="Sequence"||f){const t=e.parsedBody??[];for(const n of Object.keys(d)){if(d[n].serializedName){t[n]=e.parsedBody?.[n]}}if(n){for(const e of Object.keys(n)){t[e]=n[e]}}return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(d).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:isPrimitiveBody(e.parsedBody,a)})}let Bp;function getCachedDefaultHttpClient(){if(!Bp){Bp=esm_defaultHttpClient_createDefaultHttpClient()}return Bp}const qp={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,n,o){const i=calculateUrlReplacements(t,n,o);let a=false;let d=replaceAll(e,i);if(t.path){let e=replaceAll(t.path,i);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){d=e;a=true}else{d=appendPath(d,e)}}const{queryParams:f,sequenceParams:m}=calculateQueryParameters(t,n,o);d=appendQueryParams(d,f,m,a);return d}function replaceAll(e,t){let n=e;for(const[e,o]of t){n=n.split(e).join(o)}return n}function calculateUrlReplacements(e,t,n){const o=new Map;if(e.urlParameters?.length){for(const i of e.urlParameters){let a=getOperationArgumentValueFromParameter(t,i,n);const d=getPathStringFromParameter(i);a=e.serializer.serialize(i.mapper,a,d);if(!i.skipEncoding){a=encodeURIComponent(a)}o.set(`{${i.mapper.serializedName||d}}`,a)}}return o}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const n=new URL(e);let o=n.pathname;if(!o.endsWith("/")){o=`${o}/`}if(t.startsWith("/")){t=t.substring(1)}const i=t.indexOf("?");if(i!==-1){const e=t.substring(0,i);const a=t.substring(i+1);o=o+e;if(a){n.search=n.search?`${n.search}&${a}`:a}}else{o=o+t}n.pathname=o;return n.toString()}function calculateQueryParameters(e,t,n){const o=new Map;const i=new Set;if(e.queryParameters?.length){for(const a of e.queryParameters){if(a.mapper.type.name==="Sequence"&&a.mapper.serializedName){i.add(a.mapper.serializedName)}let d=getOperationArgumentValueFromParameter(t,a,n);if(d!==undefined&&d!==null||a.mapper.required){d=e.serializer.serialize(a.mapper,d,getPathStringFromParameter(a));const t=a.collectionFormat?qp[a.collectionFormat]:"";if(Array.isArray(d)){d=d.map((e=>{if(e===null||e===undefined){return""}return e}))}if(a.collectionFormat==="Multi"&&d.length===0){continue}else if(Array.isArray(d)&&(a.collectionFormat==="SSV"||a.collectionFormat==="TSV")){d=d.join(t)}if(!a.skipEncoding){if(Array.isArray(d)){d=d.map((e=>encodeURIComponent(e)))}else{d=encodeURIComponent(d)}}if(Array.isArray(d)&&(a.collectionFormat==="CSV"||a.collectionFormat==="Pipes")){d=d.join(t)}o.set(a.mapper.serializedName||getPathStringFromParameter(a),d)}}}return{queryParams:o,sequenceParams:i}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const n=e.split("&");for(const e of n){const[n,o]=e.split("=",2);const i=t.get(n);if(i){if(Array.isArray(i)){i.push(o)}else{t.set(n,[i,o])}}else{t.set(n,o)}}return t}function appendQueryParams(e,t,n,o=false){if(t.size===0){return e}const i=new URL(e);const a=simpleParseQueryParams(i.search);for(const[e,i]of t){const t=a.get(e);if(Array.isArray(t)){if(Array.isArray(i)){t.push(...i);const n=new Set(t);a.set(e,Array.from(n))}else{t.push(i)}}else if(t){if(Array.isArray(i)){i.unshift(t)}else if(n.has(e)){a.set(e,[t,i])}if(!o){a.set(e,i)}}else{a.set(e,i)}}const d=[];for(const[e,t]of a){if(typeof t==="string"){d.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const n of t){d.push(`${e}=${n}`)}}else{d.push(`${e}=${t}`)}}i.search=d.length?`?${d.join("&")}`:"";return i.toString()}const jp=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){jp.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:n}of e.additionalPolicies){const e=n==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const n=t.baseUrl||this._endpoint;if(!n){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const o=getRequestUrl(n,t,e,this);const i=esm_pipelineRequest_createPipelineRequest({url:o});i.method=t.httpMethod;const a=getOperationRequestInfo(i);a.operationSpec=t;a.operationArguments=e;const d=t.contentType||this._requestContentType;if(d&&t.requestBody){i.headers.set("Content-Type",d)}const f=e.options;if(f){const e=f.requestOptions;if(e){if(e.timeout){i.timeout=e.timeout}if(e.onUploadProgress){i.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){i.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){a.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){i.allowInsecureConnection=true}}if(f.abortSignal){i.abortSignal=f.abortSignal}if(f.tracingOptions){i.tracingOptions=f.tracingOptions}}if(this._allowInsecureConnection){i.allowInsecureConnection=true}if(i.streamResponseStatusCodes===undefined){i.streamResponseStatusCodes=getStreamingResponseStatusCodes(t)}try{const e=await this.sendRequest(i);const n=flattenResponse(e,t.responses[e.status]);if(f?.onResponse){f.onResponse(e,n)}return n}catch(e){if(typeof e==="object"&&e?.response){const n=e.response;const o=flattenResponse(n,t.responses[e.statusCode]||t.responses["default"]);e.details=o;if(f?.onResponse){f.onResponse(n,o,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const t=getCredentialScopes(e);const n=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:n})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const n=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return n.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:n}=e;const o=e.logger||coreClientLogger;const i=n.headers.get("WWW-Authenticate");if(!i){o.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const a=parseCAEChallenge(i)||[];const d=a.find((e=>e.claims));if(!d){o.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const f=await e.getAccessToken(d.scope?[d.scope]:t,{claims:decodeStringToString(d.claims)});if(!f){return false}e.request.headers.set("Authorization",`${f.tokenType??"Bearer"} ${f.token}`);return true}const zp={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const n=getChallenge(e.response);if(n){const o=parseChallenge(n);const i=buildScopes(e,o);const a=extractTenantId(o);if(!a){return false}const d=await e.getAccessToken(i,{...t,tenantId:a});if(!d){return false}e.request.headers.set(zp.HeaderConstants.AUTHORIZATION,`${d.tokenType??"Bearer"} ${d.token}`);return true}return false};function extractTenantId(e){const t=new URL(e.authorization_uri);const n=t.pathname.split("/");const o=n[1];if(o&&isUuid(o)){return o}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const n=new URL(t.resource_id);n.pathname=zp.DefaultScope;let o=n.toString();if(o==="https://disk.azure.com/.default"){o="https://disk.azure.com//.default"}return[o]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const n=`${t.trim()} `.split(" ").filter((e=>e));const o=n.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return o.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}function getIdentityTokenEndpointSuffix(e){if(e==="adfs"){return"oauth2/token"}else{return"oauth2/v2.0/token"}}const Hp="/.default";const Vp="Specifying a `clientId` or `resourceId` is not supported by the Service Fabric managed identity environment. The managed identity configuration is determined by the Service Fabric cluster resource configuration. See https://aka.ms/servicefabricmi for more information";function mapScopesToResource(e){let t="";if(Array.isArray(e)){if(e.length!==1){return}t=e[0]}else if(typeof e==="string"){t=e}if(!t.endsWith(Hp)){return t}return t.substr(0,t.lastIndexOf(Hp))}function parseExpirationTimestamp(e){if(typeof e.expires_on==="number"){return e.expires_on*1e3}if(typeof e.expires_on==="string"){const t=+e.expires_on;if(!isNaN(t)){return t*1e3}const n=Date.parse(e.expires_on);if(!isNaN(n)){return n}}if(typeof e.expires_in==="number"){return Date.now()+e.expires_in*1e3}throw new Error(`Failed to parse token expiration from body. expires_in="${e.expires_in}", expires_on="${e.expires_on}"`)}function parseRefreshTimestamp(e){if(e.refresh_on){if(typeof e.refresh_on==="number"){return e.refresh_on*1e3}if(typeof e.refresh_on==="string"){const t=+e.refresh_on;if(!isNaN(t)){return t*1e3}const n=Date.parse(e.refresh_on);if(!isNaN(n)){return n}}throw new Error(`Failed to parse refresh_on from body. refresh_on="${e.refresh_on}"`)}else{return undefined}}const Gp="noCorrelationId";function getIdentityClientAuthorityHost(e){let t=e?.authorityHost;if(Tu){t=t??process.env.AZURE_AUTHORITY_HOST}return t??En}class identityClient_IdentityClient extends ServiceClient{authorityHost;allowLoggingAccountIdentifiers;abortControllers;allowInsecureConnection=false;tokenCredentialOptions;constructor(e){const t=`azsdk-js-identity/${hn}`;const n=e?.userAgentOptions?.userAgentPrefix?`${e.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;const o=getIdentityClientAuthorityHost(e);if(!o.startsWith("https:")){throw new Error("The authorityHost address must use the 'https' protocol.")}super({requestContentType:"application/json; charset=utf-8",retryOptions:{maxRetries:3},...e,userAgentOptions:{userAgentPrefix:n},baseUri:o});this.authorityHost=o;this.abortControllers=new Map;this.allowLoggingAccountIdentifiers=e?.loggingOptions?.allowLoggingAccountIdentifiers;this.tokenCredentialOptions={...e};if(e?.allowInsecureConnection){this.allowInsecureConnection=e.allowInsecureConnection}}async sendTokenRequest(e){tr.info(`IdentityClient: sending token request to [${e.url}]`);const t=await this.sendRequest(e);if(t.bodyAsText&&(t.status===200||t.status===201)){const n=JSON.parse(t.bodyAsText);if(!n.access_token){return null}this.logIdentifiers(t);const o={accessToken:{token:n.access_token,expiresOnTimestamp:parseExpirationTimestamp(n),refreshAfterTimestamp:parseRefreshTimestamp(n),tokenType:"Bearer"},refreshToken:n.refresh_token};tr.info(`IdentityClient: [${e.url}] token acquired, expires on ${o.accessToken.expiresOnTimestamp}`);return o}else{const e=new errors_AuthenticationError(t.status,t.bodyAsText);tr.warning(`IdentityClient: authentication error. HTTP status: ${t.status}, ${e.errorResponse.errorDescription}`);throw e}}async refreshAccessToken(e,t,n,o,i,a={}){if(o===undefined){return null}tr.info(`IdentityClient: refreshing access token with client ID: ${t}, scopes: ${n} started`);const d={grant_type:"refresh_token",client_id:t,refresh_token:o,scope:n};if(i!==undefined){d.client_secret=i}const f=new URLSearchParams(d);return ir.withSpan("IdentityClient.refreshAccessToken",a,(async n=>{try{const o=getIdentityTokenEndpointSuffix(e);const i=esm_pipelineRequest_createPipelineRequest({url:`${this.authorityHost}/${e}/${o}`,method:"POST",body:f.toString(),abortSignal:a.abortSignal,headers:esm_httpHeaders_createHttpHeaders({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}),tracingOptions:n.tracingOptions});const d=await this.sendTokenRequest(i);tr.info(`IdentityClient: refreshed token for client ID: ${t}`);return d}catch(e){if(e.name===Ln&&e.errorResponse.error==="interaction_required"){tr.info(`IdentityClient: interaction required for client ID: ${t}`);return null}else{tr.warning(`IdentityClient: failed refreshing token for client ID: ${t}: ${e}`);throw e}}}))}generateAbortSignal(e){const t=new AbortController;const n=this.abortControllers.get(e)||[];n.push(t);this.abortControllers.set(e,n);const o=t.signal.onabort;t.signal.onabort=(...n)=>{this.abortControllers.set(e,undefined);if(o){o.apply(t.signal,n)}};return t.signal}abortRequests(e){const t=e||Gp;const n=[...this.abortControllers.get(t)||[],...this.abortControllers.get(Gp)||[]];if(!n.length){return}for(const e of n){e.abort()}this.abortControllers.set(t,undefined)}getCorrelationId(e){const t=e?.body?.split("&").map((e=>e.split("="))).find((([e])=>e==="client-request-id"));return t&&t.length?t[1]||Gp:Gp}async sendGetRequestAsync(e,t){const n=esm_pipelineRequest_createPipelineRequest({url:e,method:"GET",body:t?.body,allowInsecureConnection:this.allowInsecureConnection,headers:esm_httpHeaders_createHttpHeaders(t?.headers),abortSignal:this.generateAbortSignal(Gp)});const o=await this.sendRequest(n);this.logIdentifiers(o);return{body:o.bodyAsText?JSON.parse(o.bodyAsText):undefined,headers:o.headers.toJSON(),status:o.status}}async sendPostRequestAsync(e,t){const n=esm_pipelineRequest_createPipelineRequest({url:e,method:"POST",body:t?.body,headers:esm_httpHeaders_createHttpHeaders(t?.headers),allowInsecureConnection:this.allowInsecureConnection,abortSignal:this.generateAbortSignal(this.getCorrelationId(t))});const o=await this.sendRequest(n);this.logIdentifiers(o);return{body:o.bodyAsText?JSON.parse(o.bodyAsText):undefined,headers:o.headers.toJSON(),status:o.status}}getTokenCredentialOptions(){return this.tokenCredentialOptions}logIdentifiers(e){if(!this.allowLoggingAccountIdentifiers||!e.bodyAsText){return}const t="No User Principal Name available";try{const n=e.parsedBody||JSON.parse(e.bodyAsText);const o=n.access_token;if(!o){return}const i=o.split(".")[1];const{appid:a,upn:d,tid:f,oid:m}=JSON.parse(Buffer.from(i,"base64").toString("utf8"));tr.info(`[Authenticated account] Client ID: ${a}. Tenant ID: ${f}. User Principal Name: ${d||t}. Object ID (user): ${m}`)}catch(e){tr.warning("allowLoggingAccountIdentifiers was set, but we couldn't log the account information. Error:",e.message)}}}var Wp;(function(e){e["AutoDiscoverRegion"]="AutoDiscoverRegion";e["USWest"]="westus";e["USWest2"]="westus2";e["USCentral"]="centralus";e["USEast"]="eastus";e["USEast2"]="eastus2";e["USNorthCentral"]="northcentralus";e["USSouthCentral"]="southcentralus";e["USWestCentral"]="westcentralus";e["CanadaCentral"]="canadacentral";e["CanadaEast"]="canadaeast";e["BrazilSouth"]="brazilsouth";e["EuropeNorth"]="northeurope";e["EuropeWest"]="westeurope";e["UKSouth"]="uksouth";e["UKWest"]="ukwest";e["FranceCentral"]="francecentral";e["FranceSouth"]="francesouth";e["SwitzerlandNorth"]="switzerlandnorth";e["SwitzerlandWest"]="switzerlandwest";e["GermanyNorth"]="germanynorth";e["GermanyWestCentral"]="germanywestcentral";e["NorwayWest"]="norwaywest";e["NorwayEast"]="norwayeast";e["AsiaEast"]="eastasia";e["AsiaSouthEast"]="southeastasia";e["JapanEast"]="japaneast";e["JapanWest"]="japanwest";e["AustraliaEast"]="australiaeast";e["AustraliaSouthEast"]="australiasoutheast";e["AustraliaCentral"]="australiacentral";e["AustraliaCentral2"]="australiacentral2";e["IndiaCentral"]="centralindia";e["IndiaSouth"]="southindia";e["IndiaWest"]="westindia";e["KoreaSouth"]="koreasouth";e["KoreaCentral"]="koreacentral";e["UAECentral"]="uaecentral";e["UAENorth"]="uaenorth";e["SouthAfricaNorth"]="southafricanorth";e["SouthAfricaWest"]="southafricawest";e["ChinaNorth"]="chinanorth";e["ChinaEast"]="chinaeast";e["ChinaNorth2"]="chinanorth2";e["ChinaEast2"]="chinaeast2";e["GermanyCentral"]="germanycentral";e["GermanyNorthEast"]="germanynortheast";e["GovernmentUSVirginia"]="usgovvirginia";e["GovernmentUSIowa"]="usgoviowa";e["GovernmentUSArizona"]="usgovarizona";e["GovernmentUSTexas"]="usgovtexas";e["GovernmentUSDodEast"]="usdodeast";e["GovernmentUSDodCentral"]="usdodcentral"})(Wp||(Wp={}));function calculateRegionalAuthority(e){let t=e;if(t===undefined&&globalThis.process?.env?.AZURE_REGIONAL_AUTHORITY_NAME!==undefined){t=process.env.AZURE_REGIONAL_AUTHORITY_NAME}if(t===Wp.AutoDiscoverRegion){return"AUTO_DISCOVER"}return t}function createConfigurationErrorMessage(e){return`The current credential is not configured to acquire tokens for tenant ${e}. To enable acquiring tokens for this tenant add it to the AdditionallyAllowedTenants on the credential options, or add "*" to AdditionallyAllowedTenants to allow acquiring tokens for any tenant.`}function processMultiTenantRequest_processMultiTenantRequest(e,t,n=[],o){let i;if(process.env.AZURE_IDENTITY_DISABLE_MULTITENANTAUTH){i=e}else if(e==="adfs"){i=e}else{i=t?.tenantId??e}if(e&&i!==e&&!n.includes("*")&&!n.some((e=>e.localeCompare(i)===0))){const e=createConfigurationErrorMessage(i);o?.info(e);throw new errors_CredentialUnavailableError(e)}return i}function tenantIdUtils_checkTenantId(e,t){if(!t.match(/^[0-9a-zA-Z-.]+$/)){const t=new Error("Invalid tenant id provided. You can locate your tenant id by following the instructions listed here: https://learn.microsoft.com/partner-center/find-ids-and-domain-names.");e.info(logging_formatError("",t));throw t}}function tenantIdUtils_resolveTenantId(e,t,n){if(t){tenantIdUtils_checkTenantId(e,t);return t}if(!n){n=gn}if(n!==gn){return"common"}return"organizations"}function tenantIdUtils_resolveAdditionallyAllowedTenantIds(e){if(!e||e.length===0){return[]}if(e.includes("*")){return Cn}return e}const Kp=credentialLogger("MsalClient");function generateMsalConfiguration(e,t,n={}){const o=tenantIdUtils_resolveTenantId(n.logger??Kp,t,e);const i=getAuthority(o,getAuthorityHost(n));const a=new identityClient_IdentityClient({...n.tokenCredentialOptions,authorityHost:i,loggingOptions:n.loggingOptions});const d={auth:{clientId:e,authority:i,knownAuthorities:getKnownAuthorities(o,i,n.disableInstanceDiscovery)},system:{networkClient:a,loggerOptions:{loggerCallback:defaultLoggerCallback(n.logger??Kp),logLevel:getMSALLogLevel(esm_getLogLevel()),piiLoggingEnabled:n.loggingOptions?.enableUnsafeSupportLogging}}};return d}function msalClient_createMsalClient(e,t,n={}){const o={msalConfig:generateMsalConfiguration(e,t,n),cachedAccount:n.authenticationRecord?publicToMsal(n.authenticationRecord):null,pluginConfiguration:$n.generatePluginConfiguration(n),logger:n.logger??Kp};const i=new Map;async function getPublicApp(e={}){const t=e.enableCae?"CAE":"default";let n=i.get(t);if(n){o.logger.getToken.info("Existing PublicClientApplication found in cache, returning it.");return n}o.logger.getToken.info(`Creating new PublicClientApplication with CAE ${e.enableCae?"enabled":"disabled"}.`);const a=e.enableCae?o.pluginConfiguration.cache.cachePluginCae:o.pluginConfiguration.cache.cachePlugin;o.msalConfig.auth.clientCapabilities=e.enableCae?["cp1"]:undefined;n=new PublicClientApplication({...o.msalConfig,broker:{nativeBrokerPlugin:o.pluginConfiguration.broker.nativeBrokerPlugin},cache:{cachePlugin:await a}});i.set(t,n);return n}const a=new Map;async function getConfidentialApp(e={}){const t=e.enableCae?"CAE":"default";let n=a.get(t);if(n){o.logger.getToken.info("Existing ConfidentialClientApplication found in cache, returning it.");return n}o.logger.getToken.info(`Creating new ConfidentialClientApplication with CAE ${e.enableCae?"enabled":"disabled"}.`);const i=e.enableCae?o.pluginConfiguration.cache.cachePluginCae:o.pluginConfiguration.cache.cachePlugin;o.msalConfig.auth.clientCapabilities=e.enableCae?["cp1"]:undefined;n=new ConfidentialClientApplication({...o.msalConfig,broker:{nativeBrokerPlugin:o.pluginConfiguration.broker.nativeBrokerPlugin},cache:{cachePlugin:await i}});a.set(t,n);return n}async function getTokenSilent(e,t,n={}){if(o.cachedAccount===null){o.logger.getToken.info("No cached account found in local state.");throw new AuthenticationRequiredError({scopes:t})}if(n.claims){o.cachedClaims=n.claims}const i={account:o.cachedAccount,scopes:t,claims:o.cachedClaims};if(o.pluginConfiguration.broker.isEnabled){i.extraQueryParameters||={};if(o.pluginConfiguration.broker.enableMsaPassthrough){i.extraQueryParameters["msal_request_type"]="consumer_passthrough"}}if(n.proofOfPossessionOptions){i.shrNonce=n.proofOfPossessionOptions.nonce;i.authenticationScheme="pop";i.resourceRequestMethod=n.proofOfPossessionOptions.resourceRequestMethod;i.resourceRequestUri=n.proofOfPossessionOptions.resourceRequestUrl}o.logger.getToken.info("Attempting to acquire token silently");try{return await e.acquireTokenSilent(i)}catch(e){throw handleMsalError(t,e,n)}}function calculateRequestAuthority(e){if(e?.tenantId){return getAuthority(e.tenantId,getAuthorityHost(n))}return o.msalConfig.auth.authority}async function withSilentAuthentication(e,t,n,i){let a=null;try{a=await getTokenSilent(e,t,n)}catch(e){if(e.name!=="AuthenticationRequiredError"){throw e}if(n.disableAutomaticAuthentication){throw new AuthenticationRequiredError({scopes:t,getTokenOptions:n,message:"Automatic authentication has been disabled. You may call the authentication() method."})}}if(a===null){try{a=await i()}catch(e){throw handleMsalError(t,e,n)}}ensureValidMsalToken(t,a,n);o.cachedAccount=a?.account??null;o.logger.getToken.info(formatSuccess(t));return{token:a.accessToken,expiresOnTimestamp:a.expiresOn.getTime(),refreshAfterTimestamp:a.refreshOn?.getTime(),tokenType:a.tokenType}}async function getTokenByClientSecret(e,t,n={}){o.logger.getToken.info(`Attempting to acquire token using client secret`);o.msalConfig.auth.clientSecret=t;const i=await getConfidentialApp(n);try{const t=await i.acquireTokenByClientCredential({scopes:e,authority:calculateRequestAuthority(n),azureRegion:calculateRegionalAuthority(),claims:n?.claims});ensureValidMsalToken(e,t,n);o.logger.getToken.info(formatSuccess(e));return{token:t.accessToken,expiresOnTimestamp:t.expiresOn.getTime(),refreshAfterTimestamp:t.refreshOn?.getTime(),tokenType:t.tokenType}}catch(t){throw handleMsalError(e,t,n)}}async function getTokenByClientAssertion(e,t,n={}){o.logger.getToken.info(`Attempting to acquire token using client assertion`);o.msalConfig.auth.clientAssertion=t;const i=await getConfidentialApp(n);try{const a=await i.acquireTokenByClientCredential({scopes:e,authority:calculateRequestAuthority(n),azureRegion:calculateRegionalAuthority(),claims:n?.claims,clientAssertion:t});ensureValidMsalToken(e,a,n);o.logger.getToken.info(formatSuccess(e));return{token:a.accessToken,expiresOnTimestamp:a.expiresOn.getTime(),refreshAfterTimestamp:a.refreshOn?.getTime(),tokenType:a.tokenType}}catch(t){throw handleMsalError(e,t,n)}}async function getTokenByClientCertificate(e,t,n={}){o.logger.getToken.info(`Attempting to acquire token using client certificate`);o.msalConfig.auth.clientCertificate=t;const i=await getConfidentialApp(n);try{const t=await i.acquireTokenByClientCredential({scopes:e,authority:calculateRequestAuthority(n),azureRegion:calculateRegionalAuthority(),claims:n?.claims});ensureValidMsalToken(e,t,n);o.logger.getToken.info(formatSuccess(e));return{token:t.accessToken,expiresOnTimestamp:t.expiresOn.getTime(),refreshAfterTimestamp:t.refreshOn?.getTime(),tokenType:t.tokenType}}catch(t){throw handleMsalError(e,t,n)}}async function getTokenByDeviceCode(e,t,n={}){o.logger.getToken.info(`Attempting to acquire token using device code`);const i=await getPublicApp(n);return withSilentAuthentication(i,e,n,(()=>{const o={scopes:e,cancel:n?.abortSignal?.aborted??false,deviceCodeCallback:t,authority:calculateRequestAuthority(n),claims:n?.claims};const a=i.acquireTokenByDeviceCode(o);if(n.abortSignal){n.abortSignal.addEventListener("abort",(()=>{o.cancel=true}))}return a}))}async function getTokenByUsernamePassword(e,t,n,i={}){o.logger.getToken.info(`Attempting to acquire token using username and password`);const a=await getPublicApp(i);return withSilentAuthentication(a,e,i,(()=>{const o={scopes:e,username:t,password:n,authority:calculateRequestAuthority(i),claims:i?.claims};return a.acquireTokenByUsernamePassword(o)}))}function getActiveAccount(){if(!o.cachedAccount){return undefined}return msalToPublic(e,o.cachedAccount)}async function getTokenByAuthorizationCode(e,t,n,i,a={}){o.logger.getToken.info(`Attempting to acquire token using authorization code`);let d;if(i){o.msalConfig.auth.clientSecret=i;d=await getConfidentialApp(a)}else{d=await getPublicApp(a)}return withSilentAuthentication(d,e,a,(()=>d.acquireTokenByCode({scopes:e,redirectUri:t,code:n,authority:calculateRequestAuthority(a),claims:a?.claims})))}async function getTokenOnBehalfOf(e,t,n,i={}){Kp.getToken.info(`Attempting to acquire token on behalf of another user`);if(typeof n==="string"){Kp.getToken.info(`Using client secret for on behalf of flow`);o.msalConfig.auth.clientSecret=n}else if(typeof n==="function"){Kp.getToken.info(`Using client assertion callback for on behalf of flow`);o.msalConfig.auth.clientAssertion=n}else{Kp.getToken.info(`Using client certificate for on behalf of flow`);o.msalConfig.auth.clientCertificate=n}const a=await getConfidentialApp(i);try{const n=await a.acquireTokenOnBehalfOf({scopes:e,authority:calculateRequestAuthority(i),claims:i.claims,oboAssertion:t});ensureValidMsalToken(e,n,i);Kp.getToken.info(formatSuccess(e));return{token:n.accessToken,expiresOnTimestamp:n.expiresOn.getTime(),refreshAfterTimestamp:n.refreshOn?.getTime(),tokenType:n.tokenType}}catch(t){throw handleMsalError(e,t,i)}}function createBaseInteractiveRequest(e,t){return{openBrowser:async e=>{const t=await __nccwpck_require__.e(360).then(__nccwpck_require__.bind(__nccwpck_require__,6360));await t.default(e,{newInstance:true})},scopes:e,authority:calculateRequestAuthority(t),claims:t?.claims,loginHint:t?.loginHint,errorTemplate:t?.browserCustomizationOptions?.errorMessage,successTemplate:t?.browserCustomizationOptions?.successMessage,prompt:t?.loginHint?"login":"select_account"}}async function getBrokeredTokenInternal(e,t,n={}){Kp.verbose("Authentication will resume through the broker");const i=await getPublicApp(n);const a=createBaseInteractiveRequest(e,n);if(o.pluginConfiguration.broker.parentWindowHandle){a.windowHandle=Buffer.from(o.pluginConfiguration.broker.parentWindowHandle)}else{Kp.warning("Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle.")}if(o.pluginConfiguration.broker.enableMsaPassthrough){(a.extraQueryParameters??={})["msal_request_type"]="consumer_passthrough"}if(t){a.prompt="none";Kp.verbose("Attempting broker authentication using the default broker account")}else{Kp.verbose("Attempting broker authentication without the default broker account")}if(n.proofOfPossessionOptions){a.shrNonce=n.proofOfPossessionOptions.nonce;a.authenticationScheme="pop";a.resourceRequestMethod=n.proofOfPossessionOptions.resourceRequestMethod;a.resourceRequestUri=n.proofOfPossessionOptions.resourceRequestUrl}try{return await i.acquireTokenInteractive(a)}catch(o){Kp.verbose(`Failed to authenticate through the broker: ${o.message}`);if(n.disableAutomaticAuthentication){throw new AuthenticationRequiredError({scopes:e,getTokenOptions:n,message:"Cannot silently authenticate with default broker account."})}if(t){return getBrokeredTokenInternal(e,false,n)}else{throw o}}}async function getBrokeredToken(e,t,n={}){Kp.getToken.info(`Attempting to acquire token using brokered authentication with useDefaultBrokerAccount: ${t}`);const i=await getBrokeredTokenInternal(e,t,n);ensureValidMsalToken(e,i,n);o.cachedAccount=i?.account??null;o.logger.getToken.info(formatSuccess(e));return{token:i.accessToken,expiresOnTimestamp:i.expiresOn.getTime(),refreshAfterTimestamp:i.refreshOn?.getTime(),tokenType:i.tokenType}}async function getTokenByInteractiveRequest(e,t={}){Kp.getToken.info(`Attempting to acquire token interactively`);const n=await getPublicApp(t);return withSilentAuthentication(n,e,t,(async()=>{const i=createBaseInteractiveRequest(e,t);if(o.pluginConfiguration.broker.isEnabled){return getBrokeredTokenInternal(e,o.pluginConfiguration.broker.useDefaultBrokerAccount??false,t)}if(t.proofOfPossessionOptions){i.shrNonce=t.proofOfPossessionOptions.nonce;i.authenticationScheme="pop";i.resourceRequestMethod=t.proofOfPossessionOptions.resourceRequestMethod;i.resourceRequestUri=t.proofOfPossessionOptions.resourceRequestUrl}return n.acquireTokenInteractive(i)}))}return{getActiveAccount:getActiveAccount,getBrokeredToken:getBrokeredToken,getTokenByClientSecret:getTokenByClientSecret,getTokenByClientAssertion:getTokenByClientAssertion,getTokenByClientCertificate:getTokenByClientCertificate,getTokenByDeviceCode:getTokenByDeviceCode,getTokenByUsernamePassword:getTokenByUsernamePassword,getTokenByAuthorizationCode:getTokenByAuthorizationCode,getTokenOnBehalfOf:getTokenOnBehalfOf,getTokenByInteractiveRequest:getTokenByInteractiveRequest}}const Qp="ClientCertificateCredential";const Yp=credentialLogger(Qp);class ClientCertificateCredential{tenantId;additionallyAllowedTenantIds;certificateConfiguration;sendCertificateChain;msalClient;constructor(e,t,n,o={}){if(!e||!t){throw new Error(`${Qp}: tenantId and clientId are required parameters.`)}this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(o?.additionallyAllowedTenants);this.sendCertificateChain=o.sendCertificateChain;this.certificateConfiguration={...typeof n==="string"?{certificatePath:n}:n};const i=this.certificateConfiguration.certificate;const a=this.certificateConfiguration.certificatePath;if(!this.certificateConfiguration||!(i||a)){throw new Error(`${Qp}: Provide either a PEM certificate in string form, or the path to that certificate in the filesystem. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(i&&a){throw new Error(`${Qp}: To avoid unexpected behaviors, providing both the contents of a PEM certificate and the path to a PEM certificate is forbidden. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}this.msalClient=msalClient_createMsalClient(t,e,{...o,logger:Yp,tokenCredentialOptions:o})}async getToken(e,t={}){return ir.withSpan(`${Qp}.getToken`,t,(async t=>{t.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds,Yp);const n=Array.isArray(e)?e:[e];const o=await this.buildClientCertificate();return this.msalClient.getTokenByClientCertificate(n,o,t)}))}async buildClientCertificate(){const e=await parseCertificate(this.certificateConfiguration,this.sendCertificateChain??false);let t;if(this.certificateConfiguration.certificatePassword!==undefined){t=(0,gu.createPrivateKey)({key:e.certificateContents,passphrase:this.certificateConfiguration.certificatePassword,format:"pem"}).export({format:"pem",type:"pkcs8"}).toString()}else{t=e.certificateContents}return{thumbprint:e.thumbprint,thumbprintSha256:e.thumbprintSha256,privateKey:t,x5c:e.x5c}}}async function parseCertificate(e,t){const n=e.certificate;const o=e.certificatePath;const i=n||await(0,ht.readFile)(o,"utf8");const a=t?i:undefined;const d=/(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;const f=[];let m;do{m=d.exec(i);if(m){f.push(m[3])}}while(m);if(f.length===0){throw new Error("The file at the specified path does not contain a PEM-encoded certificate.")}const h=(0,gu.createHash)("sha1").update(Buffer.from(f[0],"base64")).digest("hex").toUpperCase();const C=(0,gu.createHash)("sha256").update(Buffer.from(f[0],"base64")).digest("hex").toUpperCase();return{certificateContents:i,thumbprintSha256:C,thumbprint:h,x5c:a}}function scopeUtils_ensureScopes(e){return Array.isArray(e)?e:[e]}function ensureValidScopeForDevTimeCreds(e,t){if(!e.match(/^[0-9a-zA-Z-_.:/]+$/)){const n=new Error("Invalid scope was specified by the user or calling client");t.getToken.info(logging_formatError(e,n));throw n}}function getScopeResource(e){return e.replace(/\/.default$/,"")}const Jp=credentialLogger("ClientSecretCredential");class ClientSecretCredential{tenantId;additionallyAllowedTenantIds;msalClient;clientSecret;constructor(e,t,n,o={}){if(!e){throw new errors_CredentialUnavailableError("ClientSecretCredential: tenantId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.")}if(!t){throw new errors_CredentialUnavailableError("ClientSecretCredential: clientId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.")}if(!n){throw new errors_CredentialUnavailableError("ClientSecretCredential: clientSecret is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.")}this.clientSecret=n;this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(o?.additionallyAllowedTenants);this.msalClient=msalClient_createMsalClient(t,e,{...o,logger:Jp,tokenCredentialOptions:o})}async getToken(e,t={}){return ir.withSpan(`${this.constructor.name}.getToken`,t,(async t=>{t.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds,Jp);const n=scopeUtils_ensureScopes(e);return this.msalClient.getTokenByClientSecret(n,this.clientSecret,t)}))}}const Xp=credentialLogger("UsernamePasswordCredential");class UsernamePasswordCredential{tenantId;additionallyAllowedTenantIds;msalClient;username;password;constructor(e,t,n,o,i={}){if(!e){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: tenantId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}if(!t){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: clientId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}if(!n){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: username is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}if(!o){throw new errors_CredentialUnavailableError("UsernamePasswordCredential: password is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.")}this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(i?.additionallyAllowedTenants);this.username=n;this.password=o;this.msalClient=msalClient_createMsalClient(t,this.tenantId,{...i,tokenCredentialOptions:i??{}})}async getToken(e,t={}){return ir.withSpan(`${this.constructor.name}.getToken`,t,(async t=>{t.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds,Xp);const n=scopeUtils_ensureScopes(e);return this.msalClient.getTokenByUsernamePassword(n,this.username,this.password,t)}))}}const Zp=["AZURE_TENANT_ID","AZURE_CLIENT_ID","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","AZURE_CLIENT_CERTIFICATE_PASSWORD","AZURE_USERNAME","AZURE_PASSWORD","AZURE_ADDITIONALLY_ALLOWED_TENANTS","AZURE_CLIENT_SEND_CERTIFICATE_CHAIN"];function getAdditionallyAllowedTenants(){const e=process.env.AZURE_ADDITIONALLY_ALLOWED_TENANTS??"";return e.split(";")}const ef="EnvironmentCredential";const tf=credentialLogger(ef);function getSendCertificateChain(){const e=(process.env.AZURE_CLIENT_SEND_CERTIFICATE_CHAIN??"").toLowerCase();const t=e==="true"||e==="1";tf.verbose(`AZURE_CLIENT_SEND_CERTIFICATE_CHAIN: ${process.env.AZURE_CLIENT_SEND_CERTIFICATE_CHAIN}; sendCertificateChain: ${t}`);return t}class EnvironmentCredential{_credential=undefined;constructor(e){const t=processEnvVars(Zp).assigned.join(", ");tf.info(`Found the following environment variables: ${t}`);const n=process.env.AZURE_TENANT_ID,o=process.env.AZURE_CLIENT_ID,i=process.env.AZURE_CLIENT_SECRET;const a=getAdditionallyAllowedTenants();const d=getSendCertificateChain();const f={...e,additionallyAllowedTenantIds:a,sendCertificateChain:d};if(n){tenantIdUtils_checkTenantId(tf,n)}if(n&&o&&i){tf.info(`Invoking ClientSecretCredential with tenant ID: ${n}, clientId: ${o} and clientSecret: [REDACTED]`);this._credential=new ClientSecretCredential(n,o,i,f);return}const m=process.env.AZURE_CLIENT_CERTIFICATE_PATH;const h=process.env.AZURE_CLIENT_CERTIFICATE_PASSWORD;if(n&&o&&m){tf.info(`Invoking ClientCertificateCredential with tenant ID: ${n}, clientId: ${o} and certificatePath: ${m}`);this._credential=new ClientCertificateCredential(n,o,{certificatePath:m,certificatePassword:h},f);return}const C=process.env.AZURE_USERNAME;const P=process.env.AZURE_PASSWORD;if(n&&o&&C&&P){tf.info(`Invoking UsernamePasswordCredential with tenant ID: ${n}, clientId: ${o} and username: ${C}`);tf.warning("Environment is configured to use username and password authentication. This authentication method is deprecated, as it doesn't support multifactor authentication (MFA). Use a more secure credential. For more details, see https://aka.ms/azsdk/identity/mfa.");this._credential=new UsernamePasswordCredential(n,o,C,P,f)}}async getToken(e,t={}){return ir.withSpan(`${ef}.getToken`,t,(async t=>{if(this._credential){try{const n=await this._credential.getToken(e,t);tf.getToken.info(formatSuccess(e));return n}catch(t){const n=new errors_AuthenticationError(400,{error:`${ef} authentication failed. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.`,error_description:t.message.toString().split("More details:").join("")});tf.getToken.info(logging_formatError(e,n));throw n}}throw new errors_CredentialUnavailableError(`${ef} is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.`)}))}}const nf=1e3*64;const rf=3e3;function imdsRetryPolicy(e){return policies_retryPolicy_retryPolicy([{name:"imdsRetryPolicy",retry:({retryCount:t,response:n})=>{if(n?.status!==404&&n?.status!==410){return{skipStrategy:true}}const o=n?.status===410?Math.max(rf,e.startDelayInMs):e.startDelayInMs;return esm_calculateRetryDelay(t,{retryDelayInMs:o,maxRetryDelayInMs:nf})}}],{maxRetries:e.maxRetries})}const of="ManagedIdentityCredential - IMDS";const sf=credentialLogger(of);const af="http://169.254.169.254";const cf="/metadata/identity/oauth2/token";function prepareInvalidRequestOptions(e){const t=mapScopesToResource(e);if(!t){throw new Error(`${of}: Multiple scopes are not supported.`)}const n=new URL(cf,process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST??af);const o={Accept:"application/json"};return{url:`${n}`,method:"GET",headers:esm_httpHeaders_createHttpHeaders(o)}}const lf={name:"imdsMsi",async isAvailable(e){const{scopes:t,identityClient:n,getTokenOptions:o}=e;const i=mapScopesToResource(t);if(!i){sf.info(`${of}: Unavailable. Multiple scopes are not supported.`);return false}if(process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST){return true}if(!n){throw new Error("Missing IdentityClient")}const a=prepareInvalidRequestOptions(i);return ir.withSpan("ManagedIdentityCredential-pingImdsEndpoint",o??{},(async e=>{a.tracingOptions=e.tracingOptions;const t=esm_pipelineRequest_createPipelineRequest(a);t.timeout=e.requestOptions?.timeout||1e3;t.allowInsecureConnection=true;let o;try{sf.info(`${of}: Pinging the Azure IMDS endpoint`);o=await n.sendRequest(t)}catch(e){if(esm_isError(e)){sf.verbose(`${of}: Caught error ${e.name}: ${e.message}`)}sf.info(`${of}: The Azure IMDS endpoint is unavailable`);return false}if(o.status===403){if(o.bodyAsText?.includes("unreachable")){sf.info(`${of}: The Azure IMDS endpoint is unavailable`);sf.info(`${of}: ${o.bodyAsText}`);return false}}sf.info(`${of}: The Azure IMDS endpoint is available`);return true}))}};const uf=credentialLogger("ClientAssertionCredential");class clientAssertionCredential_ClientAssertionCredential{msalClient;tenantId;additionallyAllowedTenantIds;getAssertion;options;constructor(e,t,n,o={}){if(!e){throw new errors_CredentialUnavailableError("ClientAssertionCredential: tenantId is a required parameter.")}if(!t){throw new errors_CredentialUnavailableError("ClientAssertionCredential: clientId is a required parameter.")}if(!n){throw new errors_CredentialUnavailableError("ClientAssertionCredential: clientAssertion is a required parameter.")}this.tenantId=e;this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(o?.additionallyAllowedTenants);this.options=o;this.getAssertion=n;this.msalClient=msalClient_createMsalClient(t,e,{...o,logger:uf,tokenCredentialOptions:this.options})}async getToken(e,t={}){return ir.withSpan(`${this.constructor.name}.getToken`,t,(async t=>{t.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds,uf);const n=Array.isArray(e)?e:[e];return this.msalClient.getTokenByClientAssertion(n,this.getAssertion,t)}))}}const df="WorkloadIdentityCredential";const pf=["AZURE_TENANT_ID","AZURE_CLIENT_ID","AZURE_FEDERATED_TOKEN_FILE"];const ff=credentialLogger(df);class WorkloadIdentityCredential{client;azureFederatedTokenFileContent=undefined;cacheDate=undefined;federatedTokenFilePath;constructor(e){const t=processEnvVars(pf).assigned.join(", ");ff.info(`Found the following environment variables: ${t}`);const n=e??{};const o=n.tenantId||process.env.AZURE_TENANT_ID;const i=n.clientId||process.env.AZURE_CLIENT_ID;this.federatedTokenFilePath=n.tokenFilePath||process.env.AZURE_FEDERATED_TOKEN_FILE;if(o){tenantIdUtils_checkTenantId(ff,o)}if(!i){throw new errors_CredentialUnavailableError(`${df}: is unavailable. clientId is a required parameter. In DefaultAzureCredential and ManagedIdentityCredential, this can be provided as an environment variable - "AZURE_CLIENT_ID".\n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`)}if(!o){throw new errors_CredentialUnavailableError(`${df}: is unavailable. tenantId is a required parameter. In DefaultAzureCredential and ManagedIdentityCredential, this can be provided as an environment variable - "AZURE_TENANT_ID".\n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`)}if(!this.federatedTokenFilePath){throw new errors_CredentialUnavailableError(`${df}: is unavailable. federatedTokenFilePath is a required parameter. In DefaultAzureCredential and ManagedIdentityCredential, this can be provided as an environment variable - "AZURE_FEDERATED_TOKEN_FILE".\n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`)}ff.info(`Invoking ClientAssertionCredential with tenant ID: ${o}, clientId: ${n.clientId} and federated token path: [REDACTED]`);this.client=new clientAssertionCredential_ClientAssertionCredential(o,i,this.readFileContents.bind(this),e)}async getToken(e,t){if(!this.client){const e=`${df}: is unavailable. tenantId, clientId, and federatedTokenFilePath are required parameters. \n In DefaultAzureCredential and ManagedIdentityCredential, these can be provided as environment variables - \n "AZURE_TENANT_ID",\n "AZURE_CLIENT_ID",\n "AZURE_FEDERATED_TOKEN_FILE". See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot`;ff.info(e);throw new errors_CredentialUnavailableError(e)}ff.info("Invoking getToken() of Client Assertion Credential");return this.client.getToken(e,t)}async readFileContents(){if(this.cacheDate!==undefined&&Date.now()-this.cacheDate>=1e3*60*5){this.azureFederatedTokenFileContent=undefined}if(!this.federatedTokenFilePath){throw new errors_CredentialUnavailableError(`${df}: is unavailable. Invalid file path provided ${this.federatedTokenFilePath}.`)}if(!this.azureFederatedTokenFileContent){const e=await(0,ht.readFile)(this.federatedTokenFilePath,"utf8");const t=e.trim();if(!t){throw new errors_CredentialUnavailableError(`${df}: is unavailable. No content on the file ${this.federatedTokenFilePath}.`)}else{this.azureFederatedTokenFileContent=t;this.cacheDate=Date.now()}}return this.azureFederatedTokenFileContent}}const mf="ManagedIdentityCredential - Token Exchange";const hf=credentialLogger(mf);const gf={name:"tokenExchangeMsi",async isAvailable(e){const t=process.env;const n=Boolean((e||t.AZURE_CLIENT_ID)&&t.AZURE_TENANT_ID&&process.env.AZURE_FEDERATED_TOKEN_FILE);if(!n){hf.info(`${mf}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`)}return n},async getToken(e,t={}){const{scopes:n,clientId:o}=e;const i={};const a=new WorkloadIdentityCredential({clientId:o,tenantId:process.env.AZURE_TENANT_ID,tokenFilePath:process.env.AZURE_FEDERATED_TOKEN_FILE,...i,disableInstanceDiscovery:true});return a.getToken(n,t)}};const yf=credentialLogger("ManagedIdentityCredential");class ManagedIdentityCredential{managedIdentityApp;identityClient;clientId;resourceId;objectId;msiRetryConfig={maxRetries:5,startDelayInMs:800,intervalIncrement:2};isAvailableIdentityClient;sendProbeRequest;constructor(e,t){let n;if(typeof e==="string"){this.clientId=e;n=t??{}}else{this.clientId=e?.clientId;n=e??{}}this.resourceId=n?.resourceId;this.objectId=n?.objectId;this.sendProbeRequest=n?.sendProbeRequest??false;const o=[{key:"clientId",value:this.clientId},{key:"resourceId",value:this.resourceId},{key:"objectId",value:this.objectId}].filter((e=>e.value));if(o.length>1){throw new Error(`ManagedIdentityCredential: only one of 'clientId', 'resourceId', or 'objectId' can be provided. Received values: ${JSON.stringify({clientId:this.clientId,resourceId:this.resourceId,objectId:this.objectId})}`)}n.allowInsecureConnection=true;if(n.retryOptions?.maxRetries!==undefined){this.msiRetryConfig.maxRetries=n.retryOptions.maxRetries}this.identityClient=new identityClient_IdentityClient({...n,additionalPolicies:[{policy:imdsRetryPolicy(this.msiRetryConfig),position:"perCall"}]});this.managedIdentityApp=new ManagedIdentityApplication({managedIdentityIdParams:{userAssignedClientId:this.clientId,userAssignedResourceId:this.resourceId,userAssignedObjectId:this.objectId},system:{disableInternalRetries:true,networkClient:this.identityClient,loggerOptions:{logLevel:getMSALLogLevel(esm_getLogLevel()),piiLoggingEnabled:n.loggingOptions?.enableUnsafeSupportLogging,loggerCallback:defaultLoggerCallback(yf)}}});this.isAvailableIdentityClient=new identityClient_IdentityClient({...n,retryOptions:{maxRetries:0}});const i=this.managedIdentityApp.getManagedIdentitySource();if(i==="CloudShell"){if(this.clientId||this.resourceId||this.objectId){yf.warning(`CloudShell MSI detected with user-provided IDs - throwing. Received values: ${JSON.stringify({clientId:this.clientId,resourceId:this.resourceId,objectId:this.objectId})}.`);throw new errors_CredentialUnavailableError("ManagedIdentityCredential: Specifying a user-assigned managed identity is not supported for CloudShell at runtime. When using Managed Identity in CloudShell, omit the clientId, resourceId, and objectId parameters.")}}if(i==="ServiceFabric"){if(this.clientId||this.resourceId||this.objectId){yf.warning(`Service Fabric detected with user-provided IDs - throwing. Received values: ${JSON.stringify({clientId:this.clientId,resourceId:this.resourceId,objectId:this.objectId})}.`);throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: ${Vp}`)}}yf.info(`Using ${i} managed identity.`);if(o.length===1){const{key:e,value:t}=o[0];yf.info(`${i} with ${e}: ${t}`)}}async getToken(e,t={}){yf.getToken.info("Using the MSAL provider for Managed Identity.");const n=mapScopesToResource(e);if(!n){throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: Multiple scopes are not supported. Scopes: ${JSON.stringify(e)}`)}return ir.withSpan("ManagedIdentityCredential.getToken",t,(async()=>{try{const o=await gf.isAvailable(this.clientId);const i=this.managedIdentityApp.getManagedIdentitySource();const a=i==="DefaultToImds"||i==="Imds";yf.getToken.info(`MSAL Identity source: ${i}`);if(o){yf.getToken.info("Using the token exchange managed identity.");const t=await gf.getToken({scopes:e,clientId:this.clientId,identityClient:this.identityClient,retryConfig:this.msiRetryConfig,resourceId:this.resourceId});if(t===null){throw new errors_CredentialUnavailableError("Attempted to use the token exchange managed identity, but received a null response.")}return t}else if(a&&this.sendProbeRequest){yf.getToken.info("Using the IMDS endpoint to probe for availability.");const n=await lf.isAvailable({scopes:e,clientId:this.clientId,getTokenOptions:t,identityClient:this.isAvailableIdentityClient,resourceId:this.resourceId});if(!n){throw new errors_CredentialUnavailableError(`Attempted to use the IMDS endpoint, but it is not available.`)}}yf.getToken.info("Calling into MSAL for managed identity token.");const d=await this.managedIdentityApp.acquireToken({resource:n});this.ensureValidMsalToken(e,d,t);yf.getToken.info(formatSuccess(e));return{expiresOnTimestamp:d.expiresOn.getTime(),token:d.accessToken,refreshAfterTimestamp:d.refreshOn?.getTime(),tokenType:"Bearer"}}catch(t){yf.getToken.error(logging_formatError(e,t));if(t.name==="AuthenticationRequiredError"){throw t}if(isNetworkError(t)){throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: Network unreachable. Message: ${t.message}`,{cause:t})}throw new errors_CredentialUnavailableError(`ManagedIdentityCredential: Authentication failed. Message ${t.message}`,{cause:t})}}))}ensureValidMsalToken(e,t,n){const createError=t=>{yf.getToken.info(t);return new AuthenticationRequiredError({scopes:Array.isArray(e)?e:[e],getTokenOptions:n,message:t})};if(!t){throw createError("No response.")}if(!t.expiresOn){throw createError(`Response had no "expiresOn" property.`)}if(!t.accessToken){throw createError(`Response had no "accessToken" property.`)}}}function isNetworkError(e){if(e.errorCode==="network_error"){return true}if(e.code==="ENETUNREACH"||e.code==="EHOSTUNREACH"){return true}if(e.statusCode===403||e.code===403){if(e.message.includes("unreachable")){return true}}return false}const Sf=e(import.meta.url)("child_process");const Ef=credentialLogger("AzureDeveloperCliCredential");const vf={notInstalled:"Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.",login:"Please run 'azd auth login' from a command prompt to authenticate before using this credential. For more information, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.",unknown:"Unknown error while trying to retrieve the access token",claim:"This credential doesn't support claims challenges. To authenticate with the required claims, please run the following command:"};const Cf={getSafeWorkingDir(){if(process.platform==="win32"){let e=process.env.SystemRoot||process.env["SYSTEMROOT"];if(!e){Ef.getToken.warning("The SystemRoot environment variable is not set. This may cause issues when using the Azure Developer CLI credential.");e="C:\\Windows"}return e}else{return"/bin"}},async getAzdAccessToken(e,t,n,o){let i=[];if(t){i=["--tenant-id",t]}let a=[];if(o){const e=btoa(o);a=["--claims",e]}return new Promise(((t,o)=>{try{const o=["auth","token","--output","json","--no-prompt",...e.reduce(((e,t)=>e.concat("--scope",t)),[]),...i,...a];const d=["azd",...o].join(" ");Sf.exec(d,{cwd:Cf.getSafeWorkingDir(),timeout:n},((e,n,o)=>{t({stdout:n,stderr:o,error:e})}))}catch(e){o(e)}}))}};class AzureDeveloperCliCredential{tenantId;additionallyAllowedTenantIds;timeout;constructor(e){if(e?.tenantId){tenantIdUtils_checkTenantId(Ef,e?.tenantId);this.tenantId=e?.tenantId}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);this.timeout=e?.processTimeoutInMs}async getToken(e,t={}){const n=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds);if(n){tenantIdUtils_checkTenantId(Ef,n)}let o;if(typeof e==="string"){o=[e]}else{o=e}Ef.getToken.info(`Using the scopes ${e}`);return ir.withSpan(`${this.constructor.name}.getToken`,t,(async()=>{try{o.forEach((e=>{ensureValidScopeForDevTimeCreds(e,Ef)}));const i=await Cf.getAzdAccessToken(o,n,this.timeout,t.claims);const a=i.stderr?.match("must use multi-factor authentication")||i.stderr?.match("reauthentication required");const d=i.stderr?.match("not logged in, run `azd login` to login")||i.stderr?.match("not logged in, run `azd auth login` to login");const f=i.stderr?.match("azd:(.*)not found")||i.stderr?.startsWith("'azd' is not recognized");if(f||i.error&&i.error.code==="ENOENT"){const t=new errors_CredentialUnavailableError(vf.notInstalled);Ef.getToken.info(logging_formatError(e,t));throw t}if(d){const t=new errors_CredentialUnavailableError(vf.login);Ef.getToken.info(logging_formatError(e,t));throw t}if(a){const t=o.reduce(((e,t)=>e.concat("--scope",t)),[]).join(" ");const n=`azd auth login ${t}`;const i=new errors_CredentialUnavailableError(`${vf.claim} ${n}`);Ef.getToken.info(logging_formatError(e,i));throw i}try{const t=JSON.parse(i.stdout);Ef.getToken.info(formatSuccess(e));return{token:t.token,expiresOnTimestamp:new Date(t.expiresOn).getTime(),tokenType:"Bearer"}}catch(e){if(i.stderr){throw new errors_CredentialUnavailableError(i.stderr)}throw e}}catch(t){const n=t.name==="CredentialUnavailableError"?t:new errors_CredentialUnavailableError(t.message||vf.unknown);Ef.getToken.info(logging_formatError(e,n));throw n}}))}}function checkSubscription(e,t){if(!t.match(/^[0-9a-zA-Z-._ ]+$/)){const n=new Error(`Subscription '${t}' contains invalid characters. If this is the name of a subscription, use `+`its ID instead. You can locate your subscription by following the instructions listed here: `+`https://learn.microsoft.com/azure/azure-portal/get-subscription-tenant-id`);e.info(logging_formatError("",n));throw n}}const If=credentialLogger("AzureCliCredential");const bf={claim:"This credential doesn't support claims challenges. To authenticate with the required claims, please run the following command:",notInstalled:"Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'.",login:"Please run 'az login' from a command prompt to authenticate before using this credential.",unknown:"Unknown error while trying to retrieve the access token",unexpectedResponse:'Unexpected response from Azure CLI when getting token. Expected "expiresOn" to be a RFC3339 date string. Got:'};const wf={getSafeWorkingDir(){if(process.platform==="win32"){let e=process.env.SystemRoot||process.env["SYSTEMROOT"];if(!e){If.getToken.warning("The SystemRoot environment variable is not set. This may cause issues when using the Azure CLI credential.");e="C:\\Windows"}return e}else{return"/bin"}},async getAzureCliAccessToken(e,t,n,o){let i=[];let a=[];if(t){i=["--tenant",t]}if(n){a=["--subscription",`"${n}"`]}return new Promise(((t,n)=>{try{const n=["account","get-access-token","--output","json","--resource",e,...i,...a];const d=["az",...n].join(" ");Sf.exec(d,{cwd:wf.getSafeWorkingDir(),timeout:o},((e,n,o)=>{t({stdout:n,stderr:o,error:e})}))}catch(e){n(e)}}))}};class AzureCliCredential{tenantId;additionallyAllowedTenantIds;timeout;subscription;constructor(e){if(e?.tenantId){tenantIdUtils_checkTenantId(If,e?.tenantId);this.tenantId=e?.tenantId}if(e?.subscription){checkSubscription(If,e?.subscription);this.subscription=e?.subscription}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);this.timeout=e?.processTimeoutInMs}async getToken(e,t={}){const n=typeof e==="string"?e:e[0];const o=t.claims;if(o&&o.trim()){const e=btoa(o);let i=`az login --claims-challenge ${e} --scope ${n}`;const a=t.tenantId;if(a){i+=` --tenant ${a}`}const d=new errors_CredentialUnavailableError(`${bf.claim} ${i}`);If.getToken.info(logging_formatError(n,d));throw d}const i=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds);if(i){tenantIdUtils_checkTenantId(If,i)}if(this.subscription){checkSubscription(If,this.subscription)}If.getToken.info(`Using the scope ${n}`);return ir.withSpan(`${this.constructor.name}.getToken`,t,(async()=>{try{ensureValidScopeForDevTimeCreds(n,If);const t=getScopeResource(n);const o=await wf.getAzureCliAccessToken(t,i,this.subscription,this.timeout);const a=o.stderr?.match("(.*)az login --scope(.*)");const d=o.stderr?.match("(.*)az login(.*)")&&!a;const f=o.stderr?.match("az:(.*)not found")||o.stderr?.startsWith("'az' is not recognized");if(f){const t=new errors_CredentialUnavailableError(bf.notInstalled);If.getToken.info(logging_formatError(e,t));throw t}if(d){const t=new errors_CredentialUnavailableError(bf.login);If.getToken.info(logging_formatError(e,t));throw t}try{const t=o.stdout;const n=this.parseRawResponse(t);If.getToken.info(formatSuccess(e));return n}catch(e){if(o.stderr){throw new errors_CredentialUnavailableError(o.stderr)}throw e}}catch(t){const n=t.name==="CredentialUnavailableError"?t:new errors_CredentialUnavailableError(t.message||bf.unknown);If.getToken.info(logging_formatError(e,n));throw n}}))}parseRawResponse(e){const t=JSON.parse(e);const n=t.accessToken;let o=Number.parseInt(t.expires_on,10)*1e3;if(!isNaN(o)){If.getToken.info("expires_on is available and is valid, using it");return{token:n,expiresOnTimestamp:o,tokenType:"Bearer"}}o=new Date(t.expiresOn).getTime();if(isNaN(o)){throw new errors_CredentialUnavailableError(`${bf.unexpectedResponse} "${t.expiresOn}"`)}return{token:n,expiresOnTimestamp:o,tokenType:"Bearer"}}}var Af=__nccwpck_require__(1421);const Rf={execFile(e,t,n){return new Promise(((o,i)=>{Af.execFile(e,t,n,((e,t,n)=>{if(Buffer.isBuffer(t)){t=t.toString("utf8")}if(Buffer.isBuffer(n)){n=n.toString("utf8")}if(n||e){i(n?new Error(n):e)}else{o(t)}}))}))}};const Pf=credentialLogger("AzurePowerShellCredential");const Tf=process.platform==="win32";function formatCommand(e){if(Tf){return`${e}.exe`}else{return e}}async function runCommands(e,t){const n=[];for(const o of e){const[e,...i]=o;const a=await Rf.execFile(e,i,{encoding:"utf8",timeout:t});n.push(a)}return n}const xf={login:"Run Connect-AzAccount to login",installed:"The specified module 'Az.Accounts' with version '2.2.0' was not loaded because no valid module file was found in any module directory"};const _f={login:"Please run 'Connect-AzAccount' from PowerShell to authenticate before using this credential.",installed:`The 'Az.Account' module >= 2.2.0 is not installed. Install the Azure Az PowerShell module with: "Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force".`,claim:"This credential doesn't support claims challenges. To authenticate with the required claims, please run the following command:",troubleshoot:`To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.`};const isLoginError=e=>e.message.match(`(.*)${xf.login}(.*)`);const isNotInstalledError=e=>e.message.match(xf.installed);const Of=[formatCommand("pwsh")];if(Tf){Of.push(formatCommand("powershell"))}class AzurePowerShellCredential{tenantId;additionallyAllowedTenantIds;timeout;constructor(e){if(e?.tenantId){tenantIdUtils_checkTenantId(Pf,e?.tenantId);this.tenantId=e?.tenantId}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);this.timeout=e?.processTimeoutInMs}async getAzurePowerShellAccessToken(e,t,n){for(const o of[...Of]){try{await runCommands([[o,"/?"]],n)}catch(e){Of.shift();continue}const i=await runCommands([[o,"-NoProfile","-NonInteractive","-Command",`\n $tenantId = "${t??""}"\n $m = Import-Module Az.Accounts -MinimumVersion 2.2.0 -PassThru\n $useSecureString = $m.Version -ge [version]'2.17.0' -and $m.Version -lt [version]'5.0.0'\n\n $params = @{\n ResourceUrl = "${e}"\n }\n\n if ($tenantId.Length -gt 0) {\n $params["TenantId"] = $tenantId\n }\n\n if ($useSecureString) {\n $params["AsSecureString"] = $true\n }\n\n $token = Get-AzAccessToken @params\n\n $result = New-Object -TypeName PSObject\n $result | Add-Member -MemberType NoteProperty -Name ExpiresOn -Value $token.ExpiresOn\n\n if ($token.Token -is [System.Security.SecureString]) {\n if ($PSVersionTable.PSVersion.Major -lt 7) {\n $ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($token.Token)\n try {\n $result | Add-Member -MemberType NoteProperty -Name Token -Value ([System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr))\n }\n finally {\n [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr)\n }\n }\n else {\n $result | Add-Member -MemberType NoteProperty -Name Token -Value ($token.Token | ConvertFrom-SecureString -AsPlainText)\n }\n }\n else {\n $result | Add-Member -MemberType NoteProperty -Name Token -Value $token.Token\n }\n\n Write-Output (ConvertTo-Json $result)\n `]]);const a=i[0];return parseJsonToken(a)}throw new Error(`Unable to execute PowerShell. Ensure that it is installed in your system`)}async getToken(e,t={}){return ir.withSpan(`${this.constructor.name}.getToken`,t,(async()=>{const n=typeof e==="string"?e:e[0];const o=t.claims;if(o&&o.trim()){const e=btoa(o);let i=`Connect-AzAccount -ClaimsChallenge ${e}`;const a=t.tenantId;if(a){i+=` -Tenant ${a}`}const d=new errors_CredentialUnavailableError(`${_f.claim} ${i}`);Pf.getToken.info(logging_formatError(n,d));throw d}const i=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds);if(i){tenantIdUtils_checkTenantId(Pf,i)}try{ensureValidScopeForDevTimeCreds(n,Pf);Pf.getToken.info(`Using the scope ${n}`);const t=getScopeResource(n);const o=await this.getAzurePowerShellAccessToken(t,i,this.timeout);Pf.getToken.info(formatSuccess(e));return{token:o.Token,expiresOnTimestamp:new Date(o.ExpiresOn).getTime(),tokenType:"Bearer"}}catch(e){if(isNotInstalledError(e)){const e=new errors_CredentialUnavailableError(_f.installed);Pf.getToken.info(logging_formatError(n,e));throw e}else if(isLoginError(e)){const e=new errors_CredentialUnavailableError(_f.login);Pf.getToken.info(logging_formatError(n,e));throw e}const t=new errors_CredentialUnavailableError(`${e}. ${_f.troubleshoot}`);Pf.getToken.info(logging_formatError(n,t));throw t}}))}}async function parseJsonToken(e){const t=/{[^{}]*}/g;const n=e.match(t);let o=e;if(n){try{for(const e of n){try{const t=JSON.parse(e);if(t?.Token){o=o.replace(e,"");if(o){Pf.getToken.warning(o)}return t}}catch(e){continue}}}catch(t){throw new Error(`Unable to parse the output of PowerShell. Received output: ${e}`)}}throw new Error(`No access token found in the output. Received output: ${e}`)}const Mf="common";const Df="aebc6443-996d-45c2-90f0-388ff96faa56";const $f=credentialLogger("VisualStudioCodeCredential");const Nf={adfs:"The VisualStudioCodeCredential does not support authentication with ADFS tenants."};function checkUnsupportedTenant(e){const t=Nf[e];if(t){throw new errors_CredentialUnavailableError(t)}}class VisualStudioCodeCredential{tenantId;additionallyAllowedTenantIds;msalClient;options;constructor(e){this.options=e||{};if(e&&e.tenantId){tenantIdUtils_checkTenantId($f,e.tenantId);this.tenantId=e.tenantId}else{this.tenantId=Mf}this.additionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);checkUnsupportedTenant(this.tenantId)}async prepare(e){const t=processMultiTenantRequest_processMultiTenantRequest(this.tenantId,this.options,this.additionallyAllowedTenantIds,$f)||this.tenantId;if(!hasVSCodePlugin()||!Tn){throw new errors_CredentialUnavailableError("Visual Studio Code Authentication is not available."+" Ensure you have have Azure Resources Extension installed in VS Code,"+" signed into Azure via VS Code, installed the @azure/identity-vscode package,"+" and properly configured the extension.")}const n=await this.loadAuthRecord(Tn,e);this.msalClient=msalClient_createMsalClient(Df,t,{...this.options,isVSCodeCredential:true,brokerOptions:{enabled:true,parentWindowHandle:new Uint8Array(0),useDefaultBrokerAccount:true},authenticationRecord:n})}preparePromise;prepareOnce(e){if(!this.preparePromise){this.preparePromise=this.prepare(e)}return this.preparePromise}async getToken(e,t){const n=scopeUtils_ensureScopes(e);await this.prepareOnce(n);if(!this.msalClient){throw new errors_CredentialUnavailableError("Visual Studio Code Authentication failed to initialize."+" Ensure you have have Azure Resources Extension installed in VS Code,"+" signed into Azure via VS Code, installed the @azure/identity-vscode package,"+" and properly configured the extension.")}return this.msalClient.getTokenByInteractiveRequest(n,{...t,disableAutomaticAuthentication:true})}async loadAuthRecord(e,t){try{const t=await(0,ht.readFile)(e,{encoding:"utf8"});return deserializeAuthenticationRecord(t)}catch(e){$f.getToken.info(logging_formatError(t,e));throw new errors_CredentialUnavailableError("Cannot load authentication record in Visual Studio Code."+" Ensure you have have Azure Resources Extension installed in VS Code,"+" signed into Azure via VS Code, installed the @azure/identity-vscode package,"+" and properly configured the extension.")}}}const kf=credentialLogger("BrokerCredential");class BrokerCredential{brokerMsalClient;brokerTenantId;brokerAdditionallyAllowedTenantIds;constructor(e){this.brokerTenantId=tenantIdUtils_resolveTenantId(kf,e.tenantId);this.brokerAdditionallyAllowedTenantIds=tenantIdUtils_resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);const t={...e,tokenCredentialOptions:e,logger:kf,brokerOptions:{enabled:true,parentWindowHandle:new Uint8Array(0),useDefaultBrokerAccount:true}};this.brokerMsalClient=msalClient_createMsalClient(gn,this.brokerTenantId,t)}async getToken(e,t={}){return ir.withSpan(`${this.constructor.name}.getToken`,t,(async t=>{t.tenantId=processMultiTenantRequest_processMultiTenantRequest(this.brokerTenantId,t,this.brokerAdditionallyAllowedTenantIds,kf);const n=scopeUtils_ensureScopes(e);try{return this.brokerMsalClient.getBrokeredToken(n,true,{...t,disableAutomaticAuthentication:true})}catch(e){kf.getToken.info(logging_formatError(n,e));throw new errors_CredentialUnavailableError("Failed to acquire token using broker authentication",{cause:e})}}))}}function createDefaultBrokerCredential(e={}){return new BrokerCredential(e)}function createDefaultVisualStudioCodeCredential(e={}){return new VisualStudioCodeCredential(e)}function createDefaultManagedIdentityCredential(e={}){e.retryOptions??={maxRetries:5,retryDelayInMs:800};e.sendProbeRequest??=true;const t=e?.managedIdentityClientId??process.env.AZURE_CLIENT_ID;const n=e?.workloadIdentityClientId??t;const o=e?.managedIdentityResourceId;const i=process.env.AZURE_FEDERATED_TOKEN_FILE;const a=e?.tenantId??process.env.AZURE_TENANT_ID;if(o){const t={...e,resourceId:o};return new ManagedIdentityCredential(t)}if(i&&n){const t={...e,tenantId:a};return new ManagedIdentityCredential(n,t)}if(t){const n={...e,clientId:t};return new ManagedIdentityCredential(n)}return new ManagedIdentityCredential(e)}function createDefaultWorkloadIdentityCredential(e){const t=e?.managedIdentityClientId??process.env.AZURE_CLIENT_ID;const n=e?.workloadIdentityClientId??t;const o=process.env.AZURE_FEDERATED_TOKEN_FILE;const i=e?.tenantId??process.env.AZURE_TENANT_ID;if(o&&n){const t={...e,tenantId:i,clientId:n,tokenFilePath:o};return new WorkloadIdentityCredential(t)}if(i){const t={...e,tenantId:i};return new WorkloadIdentityCredential(t)}return new WorkloadIdentityCredential(e)}function createDefaultAzureDeveloperCliCredential(e={}){return new AzureDeveloperCliCredential(e)}function createDefaultAzureCliCredential(e={}){return new AzureCliCredential(e)}function createDefaultAzurePowershellCredential(e={}){return new AzurePowerShellCredential(e)}function createDefaultEnvironmentCredential(e={}){return new EnvironmentCredential(e)}const Lf=credentialLogger("DefaultAzureCredential");class UnavailableDefaultCredential{credentialUnavailableErrorMessage;credentialName;constructor(e,t){this.credentialName=e;this.credentialUnavailableErrorMessage=t}getToken(){Lf.getToken.info(`Skipping ${this.credentialName}, reason: ${this.credentialUnavailableErrorMessage}`);return Promise.resolve(null)}}class defaultAzureCredential_DefaultAzureCredential extends ChainedTokenCredential{constructor(e){validateRequiredEnvVars(e);const t=process.env.AZURE_TOKEN_CREDENTIALS?process.env.AZURE_TOKEN_CREDENTIALS.trim().toLowerCase():undefined;const n=[createDefaultVisualStudioCodeCredential,createDefaultAzureCliCredential,createDefaultAzurePowershellCredential,createDefaultAzureDeveloperCliCredential,createDefaultBrokerCredential];const o=[createDefaultEnvironmentCredential,createDefaultWorkloadIdentityCredential,createDefaultManagedIdentityCredential];let i=[];const a="EnvironmentCredential, WorkloadIdentityCredential, ManagedIdentityCredential, VisualStudioCodeCredential, AzureCliCredential, AzurePowerShellCredential, AzureDeveloperCliCredential";if(t){switch(t){case"dev":i=n;break;case"prod":i=o;break;case"environmentcredential":i=[createDefaultEnvironmentCredential];break;case"workloadidentitycredential":i=[createDefaultWorkloadIdentityCredential];break;case"managedidentitycredential":i=[()=>createDefaultManagedIdentityCredential({sendProbeRequest:false})];break;case"visualstudiocodecredential":i=[createDefaultVisualStudioCodeCredential];break;case"azureclicredential":i=[createDefaultAzureCliCredential];break;case"azurepowershellcredential":i=[createDefaultAzurePowershellCredential];break;case"azuredeveloperclicredential":i=[createDefaultAzureDeveloperCliCredential];break;default:{const e=`Invalid value for AZURE_TOKEN_CREDENTIALS = ${process.env.AZURE_TOKEN_CREDENTIALS}. Valid values are 'prod' or 'dev' or any of these credentials - ${a}.`;Lf.warning(e);throw new Error(e)}}}else{i=[...o,...n]}const d=i.map((t=>{try{return t(e??{})}catch(e){Lf.warning(`Skipped ${t.name} because of an error creating the credential: ${e}`);return new UnavailableDefaultCredential(t.name,e.message)}}));super(...d)}}function validateRequiredEnvVars(e){if(e?.requiredEnvVars){const t=Array.isArray(e.requiredEnvVars)?e.requiredEnvVars:[e.requiredEnvVars];const n=t.filter((e=>!process.env[e]));if(n.length>0){const e=`Required environment ${n.length===1?"variable":"variables"} '${n.join(", ")}' for DefaultAzureCredential ${n.length===1?"is":"are"} not set or empty.`;Lf.warning(e);throw new Error(e)}}}const Uf=credentialLogger("InteractiveBrowserCredential");class InteractiveBrowserCredential{tenantId;additionallyAllowedTenantIds;msalClient;disableAutomaticAuthentication;browserCustomizationOptions;loginHint;constructor(e){this.tenantId=resolveTenantId(Uf,e.tenantId,e.clientId);this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);const t={...e,tokenCredentialOptions:e,logger:Uf};const n=e;this.browserCustomizationOptions=n.browserCustomizationOptions;this.loginHint=n.loginHint;if(n?.brokerOptions?.enabled){if(!n?.brokerOptions?.parentWindowHandle){throw new Error("In order to do WAM authentication, `parentWindowHandle` under `brokerOptions` is a required parameter")}else{t.brokerOptions={enabled:true,parentWindowHandle:n.brokerOptions.parentWindowHandle,legacyEnableMsaPassthrough:n.brokerOptions?.legacyEnableMsaPassthrough,useDefaultBrokerAccount:n.brokerOptions?.useDefaultBrokerAccount}}}this.msalClient=createMsalClient(e.clientId??DeveloperSignOnClientId,this.tenantId,t);this.disableAutomaticAuthentication=e?.disableAutomaticAuthentication}async getToken(e,t={}){return tracingClient.withSpan(`${this.constructor.name}.getToken`,t,(async t=>{t.tenantId=processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds,Uf);const n=ensureScopes(e);return this.msalClient.getTokenByInteractiveRequest(n,{...t,disableAutomaticAuthentication:this.disableAutomaticAuthentication,browserCustomizationOptions:this.browserCustomizationOptions,loginHint:this.loginHint})}))}async authenticate(e,t={}){return tracingClient.withSpan(`${this.constructor.name}.authenticate`,t,(async t=>{const n=ensureScopes(e);await this.msalClient.getTokenByInteractiveRequest(n,{...t,disableAutomaticAuthentication:false,browserCustomizationOptions:this.browserCustomizationOptions,loginHint:this.loginHint});return this.msalClient.getActiveAccount()}))}}const Ff=credentialLogger("DeviceCodeCredential");function defaultDeviceCodePromptCallback(e){console.log(e.message)}class DeviceCodeCredential{tenantId;additionallyAllowedTenantIds;disableAutomaticAuthentication;msalClient;userPromptCallback;constructor(e){this.tenantId=e?.tenantId;this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(e?.additionallyAllowedTenants);const t=e?.clientId??DeveloperSignOnClientId;const n=resolveTenantId(Ff,e?.tenantId,t);this.userPromptCallback=e?.userPromptCallback??defaultDeviceCodePromptCallback;this.msalClient=createMsalClient(t,n,{...e,logger:Ff,tokenCredentialOptions:e||{}});this.disableAutomaticAuthentication=e?.disableAutomaticAuthentication}async getToken(e,t={}){return tracingClient.withSpan(`${this.constructor.name}.getToken`,t,(async t=>{t.tenantId=processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds,Ff);const n=ensureScopes(e);return this.msalClient.getTokenByDeviceCode(n,this.userPromptCallback,{...t,disableAutomaticAuthentication:this.disableAutomaticAuthentication})}))}async authenticate(e,t={}){return tracingClient.withSpan(`${this.constructor.name}.authenticate`,t,(async t=>{const n=Array.isArray(e)?e:[e];await this.msalClient.getTokenByDeviceCode(n,this.userPromptCallback,{...t,disableAutomaticAuthentication:false});return this.msalClient.getActiveAccount()}))}}const Bf="AzurePipelinesCredential";const qf=credentialLogger(Bf);const jf="7.1";class AzurePipelinesCredential{clientAssertionCredential;identityClient;constructor(e,t,n,o,i={}){if(!t){throw new CredentialUnavailableError(`${Bf}: is unavailable. clientId is a required parameter.`)}if(!e){throw new CredentialUnavailableError(`${Bf}: is unavailable. tenantId is a required parameter.`)}if(!n){throw new CredentialUnavailableError(`${Bf}: is unavailable. serviceConnectionId is a required parameter.`)}if(!o){throw new CredentialUnavailableError(`${Bf}: is unavailable. systemAccessToken is a required parameter.`)}i.loggingOptions={...i?.loggingOptions,additionalAllowedHeaderNames:[...i.loggingOptions?.additionalAllowedHeaderNames??[],"x-vss-e2eid","x-msedge-ref"]};this.identityClient=new IdentityClient(i);checkTenantId(qf,e);qf.info(`Invoking AzurePipelinesCredential with tenant ID: ${e}, client ID: ${t}, and service connection ID: ${n}`);if(!process.env.SYSTEM_OIDCREQUESTURI){throw new CredentialUnavailableError(`${Bf}: is unavailable. Ensure that you're running this task in an Azure Pipeline, so that following missing system variable(s) can be defined- "SYSTEM_OIDCREQUESTURI"`)}const a=`${process.env.SYSTEM_OIDCREQUESTURI}?api-version=${jf}&serviceConnectionId=${n}`;qf.info(`Invoking ClientAssertionCredential with tenant ID: ${e}, client ID: ${t} and service connection ID: ${n}`);this.clientAssertionCredential=new ClientAssertionCredential(e,t,this.requestOidcToken.bind(this,a,o),i)}async getToken(e,t){if(!this.clientAssertionCredential){const e=`${Bf}: is unavailable. To use Federation Identity in Azure Pipelines, the following parameters are required - \n tenantId,\n clientId,\n serviceConnectionId,\n systemAccessToken,\n "SYSTEM_OIDCREQUESTURI". \n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`;qf.error(e);throw new CredentialUnavailableError(e)}qf.info("Invoking getToken() of Client Assertion Credential");return this.clientAssertionCredential.getToken(e,t)}async requestOidcToken(e,t){qf.info("Requesting OIDC token from Azure Pipelines...");qf.info(e);const n=createPipelineRequest({url:e,method:"POST",headers:createHttpHeaders({"Content-Type":"application/json",Authorization:`Bearer ${t}`,"X-TFS-FedAuthRedirect":"Suppress"})});const o=await this.identityClient.sendRequest(n);return handleOidcResponse(o)}}function handleOidcResponse(e){const t=e.bodyAsText;if(!t){qf.error(`${Bf}: Authentication Failed. Received null token from OIDC request. Response status- ${e.status}. Complete response - ${JSON.stringify(e)}`);throw new AuthenticationError(e.status,{error:`${Bf}: Authentication Failed. Received null token from OIDC request.`,error_description:`${JSON.stringify(e)}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`})}try{const n=JSON.parse(t);if(n?.oidcToken){return n.oidcToken}else{const n=`${Bf}: Authentication Failed. oidcToken field not detected in the response.`;let o=``;if(e.status!==200){o=`Response body = ${t}. Response Headers ["x-vss-e2eid"] = ${e.headers.get("x-vss-e2eid")} and ["x-msedge-ref"] = ${e.headers.get("x-msedge-ref")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`}qf.error(n);qf.error(o);throw new AuthenticationError(e.status,{error:n,error_description:o})}}catch(n){const o=`${Bf}: Authentication Failed. oidcToken field not detected in the response.`;qf.error(`Response from service = ${t}, Response Headers ["x-vss-e2eid"] = ${e.headers.get("x-vss-e2eid")} \n and ["x-msedge-ref"] = ${e.headers.get("x-msedge-ref")}, error message = ${n.message}`);qf.error(o);throw new AuthenticationError(e.status,{error:o,error_description:`Response = ${t}. Response headers ["x-vss-e2eid"] = ${e.headers.get("x-vss-e2eid")} and ["x-msedge-ref"] = ${e.headers.get("x-msedge-ref")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`})}}const zf=credentialLogger("AuthorizationCodeCredential");class AuthorizationCodeCredential{msalClient;disableAutomaticAuthentication;authorizationCode;redirectUri;tenantId;additionallyAllowedTenantIds;clientSecret;constructor(e,t,n,o,i,a){checkTenantId(zf,e);this.clientSecret=n;if(typeof i==="string"){this.authorizationCode=o;this.redirectUri=i}else{this.authorizationCode=n;this.redirectUri=o;this.clientSecret=undefined;a=i}this.tenantId=e;this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(a?.additionallyAllowedTenants);this.msalClient=createMsalClient(t,e,{...a,logger:zf,tokenCredentialOptions:a??{}})}async getToken(e,t={}){return tracingClient.withSpan(`${this.constructor.name}.getToken`,t,(async t=>{const n=processMultiTenantRequest(this.tenantId,t,this.additionallyAllowedTenantIds);t.tenantId=n;const o=ensureScopes(e);return this.msalClient.getTokenByAuthorizationCode(o,this.redirectUri,this.authorizationCode,this.clientSecret,{...t,disableAutomaticAuthentication:this.disableAutomaticAuthentication})}))}}const Hf="OnBehalfOfCredential";const Vf=credentialLogger(Hf);class OnBehalfOfCredential{tenantId;additionallyAllowedTenantIds;msalClient;sendCertificateChain;certificatePath;clientSecret;userAssertionToken;clientAssertion;constructor(e){const{clientSecret:t}=e;const{certificatePath:n,sendCertificateChain:o}=e;const{getAssertion:i}=e;const{tenantId:a,clientId:d,userAssertionToken:f,additionallyAllowedTenants:m}=e;if(!a){throw new CredentialUnavailableError(`${Hf}: tenantId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(!d){throw new CredentialUnavailableError(`${Hf}: clientId is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(!t&&!n&&!i){throw new CredentialUnavailableError(`${Hf}: You must provide one of clientSecret, certificatePath, or a getAssertion callback but none were provided. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}if(!f){throw new CredentialUnavailableError(`${Hf}: userAssertionToken is a required parameter. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`)}this.certificatePath=n;this.clientSecret=t;this.userAssertionToken=f;this.sendCertificateChain=o;this.clientAssertion=i;this.tenantId=a;this.additionallyAllowedTenantIds=resolveAdditionallyAllowedTenantIds(m);this.msalClient=createMsalClient(d,this.tenantId,{...e,logger:Vf,tokenCredentialOptions:e})}async getToken(e,t={}){return tracingClient.withSpan(`${Hf}.getToken`,t,(async n=>{n.tenantId=processMultiTenantRequest(this.tenantId,n,this.additionallyAllowedTenantIds,Vf);const o=ensureScopes(e);if(this.certificatePath){const e=await this.buildClientCertificate(this.certificatePath);return this.msalClient.getTokenOnBehalfOf(o,this.userAssertionToken,e,n)}else if(this.clientSecret){return this.msalClient.getTokenOnBehalfOf(o,this.userAssertionToken,this.clientSecret,t)}else if(this.clientAssertion){return this.msalClient.getTokenOnBehalfOf(o,this.userAssertionToken,this.clientAssertion,t)}else{throw new Error("Expected either clientSecret or certificatePath or clientAssertion to be defined.")}}))}async buildClientCertificate(e){try{const t=await this.parseCertificate({certificatePath:e},this.sendCertificateChain);return{thumbprint:t.thumbprint,thumbprintSha256:t.thumbprintSha256,privateKey:t.certificateContents,x5c:t.x5c}}catch(e){Vf.info(formatError("",e));throw e}}async parseCertificate(e,t){const n=e.certificatePath;const o=await readFile(n,"utf8");const i=t?o:undefined;const a=/(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;const d=[];let f;do{f=a.exec(o);if(f){d.push(f[3])}}while(f);if(d.length===0){throw new Error("The file at the specified path does not contain a PEM-encoded certificate.")}const m=createHash("sha1").update(Buffer.from(d[0],"base64")).digest("hex").toUpperCase();const h=createHash("sha256").update(Buffer.from(d[0],"base64")).digest("hex").toUpperCase();return{certificateContents:o,thumbprintSha256:h,thumbprint:m,x5c:i}}}function getBearerTokenProvider(e,t,n){const{abortSignal:o,tracingOptions:i}=n||{};const a=createEmptyPipeline();a.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:t}));async function getRefreshedToken(){const e=await a.sendRequest({sendRequest:e=>Promise.resolve({request:e,status:200,headers:e.headers})},createPipelineRequest({url:"https://example.com",abortSignal:o,tracingOptions:i}));const t=e.headers.get("authorization")?.split(" ")[1];if(!t){throw new Error("Failed to get access token")}return t}return getRefreshedToken}function getDefaultAzureCredential(){return new DefaultAzureCredential}var Gf=__nccwpck_require__(7892);const{__extends:Wf,__assign:Kf,__rest:Qf,__decorate:Yf,__param:Jf,__esDecorate:Xf,__runInitializers:Zf,__propKey:em,__setFunctionName:tm,__metadata:nm,__awaiter:rm,__generator:om,__exportStar:im,__createBinding:sm,__values:am,__read:cm,__spread:lm,__spreadArrays:um,__spreadArray:dm,__await:pm,__asyncGenerator:fm,__asyncDelegator:mm,__asyncValues:hm,__makeTemplateObject:gm,__importStar:ym,__importDefault:Sm,__classPrivateFieldGet:Em,__classPrivateFieldSet:vm,__classPrivateFieldIn:Cm,__addDisposableResource:Im,__disposeResources:bm,__rewriteRelativeImportExtension:wm}=Gf;const Am=null&&tslib;const Rm=esm_createClientLogger("keyvault-secrets");const Pm=esm_createClientLogger("keyvault-secrets");class abort_controller_AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function httpHeaders_normalizeName(e){return e.toLowerCase()}function*httpHeaders_headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class httpHeaders_HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(httpHeaders_normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(httpHeaders_normalizeName(e))?.value}has(e){return this._headersMap.has(httpHeaders_normalizeName(e))}delete(e){this._headersMap.delete(httpHeaders_normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return httpHeaders_headerIterator(this._headersMap)}}function dist_esm_httpHeaders_createHttpHeaders(e){return new httpHeaders_HttpHeadersImpl(e)}function util_uuidUtils_randomUUID(){return crypto.randomUUID()}class pipelineRequest_PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??dist_esm_httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||util_uuidUtils_randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function dist_esm_pipelineRequest_createPipelineRequest(e){return new pipelineRequest_PipelineRequestImpl(e)}const Tm=new Set(["Deserialize","Serialize","Retry","Sign"]);class pipeline_HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!Tm.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!Tm.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const o=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return o(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new pipeline_HttpPipeline(this._policies)}static create(){return new pipeline_HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const o=createPhase("None");const i=createPhase("Deserialize");const a=createPhase("Retry");const d=createPhase("Sign");const f=[n,o,i,a,d];function getPhase(e){if(e==="Retry"){return a}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return i}else if(e==="Sign"){return d}else{return o}}for(const e of this._policies){const n=e.policy;const o=e.options;const i=n.name;if(t.has(i)){throw new Error("Duplicate policy names not allowed in pipeline")}const a={policy:n,dependsOn:new Set,dependants:new Set};if(o.afterPhase){a.afterPhase=getPhase(o.afterPhase);a.afterPhase.hasAfterPolicies=true}t.set(i,a);const d=getPhase(o.phase);d.policies.add(a)}for(const e of this._policies){const{policy:n,options:o}=e;const i=n.name;const a=t.get(i);if(!a){throw new Error(`Missing node for policy ${i}`)}if(o.afterPolicies){for(const e of o.afterPolicies){const n=t.get(e);if(n){a.dependsOn.add(n);n.dependants.add(a)}}}if(o.beforePolicies){for(const e of o.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(a);a.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const o of n.policies){if(o.afterPhase&&(!o.afterPhase.hasRun||o.afterPhase.policies.size)){continue}if(o.dependsOn.size===0){e.push(o.policy);for(const e of o.dependants){e.dependsOn.delete(o)}t.delete(o.policy.name);n.policies.delete(o)}}}function walkPhases(){for(const e of f){walkPhase(e);if(e.policies.size>0&&e!==o){if(!o.hasRun){walkPhase(o)}return}if(e.hasAfterPolicies){walkPhase(o)}}}let m=0;while(t.size>0){m++;const t=e.length;walkPhases();if(e.length<=t&&m>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function dist_esm_pipeline_createEmptyPipeline(){return pipeline_HttpPipeline.create()}const xm=Bn.inspect.custom;const _m="REDACTED";const Om=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const Mm=["api-version"];class sanitizer_Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Om.concat(e);t=Mm.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return{...n,name:n.name,message:n.message}}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||isObject(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,_m)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=_m}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=_m}}return t}}const Dm=new sanitizer_Sanitizer;class dist_esm_restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,xm,{value:()=>`RestError: ${this.message} \n ${Dm.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,dist_esm_restError_RestError.prototype)}}function dist_esm_restError_isRestError(e){if(e instanceof dist_esm_restError_RestError){return true}return isError(e)&&e.name==="RestError"}const $m=createClientLogger("ts-http-runtime");const Nm={};function esm_nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function nodeHttpClient_isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function nodeHttpClient_isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class nodeHttpClient_ReportTransform extends nd.Transform{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.progressCallback=e}}class nodeHttpClient_NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let n;if(e.abortSignal){if(e.abortSignal.aborted){throw new abort_controller_AbortError_AbortError("The operation was aborted. Request has already been canceled.")}n=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",n)}let o;if(e.timeout>0){o=setTimeout((()=>{const n=new sanitizer_Sanitizer;$m.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const i=e.headers.get("Accept-Encoding");const a=i?.includes("gzip")||i?.includes("deflate");let d=typeof e.body==="function"?e.body():e.body;if(d&&!e.headers.has("Content-Length")){const t=nodeHttpClient_getBodyLength(d);if(t!==null){e.headers.set("Content-Length",t)}}let f;try{if(d&&e.onUploadProgress){const t=e.onUploadProgress;const n=new nodeHttpClient_ReportTransform(t);n.on("error",(e=>{$m.error("Error in upload progress",e)}));if(esm_nodeHttpClient_isReadableStream(d)){d.pipe(n)}else{n.end(d)}d=n}const n=await this.makeRequest(e,t,d);if(o!==undefined){clearTimeout(o)}const i=nodeHttpClient_getResponseHeaders(n);const m=n.statusCode??0;const h={status:m,headers:i,request:e};if(e.method==="HEAD"){n.resume();return h}f=a?nodeHttpClient_getDecodedResponseStream(n,i):n;const C=e.onDownloadProgress;if(C){const e=new nodeHttpClient_ReportTransform(C);e.on("error",(e=>{$m.error("Error in download progress",e)}));f.pipe(e);f=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)){h.readableStreamBody=f}else{h.bodyAsText=await nodeHttpClient_streamToText(f)}return h}finally{if(e.abortSignal&&n){let t=Promise.resolve();if(esm_nodeHttpClient_isReadableStream(d)){t=nodeHttpClient_isStreamComplete(d)}let o=Promise.resolve();if(esm_nodeHttpClient_isReadableStream(f)){o=nodeHttpClient_isStreamComplete(f)}Promise.all([t,o]).then((()=>{if(n){e.abortSignal?.removeEventListener("abort",n)}})).catch((e=>{$m.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){const o=new URL(e.url);const i=o.protocol!=="https:";if(i&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const a=e.agent??this.getOrCreateAgent(e,i);const d={agent:a,hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((o,a)=>{const f=i?Zu.request(d,o):ed.request(d,o);f.once("error",(t=>{a(new dist_esm_restError_RestError(t.message,{code:t.code??dist_esm_restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new abort_controller_AbortError_AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");f.destroy(e);a(e)}));if(n&&esm_nodeHttpClient_isReadableStream(n)){n.pipe(f)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){f.end(n)}else if(nodeHttpClient_isArrayBuffer(n)){f.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{$m.error("Unrecognized body type",n);a(new dist_esm_restError_RestError("Unrecognized body type"))}}else{f.end()}}))}getOrCreateAgent(e,t){const n=e.disableKeepAlive;if(t){if(n){return Zu.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new Zu.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(n&&!e.tlsSettings){return ed.globalAgent}const t=e.tlsSettings??Nm;let o=this.cachedHttpsAgents.get(t);if(o&&o.options.keepAlive===!n){return o}$m.info("No cached TLS Agent exist, creating a new Agent");o=new ed.Agent({keepAlive:!n,...t});this.cachedHttpsAgents.set(t,o);return o}}}function nodeHttpClient_getResponseHeaders(e){const t=dist_esm_httpHeaders_createHttpHeaders();for(const n of Object.keys(e.headers)){const o=e.headers[n];if(Array.isArray(o)){if(o.length>0){t.set(n,o[0])}}else if(o){t.set(n,o)}}return t}function nodeHttpClient_getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=td.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=td.createInflate();e.pipe(t);return t}return e}function nodeHttpClient_streamToText(e){return new Promise(((t,n)=>{const o=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){o.push(e)}else{o.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(o).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){n(e)}else{n(new dist_esm_restError_RestError(`Error reading response as text: ${e.message}`,{code:dist_esm_restError_RestError.PARSE_ERROR}))}}))}))}function nodeHttpClient_getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(esm_nodeHttpClient_isReadableStream(e)){return null}else if(nodeHttpClient_isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function nodeHttpClient_createNodeHttpClient(){return new nodeHttpClient_NodeHttpClient}function dist_esm_defaultHttpClient_createDefaultHttpClient(){return nodeHttpClient_createNodeHttpClient()}const km="logPolicy";function esm_policies_logPolicy_logPolicy(e={}){const t=e.logger??$m.info;const n=new sanitizer_Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:km,async sendRequest(e,o){if(!t.enabled){return o(e)}t(`Request: ${n.sanitize(e)}`);const i=await o(e);t(`Response status code: ${i.status}`);t(`Headers: ${n.sanitize(i.headers)}`);return i}}}const Lm="redirectPolicy";const Um=["GET","HEAD"];function esm_policies_redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20}=e;return{name:Lm,async sendRequest(e,n){const o=await n(e);return redirectPolicy_handleRedirect(n,o,t)}}}async function redirectPolicy_handleRedirect(e,t,n,o=0){const{request:i,status:a,headers:d}=t;const f=d.get("location");if(f&&(a===300||a===301&&Um.includes(i.method)||a===302&&Um.includes(i.method)||a===303&&i.method==="POST"||a===307)&&o<n){const t=new URL(f,i.url);i.url=t.toString();if(a===303){i.method="GET";i.headers.delete("Content-Length");delete i.body}i.headers.delete("Authorization");const d=await e(i);return redirectPolicy_handleRedirect(e,d,n,o+1)}return t}function util_userAgentPlatform_getHeaderName(){return"User-Agent"}async function esm_util_userAgentPlatform_setPlatformSpecificData(e){if(qn&&qn.versions){const t=`${Fn.type()} ${Fn.release()}; ${Fn.arch()}`;const n=qn.versions;if(n.bun){e.set("Bun",`${n.bun} (${t})`)}else if(n.deno){e.set("Deno",`${n.deno} (${t})`)}else if(n.node){e.set("Node",`${n.node} (${t})`)}}}const Fm="0.3.3";const Bm=3;function util_userAgent_getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function util_userAgent_getUserAgentHeaderName(){return util_userAgentPlatform_getHeaderName()}async function esm_util_userAgent_getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",Fm);await esm_util_userAgentPlatform_setPlatformSpecificData(t);const n=util_userAgent_getUserAgentString(t);const o=e?`${e} ${n}`:n;return o}const qm=util_userAgent_getUserAgentHeaderName();const jm="userAgentPolicy";function esm_policies_userAgentPolicy_userAgentPolicy(e={}){const t=esm_util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:jm,async sendRequest(e,n){if(!e.headers.has(qm)){e.headers.set(qm,await t)}return n(e)}}}const zm="decompressResponsePolicy";function esm_policies_decompressResponsePolicy_decompressResponsePolicy(){return{name:zm,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const Hm="The operation was aborted.";function util_helpers_delay(e,t,n){return new Promise(((o,i)=>{let a=undefined;let d=undefined;const rejectOnAbort=()=>i(new abort_controller_AbortError_AbortError(n?.abortErrorMsg?n?.abortErrorMsg:Hm));const removeListeners=()=>{if(n?.abortSignal&&d){n.abortSignal.removeEventListener("abort",d)}};d=()=>{if(a){clearTimeout(a)}removeListeners();return rejectOnAbort()};if(n?.abortSignal&&n.abortSignal.aborted){return rejectOnAbort()}a=setTimeout((()=>{removeListeners();o(t)}),e);if(n?.abortSignal){n.abortSignal.addEventListener("abort",d)}}))}function helpers_parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const o=Number(n);if(Number.isNaN(o))return;return o}const Vm="Retry-After";const Gm=["retry-after-ms","x-ms-retry-after-ms",Vm];function throttlingRetryStrategy_getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of Gm){const n=helpers_parseHeaderValueAsNumber(e,t);if(n===0||n){const e=t===Vm?1e3:1;return n*e}}const t=e.headers.get(Vm);if(!t)return;const n=Date.parse(t);const o=n-Date.now();return Number.isFinite(o)?Math.max(0,o):undefined}catch{return undefined}}function throttlingRetryStrategy_isThrottlingRetryResponse(e){return Number.isFinite(throttlingRetryStrategy_getRetryAfterInMs(e))}function retryStrategies_throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=throttlingRetryStrategy_getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const Wm=1e3;const Km=1e3*64;function retryStrategies_exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??Wm;const n=e.maxRetryDelayInMs??Km;return{name:"exponentialRetryStrategy",retry({retryCount:o,response:i,responseError:a}){const d=exponentialRetryStrategy_isSystemError(a);const f=d&&e.ignoreSystemErrors;const m=exponentialRetryStrategy_isExponentialRetryResponse(i);const h=m&&e.ignoreHttpStatusCodes;const C=i&&(throttlingRetryStrategy_isThrottlingRetryResponse(i)||!m);if(C||h||f){return{skipStrategy:true}}if(a&&!d&&!m){return{errorToThrow:a}}return calculateRetryDelay(o,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function exponentialRetryStrategy_isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function exponentialRetryStrategy_isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const Qm=createClientLogger("ts-http-runtime retryPolicy");const Ym="retryPolicy";function esm_policies_retryPolicy_retryPolicy(e,t={maxRetries:Bm}){const n=t.logger||Qm;return{name:Ym,async sendRequest(o,i){let a;let d;let f=-1;e:while(true){f+=1;a=undefined;d=undefined;try{n.info(`Retry ${f}: Attempting to send request`,o.requestId);a=await i(o);n.info(`Retry ${f}: Received a response from request`,o.requestId)}catch(e){n.error(`Retry ${f}: Received an error from request`,o.requestId);d=e;if(!e||d.name!=="RestError"){throw e}a=d.response}if(o.abortSignal?.aborted){n.error(`Retry ${f}: Request aborted.`);const e=new abort_controller_AbortError_AbortError;throw e}if(f>=(t.maxRetries??Bm)){n.info(`Retry ${f}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(d){throw d}else if(a){return a}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${f}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${f}: Processing retry strategy ${t.name}.`);const i=t.retry({retryCount:f,response:a,responseError:d});if(i.skipStrategy){e.info(`Retry ${f}: Skipped.`);continue t}const{errorToThrow:m,retryAfterInMs:h,redirectTo:C}=i;if(m){e.error(`Retry ${f}: Retry strategy ${t.name} throws error:`,m);throw m}if(h||h===0){e.info(`Retry ${f}: Retry strategy ${t.name} retries after ${h}`);await util_helpers_delay(h,undefined,{abortSignal:o.abortSignal});continue e}if(C){e.info(`Retry ${f}: Retry strategy ${t.name} redirects to ${C}`);o.url=C;continue e}}if(d){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw d}if(a){n.info(`None of the retry strategies could work with the received response. Returning it.`);return a}}}}}const Jm="defaultRetryPolicy";function esm_policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Jm,sendRequest:esm_policies_retryPolicy_retryPolicy([retryStrategies_throttlingRetryStrategy_throttlingRetryStrategy(),retryStrategies_exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??Bm}).sendRequest}}const Xm="formDataPolicy";function formDataPolicy_formDataToFormDataMap(e){const t={};for(const[n,o]of e.entries()){t[n]??=[];t[n].push(o)}return t}function esm_policies_formDataPolicy_formDataPolicy(){return{name:Xm,async sendRequest(e,t){if(Cu&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataPolicy_formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=formDataPolicy_wwwFormUrlEncode(e.formData)}else{await formDataPolicy_prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function formDataPolicy_wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.append(n,e.toString())}}else{t.append(n,o.toString())}}return t.toString()}async function formDataPolicy_prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n??"multipart/form-data");const o=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){o.push({headers:dist_esm_httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const i=dist_esm_httpHeaders_createHttpHeaders();i.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);i.set("Content-Type",e.type||"application/octet-stream");o.push({headers:i,body:e})}}}t.multipartBody={parts:o}}const Zm="HTTPS_PROXY";const eh="HTTP_PROXY";const th="ALL_PROXY";const nh="NO_PROXY";const rh="proxyPolicy";const oh=[];let ih=false;const sh=new Map;function proxyPolicy_getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function proxyPolicy_loadEnvironmentProxyValue(){if(!process){return undefined}const e=proxyPolicy_getEnvironmentValue(Zm);const t=proxyPolicy_getEnvironmentValue(th);const n=proxyPolicy_getEnvironmentValue(eh);return e||t||n}function proxyPolicy_isBypassed(e,t,n){if(t.length===0){return false}const o=new URL(e).hostname;if(n?.has(o)){return n.get(o)}let i=false;for(const e of t){if(e[0]==="."){if(o.endsWith(e)){i=true}else{if(o.length===e.length-1&&o===e.slice(1)){i=true}}}else{if(o===e){i=true}}}n?.set(o,i);return i}function proxyPolicy_loadNoProxy(){const e=proxyPolicy_getEnvironmentValue(nh);ih=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function policies_proxyPolicy_getDefaultProxySettings(e){if(!e){e=proxyPolicy_loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function proxyPolicy_getDefaultProxySettingsInternal(){const e=proxyPolicy_loadEnvironmentProxyValue();return e?new URL(e):undefined}function proxyPolicy_getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function proxyPolicy_setProxyAgentOnRequest(e,t,n){if(e.agent){return}const o=new URL(e.url);const i=o.protocol!=="https:";if(e.tlsSettings){$m.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const a=e.headers.toJSON();if(i){if(!t.httpProxyAgent){t.httpProxyAgent=new xd.HttpProxyAgent(n,{headers:a})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new Td.HttpsProxyAgent(n,{headers:a})}e.agent=t.httpsProxyAgent}}function esm_policies_proxyPolicy_proxyPolicy(e,t){if(!ih){oh.push(...proxyPolicy_loadNoProxy())}const n=e?proxyPolicy_getUrlFromProxySettings(e):proxyPolicy_getDefaultProxySettingsInternal();const o={};return{name:rh,async sendRequest(e,i){if(!e.proxySettings&&n&&!proxyPolicy_isBypassed(e.url,t?.customNoProxyList??oh,t?.customNoProxyList?undefined:sh)){proxyPolicy_setProxyAgentOnRequest(e,o,n)}else if(e.proxySettings){proxyPolicy_setProxyAgentOnRequest(e,o,proxyPolicy_getUrlFromProxySettings(e.proxySettings))}return i(e)}}}const ah="agentPolicy";function esm_policies_agentPolicy_agentPolicy(e){return{name:ah,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}const ch="tlsPolicy";function esm_policies_tlsPolicy_tlsPolicy(e){return{name:ch,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}function typeGuards_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function typeGuards_isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function util_typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||util_typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function util_typeGuards_isReadableStream(e){return typeGuards_isNodeReadableStream(e)||typeGuards_isWebReadableStream(e)}function util_typeGuards_isBlob(e){return typeof e.stream==="function"}async function*concat_streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:n}=await e.read();if(t){return}yield n}}finally{e.releaseLock()}}function concat_makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=concat_streamAsyncIterator.bind(e)}if(!e.values){e.values=concat_streamAsyncIterator.bind(e)}}function concat_ensureNodeStream(e){if(e instanceof ReadableStream){concat_makeAsyncIterable(e);return Ud.Readable.fromWeb(e)}else{return e}}function concat_toStream(e){if(e instanceof Uint8Array){return Ud.Readable.from(Buffer.from(e))}else if(util_typeGuards_isBlob(e)){return concat_ensureNodeStream(e.stream())}else{return concat_ensureNodeStream(e)}}async function concat_concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(concat_toStream);return Ud.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function multipartPolicy_generateBoundary(){return`----AzSDKFormBoundary${util_uuidUtils_randomUUID()}`}function multipartPolicy_encodeHeaders(e){let t="";for(const[n,o]of e){t+=`${n}: ${o}\r\n`}return t}function multipartPolicy_getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(util_typeGuards_isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function multipartPolicy_getTotalLength(e){let t=0;for(const n of e){const e=multipartPolicy_getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function multipartPolicy_buildRequestBody(e,t,n){const o=[bytesEncoding_stringToUint8Array(`--${n}`,"utf-8"),...t.flatMap((e=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(multipartPolicy_encodeHeaders(e.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,bytesEncoding_stringToUint8Array(`\r\n--${n}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const i=multipartPolicy_getTotalLength(o);if(i){e.headers.set("Content-Length",i)}e.body=await concat_concat(o)}const lh="multipartPolicy";const uh=70;const dh=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function multipartPolicy_assertValidBoundary(e){if(e.length>uh){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!dh.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function esm_policies_multipartPolicy_multipartPolicy(){return{name:lh,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let n=e.multipartBody.boundary;const o=e.headers.get("Content-Type")??"multipart/mixed";const i=o.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i){throw new Error(`Got multipart request body, but content-type header was not multipart: ${o}`)}const[,a,d]=i;if(d&&n&&d!==n){throw new Error(`Multipart boundary was specified as ${d} in the header, but got ${n} in the request body`)}n??=d;if(n){multipartPolicy_assertValidBoundary(n)}else{n=multipartPolicy_generateBoundary()}e.headers.set("Content-Type",`${a}; boundary=${n}`);await multipartPolicy_buildRequestBody(e,e.multipartBody.parts,n);e.multipartBody=undefined;return t(e)}}}function dist_esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=dist_esm_pipeline_createEmptyPipeline();if(Cu){if(e.agent){t.addPolicy(esm_policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(esm_policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(esm_policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(esm_policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(esm_policies_formDataPolicy_formDataPolicy(),{beforePolicies:[lh]});t.addPolicy(esm_policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(esm_policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(esm_policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(Cu){t.addPolicy(esm_policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(esm_policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}const ph="ApiVersionPolicy";function apiVersionPolicy_apiVersionPolicy(e){return{name:ph,sendRequest:(t,n)=>{const o=new URL(t.url);if(!o.searchParams.get("api-version")&&e.apiVersion){t.url=`${t.url}${Array.from(o.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return n(t)}}}function credentials_isOAuth2TokenCredential(e){return"getOAuth2Token"in e}function credentials_isBearerTokenCredential(e){return"getBearerToken"in e}function credentials_isBasicCredential(e){return"username"in e&&"password"in e}function credentials_isApiKeyCredential(e){return"key"in e}let fh=false;function checkInsecureConnection_allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function checkInsecureConnection_emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";$m.warning(e);if(typeof process?.emitWarning==="function"&&!fh){fh=true;process.emitWarning(e)}}function auth_checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(checkInsecureConnection_allowInsecureConnection(e,t)){checkInsecureConnection_emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const mh="apiKeyAuthenticationPolicy";function auth_apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:mh,async sendRequest(t,n){auth_checkInsecureConnection_ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!o){return n(t)}if(o.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${o.apiKeyLocation}`)}t.headers.set(o.name,e.credential.key);return n(t)}}}const hh="bearerAuthenticationPolicy";function auth_basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:hh,async sendRequest(t,n){auth_checkInsecureConnection_ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!o){return n(t)}const{username:i,password:a}=e.credential;const d=bytesEncoding_uint8ArrayToString(bytesEncoding_stringToUint8Array(`${i}:${a}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${d}`);return n(t)}}}const gh="bearerAuthenticationPolicy";function auth_bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:gh,async sendRequest(t,n){auth_checkInsecureConnection_ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!o){return n(t)}const i=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}const yh="oauth2AuthenticationPolicy";function auth_oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:yh,async sendRequest(t,n){auth_checkInsecureConnection_ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!o){return n(t)}const i=await e.credential.getOAuth2Token(o.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}let Sh;function client_clientHelpers_createDefaultPipeline(e={}){const t=dist_esm_createPipelineFromOptions_createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy_apiVersionPolicy(e));const{credential:n,authSchemes:o,allowInsecureConnection:i}=e;if(n){if(credentials_isApiKeyCredential(n)){t.addPolicy(auth_apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(credentials_isBasicCredential(n)){t.addPolicy(auth_basicAuthenticationPolicy_basicAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(credentials_isBearerTokenCredential(n)){t.addPolicy(auth_bearerAuthenticationPolicy_bearerAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(credentials_isOAuth2TokenCredential(n)){t.addPolicy(auth_oauth2AuthenticationPolicy_oauth2AuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}}return t}function client_clientHelpers_getCachedDefaultHttpsClient(){if(!Sh){Sh=dist_esm_defaultHttpClient_createDefaultHttpClient()}return Sh}function multipart_getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function multipart_getPartContentType(e){const t=multipart_getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if(util_typeGuards_isBinaryBody(n)){return"application/octet-stream"}return"application/json"}function multipart_escapeDispositionField(e){return JSON.stringify(e)}function multipart_getContentDisposition(e){const t=multipart_getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const n=e.dispositionType??"form-data";let o=n;if(e.name){o+=`; name=${multipart_escapeDispositionField(e.name)}`}let i=undefined;if(e.filename){i=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){i=t}}if(i){o+=`; filename=${multipart_escapeDispositionField(i)}`}return o}function multipart_normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(util_typeGuards_isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return bytesEncoding_stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return bytesEncoding_stringToUint8Array(JSON.stringify(e),"utf-8")}throw new dist_esm_restError_RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function multipart_buildBodyPart(e){const t=multipart_getPartContentType(e);const n=multipart_getContentDisposition(e);const o=dist_esm_httpHeaders_createHttpHeaders(e.headers??{});if(t){o.set("content-type",t)}if(n){o.set("content-disposition",n)}const i=multipart_normalizeBody(e.body,t);return{headers:o,body:i}}function client_multipart_buildMultipartBody(e){return{parts:e.map(multipart_buildBodyPart)}}async function client_sendRequest_sendRequest(e,t,n,o={},i){const a=i??client_clientHelpers_getCachedDefaultHttpsClient();const d=sendRequest_buildPipelineRequest(e,t,o);try{const e=await n.sendRequest(a,d);const t=e.headers.toJSON();const i=e.readableStreamBody??e.browserStreamBody;const f=o.responseAsStream||i!==undefined?undefined:sendRequest_getResponseBody(e);const m=i??f;if(o?.onResponse){o.onResponse({...e,request:d,rawHeaders:t,parsedBody:f})}return{request:d,headers:t,status:`${e.status}`,body:m}}catch(e){if(dist_esm_restError_isRestError(e)&&e.response&&o.onResponse){const{response:t}=e;const n=t.headers.toJSON();o?.onResponse({...t,request:d,rawHeaders:n},e)}throw e}}function sendRequest_getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??sendRequest_getContentType(e.body)}function sendRequest_getContentType(e){if(e===undefined){return undefined}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function sendRequest_buildPipelineRequest(e,t,n={}){const o=sendRequest_getRequestContentType(n);const{body:i,multipartBody:a}=sendRequest_getRequestBody(n.body,o);const d=dist_esm_httpHeaders_createHttpHeaders({...n.headers?n.headers:{},accept:n.accept??n.headers?.accept??"application/json",...o&&{"content-type":o}});return dist_esm_pipelineRequest_createPipelineRequest({url:t,method:e,body:i,multipartBody:a,headers:d,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function sendRequest_getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(util_typeGuards_isReadableStream(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:client_multipart_buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function sendRequest_getResponseBody(e){const t=e.headers.get("content-type")??"";const n=t.split(";")[0];const o=e.bodyAsText??"";if(n==="text/plain"){return String(o)}try{return o?JSON.parse(o):undefined}catch(t){if(n==="application/json"){throw sendRequest_createParseError(e,t)}return String(o)}}function sendRequest_createParseError(e,t){const n=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const o=t.code??dist_esm_restError_RestError.PARSE_ERROR;return new dist_esm_restError_RestError(n,{code:o,statusCode:e.status,request:e.request,response:e})}function isQueryParameterWithOptions(e){const t=e.value;return t!==undefined&&t.toString!==undefined&&typeof t.toString==="function"}function urlHelpers_buildRequestUrl(e,t,n,o={}){if(t.startsWith("https://")||t.startsWith("http://")){return t}e=buildBaseUrl(e,o);t=buildRoutePath(t,n,o);const i=urlHelpers_appendQueryParams(`${e}/${t}`,o);const a=new URL(i);return a.toString().replace(/([^:]\/)\/+/g,"$1")}function getQueryParamValue(e,t,n,o){let i;if(n==="pipeDelimited"){i="|"}else if(n==="spaceDelimited"){i="%20"}else{i=","}let a;if(Array.isArray(o)){a=o}else if(typeof o==="object"&&o.toString===Object.prototype.toString){a=Object.entries(o).flat()}else{a=[o]}const d=a.map((n=>{if(n===null||n===undefined){return""}if(!n.toString||typeof n.toString!=="function"){throw new Error(`Query parameters must be able to be represented as string, ${e} can't`)}const o=n.toISOString!==undefined?n.toISOString():n.toString();return t?o:encodeURIComponent(o)})).join(i);return`${t?e:encodeURIComponent(e)}=${d}`}function urlHelpers_appendQueryParams(e,t={}){if(!t.queryParameters){return e}const n=new URL(e);const o=t.queryParameters;const i=[];for(const e of Object.keys(o)){const n=o[e];if(n===undefined||n===null){continue}const a=isQueryParameterWithOptions(n);const d=a?n.value:n;const f=a?n.explode??false:false;const m=a&&n.style?n.style:"form";if(f){if(Array.isArray(d)){for(const n of d){i.push(getQueryParamValue(e,t.skipUrlEncoding??false,m,n))}}else if(typeof d==="object"){for(const[e,n]of Object.entries(d)){i.push(getQueryParamValue(e,t.skipUrlEncoding??false,m,n))}}else{throw new Error("explode can only be set to true for objects and arrays")}}else{i.push(getQueryParamValue(e,t.skipUrlEncoding??false,m,d))}}if(n.search!==""){n.search+="&"}n.search+=i.join("&");return n.toString()}function buildBaseUrl(e,t){if(!t.pathParameters){return e}const n=t.pathParameters;for(const[o,i]of Object.entries(n)){if(i===undefined||i===null){throw new Error(`Path parameters ${o} must not be undefined or null`)}if(!i.toString||typeof i.toString!=="function"){throw new Error(`Path parameters must be able to be represented as string, ${o} can't`)}let n=i.toISOString!==undefined?i.toISOString():String(i);if(!t.skipUrlEncoding){n=encodeURIComponent(i)}e=urlHelpers_replaceAll(e,`{${o}}`,n)??""}return e}function buildRoutePath(e,t,n={}){for(const o of t){const t=typeof o==="object"&&(o.allowReserved??false);let i=typeof o==="object"?o.value:o;if(!n.skipUrlEncoding&&!t){i=encodeURIComponent(i)}e=e.replace(/\{[\w-]+\}/,String(i))}return e}function urlHelpers_replaceAll(e,t,n){return!e||!t?e:e.split(t).join(n||"")}function getClient_getClient(e,t={}){const n=t.pipeline??client_clientHelpers_createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:o}of t.additionalPolicies){const t=o==="perRetry"?"Sign":undefined;n.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:o,httpClient:i}=t;const a=t.endpoint??e;const client=(e,...t)=>{const getUrl=n=>urlHelpers_buildRequestUrl(a,e,t,{allowInsecureConnection:o,...n});return{get:(e={})=>getClient_buildOperation("GET",getUrl(e),n,e,o,i),post:(e={})=>getClient_buildOperation("POST",getUrl(e),n,e,o,i),put:(e={})=>getClient_buildOperation("PUT",getUrl(e),n,e,o,i),patch:(e={})=>getClient_buildOperation("PATCH",getUrl(e),n,e,o,i),delete:(e={})=>getClient_buildOperation("DELETE",getUrl(e),n,e,o,i),head:(e={})=>getClient_buildOperation("HEAD",getUrl(e),n,e,o,i),options:(e={})=>getClient_buildOperation("OPTIONS",getUrl(e),n,e,o,i),trace:(e={})=>getClient_buildOperation("TRACE",getUrl(e),n,e,o,i)}};return{path:client,pathUnchecked:client,pipeline:n}}function getClient_buildOperation(e,t,n,o,i,a){i=o.allowInsecureConnection??i;return{then:function(d,f){return client_sendRequest_sendRequest(e,t,n,{...o,allowInsecureConnection:i},a).then(d,f)},async asBrowserStream(){if(Cu){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return client_sendRequest_sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},a)}},async asNodeStream(){if(Cu){return client_sendRequest_sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},a)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function operationOptionsToRequestParameters(e){return{allowInsecureConnection:e.requestOptions?.allowInsecureConnection,timeout:e.requestOptions?.timeout,skipUrlEncoding:e.requestOptions?.skipUrlEncoding,abortSignal:e.abortSignal,onUploadProgress:e.requestOptions?.onUploadProgress,onDownloadProgress:e.requestOptions?.onDownloadProgress,headers:{...e.requestOptions?.headers},onResponse:e.onResponse}}function restError_createRestError(e,t){const n=typeof e==="string"?t:e;const o=n.body?.error??n.body;const i=typeof e==="string"?e:o?.message??`Unexpected status code: ${n.status}`;return new dist_esm_restError_RestError(i,{statusCode:restError_statusCodeToNumber(n.status),code:o?.code,request:n.request,response:restError_toPipelineResponse(n)})}function restError_toPipelineResponse(e){return{headers:dist_esm_httpHeaders_createHttpHeaders(e.headers),request:e.request,status:restError_statusCodeToNumber(e.status)??-1}}function restError_statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_restError_createRestError(e,t){if(typeof e==="string"){return restError_createRestError(e,t)}else{return restError_createRestError(e)}}function isKeyCredential(e){return typeGuards_isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}const Eh="ApiVersionPolicy";function esm_apiVersionPolicy_apiVersionPolicy(e){return{name:Eh,sendRequest:(t,n)=>{const o=new URL(t.url);if(!o.searchParams.get("api-version")&&e.apiVersion){t.url=`${t.url}${Array.from(o.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return n(t)}}}const vh="keyCredentialAuthenticationPolicy";function keyCredentialAuthenticationPolicy(e,t){return{name:vh,async sendRequest(n,o){n.headers.set(t,e.key);return o(n)}}}let Ch;function addCredentialPipelinePolicy(e,t,n={}){const{credential:o,clientOptions:i}=n;if(!o){return}if(isTokenCredential(o)){const n=bearerTokenAuthenticationPolicy_bearerTokenAuthenticationPolicy({credential:o,scopes:i?.credentials?.scopes??`${t}/.default`});e.addPolicy(n)}else if(clientHelpers_isKeyCredential(o)){if(!i?.credentials?.apiKeyHeaderName){throw new Error(`Missing API Key Header Name`)}const t=keyCredentialAuthenticationPolicy(o,i?.credentials?.apiKeyHeaderName);e.addPolicy(t)}}function esm_clientHelpers_createDefaultPipeline(e,t,n={}){const o=esm_createPipelineFromOptions_createPipelineFromOptions(n);o.addPolicy(esm_apiVersionPolicy_apiVersionPolicy(n));addCredentialPipelinePolicy(o,e,{credential:t,clientOptions:n});return o}function clientHelpers_isKeyCredential(e){return e.key!==undefined}function esm_clientHelpers_getCachedDefaultHttpsClient(){if(!Ch){Ch=createDefaultHttpClient()}return Ch}function operationOptionHelpers_operationOptionsToRequestParameters(e){return operationOptionsToRequestParameters(e)}function wrapRequestParameters(e){if(e.onResponse){return{...e,onResponse(t,n){e.onResponse?.(t,n,n)}}}return e}function esm_getClient_getClient(e,t,n={}){let o;if(t){if(isCredential(t)){o=t}else{n=t??{}}}const i=esm_clientHelpers_createDefaultPipeline(e,o,n);const a=getClient_getClient(e,{...n,pipeline:i});const client=(e,...t)=>({get:(n={})=>a.path(e,...t).get(wrapRequestParameters(n)),post:(n={})=>a.path(e,...t).post(wrapRequestParameters(n)),put:(n={})=>a.path(e,...t).put(wrapRequestParameters(n)),patch:(n={})=>a.path(e,...t).patch(wrapRequestParameters(n)),delete:(n={})=>a.path(e,...t).delete(wrapRequestParameters(n)),head:(n={})=>a.path(e,...t).head(wrapRequestParameters(n)),options:(n={})=>a.path(e,...t).options(wrapRequestParameters(n)),trace:(n={})=>a.path(e,...t).trace(wrapRequestParameters(n))});return{path:client,pathUnchecked:client,pipeline:a.pipeline}}function isCredential(e){return isKeyCredential(e)||isTokenCredential(e)}function createKeyVault(e,t,n={}){var o,i,a,d,f,m,h,C;const P=(i=(o=n.endpoint)!==null&&o!==void 0?o:n.baseUrl)!==null&&i!==void 0?i:String(e);const D=(a=n===null||n===void 0?void 0:n.userAgentOptions)===null||a===void 0?void 0:a.userAgentPrefix;const k=`azsdk-js-keyvault-secrets/1.0.0-beta.1`;const L=D?`${D} azsdk-js-api ${k}`:`azsdk-js-api ${k}`;const F=Object.assign(Object.assign({},n),{userAgentOptions:{userAgentPrefix:L},loggingOptions:{logger:(f=(d=n.loggingOptions)===null||d===void 0?void 0:d.logger)!==null&&f!==void 0?f:Pm.info},credentials:{scopes:(h=(m=n.credentials)===null||m===void 0?void 0:m.scopes)!==null&&h!==void 0?h:["https://vault.azure.net/.default"]}}),{apiVersion:q}=F,V=Qf(F,["apiVersion"]);const ee=esm_getClient_getClient(P,t,V);ee.pipeline.removePolicy({name:"ApiVersionPolicy"});const te=(C=n.apiVersion)!==null&&C!==void 0?C:"7.6";ee.pipeline.addPolicy({name:"ClientApiVersionPolicy",sendRequest:(e,t)=>{const n=new URL(e.url);if(!n.searchParams.get("api-version")){e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${te}`}return t(e)}});return Object.assign(Object.assign({},ee),{apiVersion:te})}function secretSetParametersSerializer(e){return{value:e["value"],tags:e["tags"],contentType:e["contentType"],attributes:!e["secretAttributes"]?e["secretAttributes"]:secretAttributesSerializer(e["secretAttributes"])}}function secretAttributesSerializer(e){return{enabled:e["enabled"],nbf:!e["notBefore"]?e["notBefore"]:e["notBefore"].getTime()/1e3|0,exp:!e["expires"]?e["expires"]:e["expires"].getTime()/1e3|0}}function secretAttributesDeserializer(e){return{enabled:e["enabled"],notBefore:!e["nbf"]?e["nbf"]:new Date(e["nbf"]*1e3),expires:!e["exp"]?e["exp"]:new Date(e["exp"]*1e3),created:!e["created"]?e["created"]:new Date(e["created"]*1e3),updated:!e["updated"]?e["updated"]:new Date(e["updated"]*1e3),recoverableDays:e["recoverableDays"],recoveryLevel:e["recoveryLevel"]}}var Ih;(function(e){e["Purgeable"]="Purgeable";e["RecoverablePurgeable"]="Recoverable+Purgeable";e["Recoverable"]="Recoverable";e["RecoverableProtectedSubscription"]="Recoverable+ProtectedSubscription";e["CustomizedRecoverablePurgeable"]="CustomizedRecoverable+Purgeable";e["CustomizedRecoverable"]="CustomizedRecoverable";e["CustomizedRecoverableProtectedSubscription"]="CustomizedRecoverable+ProtectedSubscription"})(Ih||(Ih={}));function secretBundleDeserializer(e){return{value:e["value"],id:e["id"],contentType:e["contentType"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],kid:e["kid"],managed:e["managed"]}}function keyVaultErrorDeserializer(e){return{error:!e["error"]?e["error"]:_keyVaultErrorErrorDeserializer(e["error"])}}function _keyVaultErrorErrorDeserializer(e){return{code:e["code"],message:e["message"],innerError:!e["innererror"]?e["innererror"]:_keyVaultErrorErrorDeserializer(e["innererror"])}}function deletedSecretBundleDeserializer(e){return{value:e["value"],id:e["id"],contentType:e["contentType"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],kid:e["kid"],managed:e["managed"],recoveryId:e["recoveryId"],scheduledPurgeDate:!e["scheduledPurgeDate"]?e["scheduledPurgeDate"]:new Date(e["scheduledPurgeDate"]*1e3),deletedDate:!e["deletedDate"]?e["deletedDate"]:new Date(e["deletedDate"]*1e3)}}function secretUpdateParametersSerializer(e){return{contentType:e["contentType"],attributes:!e["secretAttributes"]?e["secretAttributes"]:secretAttributesSerializer(e["secretAttributes"]),tags:e["tags"]}}function _secretListResultDeserializer(e){return{value:!e["value"]?e["value"]:secretItemArrayDeserializer(e["value"]),nextLink:e["nextLink"]}}function secretItemArrayDeserializer(e){return e.map((e=>secretItemDeserializer(e)))}function secretItemDeserializer(e){return{id:e["id"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],contentType:e["contentType"],managed:e["managed"]}}function _deletedSecretListResultDeserializer(e){return{value:!e["value"]?e["value"]:deletedSecretItemArrayDeserializer(e["value"]),nextLink:e["nextLink"]}}function deletedSecretItemArrayDeserializer(e){return e.map((e=>deletedSecretItemDeserializer(e)))}function deletedSecretItemDeserializer(e){return{id:e["id"],attributes:!e["attributes"]?e["attributes"]:secretAttributesDeserializer(e["attributes"]),tags:e["tags"],contentType:e["contentType"],managed:e["managed"],recoveryId:e["recoveryId"],scheduledPurgeDate:!e["scheduledPurgeDate"]?e["scheduledPurgeDate"]:new Date(e["scheduledPurgeDate"]*1e3),deletedDate:!e["deletedDate"]?e["deletedDate"]:new Date(e["deletedDate"]*1e3)}}function backupSecretResultDeserializer(e){return{value:!e["value"]?e["value"]:typeof e["value"]==="string"?esm_stringToUint8Array(e["value"],"base64url"):e["value"]}}function secretRestoreParametersSerializer(e){return{value:esm_uint8ArrayToString(e["secretBundleBackup"],"base64url")}}var bh;(function(e){e["V75"]="7.5";e["V76Preview2"]="7.6-preview.2";e["V76"]="7.6"})(bh||(bh={}));function buildPagedAsyncIterator(e,t,n,o,i={}){var a,d;const f=(a=i.itemName)!==null&&a!==void 0?a:"value";const m=(d=i.nextLinkName)!==null&&d!==void 0?d:"nextLink";const h={getPage:async i=>{const a=i===undefined?await t():await e.pathUnchecked(i).get();checkPagingRequest(a,o);const d=await n(a);const h=getNextLink(d,m);const C=getElements(d,f);return{page:C,nextPageLink:h}},byPage:e=>{const{continuationToken:t}=e!==null&&e!==void 0?e:{};return getPageAsyncIterator(h,{pageLink:t})}};return getPagedAsyncIterator(h)}function getPagedAsyncIterator(e){var t;const n=getItemAsyncIterator(e);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t=e===null||e===void 0?void 0:e.byPage)!==null&&t!==void 0?t:t=>{const{continuationToken:n}=t!==null&&t!==void 0?t:{};return getPageAsyncIterator(e,{pageLink:n})}}}function getItemAsyncIterator(e){return fm(this,arguments,(function*getItemAsyncIterator_1(){var t,n,o,i;const a=getPageAsyncIterator(e);try{for(var d=true,f=hm(a),m;m=yield pm(f.next()),t=m.done,!t;d=true){i=m.value;d=false;const e=i;yield pm(yield*mm(hm(e)))}}catch(e){n={error:e}}finally{try{if(!d&&!t&&(o=f.return))yield pm(o.call(f))}finally{if(n)throw n.error}}}))}function getPageAsyncIterator(e){return fm(this,arguments,(function*getPageAsyncIterator_1(e,t={}){const{pageLink:n}=t;let o=yield pm(e.getPage(n!==null&&n!==void 0?n:e.firstPageLink));if(!o){return yield pm(void 0)}let i=o.page;i.continuationToken=o.nextPageLink;yield yield pm(i);while(o.nextPageLink){o=yield pm(e.getPage(o.nextPageLink));if(!o){return yield pm(void 0)}i=o.page;i.continuationToken=o.nextPageLink;yield yield pm(i)}}))}function getNextLink(e,t){if(!t){return undefined}const n=e[t];if(typeof n!=="string"&&typeof n!=="undefined"&&n!==null){throw new Sp(`Body Property ${t} should be a string or undefined or null but got ${typeof n}`)}if(n===null){return undefined}return n}function getElements(e,t){const n=e[t];if(!Array.isArray(n)){throw new Sp(`Couldn't paginate response\n Body doesn't contain an array property with name: ${t}`)}return n!==null&&n!==void 0?n:[]}function checkPagingRequest(e,t){if(!t.includes(e.status)){throw esm_restError_createRestError(`Pagination failed with unexpected statusCode ${e.status}`,e)}}function encodeComponent(e,t,n){return(t!==null&&t!==void 0?t:n==="+")||n==="#"?encodeReservedComponent(e):encodeRFC3986URIComponent(e)}function encodeReservedComponent(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((e=>!/%[0-9A-Fa-f]/.test(e)?encodeURI(e):e)).join("")}function encodeRFC3986URIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}function urlTemplate_isDefined(e){return e!==undefined&&e!==null}function getNamedAndIfEmpty(e){return[!!e&&[";","?","&"].includes(e),!!e&&["?","&"].includes(e)?"=":""]}function getFirstOrSep(e,t=false){if(t){return!e||e==="+"?"":e}else if(!e||e==="+"||e==="#"){return","}else if(e==="?"){return"&"}else{return e}}function getExpandedValue(e){let t=e.isFirst;const{op:n,varName:o,varValue:i,reserved:a}=e;const d=[];const[f,m]=getNamedAndIfEmpty(n);if(Array.isArray(i)){for(const e of i.filter(urlTemplate_isDefined)){d.push(`${getFirstOrSep(n,t)}`);if(f&&o){d.push(`${encodeURIComponent(o)}`);e===""?d.push(m):d.push("=")}d.push(encodeComponent(e,a,n));t=false}}else if(typeof i==="object"){for(const e of Object.keys(i)){const o=i[e];if(!urlTemplate_isDefined(o)){continue}d.push(`${getFirstOrSep(n,t)}`);if(e){d.push(`${encodeURIComponent(e)}`);f&&o===""?d.push(m):d.push("=")}d.push(encodeComponent(o,a,n));t=false}}return d.join("")}function getNonExpandedValue(e){const{op:t,varName:n,varValue:o,isFirst:i,reserved:a}=e;const d=[];const f=getFirstOrSep(t,i);const[m,h]=getNamedAndIfEmpty(t);if(m&&n){d.push(encodeComponent(n,a,t));if(o===""){if(!h){d.push(h)}return!d.join("")?undefined:`${f}${d.join("")}`}d.push("=")}const C=[];if(Array.isArray(o)){for(const e of o.filter(urlTemplate_isDefined)){C.push(encodeComponent(e,a,t))}}else if(typeof o==="object"){for(const e of Object.keys(o)){if(!urlTemplate_isDefined(o[e])){continue}C.push(encodeRFC3986URIComponent(e));C.push(encodeComponent(o[e],a,t))}}d.push(C.join(","));return!d.join(",")?undefined:`${f}${d.join("")}`}function getVarValue(e){const{op:t,varName:n,modifier:o,isFirst:i,reserved:a,varValue:d}=e;if(!urlTemplate_isDefined(d)){return undefined}else if(["string","number","boolean"].includes(typeof d)){let e=d.toString();const[f,m]=getNamedAndIfEmpty(t);const h=[getFirstOrSep(t,i)];if(f&&n){h.push(n);e===""?h.push(m):h.push("=")}if(o&&o!=="*"){e=e.substring(0,parseInt(o,10))}h.push(encodeComponent(e,a,t));return h.join("")}else if(o==="*"){return getExpandedValue(e)}else{return getNonExpandedValue(e)}}function expandUrlTemplate(e,t,n){return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,((e,o,i)=>{if(!o){return encodeReservedComponent(i)}let a;if(["+","#",".","/",";","?","&"].includes(o[0])){a=o[0],o=o.slice(1)}const d=o.split(/,/g);const f=[];for(const e of d){const o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(e);if(!o||!o[1]){continue}const i=getVarValue({isFirst:f.length===0,op:a,varValue:t[o[1]],varName:o[1],modifier:o[2]||o[3],reserved:n===null||n===void 0?void 0:n.allowReserved});if(i){f.push(i)}}return f.join("")}))}function _restoreSecretSend(e,t,n={requestOptions:{}}){var o,i;const a=expandUrlTemplate("/secrets/restore{?api%2Dversion}",{"api%2Dversion":e.apiVersion},{allowReserved:(o=n===null||n===void 0?void 0:n.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding});return e.path(a).post(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(n)),{contentType:"application/json",headers:Object.assign({accept:"application/json"},(i=n.requestOptions)===null||i===void 0?void 0:i.headers),body:secretRestoreParametersSerializer(t)}))}async function _restoreSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return secretBundleDeserializer(e.body)}async function restoreSecret(e,t,n={requestOptions:{}}){const o=await _restoreSecretSend(e,t,n);return _restoreSecretDeserialize(o)}function _backupSecretSend(e,t,n={requestOptions:{}}){var o,i;const a=expandUrlTemplate("/secrets/{secret-name}/backup{?api%2Dversion}",{"secret-name":t,"api%2Dversion":e.apiVersion},{allowReserved:(o=n===null||n===void 0?void 0:n.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding});return e.path(a).post(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(n)),{headers:Object.assign({accept:"application/json"},(i=n.requestOptions)===null||i===void 0?void 0:i.headers)}))}async function _backupSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return backupSecretResultDeserializer(e.body)}async function backupSecret(e,t,n={requestOptions:{}}){const o=await _backupSecretSend(e,t,n);return _backupSecretDeserialize(o)}function _recoverDeletedSecretSend(e,t,n={requestOptions:{}}){var o,i;const a=expandUrlTemplate("/deletedsecrets/{secret-name}/recover{?api%2Dversion}",{"secret-name":t,"api%2Dversion":e.apiVersion},{allowReserved:(o=n===null||n===void 0?void 0:n.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding});return e.path(a).post(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(n)),{headers:Object.assign({accept:"application/json"},(i=n.requestOptions)===null||i===void 0?void 0:i.headers)}))}async function _recoverDeletedSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return secretBundleDeserializer(e.body)}async function recoverDeletedSecret(e,t,n={requestOptions:{}}){const o=await _recoverDeletedSecretSend(e,t,n);return _recoverDeletedSecretDeserialize(o)}function _purgeDeletedSecretSend(e,t,n={requestOptions:{}}){var o,i;const a=expandUrlTemplate("/deletedsecrets/{secret-name}{?api%2Dversion}",{"secret-name":t,"api%2Dversion":e.apiVersion},{allowReserved:(o=n===null||n===void 0?void 0:n.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding});return e.path(a).delete(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(n)),{headers:Object.assign({accept:"application/json"},(i=n.requestOptions)===null||i===void 0?void 0:i.headers)}))}async function _purgeDeletedSecretDeserialize(e){const t=["204"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return}async function purgeDeletedSecret(e,t,n={requestOptions:{}}){const o=await _purgeDeletedSecretSend(e,t,n);return _purgeDeletedSecretDeserialize(o)}function _getDeletedSecretSend(e,t,n={requestOptions:{}}){var o,i;const a=expandUrlTemplate("/deletedsecrets/{secret-name}{?api%2Dversion}",{"secret-name":t,"api%2Dversion":e.apiVersion},{allowReserved:(o=n===null||n===void 0?void 0:n.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding});return e.path(a).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(n)),{headers:Object.assign({accept:"application/json"},(i=n.requestOptions)===null||i===void 0?void 0:i.headers)}))}async function _getDeletedSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return deletedSecretBundleDeserializer(e.body)}async function getDeletedSecret(e,t,n={requestOptions:{}}){const o=await _getDeletedSecretSend(e,t,n);return _getDeletedSecretDeserialize(o)}function _getDeletedSecretsSend(e,t={requestOptions:{}}){var n,o;const i=expandUrlTemplate("/deletedsecrets{?api%2Dversion,maxresults}",{"api%2Dversion":e.apiVersion,maxresults:t===null||t===void 0?void 0:t.maxresults},{allowReserved:(n=t===null||t===void 0?void 0:t.requestOptions)===null||n===void 0?void 0:n.skipUrlEncoding});return e.path(i).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(t)),{headers:Object.assign({accept:"application/json"},(o=t.requestOptions)===null||o===void 0?void 0:o.headers)}))}async function _getDeletedSecretsDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return _deletedSecretListResultDeserializer(e.body)}function getDeletedSecrets(e,t={requestOptions:{}}){return buildPagedAsyncIterator(e,(()=>_getDeletedSecretsSend(e,t)),_getDeletedSecretsDeserialize,["200"],{itemName:"value",nextLinkName:"nextLink"})}function _getSecretVersionsSend(e,t,n={requestOptions:{}}){var o,i;const a=expandUrlTemplate("/secrets/{secret-name}/versions{?api%2Dversion,maxresults}",{"secret-name":t,"api%2Dversion":e.apiVersion,maxresults:n===null||n===void 0?void 0:n.maxresults},{allowReserved:(o=n===null||n===void 0?void 0:n.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding});return e.path(a).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(n)),{headers:Object.assign({accept:"application/json"},(i=n.requestOptions)===null||i===void 0?void 0:i.headers)}))}async function _getSecretVersionsDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return _secretListResultDeserializer(e.body)}function getSecretVersions(e,t,n={requestOptions:{}}){return buildPagedAsyncIterator(e,(()=>_getSecretVersionsSend(e,t,n)),_getSecretVersionsDeserialize,["200"],{itemName:"value",nextLinkName:"nextLink"})}function _getSecretsSend(e,t={requestOptions:{}}){var n,o;const i=expandUrlTemplate("/secrets{?api%2Dversion,maxresults}",{"api%2Dversion":e.apiVersion,maxresults:t===null||t===void 0?void 0:t.maxresults},{allowReserved:(n=t===null||t===void 0?void 0:t.requestOptions)===null||n===void 0?void 0:n.skipUrlEncoding});return e.path(i).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(t)),{headers:Object.assign({accept:"application/json"},(o=t.requestOptions)===null||o===void 0?void 0:o.headers)}))}async function _getSecretsDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return _secretListResultDeserializer(e.body)}function getSecrets(e,t={requestOptions:{}}){return buildPagedAsyncIterator(e,(()=>_getSecretsSend(e,t)),_getSecretsDeserialize,["200"],{itemName:"value",nextLinkName:"nextLink"})}function _getSecretSend(e,t,n,o={requestOptions:{}}){var i,a;const d=expandUrlTemplate("/secrets/{secret-name}/{secret-version}{?api%2Dversion}",{"secret-name":t,"secret-version":n,"api%2Dversion":e.apiVersion},{allowReserved:(i=o===null||o===void 0?void 0:o.requestOptions)===null||i===void 0?void 0:i.skipUrlEncoding});return e.path(d).get(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(o)),{headers:Object.assign({accept:"application/json"},(a=o.requestOptions)===null||a===void 0?void 0:a.headers)}))}async function _getSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return secretBundleDeserializer(e.body)}async function getSecret(e,t,n,o={requestOptions:{}}){const i=await _getSecretSend(e,t,n,o);return _getSecretDeserialize(i)}function _updateSecretSend(e,t,n,o,i={requestOptions:{}}){var a,d;const f=expandUrlTemplate("/secrets/{secret-name}/{secret-version}{?api%2Dversion}",{"secret-name":t,"secret-version":n,"api%2Dversion":e.apiVersion},{allowReserved:(a=i===null||i===void 0?void 0:i.requestOptions)===null||a===void 0?void 0:a.skipUrlEncoding});return e.path(f).patch(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(i)),{contentType:"application/json",headers:Object.assign({accept:"application/json"},(d=i.requestOptions)===null||d===void 0?void 0:d.headers),body:secretUpdateParametersSerializer(o)}))}async function _updateSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return secretBundleDeserializer(e.body)}async function updateSecret(e,t,n,o,i={requestOptions:{}}){const a=await _updateSecretSend(e,t,n,o,i);return _updateSecretDeserialize(a)}function _deleteSecretSend(e,t,n={requestOptions:{}}){var o,i;const a=expandUrlTemplate("/secrets/{secret-name}{?api%2Dversion}",{"secret-name":t,"api%2Dversion":e.apiVersion},{allowReserved:(o=n===null||n===void 0?void 0:n.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding});return e.path(a).delete(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(n)),{headers:Object.assign({accept:"application/json"},(i=n.requestOptions)===null||i===void 0?void 0:i.headers)}))}async function _deleteSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return deletedSecretBundleDeserializer(e.body)}async function deleteSecret(e,t,n={requestOptions:{}}){const o=await _deleteSecretSend(e,t,n);return _deleteSecretDeserialize(o)}function _setSecretSend(e,t,n,o={requestOptions:{}}){var i,a;const d=expandUrlTemplate("/secrets/{secret-name}{?api%2Dversion}",{"secret-name":t,"api%2Dversion":e.apiVersion},{allowReserved:(i=o===null||o===void 0?void 0:o.requestOptions)===null||i===void 0?void 0:i.skipUrlEncoding});return e.path(d).put(Object.assign(Object.assign({},operationOptionHelpers_operationOptionsToRequestParameters(o)),{contentType:"application/json",headers:Object.assign({accept:"application/json"},(a=o.requestOptions)===null||a===void 0?void 0:a.headers),body:secretSetParametersSerializer(n)}))}async function _setSecretDeserialize(e){const t=["200"];if(!t.includes(e.status)){const t=esm_restError_createRestError(e);t.details=keyVaultErrorDeserializer(e.body);throw t}return secretBundleDeserializer(e.body)}async function setSecret(e,t,n,o={requestOptions:{}}){const i=await _setSecretSend(e,t,n,o);return _setSecretDeserialize(i)}class KeyVaultClient{constructor(e,t,n={}){var o;const i=(o=n===null||n===void 0?void 0:n.userAgentOptions)===null||o===void 0?void 0:o.userAgentPrefix;const a=i?`${i} azsdk-js-client`:`azsdk-js-client`;this._client=createKeyVault(e,t,Object.assign(Object.assign({},n),{userAgentOptions:{userAgentPrefix:a}}));this.pipeline=this._client.pipeline}restoreSecret(e,t={requestOptions:{}}){return restoreSecret(this._client,e,t)}backupSecret(e,t={requestOptions:{}}){return backupSecret(this._client,e,t)}recoverDeletedSecret(e,t={requestOptions:{}}){return recoverDeletedSecret(this._client,e,t)}purgeDeletedSecret(e,t={requestOptions:{}}){return purgeDeletedSecret(this._client,e,t)}getDeletedSecret(e,t={requestOptions:{}}){return getDeletedSecret(this._client,e,t)}getDeletedSecrets(e={requestOptions:{}}){return getDeletedSecrets(this._client,e)}getSecretVersions(e,t={requestOptions:{}}){return getSecretVersions(this._client,e,t)}getSecrets(e={requestOptions:{}}){return getSecrets(this._client,e)}getSecret(e,t,n={requestOptions:{}}){return getSecret(this._client,e,t,n)}updateSecret(e,t,n,o={requestOptions:{}}){return updateSecret(this._client,e,t,n,o)}deleteSecret(e,t={requestOptions:{}}){return deleteSecret(this._client,e,t)}setSecret(e,t,n={requestOptions:{}}){return setSecret(this._client,e,t,n)}}const wh=["authorization","authorization_url","resource","scope","tenantId","claims","error"];function parseWWWAuthenticateHeader(e){const t=/,? +/;const n=e.split(t).reduce(((e,t)=>{if(t.match(/\w="/)){const[n,...o]=t.split("=");if(wh.includes(n)){return Object.assign(Object.assign({},e),{[n]:o.join("=").slice(1,-1)})}}return e}),{});if(n.authorization){try{const e=new URL(n.authorization).pathname.substring(1);if(e){n.tenantId=e}}catch(e){throw new Error(`The challenge authorization URI '${n.authorization}' is invalid.`)}}return n}const Ah={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function tokenCycler_beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()<n){try{return await e()}catch(e){return null}}else{const t=await e();if(t===null){throw new Error("Failed to refresh access token.")}return t}}let o=await tryGetAccessToken();while(o===null){await delay_delay(t);o=await tryGetAccessToken()}return o}function esm_tokenCycler_createTokenCycler(e,t){let n=null;let o=null;let i;const a=Object.assign(Object.assign({},Ah),t);const d={get isRefreshing(){return n!==null},get shouldRefresh(){var e;if(d.isRefreshing){return false}if((o===null||o===void 0?void 0:o.refreshAfterTimestamp)&&o.refreshAfterTimestamp<Date.now()){return true}return((e=o===null||o===void 0?void 0:o.expiresOnTimestamp)!==null&&e!==void 0?e:0)-a.refreshWindowInMs<Date.now()},get mustRefresh(){return o===null||o.expiresOnTimestamp-a.forcedRefreshWindowInMs<Date.now()}};function refresh(t,f){var m;if(!d.isRefreshing){const tryGetAccessToken=()=>e.getToken(t,f);n=tokenCycler_beginRefresh(tryGetAccessToken,a.retryIntervalInMs,(m=o===null||o===void 0?void 0:o.expiresOnTimestamp)!==null&&m!==void 0?m:Date.now()).then((e=>{n=null;o=e;i=f.tenantId;return o})).catch((e=>{n=null;o=null;i=undefined;throw e}))}return n}return async(e,t)=>{const n=Boolean(t.claims);const a=i!==t.tenantId;if(n){o=null}const f=a||n||d.mustRefresh;if(f){return refresh(e,t)}if(d.shouldRefresh){refresh(e,t)}return o}}const Rh=esm_createClientLogger("keyvault-common");function verifyChallengeResource(e,t){let n;try{n=new URL(e)}catch(t){throw new Error(`The challenge contains invalid scope '${e}'`)}const o=new URL(t.url);if(!o.hostname.endsWith(`.${n.hostname}`)){throw new Error(`The challenge resource '${n.hostname}' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information.`)}}const Ph="keyVaultAuthenticationPolicy";function keyVaultAuthenticationPolicy(e,t={}){const{disableChallengeResourceVerification:n}=t;let o={status:"none"};const i=esm_tokenCycler_createTokenCycler(e);function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout>0?e.timeout:undefined},tracingOptions:e.tracingOptions}}async function authorizeRequest(e){const t=requestToOptions(e);switch(o.status){case"none":o={status:"started",originalBody:e.body};e.body=null;break;case"started":break;case"complete":{const n=await i(o.scopes,Object.assign(Object.assign({},t),{enableCae:true,tenantId:o.tenantId}));if(n){e.headers.set("authorization",`Bearer ${n.token}`)}break}}}async function handleChallenge(e,t,a){if(t.status!==401){return t}if(e.body===null&&o.status==="started"){e.body=o.originalBody}const d=requestToOptions(e);const f=t.headers.get("WWW-Authenticate");if(!f){Rh.warning("keyVaultAuthentication policy encountered a 401 response without a corresponding WWW-Authenticate header. This is unexpected. Not handling the 401 response.");return t}const m=parseWWWAuthenticateHeader(f);const h=m.resource?m.resource+"/.default":m.scope;if(!h){return t}if(!n){verifyChallengeResource(h,e)}const C=await i([h],Object.assign(Object.assign({},d),{enableCae:true,tenantId:m.tenantId}));if(!C){return t}e.headers.set("Authorization",`Bearer ${C.token}`);o={status:"complete",scopes:[h],tenantId:m.tenantId};return a(e)}async function handleCaeChallenge(e,t,n){if(o.status!=="complete"){return t}if(t.status!==401){return t}const a=requestToOptions(e);const d=t.headers.get("WWW-Authenticate");if(!d){return t}const{claims:f,error:m}=parseWWWAuthenticateHeader(d);if(m!=="insufficient_claims"||f===undefined){return t}const h=atob(f);const C=await i(o.scopes,Object.assign(Object.assign({},a),{enableCae:true,tenantId:o.tenantId,claims:h}));e.headers.set("Authorization",`Bearer ${C.token}`);return n(e)}async function sendRequest(e,t){await authorizeRequest(e);let n=await t(e);n=await handleChallenge(e,n,t);n=await handleCaeChallenge(e,n,t);return n}return{name:Ph,sendRequest:sendRequest}}function parseKeyVaultIdentifier(e,t){if(typeof e!=="string"||!(e=e.trim())){throw new Error("Invalid collection argument")}if(typeof t!=="string"||!(t=t.trim())){throw new Error("Invalid identifier argument")}let n;try{n=new URL(t)}catch(n){throw new Error(`Invalid ${e} identifier: ${t}. Not a valid URI`)}const o=(n.pathname||"").split("/");if(o.length!==3&&o.length!==4){throw new Error(`Invalid ${e} identifier: ${t}. Bad number of segments: ${o.length}`)}if(e!==o[1]){throw new Error(`Invalid ${e} identifier: ${t}. segment [1] should be "${e}", found "${o[1]}"`)}const i=`${n.protocol}//${n.host}`;const a=o[2];const d=o.length===4?o[3]:undefined;return{vaultUrl:i,name:a,version:d}}const Th="7.6";function parseKeyVaultSecretIdentifier(e){const t=e.split("/");const n=t[3];return Object.assign({sourceId:e},parseKeyVaultIdentifier(n,e))}function getSecretFromSecretBundle(e){const t=e;const n=e;const o=parseKeyVaultSecretIdentifier(t.id);const i=t.attributes;delete t.attributes;const a={value:t.value,name:o.name,properties:{expiresOn:i===null||i===void 0?void 0:i.expires,createdOn:i===null||i===void 0?void 0:i.created,updatedOn:i===null||i===void 0?void 0:i.updated,enabled:i===null||i===void 0?void 0:i.enabled,notBefore:i===null||i===void 0?void 0:i.notBefore,recoverableDays:i===null||i===void 0?void 0:i.recoverableDays,recoveryLevel:i===null||i===void 0?void 0:i.recoveryLevel,id:t.id,contentType:t.contentType,tags:t.tags,managed:t.managed,vaultUrl:o.vaultUrl,version:o.version,name:o.name,certificateKeyId:t.kid}};if(n.recoveryId){a.properties.recoveryId=n.recoveryId;a.properties.scheduledPurgeDate=n.scheduledPurgeDate;a.properties.deletedOn=n.deletedDate;a.recoveryId=n.recoveryId;a.scheduledPurgeDate=n.scheduledPurgeDate;a.deletedOn=n.deletedDate}if(i){if(i.vaultUrl){delete a.properties.vaultUrl}if(i.expires){delete a.properties.expires}if(i.created){delete a.properties.created}if(i.updated){delete a.properties.updated}}return a}function mapPagedAsyncIterable(e,t,n){let o=undefined;return{async next(){o!==null&&o!==void 0?o:o=e(Object.assign(Object.assign({},t),{maxresults:undefined}));const i=await o.next();return Object.assign(Object.assign({},i),{value:i.value&&n(i.value)})},[Symbol.asyncIterator](){return this},byPage(o){return fm(this,arguments,(function*byPage_1(){var i,a,d,f;const m=e(Object.assign(Object.assign({},t),{maxresults:o===null||o===void 0?void 0:o.maxPageSize})).byPage(o);try{for(var h=true,C=hm(m),P;P=yield pm(C.next()),i=P.done,!i;h=true){f=P.value;h=false;const e=f;yield yield pm(e.map(n))}}catch(e){a={error:e}}finally{try{if(!h&&!i&&(d=C.return))yield pm(d.call(C))}finally{if(a)throw a.error}}}))}}}const xh="4.10.0";const _h=createTracingClient({namespace:"Microsoft.KeyVault",packageName:"@azure/keyvault-secrets",packageVersion:xh});const Oh=esm_createClientLogger("core-lro");const Mh=2e3;const Dh=["succeeded","canceled","failed"];function operation_deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:n,isOperationError:o}=e;return e=>{if(o(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let o=e;while(o.innererror){o=o.innererror;n=o.code;t=appendReadableErrorMessage(t,o.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:o,isDone:i,processResult:a,getError:d,response:f,setErrorAsResult:m}=e;switch(o){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=d===null||d===void 0?void 0:d(f);let o="";if(e){const{code:t,message:n}=simplifyError(e);o=`. ${t}. ${n}`}const i=`The long-running operation has failed${o}`;n.setError(t,new Error(i));n.setFailed(t);Oh.warning(i);break}case"canceled":{n.setCanceled(t);break}}if((i===null||i===void 0?void 0:i(f,t))||i===undefined&&["succeeded","canceled"].concat(m?[]:["failed"]).includes(o)){n.setResult(t,buildResult({response:f,state:t,processResult:a}))}}function buildResult(e){const{processResult:t,response:n,state:o}=e;return t?t(n,o):n}async function operation_initOperation(e){const{init:t,stateProxy:n,processResult:o,getOperationStatus:i,withOperationLocation:a,setErrorAsResult:d}=e;const{operationLocation:f,resourceLocation:m,metadata:h,response:C}=await t();if(f)a===null||a===void 0?void 0:a(f,false);const P={metadata:h,operationLocation:f,resourceLocation:m};Oh.verbose(`LRO: Operation description:`,P);const D=n.initState(P);const k=i({response:C,state:D,operationLocation:f});processOperationStatus({state:D,status:k,stateProxy:n,response:C,setErrorAsResult:d,processResult:o});return D}async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:o,operationLocation:i,getOperationStatus:a,getResourceLocation:d,isOperationError:f,options:m}=e;const h=await t(i,m).catch(setStateError({state:n,stateProxy:o,isOperationError:f}));const C=a(h,n);Oh.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${C}\n\tPolling status: ${Dh.includes(C)?"Stopped":"Running"}`);if(C==="succeeded"){const e=d(h,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:o,isOperationError:f})),status:C}}}return{response:h,status:C}}async function operation_pollOperation(e){const{poll:t,state:n,stateProxy:o,options:i,getOperationStatus:a,getResourceLocation:d,getOperationLocation:f,isOperationError:m,withOperationLocation:h,getPollingInterval:C,processResult:P,getError:D,updateState:k,setDelay:L,isDone:F,setErrorAsResult:q}=e;const{operationLocation:V}=n.config;if(V!==undefined){const{response:e,status:ee}=await pollOperationHelper({poll:t,getOperationStatus:a,state:n,stateProxy:o,operationLocation:V,getResourceLocation:d,isOperationError:m,options:i});processOperationStatus({status:ee,response:e,state:n,stateProxy:o,isDone:F,processResult:P,getError:D,setErrorAsResult:q});if(!Dh.includes(ee)){const t=C===null||C===void 0?void 0:C(e);if(t)L(t);const o=f===null||f===void 0?void 0:f(e,n);if(o!==undefined){const e=V!==o;n.config.operationLocation=o;h===null||h===void 0?void 0:h(o,e)}else h===null||h===void 0?void 0:h(V,false)}k===null||k===void 0?void 0:k(n,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:n,requestMethod:o,requestPath:i,resourceLocationConfig:a}=e;switch(o){case"PUT":{return i}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:i}default:{return getDefault()}}function getDefault(){switch(a){case"azure-async-operation":{return undefined}case"original-uri":{return i}case"location":default:{return n}}}}function operation_inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;const a=getOperationLocationHeader(t);const d=getAzureAsyncOperationHeader(t);const f=getOperationLocationPollingUrl({operationLocation:a,azureAsyncOperation:d});const m=getLocationHeader(t);const h=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(f!==undefined){return{mode:"OperationLocation",operationLocation:f,resourceLocation:findResourceLocation({requestMethod:h,location:m,requestPath:o,resourceLocationConfig:i})}}else if(m!==undefined){return{mode:"ResourceLocation",operationLocation:m}}else if(h==="PUT"&&o){return{mode:"Body",operationLocation:o}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{Oh.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:o,provisioningState:i}=(t=e.body)!==null&&t!==void 0?t:{};const a=(n=o===null||o===void 0?void 0:o.provisioningState)!==null&&n!==void 0?n:i;return transformStatus({status:a,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function operation_getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){Oh.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){Oh.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t<n){return n-t}return undefined}function operation_getStatusFromInitialResponse(e){const{response:t,state:n,operationLocation:o}=e;function helper(){var e;const o=(e=n.config.metadata)===null||e===void 0?void 0:e["mode"];switch(o){case undefined:return toOperationStatus(t.rawResponse.statusCode);case"Body":return operation_getOperationStatus(t,n);default:return"running"}}const i=helper();return i==="running"&&o===undefined?"succeeded":i}async function initHttpOperation(e){const{stateProxy:t,resourceLocationConfig:n,processResult:o,lro:i,setErrorAsResult:a}=e;return operation_initOperation({init:async()=>{const e=await i.sendInitialRequest();const t=operation_inferLroMode({rawResponse:e.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:a})}function operation_getOperationLocation({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${o}`)}}function accessBodyProperty({flatResponse:e,rawResponse:t},n){var o,i;return(o=e===null||e===void 0?void 0:e[n])!==null&&o!==void 0?o:(i=t.body)===null||i===void 0?void 0:i[n]}function operation_getResourceLocation(e,t){const n=accessBodyProperty(e,"resourceLocation");if(n&&typeof n==="string"){t.config.resourceLocation=n}return t.config.resourceLocation}function operation_isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:o,processResult:i,updateState:a,setDelay:d,state:f,setErrorAsResult:m}=e;return operation_pollOperation({state:f,stateProxy:n,setDelay:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getError:operation_getErrorFromResponse,updateState:a,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:o,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:m})}const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function poller_buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:o,isOperationError:i,getResourceLocation:a,getPollingInterval:d,getError:f,resolveOnUnsuccessful:m}=e;return async({init:e,poll:h},C)=>{const{processResult:P,updateState:D,withOperationLocation:k,intervalInMs:L=POLL_INTERVAL_IN_MS,restoreFrom:F}=C||{};const q=createStateProxy();const V=k?(()=>{let e=false;return(t,n)=>{if(n)k(t);else if(!e)k(t);e=true}})():undefined;const ee=F?deserializeState(F):await initOperation({init:e,stateProxy:q,processResult:P,getOperationStatus:n,withOperationLocation:V,setErrorAsResult:!m});let te;const ne=new AbortController;const re=new Map;const handleProgressEvents=async()=>re.forEach((e=>e(ee)));const oe="Operation was canceled";let ie=L;const se={getOperationState:()=>ee,getResult:()=>ee.result,isDone:()=>["succeeded","failed","canceled"].includes(ee.status),isStopped:()=>te===undefined,stopPolling:()=>{ne.abort()},toString:()=>JSON.stringify({state:ee}),onProgress:e=>{const t=Symbol();re.set(t,e);return()=>re.delete(t)},pollUntilDone:e=>te!==null&&te!==void 0?te:te=(async()=>{const{abortSignal:t}=e||{};function abortListener(){ne.abort()}const n=ne.signal;if(t===null||t===void 0?void 0:t.aborted){ne.abort()}else if(!n.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!se.isDone()){await se.poll({abortSignal:n});while(!se.isDone()){await delay(ie,{abortSignal:n});await se.poll({abortSignal:n})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(m){return se.getResult()}else{switch(ee.status){case"succeeded":return se.getResult();case"canceled":throw new Error(oe);case"failed":throw ee.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{te=undefined})),async poll(e){if(m){if(se.isDone())return}else{switch(ee.status){case"succeeded":return;case"canceled":throw new Error(oe);case"failed":throw ee.error}}await pollOperation({poll:h,state:ee,stateProxy:q,getOperationLocation:t,isOperationError:i,withOperationLocation:V,getPollingInterval:d,getOperationStatus:o,getResourceLocation:a,processResult:P,getError:f,updateState:D,options:e,setDelay:e=>{ie=e},setErrorAsResult:!m});await handleProgressEvents();if(!m){switch(ee.status){case"canceled":throw new Error(oe);case"failed":throw ee.error}}}};return se}}async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:o,processResult:i,restoreFrom:a,updateState:d,withOperationLocation:f,resolveOnUnsuccessful:m=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:m})({init:async()=>{const t=await e.sendInitialRequest();const o=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:o,withOperationLocation:f,restoreFrom:a,updateState:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e})}const operation_createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,o,i,a,d){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=o;this.processResult=i;this.updateState=a;this.isDone=d}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const i=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:i?({flatResponse:e},t)=>i(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){Oh.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:n=Mh,resumeFrom:o,resolveOnUnsuccessful:i=false,isDone:a,lroResourceLocationConfig:d,processResult:f,updateState:m}=t||{};const h=o?operation_deserializeState(o):{};const C=new GenericPollOperation(h,e,!i,d,f,m,a);super(C);this.resolveOnUnsuccessful=i;this.config={intervalInMs:n};C.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}class KeyVaultSecretPoller extends Poller{constructor(){super(...arguments);this.intervalInMs=2e3}async delay(){return delay_delay(this.intervalInMs)}}class KeyVaultSecretPollOperation{constructor(e,t={}){this.state=e;this.cancelMessage="";if(t.cancelMessage){this.cancelMessage=t.cancelMessage}}async update(){throw new Error("Operation not supported.")}async cancel(){throw new Error(this.cancelMessage)}toString(){return JSON.stringify({state:this.state})}}class DeleteSecretPollOperation extends KeyVaultSecretPollOperation{constructor(e,t,n={}){super(e,{cancelMessage:"Canceling the deletion of a secret is not supported."});this.state=e;this.client=t;this.operationOptions=n}deleteSecret(e,t={}){return _h.withSpan("DeleteSecretPoller.deleteSecret",t,(async t=>{const n=await this.client.deleteSecret(e,t);return getSecretFromSecretBundle(n)}))}getDeletedSecret(e,t={}){return _h.withSpan("DeleteSecretPoller.getDeletedSecret",t,(async t=>{const n=await this.client.getDeletedSecret(e,t);return getSecretFromSecretBundle(n)}))}async update(e={}){const t=this.state;const{name:n}=t;if(e.abortSignal){this.operationOptions.abortSignal=e.abortSignal}if(!t.isStarted){const e=await this.deleteSecret(n,this.operationOptions);t.isStarted=true;t.result=e;if(!e.properties.recoveryId){t.isCompleted=true}}if(!t.isCompleted){try{t.result=await this.getDeletedSecret(n,this.operationOptions);t.isCompleted=true}catch(e){if(e.statusCode===403){t.isCompleted=true}else if(e.statusCode!==404){t.error=e;t.isCompleted=true;throw e}}}return this}}class DeleteSecretPoller extends KeyVaultSecretPoller{constructor(e){const{client:t,name:n,operationOptions:o,intervalInMs:i=2e3,resumeFrom:a}=e;let d;if(a){d=JSON.parse(a).state}const f=new DeleteSecretPollOperation(Object.assign(Object.assign({},d),{name:n}),t,o);super(f);this.intervalInMs=i}}class RecoverDeletedSecretPollOperation extends KeyVaultSecretPollOperation{constructor(e,t,n={}){super(e,{cancelMessage:"Canceling the recovery of a deleted secret is not supported."});this.state=e;this.client=t;this.options=n}getSecret(e,t={}){return _h.withSpan("RecoverDeletedSecretPoller.getSecret",t,(async n=>{const o=await this.client.getSecret(e,t&&t.version?t.version:"",n);return getSecretFromSecretBundle(o)}))}recoverDeletedSecret(e,t={}){return _h.withSpan("RecoverDeletedSecretPoller.recoverDeletedSecret",t,(async t=>{const n=await this.client.recoverDeletedSecret(e,t);return getSecretFromSecretBundle(n)}))}async update(e={}){const t=this.state;const{name:n}=t;if(e.abortSignal){this.options.abortSignal=e.abortSignal}if(!t.isStarted){try{t.result=(await this.getSecret(n,this.options)).properties;t.isCompleted=true}catch(e){}if(!t.isCompleted){t.result=(await this.recoverDeletedSecret(n,this.options)).properties;t.isStarted=true}}if(!t.isCompleted){try{t.result=(await this.getSecret(n,this.options)).properties;t.isCompleted=true}catch(e){if(e.statusCode===403){t.isCompleted=true}else if(e.statusCode!==404){t.error=e;t.isCompleted=true;throw e}}}return this}}class RecoverDeletedSecretPoller extends KeyVaultSecretPoller{constructor(e){const{client:t,name:n,operationOptions:o,intervalInMs:i=2e3,resumeFrom:a}=e;let d;if(a){d=JSON.parse(a).state}const f=new RecoverDeletedSecretPollOperation(Object.assign(Object.assign({},d),{name:n}),t,o);super(f);this.intervalInMs=i}}class SecretClient{constructor(e,t,n={}){var o,i;this.vaultUrl=e;const a=Object.assign(Object.assign({},n),{userAgentOptions:{userAgentPrefix:`${(i=(o=n.userAgentOptions)===null||o===void 0?void 0:o.userAgentPrefix)!==null&&i!==void 0?i:""} azsdk-js-keyvault-secrets/${xh}`},apiVersion:n.serviceVersion||Th,loggingOptions:{logger:Rm.info,additionalAllowedHeaderNames:["x-ms-keyvault-region","x-ms-keyvault-network-info","x-ms-keyvault-service-version"]}});this.client=new KeyVaultClient(this.vaultUrl,t,a);this.client.pipeline.removePolicy({name:Rp});this.client.pipeline.addPolicy(keyVaultAuthenticationPolicy(t,n),{});this.client.pipeline.addPolicy({name:"ContentTypePolicy",sendRequest(e,t){var n;const o=(n=e.headers.get("Content-Type"))!==null&&n!==void 0?n:"";if(o.startsWith("application/json")){e.headers.set("Content-Type","application/json")}return t(e)}})}setSecret(e,t,n={}){const{enabled:o,notBefore:i,expiresOn:a,tags:d}=n,f=Qf(n,["enabled","notBefore","expiresOn","tags"]);return _h.withSpan("SecretClient.setSecret",f,(async n=>{const f=await this.client.setSecret(e,{value:t,secretAttributes:{enabled:o,notBefore:i,expires:a},tags:d},n);return getSecretFromSecretBundle(f)}))}async beginDeleteSecret(e,t={}){const n=new DeleteSecretPoller(Object.assign(Object.assign({name:e,client:this.client},t),{operationOptions:t}));await n.poll();return n}async updateSecretProperties(e,t,n={}){const{enabled:o,notBefore:i,expiresOn:a,tags:d}=n,f=Qf(n,["enabled","notBefore","expiresOn","tags"]);return _h.withSpan("SecretClient.updateSecretProperties",f,(async n=>{const f=await this.client.updateSecret(e,t,{secretAttributes:{enabled:o,notBefore:i,expires:a},tags:d},n);return getSecretFromSecretBundle(f).properties}))}getSecret(e,t={}){return _h.withSpan("SecretClient.getSecret",t,(async n=>{const o=await this.client.getSecret(e,t&&t.version?t.version:"",n);return getSecretFromSecretBundle(o)}))}getDeletedSecret(e,t={}){return _h.withSpan("SecretClient.getDeletedSecret",t,(async t=>{const n=await this.client.getDeletedSecret(e,t);return getSecretFromSecretBundle(n)}))}purgeDeletedSecret(e,t={}){return _h.withSpan("SecretClient.purgeDeletedSecret",t,(async t=>{await this.client.purgeDeletedSecret(e,t)}))}async beginRecoverDeletedSecret(e,t={}){const n=new RecoverDeletedSecretPoller(Object.assign(Object.assign({name:e,client:this.client},t),{operationOptions:t}));await n.poll();return n}backupSecret(e,t={}){return _h.withSpan("SecretClient.backupSecret",t,(async t=>{const n=await this.client.backupSecret(e,t);return n.value}))}restoreSecretBackup(e,t={}){return _h.withSpan("SecretClient.restoreSecretBackup",t,(async t=>{const n=await this.client.restoreSecret({secretBundleBackup:e},t);return getSecretFromSecretBundle(n).properties}))}listPropertiesOfSecretVersions(e,t={}){return mapPagedAsyncIterable((t=>this.client.getSecretVersions(e,t)),t,(e=>getSecretFromSecretBundle(e).properties))}listPropertiesOfSecrets(e={}){return mapPagedAsyncIterable(this.client.getSecrets.bind(this.client),e,(e=>getSecretFromSecretBundle(e).properties))}listDeletedSecrets(e={}){return mapPagedAsyncIterable(this.client.getDeletedSecrets.bind(this.client),e,getSecretFromSecretBundle)}}var $h=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var f=e.length-1;f>=0;f--)if(d=e[f])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Nh=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};var kh=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};let Lh=class AzureKeyVaultSecretProvider{constructor(e){this.normalizedNameRegistry=new Map;this.client=e}getSecret(e){return kh(this,void 0,void 0,(function*(){var t;const n=this.resolveSecretName(e);try{const e=yield this.client.getSecret(n);return(t=e===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:undefined}catch(t){if(typeof t==="object"&&t!==null&&"statusCode"in t&&t.statusCode===404){return undefined}const n=t instanceof Error?t.message:String(t);throw new SecretOperationError(`Failed to get secret ${EnvironmentVariable.maskSecretPath(e)}: ${n}`)}}))}setSecret(e,t){return kh(this,void 0,void 0,(function*(){const n=this.resolveSecretName(e);yield this.client.setSecret(n,t)}))}validateSecretName(e){if(e.trim().length===0){throw new InvalidArgumentError("Invalid secret name: name cannot be empty or whitespace-only.")}if(/[^a-zA-Z0-9\-_/]/.test(e)){throw new InvalidArgumentError(`Invalid secret name '${e}': contains characters not allowed`+" by Azure Key Vault. Only alphanumeric characters,"+" hyphens, slashes, and underscores are accepted.")}}resolveSecretName(e){this.validateSecretName(e);const t=this.normalizeSecretName(e);if(t.length>127){throw new InvalidArgumentError(`Invalid secret name '${e}': normalized name '${t}' exceeds the 127-character limit for Azure Key Vault.`)}const n=this.normalizedNameRegistry.get(t);if(n!==undefined&&n!==e){throw new SecretOperationError(`Secret name collision: '${e}' and '${n}' `+`both normalize to '${t}'. Use distinct `+"Key Vault-compatible names in your map file "+"when targeting Azure.")}this.normalizedNameRegistry.set(t,e);return t}normalizeSecretName(e){let t=e.replace(/^\/+/,"");t=t.replace(/[/_]/g,"-");t=t.toLowerCase();t=t.replace(/[^a-zA-Z0-9-]/g,"");t=t.replace(/-+/g,"-");t=t.replace(/^-+|-+$/g,"");if(t.length>0&&!/^[a-zA-Z]/.test(t)){t=`secret-${t}`}if(t.length===0){t="secret"}return t}};Lh=$h([injectable(),Nh("design:paramtypes",[Function])],Lh);const Uh=[".vault.azure.net",".vault.azure.cn",".vault.usgovcloudapi.net",".vault.microsoftazure.de"];function validateAzureVaultUrl(e,t){let n;try{n=new URL(e)}catch(e){throw new InvalidArgumentError("vaultUrl must be a valid URL")}if(n.protocol!=="https:"){throw new InvalidArgumentError("vaultUrl must use https:// protocol")}const o=t.some((e=>{const t=e.startsWith(".")?e.slice(1):e;return n.hostname===t||n.hostname.endsWith(`.${t}`)}));if(!o){throw new InvalidArgumentError(`vaultUrl hostname must end with one of: ${t.join(", ")}`)}}function createAzureSecretProvider(e,t){var n,o;const{vaultUrl:i}=e;if(!i){throw new DependencyMissingError("vaultUrl is required when using Azure provider."+" Set it in $config.vaultUrl in your map file"+" or via --vault-url flag.")}const a=(n=t===null||t===void 0?void 0:t.allowedVaultHosts)!==null&&n!==void 0?n:Uh;const d=(o=t===null||t===void 0?void 0:t.disableChallengeResourceVerification)!==null&&o!==void 0?o:false;validateAzureVaultUrl(i,a);const f=new defaultAzureCredential_DefaultAzureCredential;const m=new SecretClient(i,f,{disableChallengeResourceVerification:d});return new Lh(m)}const Fh={aws:e=>createAwsSecretProvider(e),azure:(e,t)=>createAzureSecretProvider(e,t)};function configureInfrastructureServices(e,t={},n={}){var o;if(!e.isBound(Mt.ILogger)){e.bind(Mt.ILogger).to(Ze).inSingletonScope()}if(!e.isBound(Mt.IVariableStore)){e.bind(Mt.IVariableStore).to(Ft).inSingletonScope()}const i=((o=t.provider)===null||o===void 0?void 0:o.toLowerCase())||"aws";if(t.profile&&i!=="aws"){const t=e.get(Mt.ILogger);t.warn(`--profile is only supported with the aws provider`+` and will be ignored`+` (current provider: ${i}).`)}const a=Fh[i];if(!a){throw new InvalidArgumentError(`Unsupported provider: ${t.provider}.`+` Supported providers:`+` ${Object.keys(Fh).join(", ")}`)}const d=a(t,n);e.bind(Mt.ISecretProvider).toConstantValue(d)}function configureApplicationServices(e){e.bind(Mt.PullSecretsToEnvCommandHandler).to(Yt).inTransientScope();e.bind(Mt.PushEnvToSecretsCommandHandler).to(tn).inTransientScope();e.bind(Mt.PushSingleCommandHandler).to(an).inTransientScope();e.bind(Mt.DispatchActionCommandHandler).to(Ht).inTransientScope()}class Startup{constructor(){this.container=new Container}static build(){return new Startup}configureServices(){configureApplicationServices(this.container);return this}configureInfrastructure(e,t){configureInfrastructureServices(this.container,e,t);return this}create(){return this.container}getServiceProvider(){return this.container}}var Bh=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function readInputs(){const e=process.env.INPUT_MAP_FILE;const t=process.env.INPUT_ENV_FILE;const n=process.env.INPUT_PROVIDER;const o=process.env.INPUT_VAULT_URL;return{options:{map:e,envfile:t,push:false},provider:n||undefined,vaultUrl:o||undefined}}function executeCommand(e,t){return Bh(this,void 0,void 0,(function*(){const n=e.get(Mt.DispatchActionCommandHandler);const o=DispatchActionCommand.fromCliOptions(t);yield n.handleCommand(o)}))}function Gha_main(){return Bh(this,void 0,void 0,(function*(){const{options:e,provider:t,vaultUrl:n}=readInputs();let o;let i=new Ze;try{const a=e.map?yield readMapFileConfig(e.map):{};const d=Object.assign(Object.assign(Object.assign({},a),t&&{provider:t}),n&&{vaultUrl:n});const f=Startup.build();f.configureServices().configureInfrastructure(d);o=f.create();i=o.get(Mt.ILogger)}catch(e){const t=e instanceof Error?e.message:String(e);i.error(`🚨 Failed to initialize: ${t}`);throw e}try{if(!e.map||!e.envfile){throw new Error("🚨 Missing required inputs! Please provide map-file and env-file.")}i.info("🔑 Envilder GitHub Action - Starting secret pull...");i.info(`📋 Map file: ${e.map}`);i.info(`📄 Env file: ${e.envfile}`);yield executeCommand(o,e);i.info("✅ Secrets pulled successfully!")}catch(e){i.error("🚨 Uh-oh! Looks like Mario fell into the wrong pipe! 🍄💥");i.error(e instanceof Error?e.message:String(e));throw e}}))}Gha_main().catch((e=>{console.error("🚨 Uh-oh! Looks like Mario fell into the wrong pipe! 🍄💥");console.error(e instanceof Error?e.message:String(e));process.exit(1)})); \ No newline at end of file diff --git a/package.json b/package.json index ef68cc4b..c1f2a0ab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "envilder", - "version": "0.8.0", - "description": "A CLI that securely centralizes your environment variables from AWS SSM or Azure Key Vault as a single source of truth", + "version": "0.9.0", + "description": "A CLI and GitHub Action that securely centralizes your environment variables from AWS SSM or Azure Key Vault as a single source of truth", + "homepage": "https://envilder.com", "author": { "name": "Marçal Albert Castellví", "email": "mac.albert@gmail.com", @@ -49,6 +50,7 @@ "cli", "environment", "secrets", + "secret-management", "automation", "config", "aws-cli", @@ -61,7 +63,8 @@ "actions", "azure", "key-vault", - "azure-key-vault" + "azure-key-vault", + "multi-cloud" ], "bugs": { "url": "https://github.com/macalbert/envilder/issues" @@ -80,47 +83,45 @@ ], "type": "module", "dependencies": { - "@aws-sdk/client-ssm": "^3.1014.0", - "@aws-sdk/credential-providers": "^3.1014.0", - "@azure/core-rest-pipeline": "^1.22.2", - "@azure/identity": "^4.13.0", + "@aws-sdk/client-ssm": "^3.1019.0", + "@aws-sdk/credential-providers": "^3.1019.0", + "@azure/core-rest-pipeline": "^1.23.0", + "@azure/identity": "^4.13.1", "@azure/keyvault-secrets": "^4.10.0", - "@types/node": "^25.3.3", + "@types/node": "catalog:", "commander": "^14.0.3", "dotenv": "^17.3.1", - "inversify": "^7.11.0", + "inversify": "^8.1.0", "picocolors": "^1.1.1", "reflect-metadata": "^0.2.2" }, "devDependencies": { - "@biomejs/biome": "^2.4.5", - "@commitlint/cli": "^20.4.3", - "@commitlint/config-conventional": "^20.4.3", - "@secretlint/secretlint-rule-preset-recommend": "^11.3.1", - "@testcontainers/localstack": "^11.12.0", + "@biomejs/biome": "catalog:", + "@commitlint/cli": "^20.5.0", + "@commitlint/config-conventional": "^20.5.0", + "@secretlint/secretlint-rule-preset-recommend": "^11.4.0", + "@testcontainers/localstack": "^11.13.0", "@vercel/ncc": "^0.38.4", - "@vitest/coverage-v8": "^4.0.18", + "@vitest/coverage-v8": "catalog:", "glob": "^13.0.6", "lefthook": "^2.1.4", - "secretlint": "^11.3.1", - "testcontainers": "^11.12.0", - "ts-node": "^10.9.2", + "secretlint": "^11.4.0", + "testcontainers": "^11.13.0", + "ts-node": "catalog:", "tsx": "^4.21.0", - "typescript": "^5.9.3", - "vitest": "^4.0.18" + "typescript": "catalog:", + "vitest": "catalog:" }, "engines": { "node": ">=20.0.0" }, "pnpm": { - "overrides": { - "minimatch": "^10.2.2" - }, "onlyBuiltDependencies": [ "cpu-features", "esbuild", "lefthook", "protobufjs", + "sharp", "ssh2" ] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 822b10d2..f02f9309 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,31 +4,55 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -overrides: - minimatch: ^10.2.2 +catalogs: + default: + '@biomejs/biome': + specifier: ^2.4.9 + version: 2.4.9 + '@types/node': + specifier: ^25.5.0 + version: 25.5.0 + '@vitest/coverage-v8': + specifier: ^4.1.2 + version: 4.1.2 + aws-cdk-lib: + specifier: ^2.245.0 + version: 2.245.0 + constructs: + specifier: ^10.4.2 + version: 10.6.0 + ts-node: + specifier: ^10.9.2 + version: 10.9.2 + typescript: + specifier: ^6.0.2 + version: 6.0.2 + vitest: + specifier: ^4.1.2 + version: 4.1.2 importers: .: dependencies: '@aws-sdk/client-ssm': - specifier: ^3.1014.0 - version: 3.1014.0 + specifier: ^3.1019.0 + version: 3.1019.0 '@aws-sdk/credential-providers': - specifier: ^3.1014.0 - version: 3.1014.0 + specifier: ^3.1019.0 + version: 3.1019.0 '@azure/core-rest-pipeline': - specifier: ^1.22.2 - version: 1.22.2 + specifier: ^1.23.0 + version: 1.23.0 '@azure/identity': - specifier: ^4.13.0 - version: 4.13.0 + specifier: ^4.13.1 + version: 4.13.1 '@azure/keyvault-secrets': specifier: ^4.10.0 version: 4.10.0(@azure/core-client@1.10.1) '@types/node': - specifier: ^25.3.3 - version: 25.3.3 + specifier: 'catalog:' + version: 25.5.0 commander: specifier: ^14.0.3 version: 14.0.3 @@ -36,8 +60,8 @@ importers: specifier: ^17.3.1 version: 17.3.1 inversify: - specifier: ^7.11.0 - version: 7.11.0(reflect-metadata@0.2.2) + specifier: ^8.1.0 + version: 8.1.0(reflect-metadata@0.2.2) picocolors: specifier: ^1.1.1 version: 1.1.1 @@ -46,26 +70,26 @@ importers: version: 0.2.2 devDependencies: '@biomejs/biome': - specifier: ^2.4.5 - version: 2.4.5 + specifier: 'catalog:' + version: 2.4.9 '@commitlint/cli': - specifier: ^20.4.3 - version: 20.4.3(@types/node@25.3.3)(typescript@5.9.3) + specifier: ^20.5.0 + version: 20.5.0(@types/node@25.5.0)(conventional-commits-parser@6.3.0)(typescript@6.0.2) '@commitlint/config-conventional': - specifier: ^20.4.3 - version: 20.4.3 + specifier: ^20.5.0 + version: 20.5.0 '@secretlint/secretlint-rule-preset-recommend': - specifier: ^11.3.1 - version: 11.3.1 + specifier: ^11.4.0 + version: 11.4.0 '@testcontainers/localstack': - specifier: ^11.12.0 - version: 11.12.0 + specifier: ^11.13.0 + version: 11.13.0 '@vercel/ncc': specifier: ^0.38.4 version: 0.38.4 '@vitest/coverage-v8': - specifier: ^4.0.18 - version: 4.0.18(vitest@4.0.18(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)) + specifier: 'catalog:' + version: 4.1.2(vitest@4.1.2(@types/node@25.5.0)(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3))) glob: specifier: ^13.0.6 version: 13.0.6 @@ -73,26 +97,103 @@ importers: specifier: ^2.1.4 version: 2.1.4 secretlint: - specifier: ^11.3.1 - version: 11.3.1 + specifier: ^11.4.0 + version: 11.4.0 testcontainers: - specifier: ^11.12.0 - version: 11.12.0 + specifier: ^11.13.0 + version: 11.13.0 ts-node: - specifier: ^10.9.2 - version: 10.9.2(@types/node@25.3.3)(typescript@5.9.3) + specifier: 'catalog:' + version: 10.9.2(@types/node@25.5.0)(typescript@6.0.2) tsx: specifier: ^4.21.0 version: 4.21.0 typescript: - specifier: ^5.9.3 - version: 5.9.3 + specifier: 'catalog:' + version: 6.0.2 vitest: - specifier: ^4.0.18 - version: 4.0.18(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) + specifier: 'catalog:' + version: 4.1.2(@types/node@25.5.0)(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)) + + src/apps/website: + dependencies: + '@astrojs/sitemap': + specifier: ^3.3.1 + version: 3.7.2 + astro: + specifier: ^6.1.1 + version: 6.1.1(@azure/identity@4.13.1)(@azure/keyvault-secrets@4.10.0(@azure/core-client@1.10.1))(@types/node@25.5.0)(jiti@2.6.1)(rollup@4.60.0)(tsx@4.21.0)(typescript@6.0.2)(yaml@2.8.3) + devDependencies: + '@biomejs/biome': + specifier: 'catalog:' + version: 2.4.9 + + src/iac: + dependencies: + aws-cdk-lib: + specifier: 'catalog:' + version: 2.245.0(constructs@10.6.0) + constructs: + specifier: 'catalog:' + version: 10.6.0 + devDependencies: + aws-cdk: + specifier: ^2.1114.1 + version: 2.1114.1 + ts-node: + specifier: 'catalog:' + version: 10.9.2(@types/node@25.5.0)(typescript@6.0.2) + typescript: + specifier: 'catalog:' + version: 6.0.2 + + tests/iac: + devDependencies: + aws-cdk-lib: + specifier: 'catalog:' + version: 2.245.0(constructs@10.6.0) + constructs: + specifier: 'catalog:' + version: 10.6.0 + typescript: + specifier: 'catalog:' + version: 6.0.2 packages: + '@astrojs/compiler@3.0.1': + resolution: {integrity: sha512-z97oYbdebO5aoWzuJ/8q5hLK232+17KcLZ7cJ8BCWk6+qNzVxn/gftC0KzMBUTD8WAaBkPpNSQK6PXLnNrZ0CA==} + + '@astrojs/internal-helpers@0.8.0': + resolution: {integrity: sha512-J56GrhEiV+4dmrGLPNOl2pZjpHXAndWVyiVDYGDuw6MWKpBSEMLdFxHzeM/6sqaknw9M+HFfHZAcvi3OfT3D/w==} + + '@astrojs/markdown-remark@7.1.0': + resolution: {integrity: sha512-P+HnCsu2js3BoTc8kFmu+E9gOcFeMdPris75g+Zl4sY8+bBRbSQV6xzcBDbZ27eE7yBGEGQoqjpChx+KJYIPYQ==} + + '@astrojs/prism@4.0.1': + resolution: {integrity: sha512-nksZQVjlferuWzhPsBpQ1JE5XuKAf1id1/9Hj4a9KG4+ofrlzxUUwX4YGQF/SuDiuiGKEnzopGOt38F3AnVWsQ==} + engines: {node: '>=22.12.0'} + + '@astrojs/sitemap@3.7.2': + resolution: {integrity: sha512-PqkzkcZTb5ICiyIR8VoKbIAP/laNRXi5tw616N1Ckk+40oNB8Can1AzVV56lrbC5GKSZFCyJYUVYqVivMisvpA==} + + '@astrojs/telemetry@3.3.0': + resolution: {integrity: sha512-UFBgfeldP06qu6khs/yY+q1cDAaArM2/7AEIqQ9Cuvf7B1hNLq0xDrZkct+QoIGyjq56y8IaE2I3CTvG99mlhQ==} + engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0} + + '@aws-cdk/asset-awscli-v1@2.2.263': + resolution: {integrity: sha512-X9JvcJhYcb7PHs8R7m4zMablO5C9PGb/hYfLnxds9h/rKJu6l7MiXE/SabCibuehxPnuO/vk+sVVJiUWrccarQ==} + + '@aws-cdk/asset-node-proxy-agent-v6@2.1.1': + resolution: {integrity: sha512-We4bmHaowOPHr+IQR4/FyTGjRfjgBj4ICMjtqmJeBDWad3Q/6St12NT07leNtyuukv2qMhtSZJQorD8KpKTwRA==} + + '@aws-cdk/cloud-assembly-schema@53.9.0': + resolution: {integrity: sha512-Ss7Af943iyyTABqeJS30LylmELpdpGgHzQP87KxO+HGPFIFDsoZymSuU1H5eQAcuuOvcfIPSKA62/lf274UB2A==} + engines: {node: '>= 18.0.0'} + bundledDependencies: + - jsonschema + - semver + '@aws-crypto/sha256-browser@5.2.0': resolution: {integrity: sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==} @@ -106,56 +207,56 @@ packages: '@aws-crypto/util@5.2.0': resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==} - '@aws-sdk/client-cognito-identity@3.1014.0': - resolution: {integrity: sha512-NvNThzNvdKigwy9gNQnipeefydZ1HGU1kReXl5FPMxclzNgYB0IzwmJSW0mXICdd7PWARUblcfz72LeoOyXs0A==} + '@aws-sdk/client-cognito-identity@3.1019.0': + resolution: {integrity: sha512-nl6J9+6GqEPKPgVbJbfxL97rTgj1gdXHolXutOdW3A3uux7paHxAdTt3ck8TA6Juwz/DwuL3kGqszqCFjy547A==} engines: {node: '>=20.0.0'} - '@aws-sdk/client-ssm@3.1014.0': - resolution: {integrity: sha512-+TMGrFm0tOyOnHnyoDO+tbjqV4ADAT2VYC0rrlMM2ECWHBYRfDVTyewzEqsoouo539c1ru4MlBF9nCgT+taRxQ==} + '@aws-sdk/client-ssm@3.1019.0': + resolution: {integrity: sha512-4/s6n/GjBccA3Y+muRGrHfCvO2Rn2JjxcLkvxf9npeH/BjMP6hozuCY4aMnRwAbkZSILP43R2lutdAeV1SzqYw==} engines: {node: '>=20.0.0'} - '@aws-sdk/core@3.973.23': - resolution: {integrity: sha512-aoJncvD1XvloZ9JLnKqTRL9dBy+Szkryoag9VT+V1TqsuUgIxV9cnBVM/hrDi2vE8bDqLiDR8nirdRcCdtJu0w==} + '@aws-sdk/core@3.973.25': + resolution: {integrity: sha512-TNrx7eq6nKNOO62HWPqoBqPLXEkW6nLZQGwjL6lq1jZtigWYbK1NbCnT7mKDzbLMHZfuOECUt3n6CzxjUW9HWQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-cognito-identity@3.972.16': - resolution: {integrity: sha512-WLdg4ErAu1Zkf9uPKQFC+UryHjaLTXji5SyBF3pTtqbbYOQHIfmf9Gsvn5zFol1T4SOWE4nDc8entfBAkAVHYQ==} + '@aws-sdk/credential-provider-cognito-identity@3.972.19': + resolution: {integrity: sha512-WYmqARqN99uxJy/DcXEAoyykPCRUdvgTehbB/T9v8RkiNTG3hRIuMpXQQPEhqr8oHbUOOE3SUQaLOEIDCz07xQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-env@3.972.21': - resolution: {integrity: sha512-BkAfKq8Bd4shCtec1usNz//urPJF/SZy14qJyxkSaRJQ/Vv1gVh0VZSTmS7aE6aLMELkFV5wHHrS9ZcdG8Kxsg==} + '@aws-sdk/credential-provider-env@3.972.23': + resolution: {integrity: sha512-EamaclJcCEaPHp6wiVknNMM2RlsPMjAHSsYSFLNENBM8Wz92QPc6cOn3dif6vPDQt0Oo4IEghDy3NMDCzY/IvA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-http@3.972.23': - resolution: {integrity: sha512-4XZ3+Gu5DY8/n8zQFHBgcKTF7hWQl42G6CY9xfXVo2d25FM/lYkpmuzhYopYoPL1ITWkJ2OSBQfYEu5JRfHOhA==} + '@aws-sdk/credential-provider-http@3.972.25': + resolution: {integrity: sha512-qPymamdPcLp6ugoVocG1y5r69ScNiRzb0hogX25/ij+Wz7c7WnsgjLTaz7+eB5BfRxeyUwuw5hgULMuwOGOpcw==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-ini@3.972.23': - resolution: {integrity: sha512-PZLSmU0JFpNCDFReidBezsgL5ji9jOBry8CnZdw4Jj6d0K2z3Ftnp44NXgADqYx5BLMu/ZHujfeJReaDoV+IwQ==} + '@aws-sdk/credential-provider-ini@3.972.26': + resolution: {integrity: sha512-xKxEAMuP6GYx2y5GET+d3aGEroax3AgGfwBE65EQAUe090lzyJ/RzxPX9s8v7Z6qAk0XwfQl+LrmH05X7YvTeg==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-login@3.972.23': - resolution: {integrity: sha512-OmE/pSkbMM3dCj1HdOnZ5kXnKK+R/Yz+kbBugraBecp0pGAs21eEURfQRz+1N2gzIHLVyGIP1MEjk/uSrFsngg==} + '@aws-sdk/credential-provider-login@3.972.26': + resolution: {integrity: sha512-EFcM8RM3TUxnZOfMJo++3PnyxFu1fL/huzmn3Vh+8IWRgqZawUD3cRwwOr+/4bE9DpyHaLOWFAjY0lfK5X9ZkQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-node@3.972.24': - resolution: {integrity: sha512-9Jwi7aps3AfUicJyF5udYadPypPpCwUZ6BSKr/QjRbVCpRVS1wc+1Q6AEZ/qz8J4JraeRd247pSzyMQSIHVebw==} + '@aws-sdk/credential-provider-node@3.972.27': + resolution: {integrity: sha512-jXpxSolfFnPVj6GCTtx3xIdWNoDR7hYC/0SbetGZxOC9UnNmipHeX1k6spVstf7eWJrMhXNQEgXC0pD1r5tXIg==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-process@3.972.21': - resolution: {integrity: sha512-nRxbeOJ1E1gVA0lNQezuMVndx+ZcuyaW/RB05pUsznN5BxykSlH6KkZ/7Ca/ubJf3i5N3p0gwNO5zgPSCzj+ww==} + '@aws-sdk/credential-provider-process@3.972.23': + resolution: {integrity: sha512-IL/TFW59++b7MpHserjUblGrdP5UXy5Ekqqx1XQkERXBFJcZr74I7VaSrQT5dxdRMU16xGK4L0RQ5fQG1pMgnA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-sso@3.972.23': - resolution: {integrity: sha512-APUccADuYPLL0f2htpM8Z4czabSmHOdo4r41W6lKEZdy++cNJ42Radqy6x4TopENzr3hR6WYMyhiuiqtbf/nAA==} + '@aws-sdk/credential-provider-sso@3.972.26': + resolution: {integrity: sha512-c6ghvRb6gTlMznWhGxn/bpVCcp0HRaz4DobGVD9kI4vwHq186nU2xN/S7QGkm0lo0H2jQU8+dgpUFLxfTcwCOg==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-web-identity@3.972.23': - resolution: {integrity: sha512-H5JNqtIwOu/feInmMMWcK0dL5r897ReEn7n2m16Dd0DPD9gA2Hg8Cq4UDzZ/9OzaLh/uqBM6seixz0U6Fi2Eag==} + '@aws-sdk/credential-provider-web-identity@3.972.26': + resolution: {integrity: sha512-cXcS3+XD3iwhoXkM44AmxjmbcKueoLCINr1e+IceMmCySda5ysNIfiGBGe9qn5EMiQ9Jd7pP0AGFtcd6OV3Lvg==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-providers@3.1014.0': - resolution: {integrity: sha512-2GM4JBB08RTwHPEVa9+AE+Q3mtyZyv+XS93rdlw5o/Emfu0nseDU6I72cbmKXcMnHXYEN+DdxEF/RvfnB0/GXw==} + '@aws-sdk/credential-providers@3.1019.0': + resolution: {integrity: sha512-F6dsoXZgBzpR7/EmhlVd0CKQYa9qwlq8CYFfzvF+QCZNhMKad7Tsv8beLCxQ+yd7CzDYVBNIJ87VI6Si1Ht0Qg==} engines: {node: '>=20.0.0'} '@aws-sdk/middleware-host-header@3.972.8': @@ -166,24 +267,24 @@ packages: resolution: {integrity: sha512-CWl5UCM57WUFaFi5kB7IBY1UmOeLvNZAZ2/OZ5l20ldiJ3TiIz1pC65gYj8X0BCPWkeR1E32mpsCk1L1I4n+lA==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-recursion-detection@3.972.8': - resolution: {integrity: sha512-BnnvYs2ZEpdlmZ2PNlV2ZyQ8j8AEkMTjN79y/YA475ER1ByFYrkVR85qmhni8oeTaJcDqbx364wDpitDAA/wCA==} + '@aws-sdk/middleware-recursion-detection@3.972.9': + resolution: {integrity: sha512-/Wt5+CT8dpTFQxEJ9iGy/UGrXr7p2wlIOEHvIr/YcHYByzoLjrqkYqXdJjd9UIgWjv7eqV2HnFJen93UTuwfTQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-user-agent@3.972.24': - resolution: {integrity: sha512-dLTWy6IfAMhNiSEvMr07g/qZ54be6pLqlxVblbF6AzafmmGAzMMj8qMoY9B4+YgT+gY9IcuxZslNh03L6PyMCQ==} + '@aws-sdk/middleware-user-agent@3.972.26': + resolution: {integrity: sha512-AilFIh4rI/2hKyyGN6XrB0yN96W2o7e7wyrPWCM6QjZM1mcC/pVkW3IWWRvuBWMpVP8Fg+rMpbzeLQ6dTM4gig==} engines: {node: '>=20.0.0'} - '@aws-sdk/nested-clients@3.996.13': - resolution: {integrity: sha512-ptZ1HF4yYHNJX8cgFF+8NdYO69XJKZn7ft0/ynV3c0hCbN+89fAbrLS+fqniU2tW8o9Kfqhj8FUh+IPXb2Qsuw==} + '@aws-sdk/nested-clients@3.996.16': + resolution: {integrity: sha512-L7Qzoj/qQU1cL5GnYLQP5LbI+wlLCLoINvcykR3htKcQ4tzrPf2DOs72x933BM7oArYj1SKrkb2lGlsJHIic3g==} engines: {node: '>=20.0.0'} - '@aws-sdk/region-config-resolver@3.972.9': - resolution: {integrity: sha512-eQ+dFU05ZRC/lC2XpYlYSPlXtX3VT8sn5toxN2Fv7EXlMoA2p9V7vUBKqHunfD4TRLpxUq8Y8Ol/nCqiv327Ng==} + '@aws-sdk/region-config-resolver@3.972.10': + resolution: {integrity: sha512-1dq9ToC6e070QvnVhhbAs3bb5r6cQ10gTVc6cyRV5uvQe7P138TV2uG2i6+Yok4bAkVAcx5AqkTEBUvWEtBlsQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/token-providers@3.1014.0': - resolution: {integrity: sha512-gHTHNUoaOGNrSWkl32A7wFsU78jlNTlqMccLu0byUk5CysYYXaxNMIonIVr4YcykC7vgtDS5ABuz83giy6fzJA==} + '@aws-sdk/token-providers@3.1019.0': + resolution: {integrity: sha512-OF+2RfRmUKyjzrRWlDcyju3RBsuqcrYDQ8TwrJg8efcOotMzuZN4U9mpVTIdATpmEc4lWNZBMSjPzrGm6JPnAQ==} engines: {node: '>=20.0.0'} '@aws-sdk/types@3.973.6': @@ -194,15 +295,15 @@ packages: resolution: {integrity: sha512-Uh93L5sXFNbyR5sEPMzUU8tJ++Ku97EY4udmC01nB8Zu+xfBPwpIwJ6F7snqQeq8h2pf+8SGN5/NoytfKgYPIw==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-locate-window@3.965.4': - resolution: {integrity: sha512-H1onv5SkgPBK2P6JR2MjGgbOnttoNzSPIRoeZTNPZYyaplwGg50zS3amXvXqF0/qfXpWEC9rLWU564QTB9bSog==} + '@aws-sdk/util-locate-window@3.965.5': + resolution: {integrity: sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==} engines: {node: '>=20.0.0'} '@aws-sdk/util-user-agent-browser@3.972.8': resolution: {integrity: sha512-B3KGXJviV2u6Cdw2SDY2aDhoJkVfY/Q/Trwk2CMSkikE1Oi6gRzxhvhIfiRpHfmIsAhV4EA54TVEX8K6CbHbkA==} - '@aws-sdk/util-user-agent-node@3.973.10': - resolution: {integrity: sha512-E99zeTscCc+pTMfsvnfi6foPpKmdD1cZfOC7/P8UUrjsoQdg9VEWPRD+xdFduKnfPXwcvby58AlO9jwwF6U96g==} + '@aws-sdk/util-user-agent-node@3.973.12': + resolution: {integrity: sha512-8phW0TS8ntENJgDcFewYT/Q8dOmarpvSxEjATu2GUBAutiHr++oEGCiBUwxslCMNvwW2cAPZNT53S/ym8zm/gg==} engines: {node: '>=20.0.0'} peerDependencies: aws-crt: '>=1.0.0' @@ -210,12 +311,12 @@ packages: aws-crt: optional: true - '@aws-sdk/xml-builder@3.972.15': - resolution: {integrity: sha512-PxMRlCFNiQnke9YR29vjFQwz4jq+6Q04rOVFeTDR2K7Qpv9h9FOWOxG+zJjageimYbWqE3bTuLjmryWHAWbvaA==} + '@aws-sdk/xml-builder@3.972.16': + resolution: {integrity: sha512-iu2pyvaqmeatIJLURLqx9D+4jKAdTH20ntzB6BFwjyN7V960r4jK32mx0Zf7YbtOYAbmbtQfDNuL60ONinyw7A==} engines: {node: '>=20.0.0'} - '@aws/lambda-invoke-store@0.2.3': - resolution: {integrity: sha512-oLvsaPMTBejkkmHhjf09xTgk71mOqyr/409NKhRIL08If7AhVfUsJhVsx386uJaqNd42v9kWamQ9lFbkoC2dYw==} + '@aws/lambda-invoke-store@0.2.4': + resolution: {integrity: sha512-iY8yvjE0y651BixKNPgmv1WrQc+GZ142sb0z4gYnChDDY2YqI4P/jsSopBWrKfAt7LOJAkOXt7rC/hms+WclQQ==} engines: {node: '>=18.0.0'} '@azu/format-text@1.0.2': @@ -255,8 +356,8 @@ packages: resolution: {integrity: sha512-YKWi9YuCU04B55h25cnOYZHxXYtEvQEbKST5vqRga7hWY9ydd3FZHdeQF8pyh+acWZvppw13M/LMGx0LABUVMA==} engines: {node: '>=18.0.0'} - '@azure/core-rest-pipeline@1.22.2': - resolution: {integrity: sha512-MzHym+wOi8CLUlKCQu12de0nwcq9k9Kuv43j4Wa++CsCpJwps2eeBQwD2Bu8snkxTtDKDx4GwjuR9E8yC8LNrg==} + '@azure/core-rest-pipeline@1.23.0': + resolution: {integrity: sha512-Evs1INHo+jUjwHi1T6SG6Ua/LHOQBCLuKEEE6efIpt4ZOoNonaT1kP32GoOcdNDbfqsD2445CPri3MubBy5DEQ==} engines: {node: '>=20.0.0'} '@azure/core-tracing@1.3.1': @@ -267,8 +368,8 @@ packages: resolution: {integrity: sha512-XPArKLzsvl0Hf0CaGyKHUyVgF7oDnhKoP85Xv6M4StF/1AhfORhZudHtOyf2s+FcbuQ9dPRAjB8J2KvRRMUK2A==} engines: {node: '>=20.0.0'} - '@azure/identity@4.13.0': - resolution: {integrity: sha512-uWC0fssc+hs1TGGVkkghiaFkkS7NkTxfnCH+Hdg+yTehTpMcehpok4PgUKKdyCH+9ldu6FhiHRv84Ntqj1vVcw==} + '@azure/identity@4.13.1': + resolution: {integrity: sha512-5C/2WD5Vb1lHnZS16dNQRPMjN6oV/Upba+C9nBIs15PmOi6A3ZGs4Lr2u60zw4S04gi+u3cEXiqTVP7M4Pz3kw==} engines: {node: '>=20.0.0'} '@azure/keyvault-common@2.0.0': @@ -283,17 +384,17 @@ packages: resolution: {integrity: sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==} engines: {node: '>=20.0.0'} - '@azure/msal-browser@4.29.0': - resolution: {integrity: sha512-/f3eHkSNUTl6DLQHm+bKecjBKcRQxbd/XLx8lvSYp8Nl/HRyPuIPOijt9Dt0sH50/SxOwQ62RnFCmFlGK+bR/w==} + '@azure/msal-browser@5.6.2': + resolution: {integrity: sha512-ZgcN9ToRJ80f+wNPBBKYJ+DG0jlW7ktEjYtSNkNsTrlHVMhKB8tKMdI1yIG1I9BJtykkXtqnuOjlJaEMC7J6aw==} engines: {node: '>=0.8.0'} - '@azure/msal-common@15.15.0': - resolution: {integrity: sha512-/n+bN0AKlVa+AOcETkJSKj38+bvFs78BaP4rNtv3MJCmPH0YrHiskMRe74OhyZ5DZjGISlFyxqvf9/4QVEi2tw==} + '@azure/msal-common@16.4.0': + resolution: {integrity: sha512-twXt09PYtj1PffNNIAzQlrBd0DS91cdA6i1gAfzJ6BnPM4xNk5k9q/5xna7jLIjU3Jnp0slKYtucshGM8OGNAw==} engines: {node: '>=0.8.0'} - '@azure/msal-node@3.8.8': - resolution: {integrity: sha512-+f1VrJH1iI517t4zgmuhqORja0bL6LDQXfBqkjuMmfTYXTQQnh1EvwwxO3UbKLT05N0obF72SRHFrC1RBDv5Gg==} - engines: {node: '>=16'} + '@azure/msal-node@5.1.1': + resolution: {integrity: sha512-71grXU6+5hl+3CL3joOxlj/AW6rmhthuTlG0fRqsTrhPArQBpZuUFzCIlKOGdcafLUa/i1hBdV78ZxJdlvRA+g==} + engines: {node: '>=20'} '@babel/code-frame@7.29.0': resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==} @@ -323,114 +424,128 @@ packages: resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} - '@biomejs/biome@2.4.5': - resolution: {integrity: sha512-OWNCyMS0Q011R6YifXNOg6qsOg64IVc7XX6SqGsrGszPbkVCoaO7Sr/lISFnXZ9hjQhDewwZ40789QmrG0GYgQ==} + '@biomejs/biome@2.4.9': + resolution: {integrity: sha512-wvZW92FrwitTcacvCBT8xdAbfbxWfDLwjYMmU3djjqQTh7Ni4ZdiWIT/x5VcZ+RQuxiKzIOzi5D+dcyJDFZMsA==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.4.5': - resolution: {integrity: sha512-lGS4Nd5O3KQJ6TeWv10mElnx1phERhBxqGP/IKq0SvZl78kcWDFMaTtVK+w3v3lusRFxJY78n07PbKplirsU5g==} + '@biomejs/cli-darwin-arm64@2.4.9': + resolution: {integrity: sha512-d5G8Gf2RpH5pYwiHLPA+UpG3G9TLQu4WM+VK6sfL7K68AmhcEQ9r+nkj/DvR/GYhYox6twsHUtmWWWIKfcfQQA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.4.5': - resolution: {integrity: sha512-6MoH4tyISIBNkZ2Q5T1R7dLd5BsITb2yhhhrU9jHZxnNSNMWl+s2Mxu7NBF8Y3a7JJcqq9nsk8i637z4gqkJxQ==} + '@biomejs/cli-darwin-x64@2.4.9': + resolution: {integrity: sha512-LNCLNgqDMG7BLdc3a8aY/dwKPK7+R8/JXJoXjCvZh2gx8KseqBdFDKbhrr7HCWF8SzNhbTaALhTBoh/I6rf9lA==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.4.5': - resolution: {integrity: sha512-iqLDgpzobG7gpBF0fwEVS/LT8kmN7+S0E2YKFDtqliJfzNLnAiV2Nnyb+ehCDCJgAZBASkYHR2o60VQWikpqIg==} + '@biomejs/cli-linux-arm64-musl@2.4.9': + resolution: {integrity: sha512-8RCww5xnPn2wpK4L/QDGDOW0dq80uVWfppPxHIUg6mOs9B6gRmqPp32h1Ls3T8GnW8Wo5A8u7vpTwz4fExN+sw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [musl] - '@biomejs/cli-linux-arm64@2.4.5': - resolution: {integrity: sha512-U1GAG6FTjhAO04MyH4xn23wRNBkT6H7NentHh+8UxD6ShXKBm5SY4RedKJzkUThANxb9rUKIPc7B8ew9Xo/cWg==} + '@biomejs/cli-linux-arm64@2.4.9': + resolution: {integrity: sha512-4adnkAUi6K4C/emPRgYznMOcLlUqZdXWM6aIui4VP4LraE764g6Q4YguygnAUoxKjKIXIWPteKMgRbN0wsgwcg==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [glibc] - '@biomejs/cli-linux-x64-musl@2.4.5': - resolution: {integrity: sha512-NlKa7GpbQmNhZf9kakQeddqZyT7itN7jjWdakELeXyTU3pg/83fTysRRDPJD0akTfKDl6vZYNT9Zqn4MYZVBOA==} + '@biomejs/cli-linux-x64-musl@2.4.9': + resolution: {integrity: sha512-5TD+WS9v5vzXKzjetF0hgoaNFHMcpQeBUwKKVi3JbG1e9UCrFuUK3Gt185fyTzvRdwYkJJEMqglRPjmesmVv4A==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [musl] - '@biomejs/cli-linux-x64@2.4.5': - resolution: {integrity: sha512-NdODlSugMzTlENPTa4z0xB82dTUlCpsrOxc43///aNkTLblIYH4XpYflBbf5ySlQuP8AA4AZd1qXhV07IdrHdQ==} + '@biomejs/cli-linux-x64@2.4.9': + resolution: {integrity: sha512-L10na7POF0Ks/cgLFNF1ZvIe+X4onLkTi5oP9hY+Rh60Q+7fWzKDDCeGyiHUFf1nGIa9dQOOUPGe2MyYg8nMSQ==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [glibc] - '@biomejs/cli-win32-arm64@2.4.5': - resolution: {integrity: sha512-EBfrTqRIWOFSd7CQb/0ttjHMR88zm3hGravnDwUA9wHAaCAYsULKDebWcN5RmrEo1KBtl/gDVJMrFjNR0pdGUw==} + '@biomejs/cli-win32-arm64@2.4.9': + resolution: {integrity: sha512-aDZr0RBC3sMGJOU10BvG7eZIlWLK/i51HRIfScE2lVhfts2dQTreowLiJJd+UYg/tHKxS470IbzpuKmd0MiD6g==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.4.5': - resolution: {integrity: sha512-Pmhv9zT95YzECfjEHNl3mN9Vhusw9VA5KHY0ZvlGsxsjwS5cb7vpRnHzJIv0vG7jB0JI7xEaMH9ddfZm/RozBw==} + '@biomejs/cli-win32-x64@2.4.9': + resolution: {integrity: sha512-NS4g/2G9SoQ4ktKtz31pvyc/rmgzlcIDCGU/zWbmHJAqx6gcRj2gj5Q/guXhoWTzCUaQZDIqiCQXHS7BcGYc0w==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] - '@commitlint/cli@20.4.3': - resolution: {integrity: sha512-Z37EMoDT7+Upg500vlr/vZrgRsb6Xc5JAA3Tv7BYbobnN/ZpqUeZnSLggBg2+1O+NptRDtyujr2DD1CPV2qwhA==} + '@capsizecss/unpack@4.0.0': + resolution: {integrity: sha512-VERIM64vtTP1C4mxQ5thVT9fK0apjPFobqybMtA1UdUujWka24ERHbRHFGmpbbhp73MhV+KSsHQH9C6uOTdEQA==} + engines: {node: '>=18'} + + '@clack/core@1.1.0': + resolution: {integrity: sha512-SVcm4Dqm2ukn64/8Gub2wnlA5nS2iWJyCkdNHcvNHPIeBTGojpdJ+9cZKwLfmqy7irD4N5qLteSilJlE0WLAtA==} + + '@clack/prompts@1.1.0': + resolution: {integrity: sha512-pkqbPGtohJAvm4Dphs2M8xE29ggupihHdy1x84HNojZuMtFsHiUlRvqD24tM2+XmI+61LlfNceM3Wr7U5QES5g==} + + '@commitlint/cli@20.5.0': + resolution: {integrity: sha512-yNkyN/tuKTJS3wdVfsZ2tXDM4G4Gi7z+jW54Cki8N8tZqwKBltbIvUUrSbT4hz1bhW/h0CdR+5sCSpXD+wMKaQ==} engines: {node: '>=v18'} hasBin: true - '@commitlint/config-conventional@20.4.3': - resolution: {integrity: sha512-9RtLySbYQAs8yEqWEqhSZo9nYhbm57jx7qHXtgRmv/nmeQIjjMcwf6Dl+y5UZcGWgWx435TAYBURONaJIuCjWg==} + '@commitlint/config-conventional@20.5.0': + resolution: {integrity: sha512-t3Ni88rFw1XMa4nZHgOKJ8fIAT9M2j5TnKyTqJzsxea7FUetlNdYFus9dz+MhIRZmc16P0PPyEfh6X2d/qw8SA==} engines: {node: '>=v18'} - '@commitlint/config-validator@20.4.3': - resolution: {integrity: sha512-jCZpZFkcSL3ZEdL5zgUzFRdytv3xPo8iukTe9VA+QGus/BGhpp1xXSVu2B006GLLb2gYUAEGEqv64kTlpZNgmA==} + '@commitlint/config-validator@20.5.0': + resolution: {integrity: sha512-T/Uh6iJUzyx7j35GmHWdIiGRQB+ouZDk0pwAaYq4SXgB54KZhFdJ0vYmxiW6AMYICTIWuyMxDBl1jK74oFp/Gw==} engines: {node: '>=v18'} - '@commitlint/ensure@20.4.3': - resolution: {integrity: sha512-WcXGKBNn0wBKpX8VlXgxqedyrLxedIlLBCMvdamLnJFEbUGJ9JZmBVx4vhLV3ZyA8uONGOb+CzW0Y9HDbQ+ONQ==} + '@commitlint/ensure@20.5.0': + resolution: {integrity: sha512-IpHqAUesBeW1EDDdjzJeaOxU9tnogLAyXLRBn03SHlj1SGENn2JGZqSWGkFvBJkJzfXAuCNtsoYzax+ZPS+puw==} engines: {node: '>=v18'} '@commitlint/execute-rule@20.0.0': resolution: {integrity: sha512-xyCoOShoPuPL44gVa+5EdZsBVao/pNzpQhkzq3RdtlFdKZtjWcLlUFQHSWBuhk5utKYykeJPSz2i8ABHQA+ZZw==} engines: {node: '>=v18'} - '@commitlint/format@20.4.3': - resolution: {integrity: sha512-UDJVErjLbNghop6j111rsHJYGw6MjCKAi95K0GT2yf4eeiDHy3JDRLWYWEjIaFgO+r+dQSkuqgJ1CdMTtrvHsA==} + '@commitlint/format@20.5.0': + resolution: {integrity: sha512-TI9EwFU/qZWSK7a5qyXMpKPPv3qta7FO4tKW+Wt2al7sgMbLWTsAcDpX1cU8k16TRdsiiet9aOw0zpvRXNJu7Q==} engines: {node: '>=v18'} - '@commitlint/is-ignored@20.4.3': - resolution: {integrity: sha512-W5VQKZ7fdJ1X3Tko+h87YZaqRMGN1KvQKXyCM8xFdxzMIf1KCZgN4uLz3osLB1zsFcVS4ZswHY64LI26/9ACag==} + '@commitlint/is-ignored@20.5.0': + resolution: {integrity: sha512-JWLarAsurHJhPozbuAH6GbP4p/hdOCoqS9zJMfqwswne+/GPs5V0+rrsfOkP68Y8PSLphwtFXV0EzJ+GTXTTGg==} engines: {node: '>=v18'} - '@commitlint/lint@20.4.3': - resolution: {integrity: sha512-CYOXL23e+nRKij81+d0+dymtIi7Owl9QzvblJYbEfInON/4MaETNSLFDI74LDu+YJ0ML5HZyw9Vhp9QpckwQ0A==} + '@commitlint/lint@20.5.0': + resolution: {integrity: sha512-jiM3hNUdu04jFBf1VgPdjtIPvbuVfDTBAc6L98AWcoLjF5sYqkulBHBzlVWll4rMF1T5zeQFB6r//a+s+BBKlA==} engines: {node: '>=v18'} - '@commitlint/load@20.4.3': - resolution: {integrity: sha512-3cdJOUVP+VcgHa7bhJoWS+Z8mBNXB5aLWMBu7Q7uX8PSeWDzdbrBlR33J1MGGf7r1PZDp+mPPiFktk031PgdRw==} + '@commitlint/load@20.5.0': + resolution: {integrity: sha512-sLhhYTL/KxeOTZjjabKDhwidGZan84XKK1+XFkwDYL/4883kIajcz/dZFAhBJmZPtL8+nBx6bnkzA95YxPeDPw==} engines: {node: '>=v18'} '@commitlint/message@20.4.3': resolution: {integrity: sha512-6akwCYrzcrFcTYz9GyUaWlhisY4lmQ3KvrnabmhoeAV8nRH4dXJAh4+EUQ3uArtxxKQkvxJS78hNX2EU3USgxQ==} engines: {node: '>=v18'} - '@commitlint/parse@20.4.3': - resolution: {integrity: sha512-hzC3JCo3zs3VkQ833KnGVuWjWIzR72BWZWjQM7tY/7dfKreKAm7fEsy71tIFCRtxf2RtMP2d3RLF1U9yhFSccA==} + '@commitlint/parse@20.5.0': + resolution: {integrity: sha512-SeKWHBMk7YOTnnEWUhx+d1a9vHsjjuo6Uo1xRfPNfeY4bdYFasCH1dDpAv13Lyn+dDPOels+jP6D2GRZqzc5fA==} engines: {node: '>=v18'} - '@commitlint/read@20.4.3': - resolution: {integrity: sha512-j42OWv3L31WfnP8WquVjHZRt03w50Y/gEE8FAyih7GQTrIv2+pZ6VZ6pWLD/ml/3PO+RV2SPtRtTp/MvlTb8rQ==} + '@commitlint/read@20.5.0': + resolution: {integrity: sha512-JDEIJ2+GnWpK8QqwfmW7O42h0aycJEWNqcdkJnyzLD11nf9dW2dWLTVEa8Wtlo4IZFGLPATjR5neA5QlOvIH1w==} engines: {node: '>=v18'} - '@commitlint/resolve-extends@20.4.3': - resolution: {integrity: sha512-QucxcOy+00FhS9s4Uy0OyS5HeUV+hbC6OLqkTSIm6fwMdKva+OEavaCDuLtgd9akZZlsUo//XzSmPP3sLKBPog==} + '@commitlint/resolve-extends@20.5.0': + resolution: {integrity: sha512-3SHPWUW2v0tyspCTcfSsYml0gses92l6TlogwzvM2cbxDgmhSRc+fldDjvGkCXJrjSM87BBaWYTPWwwyASZRrg==} engines: {node: '>=v18'} - '@commitlint/rules@20.4.3': - resolution: {integrity: sha512-Yuosd7Grn5qiT7FovngXLyRXTMUbj9PYiSkvUgWK1B5a7+ZvrbWDS7epeUapYNYatCy/KTpPFPbgLUdE+MUrBg==} + '@commitlint/rules@20.5.0': + resolution: {integrity: sha512-5NdQXQEdnDPT5pK8O39ZA7HohzPRHEsDGU23cyVCNPQy4WegAbAwrQk3nIu7p2sl3dutPk8RZd91yKTrMTnRkQ==} engines: {node: '>=v18'} '@commitlint/to-lines@20.0.0': @@ -441,170 +556,341 @@ packages: resolution: {integrity: sha512-qD9xfP6dFg5jQ3NMrOhG0/w5y3bBUsVGyJvXxdWEwBm8hyx4WOk3kKXw28T5czBYvyeCVJgJJ6aoJZUWDpaacQ==} engines: {node: '>=v18'} - '@commitlint/types@20.4.3': - resolution: {integrity: sha512-51OWa1Gi6ODOasPmfJPq6js4pZoomima4XLZZCrkldaH2V5Nb3bVhNXPeT6XV0gubbainSpTw4zi68NqAeCNCg==} + '@commitlint/types@20.5.0': + resolution: {integrity: sha512-ZJoS8oSq2CAZEpc/YI9SulLrdiIyXeHb/OGqGrkUP6Q7YV+0ouNAa7GjqRdXeQPncHQIDz/jbCTlHScvYvO/gA==} engines: {node: '>=v18'} + '@conventional-changelog/git-client@2.6.0': + resolution: {integrity: sha512-T+uPDciKf0/ioNNDpMGc8FDsehJClZP0yR3Q5MN6wE/Y/1QZ7F+80OgznnTCOlMEG4AV0LvH2UJi3C/nBnaBUg==} + engines: {node: '>=18'} + peerDependencies: + conventional-commits-filter: ^5.0.0 + conventional-commits-parser: ^6.3.0 + peerDependenciesMeta: + conventional-commits-filter: + optional: true + conventional-commits-parser: + optional: true + '@cspotcode/source-map-support@0.8.1': resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} + '@emnapi/runtime@1.9.1': + resolution: {integrity: sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==} + '@esbuild/aix-ppc64@0.27.3': resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] + '@esbuild/aix-ppc64@0.27.4': + resolution: {integrity: sha512-cQPwL2mp2nSmHHJlCyoXgHGhbEPMrEEU5xhkcy3Hs/O7nGZqEpZ2sUtLaL9MORLtDfRvVl2/3PAuEkYZH0Ty8Q==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + '@esbuild/android-arm64@0.27.3': resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==} engines: {node: '>=18'} cpu: [arm64] os: [android] + '@esbuild/android-arm64@0.27.4': + resolution: {integrity: sha512-gdLscB7v75wRfu7QSm/zg6Rx29VLdy9eTr2t44sfTW7CxwAtQghZ4ZnqHk3/ogz7xao0QAgrkradbBzcqFPasw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + '@esbuild/android-arm@0.27.3': resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==} engines: {node: '>=18'} cpu: [arm] os: [android] + '@esbuild/android-arm@0.27.4': + resolution: {integrity: sha512-X9bUgvxiC8CHAGKYufLIHGXPJWnr0OCdR0anD2e21vdvgCI8lIfqFbnoeOz7lBjdrAGUhqLZLcQo6MLhTO2DKQ==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + '@esbuild/android-x64@0.27.3': resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==} engines: {node: '>=18'} cpu: [x64] os: [android] + '@esbuild/android-x64@0.27.4': + resolution: {integrity: sha512-PzPFnBNVF292sfpfhiyiXCGSn9HZg5BcAz+ivBuSsl6Rk4ga1oEXAamhOXRFyMcjwr2DVtm40G65N3GLeH1Lvw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + '@esbuild/darwin-arm64@0.27.3': resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] + '@esbuild/darwin-arm64@0.27.4': + resolution: {integrity: sha512-b7xaGIwdJlht8ZFCvMkpDN6uiSmnxxK56N2GDTMYPr2/gzvfdQN8rTfBsvVKmIVY/X7EM+/hJKEIbbHs9oA4tQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + '@esbuild/darwin-x64@0.27.3': resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==} engines: {node: '>=18'} cpu: [x64] os: [darwin] + '@esbuild/darwin-x64@0.27.4': + resolution: {integrity: sha512-sR+OiKLwd15nmCdqpXMnuJ9W2kpy0KigzqScqHI3Hqwr7IXxBp3Yva+yJwoqh7rE8V77tdoheRYataNKL4QrPw==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + '@esbuild/freebsd-arm64@0.27.3': resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] + '@esbuild/freebsd-arm64@0.27.4': + resolution: {integrity: sha512-jnfpKe+p79tCnm4GVav68A7tUFeKQwQyLgESwEAUzyxk/TJr4QdGog9sqWNcUbr/bZt/O/HXouspuQDd9JxFSw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + '@esbuild/freebsd-x64@0.27.3': resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] + '@esbuild/freebsd-x64@0.27.4': + resolution: {integrity: sha512-2kb4ceA/CpfUrIcTUl1wrP/9ad9Atrp5J94Lq69w7UwOMolPIGrfLSvAKJp0RTvkPPyn6CIWrNy13kyLikZRZQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + '@esbuild/linux-arm64@0.27.3': resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==} engines: {node: '>=18'} cpu: [arm64] os: [linux] + '@esbuild/linux-arm64@0.27.4': + resolution: {integrity: sha512-7nQOttdzVGth1iz57kxg9uCz57dxQLHWxopL6mYuYthohPKEK0vU0C3O21CcBK6KDlkYVcnDXY099HcCDXd9dA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + '@esbuild/linux-arm@0.27.3': resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==} engines: {node: '>=18'} cpu: [arm] os: [linux] + '@esbuild/linux-arm@0.27.4': + resolution: {integrity: sha512-aBYgcIxX/wd5n2ys0yESGeYMGF+pv6g0DhZr3G1ZG4jMfruU9Tl1i2Z+Wnj9/KjGz1lTLCcorqE2viePZqj4Eg==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + '@esbuild/linux-ia32@0.27.3': resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==} engines: {node: '>=18'} cpu: [ia32] os: [linux] + '@esbuild/linux-ia32@0.27.4': + resolution: {integrity: sha512-oPtixtAIzgvzYcKBQM/qZ3R+9TEUd1aNJQu0HhGyqtx6oS7qTpvjheIWBbes4+qu1bNlo2V4cbkISr8q6gRBFA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + '@esbuild/linux-loong64@0.27.3': resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==} engines: {node: '>=18'} cpu: [loong64] os: [linux] + '@esbuild/linux-loong64@0.27.4': + resolution: {integrity: sha512-8mL/vh8qeCoRcFH2nM8wm5uJP+ZcVYGGayMavi8GmRJjuI3g1v6Z7Ni0JJKAJW+m0EtUuARb6Lmp4hMjzCBWzA==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + '@esbuild/linux-mips64el@0.27.3': resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] + '@esbuild/linux-mips64el@0.27.4': + resolution: {integrity: sha512-1RdrWFFiiLIW7LQq9Q2NES+HiD4NyT8Itj9AUeCl0IVCA459WnPhREKgwrpaIfTOe+/2rdntisegiPWn/r/aAw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + '@esbuild/linux-ppc64@0.27.3': resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] + '@esbuild/linux-ppc64@0.27.4': + resolution: {integrity: sha512-tLCwNG47l3sd9lpfyx9LAGEGItCUeRCWeAx6x2Jmbav65nAwoPXfewtAdtbtit/pJFLUWOhpv0FpS6GQAmPrHA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + '@esbuild/linux-riscv64@0.27.3': resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] + '@esbuild/linux-riscv64@0.27.4': + resolution: {integrity: sha512-BnASypppbUWyqjd1KIpU4AUBiIhVr6YlHx/cnPgqEkNoVOhHg+YiSVxM1RLfiy4t9cAulbRGTNCKOcqHrEQLIw==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + '@esbuild/linux-s390x@0.27.3': resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==} engines: {node: '>=18'} cpu: [s390x] os: [linux] + '@esbuild/linux-s390x@0.27.4': + resolution: {integrity: sha512-+eUqgb/Z7vxVLezG8bVB9SfBie89gMueS+I0xYh2tJdw3vqA/0ImZJ2ROeWwVJN59ihBeZ7Tu92dF/5dy5FttA==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + '@esbuild/linux-x64@0.27.3': resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==} engines: {node: '>=18'} cpu: [x64] os: [linux] + '@esbuild/linux-x64@0.27.4': + resolution: {integrity: sha512-S5qOXrKV8BQEzJPVxAwnryi2+Iq5pB40gTEIT69BQONqR7JH1EPIcQ/Uiv9mCnn05jff9umq/5nqzxlqTOg9NA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + '@esbuild/netbsd-arm64@0.27.3': resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] + '@esbuild/netbsd-arm64@0.27.4': + resolution: {integrity: sha512-xHT8X4sb0GS8qTqiwzHqpY00C95DPAq7nAwX35Ie/s+LO9830hrMd3oX0ZMKLvy7vsonee73x0lmcdOVXFzd6Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + '@esbuild/netbsd-x64@0.27.3': resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] + '@esbuild/netbsd-x64@0.27.4': + resolution: {integrity: sha512-RugOvOdXfdyi5Tyv40kgQnI0byv66BFgAqjdgtAKqHoZTbTF2QqfQrFwa7cHEORJf6X2ht+l9ABLMP0dnKYsgg==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + '@esbuild/openbsd-arm64@0.27.3': resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] + '@esbuild/openbsd-arm64@0.27.4': + resolution: {integrity: sha512-2MyL3IAaTX+1/qP0O1SwskwcwCoOI4kV2IBX1xYnDDqthmq5ArrW94qSIKCAuRraMgPOmG0RDTA74mzYNQA9ow==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + '@esbuild/openbsd-x64@0.27.3': resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] + '@esbuild/openbsd-x64@0.27.4': + resolution: {integrity: sha512-u8fg/jQ5aQDfsnIV6+KwLOf1CmJnfu1ShpwqdwC0uA7ZPwFws55Ngc12vBdeUdnuWoQYx/SOQLGDcdlfXhYmXQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + '@esbuild/openharmony-arm64@0.27.3': resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] + '@esbuild/openharmony-arm64@0.27.4': + resolution: {integrity: sha512-JkTZrl6VbyO8lDQO3yv26nNr2RM2yZzNrNHEsj9bm6dOwwu9OYN28CjzZkH57bh4w0I2F7IodpQvUAEd1mbWXg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + '@esbuild/sunos-x64@0.27.3': resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==} engines: {node: '>=18'} cpu: [x64] os: [sunos] + '@esbuild/sunos-x64@0.27.4': + resolution: {integrity: sha512-/gOzgaewZJfeJTlsWhvUEmUG4tWEY2Spp5M20INYRg2ZKl9QPO3QEEgPeRtLjEWSW8FilRNacPOg8R1uaYkA6g==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + '@esbuild/win32-arm64@0.27.3': resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==} engines: {node: '>=18'} cpu: [arm64] os: [win32] + '@esbuild/win32-arm64@0.27.4': + resolution: {integrity: sha512-Z9SExBg2y32smoDQdf1HRwHRt6vAHLXcxD2uGgO/v2jK7Y718Ix4ndsbNMU/+1Qiem9OiOdaqitioZwxivhXYg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + '@esbuild/win32-ia32@0.27.3': resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==} engines: {node: '>=18'} cpu: [ia32] os: [win32] + '@esbuild/win32-ia32@0.27.4': + resolution: {integrity: sha512-DAyGLS0Jz5G5iixEbMHi5KdiApqHBWMGzTtMiJ72ZOLhbu/bzxgAe8Ue8CTS3n3HbIUHQz/L51yMdGMeoxXNJw==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + '@esbuild/win32-x64@0.27.3': resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==} engines: {node: '>=18'} cpu: [x64] os: [win32] + '@esbuild/win32-x64@0.27.4': + resolution: {integrity: sha512-+knoa0BDoeXgkNvvV1vvbZX4+hizelrkwmGJBdT17t8FNPwG2lKemmuMZlmaNQ3ws3DKKCxpb4zRZEIp3UxFCg==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@grpc/grpc-js@1.14.3': resolution: {integrity: sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==} engines: {node: '>=12.10.0'} @@ -619,25 +905,178 @@ packages: engines: {node: '>=6'} hasBin: true - '@inversifyjs/common@1.5.2': - resolution: {integrity: sha512-WlzR9xGadABS9gtgZQ+luoZ8V6qm4Ii6RQfcfC9Ho2SOlE6ZuemFo7PKJvKI0ikm8cmKbU8hw5UK6E4qovH21w==} + '@img/colour@1.1.0': + resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} + engines: {node: '>=18'} + + '@img/sharp-darwin-arm64@0.34.5': + resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [darwin] + + '@img/sharp-darwin-x64@0.34.5': + resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-darwin-arm64@1.2.4': + resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} + cpu: [arm64] + os: [darwin] + + '@img/sharp-libvips-darwin-x64@1.2.4': + resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-linux-arm64@1.2.4': + resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-arm@1.2.4': + resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-ppc64@1.2.4': + resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-riscv64@1.2.4': + resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-s390x@1.2.4': + resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-x64@1.2.4': + resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@img/sharp-linux-arm64@0.34.5': + resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-arm@0.34.5': + resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-ppc64@0.34.5': + resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-riscv64@0.34.5': + resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-s390x@0.34.5': + resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-x64@0.34.5': + resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@img/sharp-linuxmusl-arm64@0.34.5': + resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@img/sharp-linuxmusl-x64@0.34.5': + resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@img/sharp-wasm32@0.34.5': + resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [wasm32] + + '@img/sharp-win32-arm64@0.34.5': + resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [win32] + + '@img/sharp-win32-ia32@0.34.5': + resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ia32] + os: [win32] + + '@img/sharp-win32-x64@0.34.5': + resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [win32] + + '@inversifyjs/common@2.0.1': + resolution: {integrity: sha512-pJAR4IAcT2jkYfZ9bD9XhtUDBLJRr8QOiSjb+2XyaHru6DLvu0VD2Id2iP7+tVRKkEe3XFUwDUEdKxcYlF699Q==} - '@inversifyjs/container@1.15.0': - resolution: {integrity: sha512-U2xYsPrJTz5za2TExi5lg8qOWf8TEVBpN+pQM7B8BVA2rajtbRE9A66SLRHk8c1eGXmg+0K4Hdki6tWAsSQBUA==} + '@inversifyjs/container@2.0.1': + resolution: {integrity: sha512-xoZU4Mha5Vo+U04xWUnD01QbpQMNoIh0nUEFlb965E3rIneUbsYYiXeLUoKl57BjXjErsOL0q8o3mXi1si8rBA==} peerDependencies: reflect-metadata: ~0.2.2 - '@inversifyjs/core@9.2.0': - resolution: {integrity: sha512-Nm7BR6KmpgshIHpVQWuEDehqRVb6GBm8LFEuhc2s4kSZWrArZ15RmXQzROLk4m+hkj4kMXgvMm5Qbopot/D6Sg==} + '@inversifyjs/core@10.0.1': + resolution: {integrity: sha512-z+DHdTbHFETivPLPRgowz9wWhHA4FNYqQnKhPyDCz7zX9H/PIDcK4gZIF1YNaf5Uc2bd1nehSlVgfaTzVbb0AA==} - '@inversifyjs/plugin@0.2.0': - resolution: {integrity: sha512-R/JAdkTSD819pV1zi0HP54mWHyX+H2m8SxldXRgPQarS3ySV4KPyRdosWcfB8Se0JJZWZLHYiUNiS6JvMWSPjw==} + '@inversifyjs/plugin@0.3.1': + resolution: {integrity: sha512-ByklTw731fydBCTMwMpkmwm+lv0U+JWm9NEqRsz3n5KzAC5Om2XtLjqzEC2w+8Ote3gVC3Qxsx6YmG9XLIZpvg==} - '@inversifyjs/prototype-utils@0.1.3': - resolution: {integrity: sha512-EzRamZzNgE9Sn3QtZ8NncNa2lpPMZfspqbK6BWFguWnOpK8ymp2TUuH46ruFHZhrHKnknPd7fG22ZV7iF517TQ==} + '@inversifyjs/prototype-utils@0.2.1': + resolution: {integrity: sha512-53cVE3cw+RxnSkGlg+jOFNSox2owJF9Fv3HgFKe4f+4aPullscltIiio88QRkx2Sc5yo3VlqPsXQFGw2CVJZnw==} - '@inversifyjs/reflect-metadata-utils@1.4.1': - resolution: {integrity: sha512-Cp77C4d2wLaHXiUB7iH6Cxb7i1lD/YDuTIHLTDzKINqGSz0DCSoL/Dg2wVkW/6Qx03r/yQMLJ+32Agl32N2X8g==} + '@inversifyjs/reflect-metadata-utils@1.5.0': + resolution: {integrity: sha512-NpJVbRbuQ6Ao2vO+aw96un3oHDFCwXI0+pplsFt0Jh0gyR8DWk4m7ml/GBNMjdbeKVW/QgJ2S6NGXjk042uwqg==} peerDependencies: reflect-metadata: ~0.2.2 @@ -676,6 +1115,9 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} + '@oslojs/encoding@1.1.0': + resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==} + '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -710,169 +1152,226 @@ packages: '@protobufjs/utf8@1.1.0': resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} - '@rollup/rollup-android-arm-eabi@4.59.0': - resolution: {integrity: sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==} + '@rollup/pluginutils@5.3.0': + resolution: {integrity: sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.60.0': + resolution: {integrity: sha512-WOhNW9K8bR3kf4zLxbfg6Pxu2ybOUbB2AjMDHSQx86LIF4rH4Ft7vmMwNt0loO0eonglSNy4cpD3MKXXKQu0/A==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.59.0': - resolution: {integrity: sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==} + '@rollup/rollup-android-arm64@4.60.0': + resolution: {integrity: sha512-u6JHLll5QKRvjciE78bQXDmqRqNs5M/3GVqZeMwvmjaNODJih/WIrJlFVEihvV0MiYFmd+ZyPr9wxOVbPAG2Iw==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.59.0': - resolution: {integrity: sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==} + '@rollup/rollup-darwin-arm64@4.60.0': + resolution: {integrity: sha512-qEF7CsKKzSRc20Ciu2Zw1wRrBz4g56F7r/vRwY430UPp/nt1x21Q/fpJ9N5l47WWvJlkNCPJz3QRVw008fi7yA==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.59.0': - resolution: {integrity: sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==} + '@rollup/rollup-darwin-x64@4.60.0': + resolution: {integrity: sha512-WADYozJ4QCnXCH4wPB+3FuGmDPoFseVCUrANmA5LWwGmC6FL14BWC7pcq+FstOZv3baGX65tZ378uT6WG8ynTw==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.59.0': - resolution: {integrity: sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==} + '@rollup/rollup-freebsd-arm64@4.60.0': + resolution: {integrity: sha512-6b8wGHJlDrGeSE3aH5mGNHBjA0TTkxdoNHik5EkvPHCt351XnigA4pS7Wsj/Eo9Y8RBU6f35cjN9SYmCFBtzxw==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.59.0': - resolution: {integrity: sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==} + '@rollup/rollup-freebsd-x64@4.60.0': + resolution: {integrity: sha512-h25Ga0t4jaylMB8M/JKAyrvvfxGRjnPQIR8lnCayyzEjEOx2EJIlIiMbhpWxDRKGKF8jbNH01NnN663dH638mA==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.59.0': - resolution: {integrity: sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==} + '@rollup/rollup-linux-arm-gnueabihf@4.60.0': + resolution: {integrity: sha512-RzeBwv0B3qtVBWtcuABtSuCzToo2IEAIQrcyB/b2zMvBWVbjo8bZDjACUpnaafaxhTw2W+imQbP2BD1usasK4g==} cpu: [arm] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-arm-musleabihf@4.59.0': - resolution: {integrity: sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==} + '@rollup/rollup-linux-arm-musleabihf@4.60.0': + resolution: {integrity: sha512-Sf7zusNI2CIU1HLzuu9Tc5YGAHEZs5Lu7N1ssJG4Tkw6e0MEsN7NdjUDDfGNHy2IU+ENyWT+L2obgWiguWibWQ==} cpu: [arm] os: [linux] + libc: [musl] - '@rollup/rollup-linux-arm64-gnu@4.59.0': - resolution: {integrity: sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==} + '@rollup/rollup-linux-arm64-gnu@4.60.0': + resolution: {integrity: sha512-DX2x7CMcrJzsE91q7/O02IJQ5/aLkVtYFryqCjduJhUfGKG6yJV8hxaw8pZa93lLEpPTP/ohdN4wFz7yp/ry9A==} cpu: [arm64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-arm64-musl@4.59.0': - resolution: {integrity: sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==} + '@rollup/rollup-linux-arm64-musl@4.60.0': + resolution: {integrity: sha512-09EL+yFVbJZlhcQfShpswwRZ0Rg+z/CsSELFCnPt3iK+iqwGsI4zht3secj5vLEs957QvFFXnzAT0FFPIxSrkQ==} cpu: [arm64] os: [linux] + libc: [musl] - '@rollup/rollup-linux-loong64-gnu@4.59.0': - resolution: {integrity: sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==} + '@rollup/rollup-linux-loong64-gnu@4.60.0': + resolution: {integrity: sha512-i9IcCMPr3EXm8EQg5jnja0Zyc1iFxJjZWlb4wr7U2Wx/GrddOuEafxRdMPRYVaXjgbhvqalp6np07hN1w9kAKw==} cpu: [loong64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-loong64-musl@4.59.0': - resolution: {integrity: sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==} + '@rollup/rollup-linux-loong64-musl@4.60.0': + resolution: {integrity: sha512-DGzdJK9kyJ+B78MCkWeGnpXJ91tK/iKA6HwHxF4TAlPIY7GXEvMe8hBFRgdrR9Ly4qebR/7gfUs9y2IoaVEyog==} cpu: [loong64] os: [linux] + libc: [musl] - '@rollup/rollup-linux-ppc64-gnu@4.59.0': - resolution: {integrity: sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==} + '@rollup/rollup-linux-ppc64-gnu@4.60.0': + resolution: {integrity: sha512-RwpnLsqC8qbS8z1H1AxBA1H6qknR4YpPR9w2XX0vo2Sz10miu57PkNcnHVaZkbqyw/kUWfKMI73jhmfi9BRMUQ==} cpu: [ppc64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-ppc64-musl@4.59.0': - resolution: {integrity: sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==} + '@rollup/rollup-linux-ppc64-musl@4.60.0': + resolution: {integrity: sha512-Z8pPf54Ly3aqtdWC3G4rFigZgNvd+qJlOE52fmko3KST9SoGfAdSRCwyoyG05q1HrrAblLbk1/PSIV+80/pxLg==} cpu: [ppc64] os: [linux] + libc: [musl] - '@rollup/rollup-linux-riscv64-gnu@4.59.0': - resolution: {integrity: sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==} + '@rollup/rollup-linux-riscv64-gnu@4.60.0': + resolution: {integrity: sha512-3a3qQustp3COCGvnP4SvrMHnPQ9d1vzCakQVRTliaz8cIp/wULGjiGpbcqrkv0WrHTEp8bQD/B3HBjzujVWLOA==} cpu: [riscv64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-riscv64-musl@4.59.0': - resolution: {integrity: sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==} + '@rollup/rollup-linux-riscv64-musl@4.60.0': + resolution: {integrity: sha512-pjZDsVH/1VsghMJ2/kAaxt6dL0psT6ZexQVrijczOf+PeP2BUqTHYejk3l6TlPRydggINOeNRhvpLa0AYpCWSQ==} cpu: [riscv64] os: [linux] + libc: [musl] - '@rollup/rollup-linux-s390x-gnu@4.59.0': - resolution: {integrity: sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==} + '@rollup/rollup-linux-s390x-gnu@4.60.0': + resolution: {integrity: sha512-3ObQs0BhvPgiUVZrN7gqCSvmFuMWvWvsjG5ayJ3Lraqv+2KhOsp+pUbigqbeWqueGIsnn+09HBw27rJ+gYK4VQ==} cpu: [s390x] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-x64-gnu@4.59.0': - resolution: {integrity: sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==} + '@rollup/rollup-linux-x64-gnu@4.60.0': + resolution: {integrity: sha512-EtylprDtQPdS5rXvAayrNDYoJhIz1/vzN2fEubo3yLE7tfAw+948dO0g4M0vkTVFhKojnF+n6C8bDNe+gDRdTg==} cpu: [x64] os: [linux] + libc: [glibc] - '@rollup/rollup-linux-x64-musl@4.59.0': - resolution: {integrity: sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==} + '@rollup/rollup-linux-x64-musl@4.60.0': + resolution: {integrity: sha512-k09oiRCi/bHU9UVFqD17r3eJR9bn03TyKraCrlz5ULFJGdJGi7VOmm9jl44vOJvRJ6P7WuBi/s2A97LxxHGIdw==} cpu: [x64] os: [linux] + libc: [musl] - '@rollup/rollup-openbsd-x64@4.59.0': - resolution: {integrity: sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==} + '@rollup/rollup-openbsd-x64@4.60.0': + resolution: {integrity: sha512-1o/0/pIhozoSaDJoDcec+IVLbnRtQmHwPV730+AOD29lHEEo4F5BEUB24H0OBdhbBBDwIOSuf7vgg0Ywxdfiiw==} cpu: [x64] os: [openbsd] - '@rollup/rollup-openharmony-arm64@4.59.0': - resolution: {integrity: sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==} + '@rollup/rollup-openharmony-arm64@4.60.0': + resolution: {integrity: sha512-pESDkos/PDzYwtyzB5p/UoNU/8fJo68vcXM9ZW2V0kjYayj1KaaUfi1NmTUTUpMn4UhU4gTuK8gIaFO4UGuMbA==} cpu: [arm64] os: [openharmony] - '@rollup/rollup-win32-arm64-msvc@4.59.0': - resolution: {integrity: sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==} + '@rollup/rollup-win32-arm64-msvc@4.60.0': + resolution: {integrity: sha512-hj1wFStD7B1YBeYmvY+lWXZ7ey73YGPcViMShYikqKT1GtstIKQAtfUI6yrzPjAy/O7pO0VLXGmUVWXQMaYgTQ==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.59.0': - resolution: {integrity: sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==} + '@rollup/rollup-win32-ia32-msvc@4.60.0': + resolution: {integrity: sha512-SyaIPFoxmUPlNDq5EHkTbiKzmSEmq/gOYFI/3HHJ8iS/v1mbugVa7dXUzcJGQfoytp9DJFLhHH4U3/eTy2Bq4w==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-gnu@4.59.0': - resolution: {integrity: sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==} + '@rollup/rollup-win32-x64-gnu@4.60.0': + resolution: {integrity: sha512-RdcryEfzZr+lAr5kRm2ucN9aVlCCa2QNq4hXelZxb8GG0NJSazq44Z3PCCc8wISRuCVnGs0lQJVX5Vp6fKA+IA==} cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.59.0': - resolution: {integrity: sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==} + '@rollup/rollup-win32-x64-msvc@4.60.0': + resolution: {integrity: sha512-PrsWNQ8BuE00O3Xsx3ALh2Df8fAj9+cvvX9AIA6o4KpATR98c9mud4XtDWVvsEuyia5U4tVSTKygawyJkjm60w==} cpu: [x64] os: [win32] - '@secretlint/config-creator@11.3.1': - resolution: {integrity: sha512-CwMipj6jAVbyMF6OIzABlFcmJNcVB3RNUq3df5LGf9442T0p2f07sTNbGR8a3PfLww73/0rgPTw6lZjmHFpQLA==} + '@secretlint/config-creator@11.4.0': + resolution: {integrity: sha512-6/WibDQky7tyHNmE5fOe1rLYtg9h/oxkJqfTWZyzes8XYUgxF9xGPA/1TvlI2p6XJS2R1i9M00X+Y2gK3zGAQQ==} engines: {node: '>=20.0.0'} - '@secretlint/config-loader@11.3.1': - resolution: {integrity: sha512-WPB3tLebNjd6nkRwWf9l6DHc7gr74J9wAneLxsg1bYZrcAsw/gU0D3SeLtqgHwQUyyvt3vLRKKrTHe1mw7i4YQ==} + '@secretlint/config-loader@11.4.0': + resolution: {integrity: sha512-DEPtgz9VKDIuf0KsbrxxMzkHn1nlVAEpIIOykkqHftODZFm0EOKK+2h1PL/8Uo7vRtT4YRqsgDb0BBYyfTjNug==} engines: {node: '>=20.0.0'} - '@secretlint/core@11.3.1': - resolution: {integrity: sha512-iGPtWlBI0J17Exe92JztsxyvjYroMg89B6Qw8Rf2fhRb2CBlo6BO1V32Y6TDMCXpqwof9NkBXEiOIIeSgCRLKw==} + '@secretlint/core@11.4.0': + resolution: {integrity: sha512-bxpDYzWNcPT0xh+rUYI3AF/Trz5VMA9mUOoRxxKrv5f8zGzNJkr667LqGdQmpjqQ6Ql+Ke8+64J1HbKXDvE/ag==} engines: {node: '>=20.0.0'} - '@secretlint/formatter@11.3.1': - resolution: {integrity: sha512-dHFHXHkTSfWYCQx2Q2+DJPMl6zZemny5mKRApy/zebzI9fKV3E2rgzry1rZxQnSx7vng5l9/kRNVLAnKT3RWrA==} + '@secretlint/formatter@11.4.0': + resolution: {integrity: sha512-4kzbges1+sJmTB7QGXWkuAprtDpFegiokBitaxd8XMHPFKhmFfGd3XVnquiprFZBUgXMSu8BquTJAOPC+z51Ew==} engines: {node: '>=20.0.0'} - '@secretlint/node@11.3.1': - resolution: {integrity: sha512-BMP7XlfPjp85pYf9r2uBd21ZfVmCK4PFaRsfIun6XjkbbCRgksV4yb9HV424oVkL5D4RgImPDZANOdH1TniA8g==} + '@secretlint/node@11.4.0': + resolution: {integrity: sha512-dWfVJs7/tCujsyR5D9xjVJsyrjondfLKs3xKpMfv7nIOn7SADi+xs6e0LjDDtAyCRcVe84GmFVU3I54BqJ43XQ==} engines: {node: '>=20.0.0'} - '@secretlint/profiler@11.3.1': - resolution: {integrity: sha512-V7Qyzs++M9Z2Ox1wCMaYMGmdGpZxQcie0FjnFIS8y68sKK1n7LmJJ+uGNegWobx1KZOYnRxhefOm9gbq1Td+GQ==} + '@secretlint/profiler@11.4.0': + resolution: {integrity: sha512-wemv+sxhNG8/4g+vXBcPNpJO9e43SQJaiM1lvDVWJVdkPCVOB3OEKUdlpUyuLc2i1G4UuUS3zzwyv/JkU5CQVw==} - '@secretlint/resolver@11.3.1': - resolution: {integrity: sha512-+bGKntF0wXyPyhFe4wxPk3mxKLHE0sQVeF4FwOH2uFKUzXZJxF9NwISYWAmCzyzAxZbjBDjcpJAEtB2492ohbg==} + '@secretlint/resolver@11.4.0': + resolution: {integrity: sha512-PeK3F6U+SOvYcwXh2b97RBghLfOO5euGxaA7UKQe2nWcef9VkcLTX6ni+dRYdPJExOxU6WMWCdfY5yVbhd6aJw==} - '@secretlint/secretlint-rule-preset-recommend@11.3.1': - resolution: {integrity: sha512-zRkESw8Mhuh4J65+biFKkpTW8Gjpse+D4BZhznASCtge38ervYcuG3IgHvFLf1AbTM+YQdH5wRVNdU0+btaEBw==} + '@secretlint/secretlint-rule-preset-recommend@11.4.0': + resolution: {integrity: sha512-Jg6MsrDHYDpeEt9adqO6hLqqJLsGT+D/d87wrQCC+D24e7w07V/zpR07K63YogRtPyPKX0tneKnyR884ji7DSA==} engines: {node: '>=20.0.0'} - '@secretlint/source-creator@11.3.1': - resolution: {integrity: sha512-Y0AAUawmoP+94ot3lZmXyHOmw1FJvgcCV9Yvy/9ynjsvwVEojea4in4zA06V8uZtBtTaNXqFZ7v+rt3ytoa07A==} + '@secretlint/source-creator@11.4.0': + resolution: {integrity: sha512-j4I1hBBYFbnBVEcj5EEbi4iXT/uK+gg6MBycBo2t2+HPzQ7pg2MDD5aWGHyd5qelrRcCV5Gw4VzMXz/NMKD2Wg==} engines: {node: '>=20.0.0'} - '@secretlint/types@11.3.1': - resolution: {integrity: sha512-6PU7JLivE6Swavrw1TxiPVbvk1Nafihm+v6hNpsEAt7raLlazoFXFK/O8YeSEK15u+4oofSBqwipy81HAbLnlg==} + '@secretlint/types@11.4.0': + resolution: {integrity: sha512-aqEnJHFtzRJX0QumzPSQW35yi6vwDgexPaAC5WoZFidatSQF1hH6lQIGY0FQrng+vP0zTTA0/45atowRlvrTNA==} engines: {node: '>=20.0.0'} + '@shikijs/core@4.0.2': + resolution: {integrity: sha512-hxT0YF4ExEqB8G/qFdtJvpmHXBYJ2lWW7qTHDarVkIudPFE6iCIrqdgWxGn5s+ppkGXI0aEGlibI0PAyzP3zlw==} + engines: {node: '>=20'} + + '@shikijs/engine-javascript@4.0.2': + resolution: {integrity: sha512-7PW0Nm49DcoUIQEXlJhNNBHyoGMjalRETTCcjMqEaMoJRLljy1Bi/EGV3/qLBgLKQejdspiiYuHGQW6dX94Nag==} + engines: {node: '>=20'} + + '@shikijs/engine-oniguruma@4.0.2': + resolution: {integrity: sha512-UpCB9Y2sUKlS9z8juFSKz7ZtysmeXCgnRF0dlhXBkmQnek7lAToPte8DkxmEYGNTMii72zU/lyXiCB6StuZeJg==} + engines: {node: '>=20'} + + '@shikijs/langs@4.0.2': + resolution: {integrity: sha512-KaXby5dvoeuZzN0rYQiPMjFoUrz4hgwIE+D6Du9owcHcl6/g16/yT5BQxSW5cGt2MZBz6Hl0YuRqf12omRfUUg==} + engines: {node: '>=20'} + + '@shikijs/primitive@4.0.2': + resolution: {integrity: sha512-M6UMPrSa3fN5ayeJwFVl9qWofl273wtK1VG8ySDZ1mQBfhCpdd8nEx7nPZ/tk7k+TYcpqBZzj/AnwxT9lO+HJw==} + engines: {node: '>=20'} + + '@shikijs/themes@4.0.2': + resolution: {integrity: sha512-mjCafwt8lJJaVSsQvNVrJumbnnj1RI8jbUKrPKgE6E3OvQKxnuRoBaYC51H4IGHePsGN/QtALglWBU7DoKDFnA==} + engines: {node: '>=20'} + + '@shikijs/types@4.0.2': + resolution: {integrity: sha512-qzbeRooUTPnLE+sHD/Z8DStmaDgnbbc/pMrU203950aRqjX/6AFHeDYT+j00y2lPdz0ywJKx7o/7qnqTivtlXg==} + engines: {node: '>=20'} + + '@shikijs/vscode-textmate@10.0.2': + resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} + + '@simple-libs/child-process-utils@1.0.2': + resolution: {integrity: sha512-/4R8QKnd/8agJynkNdJmNw2MBxuFTRcNFnE5Sg/G+jkSsV8/UBgULMzhizWWW42p8L5H7flImV2ATi79Ove2Tw==} + engines: {node: '>=18'} + '@simple-libs/stream-utils@1.2.0': resolution: {integrity: sha512-KxXvfapcixpz6rVEB6HPjOUZT22yN6v0vI0urQSk1L8MlEWPDFCZkhw2xmkyoTGYeFw7tWTZd7e3lVzRZRN/EA==} engines: {node: '>=18'} @@ -1060,8 +1559,8 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@testcontainers/localstack@11.12.0': - resolution: {integrity: sha512-pqpJD61t6ipLOJbT2fHXvByDczfewEwkR03/KordJSPoUANjUUVHiEviKq6ZgOJWk2WUvrU7UsHde0EazKckOQ==} + '@testcontainers/localstack@11.13.0': + resolution: {integrity: sha512-BTNa9vS/lltr7OzJ+8+PNkpww/oHtqvkFtz+bD58osjUROL6YHRHKdprr150pMvUjpSwtWI5vFzisXE/OpgY9g==} '@textlint/ast-node-types@15.5.2': resolution: {integrity: sha512-fCaOxoup5LIyBEo7R1oYWE7V4bSX0KQeHh66twon9e9usaLE3ijgF8QjYsR6joCssdeCHVd0wHm7ppsEyTr6vg==} @@ -1093,6 +1592,9 @@ packages: '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + '@types/debug@4.1.13': + resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==} + '@types/deep-eql@4.0.2': resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} @@ -1105,15 +1607,33 @@ packages: '@types/estree@1.0.8': resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + '@types/hast@3.0.4': + resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} + + '@types/mdast@4.0.4': + resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + + '@types/ms@2.1.0': + resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} + + '@types/nlcst@2.0.3': + resolution: {integrity: sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==} + '@types/node@18.19.130': resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==} - '@types/node@25.3.3': - resolution: {integrity: sha512-DpzbrH7wIcBaJibpKo9nnSQL0MTRdnWttGyE5haGwK86xgMOkFLp7vEyfQPGLOJh5wNYiJ3V9PmUMDhV9u8kkQ==} + '@types/node@24.12.0': + resolution: {integrity: sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==} + + '@types/node@25.5.0': + resolution: {integrity: sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + '@types/sax@1.2.7': + resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==} + '@types/ssh2-streams@0.1.13': resolution: {integrity: sha512-faHyY3brO9oLEA0QlcO8N2wT7R0+1sHWZvQ+y3rMLwdY1ZyS1z0W3t65j9PqT4HmQ6ALzNe7RZlNuCNE0wBSWA==} @@ -1123,51 +1643,61 @@ packages: '@types/ssh2@1.15.5': resolution: {integrity: sha512-N1ASjp/nXH3ovBHddRJpli4ozpk6UdDYIX4RJWFa9L1YKnzdhTlVmiGHm4DZnj/jLbqZpes4aeR30EFGQtvhQQ==} + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + '@typespec/ts-http-runtime@0.3.3': resolution: {integrity: sha512-91fp6CAAJSRtH5ja95T1FHSKa8aPW9/Zw6cta81jlZTUw/+Vq8jM/AfF/14h2b71wwR84JUTW/3Y8QPhDAawFA==} engines: {node: '>=20.0.0'} + '@typespec/ts-http-runtime@0.3.4': + resolution: {integrity: sha512-CI0NhTrz4EBaa0U+HaaUZrJhPoso8sG7ZFya8uQoBA57fjzrjRSv87ekCjLZOFExN+gXE/z0xuN2QfH4H2HrLQ==} + engines: {node: '>=20.0.0'} + + '@ungap/structured-clone@1.3.0': + resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} + '@vercel/ncc@0.38.4': resolution: {integrity: sha512-8LwjnlP39s08C08J5NstzriPvW1SP8Zfpp1BvC2sI35kPeZnHfxVkCwu4/+Wodgnd60UtT1n8K8zw+Mp7J9JmQ==} hasBin: true - '@vitest/coverage-v8@4.0.18': - resolution: {integrity: sha512-7i+N2i0+ME+2JFZhfuz7Tg/FqKtilHjGyGvoHYQ6iLV0zahbsJ9sljC9OcFcPDbhYKCet+sG8SsVqlyGvPflZg==} + '@vitest/coverage-v8@4.1.2': + resolution: {integrity: sha512-sPK//PHO+kAkScb8XITeB1bf7fsk85Km7+rt4eeuRR3VS1/crD47cmV5wicisJmjNdfeokTZwjMk4Mj2d58Mgg==} peerDependencies: - '@vitest/browser': 4.0.18 - vitest: 4.0.18 + '@vitest/browser': 4.1.2 + vitest: 4.1.2 peerDependenciesMeta: '@vitest/browser': optional: true - '@vitest/expect@4.0.18': - resolution: {integrity: sha512-8sCWUyckXXYvx4opfzVY03EOiYVxyNrHS5QxX3DAIi5dpJAAkyJezHCP77VMX4HKA2LDT/Jpfo8i2r5BE3GnQQ==} + '@vitest/expect@4.1.2': + resolution: {integrity: sha512-gbu+7B0YgUJ2nkdsRJrFFW6X7NTP44WlhiclHniUhxADQJH5Szt9mZ9hWnJPJ8YwOK5zUOSSlSvyzRf0u1DSBQ==} - '@vitest/mocker@4.0.18': - resolution: {integrity: sha512-HhVd0MDnzzsgevnOWCBj5Otnzobjy5wLBe4EdeeFGv8luMsGcYqDuFRMcttKWZA5vVO8RFjexVovXvAM4JoJDQ==} + '@vitest/mocker@4.1.2': + resolution: {integrity: sha512-Ize4iQtEALHDttPRCmN+FKqOl2vxTiNUhzobQFFt/BM1lRUTG7zRCLOykG/6Vo4E4hnUdfVLo5/eqKPukcWW7Q==} peerDependencies: msw: ^2.4.9 - vite: ^6.0.0 || ^7.0.0-0 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: msw: optional: true vite: optional: true - '@vitest/pretty-format@4.0.18': - resolution: {integrity: sha512-P24GK3GulZWC5tz87ux0m8OADrQIUVDPIjjj65vBXYG17ZeU3qD7r+MNZ1RNv4l8CGU2vtTRqixrOi9fYk/yKw==} + '@vitest/pretty-format@4.1.2': + resolution: {integrity: sha512-dwQga8aejqeuB+TvXCMzSQemvV9hNEtDDpgUKDzOmNQayl2OG241PSWeJwKRH3CiC+sESrmoFd49rfnq7T4RnA==} - '@vitest/runner@4.0.18': - resolution: {integrity: sha512-rpk9y12PGa22Jg6g5M3UVVnTS7+zycIGk9ZNGN+m6tZHKQb7jrP7/77WfZy13Y/EUDd52NDsLRQhYKtv7XfPQw==} + '@vitest/runner@4.1.2': + resolution: {integrity: sha512-Gr+FQan34CdiYAwpGJmQG8PgkyFVmARK8/xSijia3eTFgVfpcpztWLuP6FttGNfPLJhaZVP/euvujeNYar36OQ==} - '@vitest/snapshot@4.0.18': - resolution: {integrity: sha512-PCiV0rcl7jKQjbgYqjtakly6T1uwv/5BQ9SwBLekVg/EaYeQFPiXcgrC2Y7vDMA8dM1SUEAEV82kgSQIlXNMvA==} + '@vitest/snapshot@4.1.2': + resolution: {integrity: sha512-g7yfUmxYS4mNxk31qbOYsSt2F4m1E02LFqO53Xpzg3zKMhLAPZAjjfyl9e6z7HrW6LvUdTwAQR3HHfLjpko16A==} - '@vitest/spy@4.0.18': - resolution: {integrity: sha512-cbQt3PTSD7P2OARdVW3qWER5EGq7PHlvE+QfzSC0lbwO+xnt7+XH06ZzFjFRgzUX//JmpxrCu92VdwvEPlWSNw==} + '@vitest/spy@4.1.2': + resolution: {integrity: sha512-DU4fBnbVCJGNBwVA6xSToNXrkZNSiw59H8tcuUspVMsBDBST4nfvsPsEHDHGtWRRnqBERBQu7TrTKskmjqTXKA==} - '@vitest/utils@4.0.18': - resolution: {integrity: sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA==} + '@vitest/utils@4.1.2': + resolution: {integrity: sha512-xw2/TiX82lQHA06cgbqRKFb5lCAy3axQ4H4SoUFhUsg+wztiet+co86IAMDtF6Vm1hc7J6j09oh/rgDn+JdKIQ==} abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} @@ -1209,6 +1739,10 @@ packages: resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} engines: {node: '>=12'} + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + archiver-utils@5.0.2: resolution: {integrity: sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==} engines: {node: '>= 14'} @@ -1220,12 +1754,22 @@ packages: arg@4.1.3: resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + arg@5.0.2: + resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} + argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + aria-query@5.3.2: + resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==} + engines: {node: '>= 0.4'} + array-ify@1.0.0: resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} + array-iterate@2.0.1: + resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==} + asn1@0.2.6: resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==} @@ -1233,27 +1777,66 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - ast-v8-to-istanbul@0.3.12: - resolution: {integrity: sha512-BRRC8VRZY2R4Z4lFIL35MwNXmwVqBityvOIwETtsCSwvjl0IdgFsy9NhdaA6j74nUdtJJlIypeRhpDam19Wq3g==} + ast-v8-to-istanbul@1.0.0: + resolution: {integrity: sha512-1fSfIwuDICFA4LKkCzRPO7F0hzFf0B7+Xqrl27ynQaa+Rh0e1Es0v6kWHPott3lU10AyAr7oKHa65OppjLn3Rg==} astral-regex@2.0.0: resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} engines: {node: '>=8'} + astro@6.1.1: + resolution: {integrity: sha512-vq8sHpu1JsY1fWAunn+tdKNbVDmLQNiVdyuGsVT2csgITdFGXXVAyEXFWc1DzkMN0ehElPeiHnqItyQOJK+GqA==} + engines: {node: '>=22.12.0', npm: '>=9.6.5', pnpm: '>=7.1.0'} + hasBin: true + async-lock@1.4.1: resolution: {integrity: sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ==} async@3.2.6: resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} - b4a@1.8.0: - resolution: {integrity: sha512-qRuSmNSkGQaHwNbM7J78Wwy+ghLEYF1zNrSeMxj4Kgw6y33O3mXcQ6Ie9fRvfU/YnxWkOchPXbaLb73TkIsfdg==} + aws-cdk-lib@2.245.0: + resolution: {integrity: sha512-Yfeb+wKC6s+Ttm/N93C6vY6ksyCh68WaG/j3N6dalJWTW/V4o6hUolHm+v2c2IofJEUS45c5AF/EEj24e9hfMA==} + engines: {node: '>= 20.0.0'} peerDependencies: - react-native-b4a: '*' - peerDependenciesMeta: - react-native-b4a: + constructs: ^10.5.0 + bundledDependencies: + - '@balena/dockerignore' + - '@aws-cdk/cloud-assembly-api' + - case + - fs-extra + - ignore + - jsonschema + - minimatch + - punycode + - semver + - table + - yaml + - mime-types + + aws-cdk@2.1114.1: + resolution: {integrity: sha512-jMaKPWQQs1G6AbhfCQG2zGrgAhTxzP0jn4T2CuwONuvcV374dMPhfC/LBAv48ruSOgpCK9x6V1xeO/aH3EchAA==} + engines: {node: '>= 18.0.0'} + hasBin: true + + axobject-query@4.1.0: + resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} + engines: {node: '>= 0.4'} + + b4a@1.8.0: + resolution: {integrity: sha512-qRuSmNSkGQaHwNbM7J78Wwy+ghLEYF1zNrSeMxj4Kgw6y33O3mXcQ6Ie9fRvfU/YnxWkOchPXbaLb73TkIsfdg==} + peerDependencies: + react-native-b4a: '*' + peerDependenciesMeta: + react-native-b4a: optional: true + bail@2.0.2: + resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.4: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} @@ -1266,8 +1849,8 @@ packages: bare-abort-controller: optional: true - bare-fs@4.5.5: - resolution: {integrity: sha512-XvwYM6VZqKoqDll8BmSww5luA5eflDzY0uEFfBJtFKe4PAAtxBjU3YIxzIBzhyaEQBy1VXEQBto4cpN5RZJw+w==} + bare-fs@4.5.6: + resolution: {integrity: sha512-1QovqDrR80Pmt5HPAsMsXTCFcDYr+NSUKW6nd6WO5v0JBmnItc/irNRzm2KOQ5oZ69P37y+AMujNyNtG+1Rggw==} engines: {bare: '>=1.16.0'} peerDependencies: bare-buffer: '*' @@ -1275,26 +1858,29 @@ packages: bare-buffer: optional: true - bare-os@3.7.0: - resolution: {integrity: sha512-64Rcwj8qlnTZU8Ps6JJEdSmxBEUGgI7g8l+lMtsJLl4IsfTcHMTfJ188u2iGV6P6YPRZrtv72B2kjn+hp+Yv3g==} + bare-os@3.8.2: + resolution: {integrity: sha512-lMseYRMTzMrxPGfXkDwOWym2iv9dUMlTqpjXa0M+7ymI1TJKhxQ2jkDOK7y1EGvxuqJcXOoJ/HYEBxIlWObgjQ==} engines: {bare: '>=1.14.0'} bare-path@3.0.0: resolution: {integrity: sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==} - bare-stream@2.8.0: - resolution: {integrity: sha512-reUN0M2sHRqCdG4lUK3Fw8w98eeUIZHL5c3H7Mbhk2yVBL+oofgaIp0ieLfD5QXwPCypBpmEEKU2WZKzbAk8GA==} + bare-stream@2.11.0: + resolution: {integrity: sha512-Y/+iQ49fL3rIn6w/AVxI/2+BRrpmzJvdWt5Jv8Za6Ngqc6V227c+pYjYYgLdpR3MwQ9ObVXD0ZrqoBztakM0rw==} peerDependencies: + bare-abort-controller: '*' bare-buffer: '*' bare-events: '*' peerDependenciesMeta: + bare-abort-controller: + optional: true bare-buffer: optional: true bare-events: optional: true - bare-url@2.3.2: - resolution: {integrity: sha512-ZMq4gd9ngV5aTMa5p9+UfY0b3skwhHELaDkhEHetMdX0LRkW9kzaym4oo/Eh+Ghm0CCDuMTsRIGM/ytUc1ZYmw==} + bare-url@2.4.0: + resolution: {integrity: sha512-NSTU5WN+fy/L0DDenfE8SXQna4voXuW0FHM7wH8i3/q9khUSchfPbPezO4zSFMnDGIf9YE+mt/RWhZgNRKRIXA==} base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} @@ -1309,12 +1895,18 @@ packages: bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} + boolbase@1.0.0: + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + boundary@2.0.0: resolution: {integrity: sha512-rJKn5ooC9u8q13IMCrW0RSp31pxBCHE3y9V/tp3TdWSLf8Em3p6Di4NBpfzbJge9YjjFEsD0RtFEjtvHL5VyEA==} bowser@2.14.1: resolution: {integrity: sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==} + brace-expansion@2.0.3: + resolution: {integrity: sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==} + brace-expansion@5.0.5: resolution: {integrity: sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==} engines: {node: 18 || 20 || >=22} @@ -1352,6 +1944,9 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} + ccount@2.0.1: + resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + chai@6.2.2: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} @@ -1364,13 +1959,34 @@ packages: resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + character-entities-html4@2.1.0: + resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} + + character-entities-legacy@3.0.0: + resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} + + character-entities@2.0.2: + resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + chownr@1.1.4: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + ci-info@4.4.0: + resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} + engines: {node: '>=8'} + cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1378,10 +1994,21 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + comma-separated-tokens@2.0.3: + resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + + commander@11.1.0: + resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} + engines: {node: '>=16'} + commander@14.0.3: resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} engines: {node: '>=20'} + common-ancestor-path@2.0.0: + resolution: {integrity: sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==} + engines: {node: '>= 18'} + compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} @@ -1389,6 +2016,9 @@ packages: resolution: {integrity: sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==} engines: {node: '>= 14'} + constructs@10.6.0: + resolution: {integrity: sha512-TxHOnBO5zMo/G76ykzGF/wMpEHu257TbWiIxP9K0Yv/+t70UzgBQiTqjkAsWOPC6jW91DzJI0+ehQV6xDRNBuQ==} + conventional-changelog-angular@8.3.0: resolution: {integrity: sha512-DOuBwYSqWzfwuRByY9O4oOIvDlkUCTDzfbOgcSbkY+imXXj+4tmrEFao3K+FxemClYfYnZzsvudbwrhje9VHDA==} engines: {node: '>=18'} @@ -1402,6 +2032,16 @@ packages: engines: {node: '>=18'} hasBin: true + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + cookie-es@1.2.2: + resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==} + + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} @@ -1442,9 +2082,27 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - dargs@8.1.0: - resolution: {integrity: sha512-wAV9QHOsNbwnWdNW2FYvE1P56wtgSbM+3SZcdGiWQILwVjACCXDCI3Ai8QlCjMDB8YK5zySiXZYBiwGmNY3lnw==} - engines: {node: '>=12'} + crossws@0.3.5: + resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==} + + css-select@5.2.2: + resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} + + css-tree@2.2.1: + resolution: {integrity: sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'} + + css-tree@3.2.1: + resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} + + css-what@6.2.2: + resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==} + engines: {node: '>= 6'} + + csso@5.0.5: + resolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'} debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} @@ -1455,6 +2113,9 @@ packages: supports-color: optional: true + decode-named-character-reference@1.3.0: + resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==} + default-browser-id@5.0.1: resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} engines: {node: '>=18'} @@ -1467,22 +2128,62 @@ packages: resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} engines: {node: '>=12'} + defu@6.1.4: + resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} + + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + devalue@5.6.4: + resolution: {integrity: sha512-Gp6rDldRsFh/7XuouDbxMH3Mx8GMCcgzIb1pDTvNyn8pZGQ22u+Wa+lGV9dQCltFQ7uVw0MhRyb8XDskNFOReA==} + + devlop@1.1.0: + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + diff@4.0.4: resolution: {integrity: sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==} engines: {node: '>=0.3.1'} - docker-compose@1.3.1: - resolution: {integrity: sha512-rF0wH69G3CCcmkN9J1RVMQBaKe8o77LT/3XmqcLIltWWVxcWAzp2TnO7wS3n/umZHN3/EVrlT3exSBMal+Ou1w==} + diff@8.0.4: + resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==} + engines: {node: '>=0.3.1'} + + dlv@1.1.3: + resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} + + docker-compose@1.3.3: + resolution: {integrity: sha512-LzcZ6Dk+Ps5SbLZ4iqAcagzYFZ+bBWQ52uzUNfORNkXyash2EjHZI4REf1ccG19emroS0iWElfQN8RQJ8HOIIg==} engines: {node: '>= 6.0.0'} - docker-modem@5.0.6: - resolution: {integrity: sha512-ens7BiayssQz/uAxGzH8zGXCtiV24rRWXdjNha5V4zSOcxmAZsfGVm/PPFbwQdqEkDnhG+SyR9E3zSHUbOKXBQ==} + docker-modem@5.0.7: + resolution: {integrity: sha512-XJgGhoR/CLpqshm4d3L7rzH6t8NgDFUIIpztYlLHIApeJjMZKYJMz2zxPsYxnejq5h3ELYSw/RBsi3t5h7gNTA==} engines: {node: '>= 8.0'} - dockerode@4.0.9: - resolution: {integrity: sha512-iND4mcOWhPaCNh54WmK/KoSb35AFqPAUWFMffTQcp52uQt36b5uNwEJTSXntJZBbeGad72Crbi/hvDIv6us/6Q==} + dockerode@4.0.10: + resolution: {integrity: sha512-8L/P9JynLBiG7/coiA4FlQXegHltRqS0a+KqI44P1zgQh8QLHTg7FKOwhkBgSJwZTeHsq30WRoVFLuwkfK0YFg==} engines: {node: '>= 8.0'} + dom-serializer@2.0.0: + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + + domelementtype@2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + + domhandler@5.0.3: + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} + + domutils@3.2.2: + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + dot-prop@5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} engines: {node: '>=8'} @@ -1491,6 +2192,10 @@ packages: resolution: {integrity: sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==} engines: {node: '>=12'} + dset@3.1.4: + resolution: {integrity: sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==} + engines: {node: '>=4'} + eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -1510,6 +2215,14 @@ packages: end-of-stream@1.4.5: resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + entities@6.0.1: + resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} + engines: {node: '>=0.12'} + env-paths@2.2.1: resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} engines: {node: '>=6'} @@ -1521,18 +2234,30 @@ packages: error-ex@1.3.4: resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} - es-module-lexer@1.7.0: - resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + es-module-lexer@2.0.0: + resolution: {integrity: sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==} esbuild@0.27.3: resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==} engines: {node: '>=18'} hasBin: true + esbuild@0.27.4: + resolution: {integrity: sha512-Rq4vbHnYkK5fws5NF7MYTU68FPRE1ajX7heQ/8QXXWqNgqqJ/GkmmyxIzUnf2Sr/bakf8l54716CcMGHYhMrrQ==} + engines: {node: '>=18'} + hasBin: true + escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} + escape-string-regexp@5.0.0: + resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} + engines: {node: '>=12'} + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} @@ -1540,6 +2265,9 @@ packages: resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} engines: {node: '>=6'} + eventemitter3@5.0.4: + resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} + events-universal@1.0.1: resolution: {integrity: sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==} @@ -1551,6 +2279,9 @@ packages: resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==} engines: {node: '>=12.0.0'} + extend@3.0.2: + resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1587,6 +2318,17 @@ packages: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} + flattie@1.1.1: + resolution: {integrity: sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==} + engines: {node: '>=8'} + + fontace@0.4.1: + resolution: {integrity: sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw==} + + fontkitten@1.0.3: + resolution: {integrity: sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==} + engines: {node: '>=20'} + foreground-child@3.3.1: resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} engines: {node: '>=14'} @@ -1603,19 +2345,21 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - get-port@7.1.0: - resolution: {integrity: sha512-QB9NKEeDg3xxVwCCwJQ9+xycaz6pBB6iQ76wiWMl1927n0Kir6alPiP+yuiICLLU4jpMe08dXfpebuQppFA2zw==} + get-port@7.2.0: + resolution: {integrity: sha512-afP4W205ONCuMoPBqcR6PSXnzX35KTcJygfJfcp+QY+uwm3p20p1YczWXhlICIzGMCxYBQcySEcOgsJcrkyobg==} engines: {node: '>=16'} get-tsconfig@4.13.7: resolution: {integrity: sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==} - git-raw-commits@4.0.0: - resolution: {integrity: sha512-ICsMM1Wk8xSGMowkOmPrzo2Fgmfo4bMHLNX6ytHjajRJUqvHOw/TFapQ+QG75c3X/tTDDhOSRPGC52dDbNM8FQ==} - engines: {node: '>=16'} - deprecated: This package is no longer maintained. For the JavaScript API, please use @conventional-changelog/git-client instead. + git-raw-commits@5.0.1: + resolution: {integrity: sha512-Y+csSm2GD/PCSh6Isd/WiMjNAydu0VBiG9J7EdQsNA5P9uXvLayqjmTsNlK5Gs9IhblFZqOU0yid5Il5JPoLiQ==} + engines: {node: '>=18'} hasBin: true + github-slugger@2.0.0: + resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==} + glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -1640,10 +2384,43 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + h3@1.15.10: + resolution: {integrity: sha512-YzJeWSkDZxAhvmp8dexjRK5hxziRO7I9m0N53WhvYL5NiWfkUkzssVzY9jvGu0HBoLFW6+duYmNSn6MaZBCCtg==} + has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} + hast-util-from-html@2.0.3: + resolution: {integrity: sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==} + + hast-util-from-parse5@8.0.3: + resolution: {integrity: sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==} + + hast-util-is-element@3.0.0: + resolution: {integrity: sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==} + + hast-util-parse-selector@4.0.0: + resolution: {integrity: sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==} + + hast-util-raw@9.1.0: + resolution: {integrity: sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==} + + hast-util-to-html@9.0.5: + resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} + + hast-util-to-parse5@8.0.1: + resolution: {integrity: sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==} + + hast-util-to-text@4.0.2: + resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==} + + hast-util-whitespace@3.0.0: + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + + hastscript@9.0.1: + resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==} + hosted-git-info@7.0.2: resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==} engines: {node: ^16.14.0 || >=18.0.0} @@ -1651,6 +2428,15 @@ packages: html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + html-escaper@3.0.3: + resolution: {integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==} + + html-void-elements@3.0.0: + resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} + + http-cache-semantics@4.2.0: + resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==} + http-proxy-agent@7.0.2: resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} engines: {node: '>= 14'} @@ -1684,8 +2470,11 @@ packages: resolution: {integrity: sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - inversify@7.11.0: - resolution: {integrity: sha512-yZDprSSr8TyVeMGI/AOV4ws6gwjX22hj9Z8/oHAVpJORY6WRFTcUzhnZtibBUHEw2U8ArvHcR+i863DplQ3Cwg==} + inversify@8.1.0: + resolution: {integrity: sha512-LeMjL2MKHM0E8UmKo2ilRvdxG3o0pLZPYFjkaHwcjcFIrhzBGetphNkaWJ6YaM78uC1gK9v45i1R7CkCJDvG4Q==} + + iron-webcrypto@1.2.1: + resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==} is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} @@ -1901,6 +2690,9 @@ packages: long@5.3.2: resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==} + longest-streak@3.1.0: + resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} + lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} @@ -1908,6 +2700,10 @@ packages: resolution: {integrity: sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==} engines: {node: 20 || >=22} + lru-cache@11.2.7: + resolution: {integrity: sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==} + engines: {node: 20 || >=22} + magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} @@ -1921,9 +2717,53 @@ packages: make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - meow@12.1.1: - resolution: {integrity: sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==} - engines: {node: '>=16.10'} + markdown-table@3.0.4: + resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==} + + mdast-util-definitions@6.0.0: + resolution: {integrity: sha512-scTllyX6pnYNZH/AIp/0ePz6s4cZtARxImwoPJ7kS42n+MnVsI4XbnG6d4ibehRIldYMWM2LD7ImQblVhUejVQ==} + + mdast-util-find-and-replace@3.0.2: + resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==} + + mdast-util-from-markdown@2.0.3: + resolution: {integrity: sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==} + + mdast-util-gfm-autolink-literal@2.0.1: + resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==} + + mdast-util-gfm-footnote@2.1.0: + resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==} + + mdast-util-gfm-strikethrough@2.0.0: + resolution: {integrity: sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==} + + mdast-util-gfm-table@2.0.0: + resolution: {integrity: sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==} + + mdast-util-gfm-task-list-item@2.0.0: + resolution: {integrity: sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==} + + mdast-util-gfm@3.1.0: + resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==} + + mdast-util-phrasing@4.1.0: + resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} + + mdast-util-to-hast@13.2.1: + resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} + + mdast-util-to-markdown@2.1.2: + resolution: {integrity: sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==} + + mdast-util-to-string@4.0.0: + resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} + + mdn-data@2.0.28: + resolution: {integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==} + + mdn-data@2.27.1: + resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==} meow@13.2.0: resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==} @@ -1933,6 +2773,90 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} + micromark-core-commonmark@2.0.3: + resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==} + + micromark-extension-gfm-autolink-literal@2.1.0: + resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==} + + micromark-extension-gfm-footnote@2.1.0: + resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==} + + micromark-extension-gfm-strikethrough@2.1.0: + resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==} + + micromark-extension-gfm-table@2.1.1: + resolution: {integrity: sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==} + + micromark-extension-gfm-tagfilter@2.0.0: + resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==} + + micromark-extension-gfm-task-list-item@2.1.0: + resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==} + + micromark-extension-gfm@3.0.0: + resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==} + + micromark-factory-destination@2.0.1: + resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==} + + micromark-factory-label@2.0.1: + resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==} + + micromark-factory-space@2.0.1: + resolution: {integrity: sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==} + + micromark-factory-title@2.0.1: + resolution: {integrity: sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==} + + micromark-factory-whitespace@2.0.1: + resolution: {integrity: sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==} + + micromark-util-character@2.1.1: + resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} + + micromark-util-chunked@2.0.1: + resolution: {integrity: sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==} + + micromark-util-classify-character@2.0.1: + resolution: {integrity: sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==} + + micromark-util-combine-extensions@2.0.1: + resolution: {integrity: sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==} + + micromark-util-decode-numeric-character-reference@2.0.2: + resolution: {integrity: sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==} + + micromark-util-decode-string@2.0.1: + resolution: {integrity: sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==} + + micromark-util-encode@2.0.1: + resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} + + micromark-util-html-tag-name@2.0.1: + resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==} + + micromark-util-normalize-identifier@2.0.1: + resolution: {integrity: sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==} + + micromark-util-resolve-all@2.0.1: + resolution: {integrity: sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==} + + micromark-util-sanitize-uri@2.0.1: + resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} + + micromark-util-subtokenize@2.1.0: + resolution: {integrity: sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==} + + micromark-util-symbol@2.0.1: + resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} + + micromark-util-types@2.0.2: + resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} + + micromark@4.0.2: + resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==} + micromatch@4.0.8: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} @@ -1941,6 +2865,14 @@ packages: resolution: {integrity: sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==} engines: {node: 18 || 20 || >=22} + minimatch@5.1.9: + resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==} + engines: {node: '>=10'} + + minimatch@9.0.9: + resolution: {integrity: sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==} + engines: {node: '>=16 || 14 >=14.17'} + minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} @@ -1956,17 +2888,34 @@ packages: engines: {node: '>=10'} hasBin: true + mrmime@2.0.1: + resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} + engines: {node: '>=10'} + ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - nan@2.25.0: - resolution: {integrity: sha512-0M90Ag7Xn5KMLLZ7zliPWP3rT90P6PN+IzVFS0VqmnPktBk3700xUVv8Ikm9EUaUE5SDWdp/BIxdENzVznpm1g==} + nan@2.26.2: + resolution: {integrity: sha512-0tTvBTYkt3tdGw22nrAy50x7gpbGCCFH3AFcyS5WiUu7Eu4vWlri1woE6qHBSfy11vksDqkiwjOnlR7WV8G1Hw==} nanoid@3.3.11: resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + neotraverse@0.6.18: + resolution: {integrity: sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==} + engines: {node: '>= 10'} + + nlcst-to-string@4.0.0: + resolution: {integrity: sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==} + + node-fetch-native@1.6.7: + resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==} + + node-mock-http@1.0.4: + resolution: {integrity: sha512-8DY+kFsDkNXy1sJglUfuODx1/opAGJGyrTuFqEoN90oRc2Vk0ZbD4K2qmKXBBEhZQzdKHIVfEJpDU8Ak2NJEvQ==} + normalize-package-data@6.0.2: resolution: {integrity: sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==} engines: {node: ^16.14.0 || >=18.0.0} @@ -1975,23 +2924,53 @@ packages: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} + nth-check@2.1.1: + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + obug@2.1.1: resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==} + ofetch@1.5.1: + resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==} + + ohash@2.0.11: + resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==} + once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + oniguruma-parser@0.12.1: + resolution: {integrity: sha512-8Unqkvk1RYc6yq2WBYRj4hdnsAxVze8i7iPfQr8e4uSP3tRv0rpZcbGUDvxfQQcdwHt/e9PrMvGCsa8OqG9X3w==} + + oniguruma-to-es@4.3.5: + resolution: {integrity: sha512-Zjygswjpsewa0NLTsiizVuMQZbp0MDyM6lIt66OxsF21npUDlzpHi1Mgb/qhQdkb+dWFTzJmFbEWdvZgRho8eQ==} + open@10.2.0: resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==} engines: {node: '>=18'} + p-limit@7.3.0: + resolution: {integrity: sha512-7cIXg/Z0M5WZRblrsOla88S4wAK+zOQQWeBYfV3qJuJXMr+LnbYjaadrFaS0JILfEDPVqHyKnZ1Z/1d6J9VVUw==} + engines: {node: '>=20'} + p-map@7.0.4: resolution: {integrity: sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==} engines: {node: '>=18'} + p-queue@9.1.0: + resolution: {integrity: sha512-O/ZPaXuQV29uSLbxWBGGZO1mCQXV2BLIwUr59JUU9SoH76mnYvtms7aafH/isNSNGwuEfP6W/4xD0/TJXxrizw==} + engines: {node: '>=20'} + + p-timeout@7.0.1: + resolution: {integrity: sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==} + engines: {node: '>=20'} + package-json-from-dist@1.0.1: resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + package-manager-detector@1.6.0: + resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==} + parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -2004,6 +2983,12 @@ packages: resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==} engines: {node: '>=18'} + parse-latin@7.0.0: + resolution: {integrity: sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ==} + + parse5@7.3.0: + resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} + path-expression-matcher@1.2.0: resolution: {integrity: sha512-DwmPWeFn+tq7TiyJ2CxezCAirXjFxvaiD03npak3cRjlP9+OjTmSy1EpIrEbh+l6JgUundniloMLDQ/6VTdhLQ==} engines: {node: '>=14.0.0'} @@ -2027,6 +3012,9 @@ packages: pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + piccolore@0.1.3: + resolution: {integrity: sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw==} + picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -2045,10 +3033,14 @@ packages: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} - postcss@8.5.6: - resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + postcss@8.5.8: + resolution: {integrity: sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==} engines: {node: ^10 || ^12 || >=14} + prismjs@1.30.0: + resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==} + engines: {node: '>=6'} + process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} @@ -2063,6 +3055,9 @@ packages: resolution: {integrity: sha512-WPn+h9RGEExOKdu4bsF4HksG/uzd3cFq3MFtq8PsFeExPse5Ha/VOjQNyHhjboBFwGXGev6muJYTSPAOkROq2g==} engines: {node: '>=18'} + property-information@7.1.0: + resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==} + protobufjs@7.5.4: resolution: {integrity: sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==} engines: {node: '>=12.0.0'} @@ -2073,6 +3068,9 @@ packages: queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + radix3@1.1.2: + resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==} + rc-config-loader@4.1.4: resolution: {integrity: sha512-3GiwEzklkbXTDp52UR5nT8iXgYAx1V9ZG/kDZT7p60u2GCv2XTwQq4NzinMoMpNtXhmt3WkhYXcj6HH8HdwCEQ==} @@ -2094,9 +3092,50 @@ packages: readdir-glob@1.1.3: resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==} + readdirp@5.0.0: + resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==} + engines: {node: '>= 20.19.0'} + reflect-metadata@0.2.2: resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} + regex-recursion@6.0.2: + resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} + + regex-utilities@2.3.0: + resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} + + regex@6.1.0: + resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} + + rehype-parse@9.0.1: + resolution: {integrity: sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==} + + rehype-raw@7.0.0: + resolution: {integrity: sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==} + + rehype-stringify@10.0.1: + resolution: {integrity: sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA==} + + rehype@13.0.2: + resolution: {integrity: sha512-j31mdaRFrwFRUIlxGeuPXXKWQxet52RBQRvCmzl5eCefn/KGbomK5GMHNMsOJf55fgo3qw5tST5neDuarDYR2A==} + + remark-gfm@4.0.1: + resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==} + + remark-parse@11.0.0: + resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==} + + remark-rehype@11.1.2: + resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==} + + remark-smartypants@3.0.2: + resolution: {integrity: sha512-ILTWeOriIluwEvPjv67v7Blgrcx+LZOkAUVtKI3putuhlZm84FnqDORNXPPm+HY3NdZOMhyDwZ1E+eZB/Df5dA==} + engines: {node: '>=16.0.0'} + + remark-stringify@11.0.0: + resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} + require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -2116,6 +3155,18 @@ packages: resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + retext-latin@4.0.0: + resolution: {integrity: sha512-hv9woG7Fy0M9IlRQloq/N6atV82NxLGveq+3H2WOi79dtIYWN8OaxogDm77f8YnVXJL2VD3bbqowu5E3EMhBYA==} + + retext-smartypants@6.2.0: + resolution: {integrity: sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ==} + + retext-stringify@4.0.0: + resolution: {integrity: sha512-rtfN/0o8kL1e+78+uxPTqu1Klt0yPzKuQ2BfWwwfgIUSayyzxpM1PJzkKt4V8803uB9qSy32MvI7Xep9khTpiA==} + + retext@9.0.0: + resolution: {integrity: sha512-sbMDcpHCNjvlheSgMfEcVrZko3cDzdbe1x/e7G66dFp0Ff7Mldvi2uv6JkJQzdRcvLYE8CA8Oe8siQx8ZOgTcA==} + retry@0.12.0: resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} engines: {node: '>= 4'} @@ -2124,8 +3175,8 @@ packages: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - rollup@4.59.0: - resolution: {integrity: sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==} + rollup@4.60.0: + resolution: {integrity: sha512-yqjxruMGBQJ2gG4HtjZtAfXArHomazDHoFwFFmZZl0r7Pdo7qCIXKqKHZc8yeoMgzJJ+pO6pEEHa+V7uzWlrAQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -2145,8 +3196,12 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - secretlint@11.3.1: - resolution: {integrity: sha512-CThioOhzkK/D7CdwYw2WgNaIAS4pTjUMb9aN296zNVxQV02aJIjzjfRS5Bih/auHXd0mHSfypGYLj5mmjUleNw==} + sax@1.6.0: + resolution: {integrity: sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==} + engines: {node: '>=11.0.0'} + + secretlint@11.4.0: + resolution: {integrity: sha512-UYLrriP+QjLbyTxVUihMd8xva/2sPMgqIzJw2+4bRxXPZeWUXJ6b1BcyiTso6BnHcwYvFoytMMaoB/h+Nsvluw==} engines: {node: '>=20.0.0'} hasBin: true @@ -2155,6 +3210,10 @@ packages: engines: {node: '>=10'} hasBin: true + sharp@0.34.5: + resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -2163,6 +3222,10 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + shiki@4.0.2: + resolution: {integrity: sha512-eAVKTMedR5ckPo4xne/PjYQYrU3qx78gtJZ+sHlXEg5IHhhoQhMfZVzetTYuaJS0L2Ef3AcCRzCHV8T0WI6nIQ==} + engines: {node: '>=20'} + siginfo@2.0.0: resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} @@ -2173,6 +3236,14 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + + sitemap@9.0.1: + resolution: {integrity: sha512-S6hzjGJSG3d6if0YoF5kTyeRJvia6FSTBroE5fQ0bu1QNxyJqhhinfUsXi9fH3MgtXODWvwo2BDyQSnhPQ88uQ==} + engines: {node: '>=20.19.5', npm: '>=10.8.2'} + hasBin: true + slash@5.1.0: resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} engines: {node: '>=14.16'} @@ -2181,10 +3252,17 @@ packages: resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} engines: {node: '>=10'} + smol-toml@1.6.1: + resolution: {integrity: sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==} + engines: {node: '>= 18'} + source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} + space-separated-tokens@2.0.2: + resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} + spdx-correct@3.2.0: resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} @@ -2200,10 +3278,6 @@ packages: split-ca@1.0.1: resolution: {integrity: sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ==} - split2@4.2.0: - resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} - engines: {node: '>= 10.x'} - ssh-remote-port-forward@1.0.4: resolution: {integrity: sha512-x0LV1eVDwjf1gmG7TTnfqIzf+3VPRz7vrNIjX6oYLbeCrf/PeVY6hkT68Mg+q02qXxQhrLjB0jfgvhevoCRmLQ==} @@ -2214,11 +3288,14 @@ packages: stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - std-env@3.10.0: - resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==} + std-env@4.0.0: + resolution: {integrity: sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==} - streamx@2.23.0: - resolution: {integrity: sha512-kn+e44esVfn2Fa/O0CPFcex27fjIL6MkVae0Mm6q+E6f0hWv578YCERbv+4m02cjxvDsPKLnmxral/rR6lBMAg==} + stream-replace-string@2.0.0: + resolution: {integrity: sha512-TlnjJ1C0QrmxRNrON00JvaFFlNh5TTG00APw23j74ET7gkQpTASi6/L2fuiav8pzK715HXtUeClpBTw2NPSn6w==} + + streamx@2.25.0: + resolution: {integrity: sha512-0nQuG6jf1w+wddNEEXCF4nTg3LtufWINB5eFEN+5TNZW7KWJp6x87+JFL43vaAUPyCfH1wID+mNVyW6OHtFamg==} string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} @@ -2234,6 +3311,9 @@ packages: string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + stringify-entities@4.0.4: + resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} + strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} @@ -2242,8 +3322,8 @@ packages: resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} engines: {node: '>=12'} - strnum@2.2.0: - resolution: {integrity: sha512-Y7Bj8XyJxnPAORMZj/xltsfo55uOiyHcU2tnAVzHUnSJR/KsEX+9RoDeXEnsXtl/CX4fAcrt64gZ13aGaWPeBg==} + strnum@2.2.2: + resolution: {integrity: sha512-DnR90I+jtXNSTXWdwrEy9FakW7UX+qUZg28gj5fk2vxxl7uS/3bpI4fjFYVmdK9etptYBPNkpahuQnEwhwECqA==} structured-source@4.0.0: resolution: {integrity: sha512-qGzRFNJDjFieQkl/sVOI2dUjHKRyL9dAJi2gCPGJLbJHBIkyOHxjuocpIEfbLioX+qSJpvbYdT49/YCdMznKxA==} @@ -2256,6 +3336,11 @@ packages: resolution: {integrity: sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig==} engines: {node: '>=14.18'} + svgo@4.0.1: + resolution: {integrity: sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==} + engines: {node: '>=16'} + hasBin: true + table@6.9.0: resolution: {integrity: sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==} engines: {node: '>=10.0.0'} @@ -2263,8 +3348,8 @@ packages: tar-fs@2.1.4: resolution: {integrity: sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==} - tar-fs@3.1.1: - resolution: {integrity: sha512-LZA0oaPOc2fVo82Txf3gw+AkEd38szODlptMYejQUhndHMLQ9M059uXR+AfS7DNo0NpINvSqDsvyaCrBVkptWg==} + tar-fs@3.1.2: + resolution: {integrity: sha512-QGxxTxxyleAdyM3kpFs14ymbYmNFrfY+pHj7Z8FgtbZ7w2//VAgLMac7sT6nRpIHjppXO2AwwEOg0bPFVRcmXw==} tar-stream@2.2.0: resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} @@ -2280,8 +3365,8 @@ packages: resolution: {integrity: sha512-lk+vH+MccxNqgVqSnkMVKx4VLJfnLjDBGzH16JVZjKE2DoxP57s6/vt6JmXV5I3jBcfGrxNrYtC+mPtU7WJztA==} engines: {node: '>=18'} - testcontainers@11.12.0: - resolution: {integrity: sha512-VWtH+UQejVYYvb53ohEZRbx2naxyDvwO9lQ6A0VgmVE2Oh8r9EF09I+BfmrXpd9N9ntpzhao9di2yNwibSz5KA==} + testcontainers@11.13.0: + resolution: {integrity: sha512-fzTvgOtd6U/esOzgmDatJh79OSK0tU6vjDOJ3B6ICrrJf0dqCWtFdpOr6f/g/KixMxKDTDbszmZYjSORJXsVCQ==} text-decoder@1.2.7: resolution: {integrity: sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==} @@ -2293,19 +3378,26 @@ packages: resolution: {integrity: sha512-tXJwSr9355kFJI3lbCkPpUH5cP8/M0GGy2xLO34aZCjMXBaK3SoPnZwr/oWmo1FdCnELcs4npdCIOFtq9W3ruQ==} engines: {node: '>=4'} + tiny-inflate@1.0.3: + resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==} + tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - tinyexec@1.0.2: - resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==} + tinyclip@0.1.12: + resolution: {integrity: sha512-Ae3OVUqifDw0wBriIBS7yVaW44Dp6eSHQcyq4Igc7eN2TJH/2YsicswaW+J/OuMvhpDPOKEgpAZCjkb4hpoyeA==} + engines: {node: ^16.14.0 || >= 17.3.0} + + tinyexec@1.0.4: + resolution: {integrity: sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==} engines: {node: '>=18'} tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} - tinyrainbow@3.0.3: - resolution: {integrity: sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q==} + tinyrainbow@3.1.0: + resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} engines: {node: '>=14.0.0'} tmp@0.2.5: @@ -2316,6 +3408,12 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} + trim-lines@3.0.1: + resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} + + trough@2.2.0: + resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==} + ts-node@10.9.2: resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true @@ -2330,6 +3428,16 @@ packages: '@swc/wasm': optional: true + tsconfck@3.1.6: + resolution: {integrity: sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==} + engines: {node: ^18 || >=20} + hasBin: true + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} @@ -2345,19 +3453,31 @@ packages: resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==} engines: {node: '>=16'} - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + typescript@6.0.2: + resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==} engines: {node: '>=14.17'} hasBin: true + ufo@1.6.3: + resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==} + + ultrahtml@1.6.0: + resolution: {integrity: sha512-R9fBn90VTJrqqLDwyMph+HGne8eqY1iPfYhPzZrvKpIfwkWZbcYlfpsb8B9dTvBfpy1/hqAD7Wi8EKfP9e8zdw==} + + uncrypto@0.1.3: + resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} + undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@7.16.0: + resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} + undici-types@7.18.2: resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} - undici@7.24.1: - resolution: {integrity: sha512-5xoBibbmnjlcR3jdqtY2Lnx7WbrD/tHlT01TmvqZUFVc9Q1w4+j5hbnapTqbcXITMH1ovjq/W7BkqBilHiVAaA==} + undici@7.24.6: + resolution: {integrity: sha512-Xi4agocCbRzt0yYMZGMA6ApD7gvtUFaxm4ZmeacWI4cZxaF6C+8I8QfofC20NAePiB/IcvZmzkJ7XPa471AEtA==} engines: {node: '>=20.18.1'} unicorn-magic@0.1.0: @@ -2368,6 +3488,101 @@ packages: resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} engines: {node: '>=18'} + unified@11.0.5: + resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} + + unifont@0.7.4: + resolution: {integrity: sha512-oHeis4/xl42HUIeHuNZRGEvxj5AaIKR+bHPNegRq5LV1gdc3jundpONbjglKpihmJf+dswygdMJn3eftGIMemg==} + + unist-util-find-after@5.0.0: + resolution: {integrity: sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==} + + unist-util-is@6.0.1: + resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} + + unist-util-modify-children@4.0.0: + resolution: {integrity: sha512-+tdN5fGNddvsQdIzUF3Xx82CU9sMM+fA0dLgR9vOmT0oPT2jH+P1nd5lSqfCfXAw+93NhcXNY2qqvTUtE4cQkw==} + + unist-util-position@5.0.0: + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} + + unist-util-remove-position@5.0.0: + resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==} + + unist-util-stringify-position@4.0.0: + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} + + unist-util-visit-children@3.0.0: + resolution: {integrity: sha512-RgmdTfSBOg04sdPcpTSD1jzoNBjt9a80/ZCzp5cI9n1qPzLZWF9YdvWGN2zmTumP1HWhXKdUWexjy/Wy/lJ7tA==} + + unist-util-visit-parents@6.0.2: + resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} + + unist-util-visit@5.1.0: + resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} + + unstorage@1.17.5: + resolution: {integrity: sha512-0i3iqvRfx29hkNntHyQvJTpf5W9dQ9ZadSoRU8+xVlhVtT7jAX57fazYO9EHvcRCfBCyi5YRya7XCDOsbTgkPg==} + peerDependencies: + '@azure/app-configuration': ^1.8.0 + '@azure/cosmos': ^4.2.0 + '@azure/data-tables': ^13.3.0 + '@azure/identity': ^4.6.0 + '@azure/keyvault-secrets': ^4.9.0 + '@azure/storage-blob': ^12.26.0 + '@capacitor/preferences': ^6 || ^7 || ^8 + '@deno/kv': '>=0.9.0' + '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0 + '@planetscale/database': ^1.19.0 + '@upstash/redis': ^1.34.3 + '@vercel/blob': '>=0.27.1' + '@vercel/functions': ^2.2.12 || ^3.0.0 + '@vercel/kv': ^1 || ^2 || ^3 + aws4fetch: ^1.0.20 + db0: '>=0.2.1' + idb-keyval: ^6.2.1 + ioredis: ^5.4.2 + uploadthing: ^7.4.4 + peerDependenciesMeta: + '@azure/app-configuration': + optional: true + '@azure/cosmos': + optional: true + '@azure/data-tables': + optional: true + '@azure/identity': + optional: true + '@azure/keyvault-secrets': + optional: true + '@azure/storage-blob': + optional: true + '@capacitor/preferences': + optional: true + '@deno/kv': + optional: true + '@netlify/blobs': + optional: true + '@planetscale/database': + optional: true + '@upstash/redis': + optional: true + '@vercel/blob': + optional: true + '@vercel/functions': + optional: true + '@vercel/kv': + optional: true + aws4fetch: + optional: true + db0: + optional: true + idb-keyval: + optional: true + ioredis: + optional: true + uploadthing: + optional: true + util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -2389,6 +3604,15 @@ packages: resolution: {integrity: sha512-Ck0EJbAGxHwprkzFO966t4/5QkRuzh+/I1RxhLgUKKwEn+Cd8NwM60mE3AqBZg5gYODoXW0EFsQvbZjRlvdqbg==} engines: {node: '>=4'} + vfile-location@5.0.3: + resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==} + + vfile-message@4.0.3: + resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} + + vfile@6.0.3: + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} + vite@7.3.1: resolution: {integrity: sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -2429,20 +3653,29 @@ packages: yaml: optional: true - vitest@4.0.18: - resolution: {integrity: sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ==} - engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + vitefu@1.1.2: + resolution: {integrity: sha512-zpKATdUbzbsycPFBN71nS2uzBUQiVnFoOrr2rvqv34S1lcAgMKKkjWleLGeiJlZ8lwCXvtWaRn7R3ZC16SYRuw==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 + peerDependenciesMeta: + vite: + optional: true + + vitest@4.1.2: + resolution: {integrity: sha512-xjR1dMTVHlFLh98JE3i/f/WePqJsah4A0FK9cc8Ehp9Udk0AZk6ccpIZhh1qJ/yxVWRZ+Q54ocnD8TXmkhspGg==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.0.18 - '@vitest/browser-preview': 4.0.18 - '@vitest/browser-webdriverio': 4.0.18 - '@vitest/ui': 4.0.18 + '@vitest/browser-playwright': 4.1.2 + '@vitest/browser-preview': 4.1.2 + '@vitest/browser-webdriverio': 4.1.2 + '@vitest/ui': 4.1.2 happy-dom: '*' jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: '@edge-runtime/vm': optional: true @@ -2463,6 +3696,13 @@ packages: jsdom: optional: true + web-namespaces@2.0.1: + resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==} + + which-pm-runs@1.1.0: + resolution: {integrity: sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==} + engines: {node: '>=4'} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -2488,6 +3728,9 @@ packages: resolution: {integrity: sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==} engines: {node: '>=18'} + xxhash-wasm@1.1.0: + resolution: {integrity: sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==} + y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -2501,6 +3744,10 @@ packages: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} + yargs-parser@22.0.0: + resolution: {integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==} + engines: {node: ^20.19.0 || ^22.12.0 || >=23} + yargs@17.7.2: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} engines: {node: '>=12'} @@ -2509,19 +3756,89 @@ packages: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} + yocto-queue@1.2.2: + resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==} + engines: {node: '>=12.20'} + zip-stream@6.0.1: resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==} engines: {node: '>= 14'} + zod@4.3.6: + resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==} + + zwitch@2.0.4: + resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} + snapshots: + '@astrojs/compiler@3.0.1': {} + + '@astrojs/internal-helpers@0.8.0': + dependencies: + picomatch: 4.0.4 + + '@astrojs/markdown-remark@7.1.0': + dependencies: + '@astrojs/internal-helpers': 0.8.0 + '@astrojs/prism': 4.0.1 + github-slugger: 2.0.0 + hast-util-from-html: 2.0.3 + hast-util-to-text: 4.0.2 + js-yaml: 4.1.1 + mdast-util-definitions: 6.0.0 + rehype-raw: 7.0.0 + rehype-stringify: 10.0.1 + remark-gfm: 4.0.1 + remark-parse: 11.0.0 + remark-rehype: 11.1.2 + remark-smartypants: 3.0.2 + retext-smartypants: 6.2.0 + shiki: 4.0.2 + smol-toml: 1.6.1 + unified: 11.0.5 + unist-util-remove-position: 5.0.0 + unist-util-visit: 5.1.0 + unist-util-visit-parents: 6.0.2 + vfile: 6.0.3 + transitivePeerDependencies: + - supports-color + + '@astrojs/prism@4.0.1': + dependencies: + prismjs: 1.30.0 + + '@astrojs/sitemap@3.7.2': + dependencies: + sitemap: 9.0.1 + stream-replace-string: 2.0.0 + zod: 4.3.6 + + '@astrojs/telemetry@3.3.0': + dependencies: + ci-info: 4.4.0 + debug: 4.4.3 + dlv: 1.1.3 + dset: 3.1.4 + is-docker: 3.0.0 + is-wsl: 3.1.1 + which-pm-runs: 1.1.0 + transitivePeerDependencies: + - supports-color + + '@aws-cdk/asset-awscli-v1@2.2.263': {} + + '@aws-cdk/asset-node-proxy-agent-v6@2.1.1': {} + + '@aws-cdk/cloud-assembly-schema@53.9.0': {} + '@aws-crypto/sha256-browser@5.2.0': dependencies: '@aws-crypto/sha256-js': 5.2.0 '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 '@aws-sdk/types': 3.973.6 - '@aws-sdk/util-locate-window': 3.965.4 + '@aws-sdk/util-locate-window': 3.965.5 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -2541,21 +3858,21 @@ snapshots: '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 - '@aws-sdk/client-cognito-identity@3.1014.0': + '@aws-sdk/client-cognito-identity@3.1019.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.973.23 - '@aws-sdk/credential-provider-node': 3.972.24 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/credential-provider-node': 3.972.27 '@aws-sdk/middleware-host-header': 3.972.8 '@aws-sdk/middleware-logger': 3.972.8 - '@aws-sdk/middleware-recursion-detection': 3.972.8 - '@aws-sdk/middleware-user-agent': 3.972.24 - '@aws-sdk/region-config-resolver': 3.972.9 + '@aws-sdk/middleware-recursion-detection': 3.972.9 + '@aws-sdk/middleware-user-agent': 3.972.26 + '@aws-sdk/region-config-resolver': 3.972.10 '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.996.5 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.10 + '@aws-sdk/util-user-agent-node': 3.973.12 '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/fetch-http-handler': 5.3.15 @@ -2585,21 +3902,21 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ssm@3.1014.0': + '@aws-sdk/client-ssm@3.1019.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.973.23 - '@aws-sdk/credential-provider-node': 3.972.24 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/credential-provider-node': 3.972.27 '@aws-sdk/middleware-host-header': 3.972.8 '@aws-sdk/middleware-logger': 3.972.8 - '@aws-sdk/middleware-recursion-detection': 3.972.8 - '@aws-sdk/middleware-user-agent': 3.972.24 - '@aws-sdk/region-config-resolver': 3.972.9 + '@aws-sdk/middleware-recursion-detection': 3.972.9 + '@aws-sdk/middleware-user-agent': 3.972.26 + '@aws-sdk/region-config-resolver': 3.972.10 '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.996.5 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.10 + '@aws-sdk/util-user-agent-node': 3.973.12 '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/fetch-http-handler': 5.3.15 @@ -2630,10 +3947,10 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/core@3.973.23': + '@aws-sdk/core@3.973.25': dependencies: '@aws-sdk/types': 3.973.6 - '@aws-sdk/xml-builder': 3.972.15 + '@aws-sdk/xml-builder': 3.972.16 '@smithy/core': 3.23.12 '@smithy/node-config-provider': 4.3.12 '@smithy/property-provider': 4.2.12 @@ -2646,9 +3963,9 @@ snapshots: '@smithy/util-utf8': 4.2.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-cognito-identity@3.972.16': + '@aws-sdk/credential-provider-cognito-identity@3.972.19': dependencies: - '@aws-sdk/nested-clients': 3.996.13 + '@aws-sdk/nested-clients': 3.996.16 '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/types': 4.13.1 @@ -2656,17 +3973,17 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-env@3.972.21': + '@aws-sdk/credential-provider-env@3.972.23': dependencies: - '@aws-sdk/core': 3.973.23 + '@aws-sdk/core': 3.973.25 '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/credential-provider-http@3.972.23': + '@aws-sdk/credential-provider-http@3.972.25': dependencies: - '@aws-sdk/core': 3.973.23 + '@aws-sdk/core': 3.973.25 '@aws-sdk/types': 3.973.6 '@smithy/fetch-http-handler': 5.3.15 '@smithy/node-http-handler': 4.5.0 @@ -2677,16 +3994,16 @@ snapshots: '@smithy/util-stream': 4.5.20 tslib: 2.8.1 - '@aws-sdk/credential-provider-ini@3.972.23': + '@aws-sdk/credential-provider-ini@3.972.26': dependencies: - '@aws-sdk/core': 3.973.23 - '@aws-sdk/credential-provider-env': 3.972.21 - '@aws-sdk/credential-provider-http': 3.972.23 - '@aws-sdk/credential-provider-login': 3.972.23 - '@aws-sdk/credential-provider-process': 3.972.21 - '@aws-sdk/credential-provider-sso': 3.972.23 - '@aws-sdk/credential-provider-web-identity': 3.972.23 - '@aws-sdk/nested-clients': 3.996.13 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/credential-provider-env': 3.972.23 + '@aws-sdk/credential-provider-http': 3.972.25 + '@aws-sdk/credential-provider-login': 3.972.26 + '@aws-sdk/credential-provider-process': 3.972.23 + '@aws-sdk/credential-provider-sso': 3.972.26 + '@aws-sdk/credential-provider-web-identity': 3.972.26 + '@aws-sdk/nested-clients': 3.996.16 '@aws-sdk/types': 3.973.6 '@smithy/credential-provider-imds': 4.2.12 '@smithy/property-provider': 4.2.12 @@ -2696,10 +4013,10 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-login@3.972.23': + '@aws-sdk/credential-provider-login@3.972.26': dependencies: - '@aws-sdk/core': 3.973.23 - '@aws-sdk/nested-clients': 3.996.13 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/nested-clients': 3.996.16 '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/protocol-http': 5.3.12 @@ -2709,14 +4026,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-node@3.972.24': + '@aws-sdk/credential-provider-node@3.972.27': dependencies: - '@aws-sdk/credential-provider-env': 3.972.21 - '@aws-sdk/credential-provider-http': 3.972.23 - '@aws-sdk/credential-provider-ini': 3.972.23 - '@aws-sdk/credential-provider-process': 3.972.21 - '@aws-sdk/credential-provider-sso': 3.972.23 - '@aws-sdk/credential-provider-web-identity': 3.972.23 + '@aws-sdk/credential-provider-env': 3.972.23 + '@aws-sdk/credential-provider-http': 3.972.25 + '@aws-sdk/credential-provider-ini': 3.972.26 + '@aws-sdk/credential-provider-process': 3.972.23 + '@aws-sdk/credential-provider-sso': 3.972.26 + '@aws-sdk/credential-provider-web-identity': 3.972.26 '@aws-sdk/types': 3.973.6 '@smithy/credential-provider-imds': 4.2.12 '@smithy/property-provider': 4.2.12 @@ -2726,20 +4043,20 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-process@3.972.21': + '@aws-sdk/credential-provider-process@3.972.23': dependencies: - '@aws-sdk/core': 3.973.23 + '@aws-sdk/core': 3.973.25 '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/shared-ini-file-loader': 4.4.7 '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.972.23': + '@aws-sdk/credential-provider-sso@3.972.26': dependencies: - '@aws-sdk/core': 3.973.23 - '@aws-sdk/nested-clients': 3.996.13 - '@aws-sdk/token-providers': 3.1014.0 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/nested-clients': 3.996.16 + '@aws-sdk/token-providers': 3.1019.0 '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/shared-ini-file-loader': 4.4.7 @@ -2748,10 +4065,10 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-web-identity@3.972.23': + '@aws-sdk/credential-provider-web-identity@3.972.26': dependencies: - '@aws-sdk/core': 3.973.23 - '@aws-sdk/nested-clients': 3.996.13 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/nested-clients': 3.996.16 '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/shared-ini-file-loader': 4.4.7 @@ -2760,20 +4077,20 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-providers@3.1014.0': - dependencies: - '@aws-sdk/client-cognito-identity': 3.1014.0 - '@aws-sdk/core': 3.973.23 - '@aws-sdk/credential-provider-cognito-identity': 3.972.16 - '@aws-sdk/credential-provider-env': 3.972.21 - '@aws-sdk/credential-provider-http': 3.972.23 - '@aws-sdk/credential-provider-ini': 3.972.23 - '@aws-sdk/credential-provider-login': 3.972.23 - '@aws-sdk/credential-provider-node': 3.972.24 - '@aws-sdk/credential-provider-process': 3.972.21 - '@aws-sdk/credential-provider-sso': 3.972.23 - '@aws-sdk/credential-provider-web-identity': 3.972.23 - '@aws-sdk/nested-clients': 3.996.13 + '@aws-sdk/credential-providers@3.1019.0': + dependencies: + '@aws-sdk/client-cognito-identity': 3.1019.0 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/credential-provider-cognito-identity': 3.972.19 + '@aws-sdk/credential-provider-env': 3.972.23 + '@aws-sdk/credential-provider-http': 3.972.25 + '@aws-sdk/credential-provider-ini': 3.972.26 + '@aws-sdk/credential-provider-login': 3.972.26 + '@aws-sdk/credential-provider-node': 3.972.27 + '@aws-sdk/credential-provider-process': 3.972.23 + '@aws-sdk/credential-provider-sso': 3.972.26 + '@aws-sdk/credential-provider-web-identity': 3.972.26 + '@aws-sdk/nested-clients': 3.996.16 '@aws-sdk/types': 3.973.6 '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 @@ -2798,17 +4115,17 @@ snapshots: '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/middleware-recursion-detection@3.972.8': + '@aws-sdk/middleware-recursion-detection@3.972.9': dependencies: '@aws-sdk/types': 3.973.6 - '@aws/lambda-invoke-store': 0.2.3 + '@aws/lambda-invoke-store': 0.2.4 '@smithy/protocol-http': 5.3.12 '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/middleware-user-agent@3.972.24': + '@aws-sdk/middleware-user-agent@3.972.26': dependencies: - '@aws-sdk/core': 3.973.23 + '@aws-sdk/core': 3.973.25 '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.996.5 '@smithy/core': 3.23.12 @@ -2817,20 +4134,20 @@ snapshots: '@smithy/util-retry': 4.2.12 tslib: 2.8.1 - '@aws-sdk/nested-clients@3.996.13': + '@aws-sdk/nested-clients@3.996.16': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.973.23 + '@aws-sdk/core': 3.973.25 '@aws-sdk/middleware-host-header': 3.972.8 '@aws-sdk/middleware-logger': 3.972.8 - '@aws-sdk/middleware-recursion-detection': 3.972.8 - '@aws-sdk/middleware-user-agent': 3.972.24 - '@aws-sdk/region-config-resolver': 3.972.9 + '@aws-sdk/middleware-recursion-detection': 3.972.9 + '@aws-sdk/middleware-user-agent': 3.972.26 + '@aws-sdk/region-config-resolver': 3.972.10 '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.996.5 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.10 + '@aws-sdk/util-user-agent-node': 3.973.12 '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/fetch-http-handler': 5.3.15 @@ -2860,7 +4177,7 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/region-config-resolver@3.972.9': + '@aws-sdk/region-config-resolver@3.972.10': dependencies: '@aws-sdk/types': 3.973.6 '@smithy/config-resolver': 4.4.13 @@ -2868,10 +4185,10 @@ snapshots: '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/token-providers@3.1014.0': + '@aws-sdk/token-providers@3.1019.0': dependencies: - '@aws-sdk/core': 3.973.23 - '@aws-sdk/nested-clients': 3.996.13 + '@aws-sdk/core': 3.973.25 + '@aws-sdk/nested-clients': 3.996.16 '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/shared-ini-file-loader': 4.4.7 @@ -2893,7 +4210,7 @@ snapshots: '@smithy/util-endpoints': 3.3.3 tslib: 2.8.1 - '@aws-sdk/util-locate-window@3.965.4': + '@aws-sdk/util-locate-window@3.965.5': dependencies: tslib: 2.8.1 @@ -2904,22 +4221,22 @@ snapshots: bowser: 2.14.1 tslib: 2.8.1 - '@aws-sdk/util-user-agent-node@3.973.10': + '@aws-sdk/util-user-agent-node@3.973.12': dependencies: - '@aws-sdk/middleware-user-agent': 3.972.24 + '@aws-sdk/middleware-user-agent': 3.972.26 '@aws-sdk/types': 3.973.6 '@smithy/node-config-provider': 4.3.12 '@smithy/types': 4.13.1 '@smithy/util-config-provider': 4.2.2 tslib: 2.8.1 - '@aws-sdk/xml-builder@3.972.15': + '@aws-sdk/xml-builder@3.972.16': dependencies: '@smithy/types': 4.13.1 fast-xml-parser: 5.5.8 tslib: 2.8.1 - '@aws/lambda-invoke-store@0.2.3': {} + '@aws/lambda-invoke-store@0.2.4': {} '@azu/format-text@1.0.2': {} @@ -2931,7 +4248,7 @@ snapshots: dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.10.1 - '@azure/core-rest-pipeline': 1.22.2 + '@azure/core-rest-pipeline': 1.23.0 '@azure/core-tracing': 1.3.1 '@typespec/ts-http-runtime': 0.3.3 tslib: 2.8.1 @@ -2954,7 +4271,7 @@ snapshots: dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.10.1 - '@azure/core-rest-pipeline': 1.22.2 + '@azure/core-rest-pipeline': 1.23.0 '@azure/core-tracing': 1.3.1 '@azure/core-util': 1.13.1 '@azure/logger': 1.3.0 @@ -2962,11 +4279,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@azure/core-http-compat@2.3.2(@azure/core-client@1.10.1)(@azure/core-rest-pipeline@1.22.2)': + '@azure/core-http-compat@2.3.2(@azure/core-client@1.10.1)(@azure/core-rest-pipeline@1.23.0)': dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-client': 1.10.1 - '@azure/core-rest-pipeline': 1.22.2 + '@azure/core-rest-pipeline': 1.23.0 '@azure/core-lro@2.7.2': dependencies: @@ -2981,14 +4298,14 @@ snapshots: dependencies: tslib: 2.8.1 - '@azure/core-rest-pipeline@1.22.2': + '@azure/core-rest-pipeline@1.23.0': dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.10.1 '@azure/core-tracing': 1.3.1 '@azure/core-util': 1.13.1 '@azure/logger': 1.3.0 - '@typespec/ts-http-runtime': 0.3.3 + '@typespec/ts-http-runtime': 0.3.4 tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -3005,17 +4322,17 @@ snapshots: transitivePeerDependencies: - supports-color - '@azure/identity@4.13.0': + '@azure/identity@4.13.1': dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.10.1 '@azure/core-client': 1.10.1 - '@azure/core-rest-pipeline': 1.22.2 + '@azure/core-rest-pipeline': 1.23.0 '@azure/core-tracing': 1.3.1 '@azure/core-util': 1.13.1 '@azure/logger': 1.3.0 - '@azure/msal-browser': 4.29.0 - '@azure/msal-node': 3.8.8 + '@azure/msal-browser': 5.6.2 + '@azure/msal-node': 5.1.1 open: 10.2.0 tslib: 2.8.1 transitivePeerDependencies: @@ -3026,7 +4343,7 @@ snapshots: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.10.1 '@azure/core-client': 1.10.1 - '@azure/core-rest-pipeline': 1.22.2 + '@azure/core-rest-pipeline': 1.23.0 '@azure/core-tracing': 1.3.1 '@azure/core-util': 1.13.1 '@azure/logger': 1.3.0 @@ -3039,10 +4356,10 @@ snapshots: '@azure-rest/core-client': 2.5.1 '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.10.1 - '@azure/core-http-compat': 2.3.2(@azure/core-client@1.10.1)(@azure/core-rest-pipeline@1.22.2) + '@azure/core-http-compat': 2.3.2(@azure/core-client@1.10.1)(@azure/core-rest-pipeline@1.23.0) '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.22.2 + '@azure/core-rest-pipeline': 1.23.0 '@azure/core-tracing': 1.3.1 '@azure/core-util': 1.13.1 '@azure/keyvault-common': 2.0.0 @@ -3059,15 +4376,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@azure/msal-browser@4.29.0': + '@azure/msal-browser@5.6.2': dependencies: - '@azure/msal-common': 15.15.0 + '@azure/msal-common': 16.4.0 - '@azure/msal-common@15.15.0': {} + '@azure/msal-common@16.4.0': {} - '@azure/msal-node@3.8.8': + '@azure/msal-node@5.1.1': dependencies: - '@azure/msal-common': 15.15.0 + '@azure/msal-common': 16.4.0 jsonwebtoken: 9.0.3 uuid: 8.3.2 @@ -3094,67 +4411,82 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@biomejs/biome@2.4.5': + '@biomejs/biome@2.4.9': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.4.5 - '@biomejs/cli-darwin-x64': 2.4.5 - '@biomejs/cli-linux-arm64': 2.4.5 - '@biomejs/cli-linux-arm64-musl': 2.4.5 - '@biomejs/cli-linux-x64': 2.4.5 - '@biomejs/cli-linux-x64-musl': 2.4.5 - '@biomejs/cli-win32-arm64': 2.4.5 - '@biomejs/cli-win32-x64': 2.4.5 - - '@biomejs/cli-darwin-arm64@2.4.5': + '@biomejs/cli-darwin-arm64': 2.4.9 + '@biomejs/cli-darwin-x64': 2.4.9 + '@biomejs/cli-linux-arm64': 2.4.9 + '@biomejs/cli-linux-arm64-musl': 2.4.9 + '@biomejs/cli-linux-x64': 2.4.9 + '@biomejs/cli-linux-x64-musl': 2.4.9 + '@biomejs/cli-win32-arm64': 2.4.9 + '@biomejs/cli-win32-x64': 2.4.9 + + '@biomejs/cli-darwin-arm64@2.4.9': optional: true - '@biomejs/cli-darwin-x64@2.4.5': + '@biomejs/cli-darwin-x64@2.4.9': optional: true - '@biomejs/cli-linux-arm64-musl@2.4.5': + '@biomejs/cli-linux-arm64-musl@2.4.9': optional: true - '@biomejs/cli-linux-arm64@2.4.5': + '@biomejs/cli-linux-arm64@2.4.9': optional: true - '@biomejs/cli-linux-x64-musl@2.4.5': + '@biomejs/cli-linux-x64-musl@2.4.9': optional: true - '@biomejs/cli-linux-x64@2.4.5': + '@biomejs/cli-linux-x64@2.4.9': optional: true - '@biomejs/cli-win32-arm64@2.4.5': + '@biomejs/cli-win32-arm64@2.4.9': optional: true - '@biomejs/cli-win32-x64@2.4.5': + '@biomejs/cli-win32-x64@2.4.9': optional: true - '@commitlint/cli@20.4.3(@types/node@25.3.3)(typescript@5.9.3)': + '@capsizecss/unpack@4.0.0': + dependencies: + fontkitten: 1.0.3 + + '@clack/core@1.1.0': + dependencies: + sisteransi: 1.0.5 + + '@clack/prompts@1.1.0': + dependencies: + '@clack/core': 1.1.0 + sisteransi: 1.0.5 + + '@commitlint/cli@20.5.0(@types/node@25.5.0)(conventional-commits-parser@6.3.0)(typescript@6.0.2)': dependencies: - '@commitlint/format': 20.4.3 - '@commitlint/lint': 20.4.3 - '@commitlint/load': 20.4.3(@types/node@25.3.3)(typescript@5.9.3) - '@commitlint/read': 20.4.3 - '@commitlint/types': 20.4.3 - tinyexec: 1.0.2 + '@commitlint/format': 20.5.0 + '@commitlint/lint': 20.5.0 + '@commitlint/load': 20.5.0(@types/node@25.5.0)(typescript@6.0.2) + '@commitlint/read': 20.5.0(conventional-commits-parser@6.3.0) + '@commitlint/types': 20.5.0 + tinyexec: 1.0.4 yargs: 17.7.2 transitivePeerDependencies: - '@types/node' + - conventional-commits-filter + - conventional-commits-parser - typescript - '@commitlint/config-conventional@20.4.3': + '@commitlint/config-conventional@20.5.0': dependencies: - '@commitlint/types': 20.4.3 + '@commitlint/types': 20.5.0 conventional-changelog-conventionalcommits: 9.3.0 - '@commitlint/config-validator@20.4.3': + '@commitlint/config-validator@20.5.0': dependencies: - '@commitlint/types': 20.4.3 + '@commitlint/types': 20.5.0 ajv: 8.18.0 - '@commitlint/ensure@20.4.3': + '@commitlint/ensure@20.5.0': dependencies: - '@commitlint/types': 20.4.3 + '@commitlint/types': 20.5.0 lodash.camelcase: 4.3.0 lodash.kebabcase: 4.1.1 lodash.snakecase: 4.1.1 @@ -3163,31 +4495,31 @@ snapshots: '@commitlint/execute-rule@20.0.0': {} - '@commitlint/format@20.4.3': + '@commitlint/format@20.5.0': dependencies: - '@commitlint/types': 20.4.3 + '@commitlint/types': 20.5.0 picocolors: 1.1.1 - '@commitlint/is-ignored@20.4.3': + '@commitlint/is-ignored@20.5.0': dependencies: - '@commitlint/types': 20.4.3 + '@commitlint/types': 20.5.0 semver: 7.7.4 - '@commitlint/lint@20.4.3': + '@commitlint/lint@20.5.0': dependencies: - '@commitlint/is-ignored': 20.4.3 - '@commitlint/parse': 20.4.3 - '@commitlint/rules': 20.4.3 - '@commitlint/types': 20.4.3 + '@commitlint/is-ignored': 20.5.0 + '@commitlint/parse': 20.5.0 + '@commitlint/rules': 20.5.0 + '@commitlint/types': 20.5.0 - '@commitlint/load@20.4.3(@types/node@25.3.3)(typescript@5.9.3)': + '@commitlint/load@20.5.0(@types/node@25.5.0)(typescript@6.0.2)': dependencies: - '@commitlint/config-validator': 20.4.3 + '@commitlint/config-validator': 20.5.0 '@commitlint/execute-rule': 20.0.0 - '@commitlint/resolve-extends': 20.4.3 - '@commitlint/types': 20.4.3 - cosmiconfig: 9.0.1(typescript@5.9.3) - cosmiconfig-typescript-loader: 6.2.0(@types/node@25.3.3)(cosmiconfig@9.0.1(typescript@5.9.3))(typescript@5.9.3) + '@commitlint/resolve-extends': 20.5.0 + '@commitlint/types': 20.5.0 + cosmiconfig: 9.0.1(typescript@6.0.2) + cosmiconfig-typescript-loader: 6.2.0(@types/node@25.5.0)(cosmiconfig@9.0.1(typescript@6.0.2))(typescript@6.0.2) is-plain-obj: 4.1.0 lodash.mergewith: 4.6.2 picocolors: 1.1.1 @@ -3197,35 +4529,38 @@ snapshots: '@commitlint/message@20.4.3': {} - '@commitlint/parse@20.4.3': + '@commitlint/parse@20.5.0': dependencies: - '@commitlint/types': 20.4.3 + '@commitlint/types': 20.5.0 conventional-changelog-angular: 8.3.0 conventional-commits-parser: 6.3.0 - '@commitlint/read@20.4.3': + '@commitlint/read@20.5.0(conventional-commits-parser@6.3.0)': dependencies: '@commitlint/top-level': 20.4.3 - '@commitlint/types': 20.4.3 - git-raw-commits: 4.0.0 + '@commitlint/types': 20.5.0 + git-raw-commits: 5.0.1(conventional-commits-parser@6.3.0) minimist: 1.2.8 - tinyexec: 1.0.2 + tinyexec: 1.0.4 + transitivePeerDependencies: + - conventional-commits-filter + - conventional-commits-parser - '@commitlint/resolve-extends@20.4.3': + '@commitlint/resolve-extends@20.5.0': dependencies: - '@commitlint/config-validator': 20.4.3 - '@commitlint/types': 20.4.3 + '@commitlint/config-validator': 20.5.0 + '@commitlint/types': 20.5.0 global-directory: 4.0.1 import-meta-resolve: 4.2.0 lodash.mergewith: 4.6.2 resolve-from: 5.0.0 - '@commitlint/rules@20.4.3': + '@commitlint/rules@20.5.0': dependencies: - '@commitlint/ensure': 20.4.3 + '@commitlint/ensure': 20.5.0 '@commitlint/message': 20.4.3 '@commitlint/to-lines': 20.0.0 - '@commitlint/types': 20.4.3 + '@commitlint/types': 20.5.0 '@commitlint/to-lines@20.0.0': {} @@ -3233,93 +4568,184 @@ snapshots: dependencies: escalade: 3.2.0 - '@commitlint/types@20.4.3': + '@commitlint/types@20.5.0': dependencies: conventional-commits-parser: 6.3.0 picocolors: 1.1.1 + '@conventional-changelog/git-client@2.6.0(conventional-commits-parser@6.3.0)': + dependencies: + '@simple-libs/child-process-utils': 1.0.2 + '@simple-libs/stream-utils': 1.2.0 + semver: 7.7.4 + optionalDependencies: + conventional-commits-parser: 6.3.0 + '@cspotcode/source-map-support@0.8.1': dependencies: '@jridgewell/trace-mapping': 0.3.9 + '@emnapi/runtime@1.9.1': + dependencies: + tslib: 2.8.1 + optional: true + '@esbuild/aix-ppc64@0.27.3': optional: true + '@esbuild/aix-ppc64@0.27.4': + optional: true + '@esbuild/android-arm64@0.27.3': optional: true + '@esbuild/android-arm64@0.27.4': + optional: true + '@esbuild/android-arm@0.27.3': optional: true + '@esbuild/android-arm@0.27.4': + optional: true + '@esbuild/android-x64@0.27.3': optional: true + '@esbuild/android-x64@0.27.4': + optional: true + '@esbuild/darwin-arm64@0.27.3': optional: true + '@esbuild/darwin-arm64@0.27.4': + optional: true + '@esbuild/darwin-x64@0.27.3': optional: true + '@esbuild/darwin-x64@0.27.4': + optional: true + '@esbuild/freebsd-arm64@0.27.3': optional: true + '@esbuild/freebsd-arm64@0.27.4': + optional: true + '@esbuild/freebsd-x64@0.27.3': optional: true + '@esbuild/freebsd-x64@0.27.4': + optional: true + '@esbuild/linux-arm64@0.27.3': optional: true + '@esbuild/linux-arm64@0.27.4': + optional: true + '@esbuild/linux-arm@0.27.3': optional: true + '@esbuild/linux-arm@0.27.4': + optional: true + '@esbuild/linux-ia32@0.27.3': optional: true + '@esbuild/linux-ia32@0.27.4': + optional: true + '@esbuild/linux-loong64@0.27.3': optional: true + '@esbuild/linux-loong64@0.27.4': + optional: true + '@esbuild/linux-mips64el@0.27.3': optional: true + '@esbuild/linux-mips64el@0.27.4': + optional: true + '@esbuild/linux-ppc64@0.27.3': optional: true + '@esbuild/linux-ppc64@0.27.4': + optional: true + '@esbuild/linux-riscv64@0.27.3': optional: true + '@esbuild/linux-riscv64@0.27.4': + optional: true + '@esbuild/linux-s390x@0.27.3': optional: true + '@esbuild/linux-s390x@0.27.4': + optional: true + '@esbuild/linux-x64@0.27.3': optional: true + '@esbuild/linux-x64@0.27.4': + optional: true + '@esbuild/netbsd-arm64@0.27.3': optional: true + '@esbuild/netbsd-arm64@0.27.4': + optional: true + '@esbuild/netbsd-x64@0.27.3': optional: true + '@esbuild/netbsd-x64@0.27.4': + optional: true + '@esbuild/openbsd-arm64@0.27.3': optional: true + '@esbuild/openbsd-arm64@0.27.4': + optional: true + '@esbuild/openbsd-x64@0.27.3': optional: true + '@esbuild/openbsd-x64@0.27.4': + optional: true + '@esbuild/openharmony-arm64@0.27.3': optional: true + '@esbuild/openharmony-arm64@0.27.4': + optional: true + '@esbuild/sunos-x64@0.27.3': optional: true + '@esbuild/sunos-x64@0.27.4': + optional: true + '@esbuild/win32-arm64@0.27.3': optional: true + '@esbuild/win32-arm64@0.27.4': + optional: true + '@esbuild/win32-ia32@0.27.3': optional: true + '@esbuild/win32-ia32@0.27.4': + optional: true + '@esbuild/win32-x64@0.27.3': optional: true + '@esbuild/win32-x64@0.27.4': + optional: true + '@grpc/grpc-js@1.14.3': dependencies: '@grpc/proto-loader': 0.8.0 @@ -3339,31 +4765,128 @@ snapshots: protobufjs: 7.5.4 yargs: 17.7.2 - '@inversifyjs/common@1.5.2': {} + '@img/colour@1.1.0': + optional: true + + '@img/sharp-darwin-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.2.4 + optional: true + + '@img/sharp-darwin-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.2.4 + optional: true + + '@img/sharp-libvips-darwin-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-darwin-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm@1.2.4': + optional: true + + '@img/sharp-libvips-linux-ppc64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-riscv64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-s390x@1.2.4': + optional: true + + '@img/sharp-libvips-linux-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + optional: true + + '@img/sharp-linux-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.2.4 + optional: true + + '@img/sharp-linux-arm@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.2.4 + optional: true + + '@img/sharp-linux-ppc64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-ppc64': 1.2.4 + optional: true + + '@img/sharp-linux-riscv64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-riscv64': 1.2.4 + optional: true + + '@img/sharp-linux-s390x@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.2.4 + optional: true + + '@img/sharp-linux-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + optional: true + + '@img/sharp-wasm32@0.34.5': + dependencies: + '@emnapi/runtime': 1.9.1 + optional: true + + '@img/sharp-win32-arm64@0.34.5': + optional: true + + '@img/sharp-win32-ia32@0.34.5': + optional: true + + '@img/sharp-win32-x64@0.34.5': + optional: true - '@inversifyjs/container@1.15.0(reflect-metadata@0.2.2)': + '@inversifyjs/common@2.0.1': {} + + '@inversifyjs/container@2.0.1(reflect-metadata@0.2.2)': dependencies: - '@inversifyjs/common': 1.5.2 - '@inversifyjs/core': 9.2.0(reflect-metadata@0.2.2) - '@inversifyjs/plugin': 0.2.0 - '@inversifyjs/reflect-metadata-utils': 1.4.1(reflect-metadata@0.2.2) + '@inversifyjs/common': 2.0.1 + '@inversifyjs/core': 10.0.1(reflect-metadata@0.2.2) + '@inversifyjs/plugin': 0.3.1 + '@inversifyjs/reflect-metadata-utils': 1.5.0(reflect-metadata@0.2.2) reflect-metadata: 0.2.2 - '@inversifyjs/core@9.2.0(reflect-metadata@0.2.2)': + '@inversifyjs/core@10.0.1(reflect-metadata@0.2.2)': dependencies: - '@inversifyjs/common': 1.5.2 - '@inversifyjs/prototype-utils': 0.1.3 - '@inversifyjs/reflect-metadata-utils': 1.4.1(reflect-metadata@0.2.2) + '@inversifyjs/common': 2.0.1 + '@inversifyjs/prototype-utils': 0.2.1 + '@inversifyjs/reflect-metadata-utils': 1.5.0(reflect-metadata@0.2.2) transitivePeerDependencies: - reflect-metadata - '@inversifyjs/plugin@0.2.0': {} + '@inversifyjs/plugin@0.3.1': {} - '@inversifyjs/prototype-utils@0.1.3': + '@inversifyjs/prototype-utils@0.2.1': dependencies: - '@inversifyjs/common': 1.5.2 + '@inversifyjs/common': 2.0.1 - '@inversifyjs/reflect-metadata-utils@1.4.1(reflect-metadata@0.2.2)': + '@inversifyjs/reflect-metadata-utils@1.5.0(reflect-metadata@0.2.2)': dependencies: reflect-metadata: 0.2.2 @@ -3410,6 +4933,8 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 + '@oslojs/encoding@1.1.0': {} + '@pkgjs/parseargs@0.11.0': optional: true @@ -3436,109 +4961,117 @@ snapshots: '@protobufjs/utf8@1.1.0': {} - '@rollup/rollup-android-arm-eabi@4.59.0': + '@rollup/pluginutils@5.3.0(rollup@4.60.0)': + dependencies: + '@types/estree': 1.0.8 + estree-walker: 2.0.2 + picomatch: 4.0.4 + optionalDependencies: + rollup: 4.60.0 + + '@rollup/rollup-android-arm-eabi@4.60.0': optional: true - '@rollup/rollup-android-arm64@4.59.0': + '@rollup/rollup-android-arm64@4.60.0': optional: true - '@rollup/rollup-darwin-arm64@4.59.0': + '@rollup/rollup-darwin-arm64@4.60.0': optional: true - '@rollup/rollup-darwin-x64@4.59.0': + '@rollup/rollup-darwin-x64@4.60.0': optional: true - '@rollup/rollup-freebsd-arm64@4.59.0': + '@rollup/rollup-freebsd-arm64@4.60.0': optional: true - '@rollup/rollup-freebsd-x64@4.59.0': + '@rollup/rollup-freebsd-x64@4.60.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.59.0': + '@rollup/rollup-linux-arm-gnueabihf@4.60.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.59.0': + '@rollup/rollup-linux-arm-musleabihf@4.60.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.59.0': + '@rollup/rollup-linux-arm64-gnu@4.60.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.59.0': + '@rollup/rollup-linux-arm64-musl@4.60.0': optional: true - '@rollup/rollup-linux-loong64-gnu@4.59.0': + '@rollup/rollup-linux-loong64-gnu@4.60.0': optional: true - '@rollup/rollup-linux-loong64-musl@4.59.0': + '@rollup/rollup-linux-loong64-musl@4.60.0': optional: true - '@rollup/rollup-linux-ppc64-gnu@4.59.0': + '@rollup/rollup-linux-ppc64-gnu@4.60.0': optional: true - '@rollup/rollup-linux-ppc64-musl@4.59.0': + '@rollup/rollup-linux-ppc64-musl@4.60.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.59.0': + '@rollup/rollup-linux-riscv64-gnu@4.60.0': optional: true - '@rollup/rollup-linux-riscv64-musl@4.59.0': + '@rollup/rollup-linux-riscv64-musl@4.60.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.59.0': + '@rollup/rollup-linux-s390x-gnu@4.60.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.59.0': + '@rollup/rollup-linux-x64-gnu@4.60.0': optional: true - '@rollup/rollup-linux-x64-musl@4.59.0': + '@rollup/rollup-linux-x64-musl@4.60.0': optional: true - '@rollup/rollup-openbsd-x64@4.59.0': + '@rollup/rollup-openbsd-x64@4.60.0': optional: true - '@rollup/rollup-openharmony-arm64@4.59.0': + '@rollup/rollup-openharmony-arm64@4.60.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.59.0': + '@rollup/rollup-win32-arm64-msvc@4.60.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.59.0': + '@rollup/rollup-win32-ia32-msvc@4.60.0': optional: true - '@rollup/rollup-win32-x64-gnu@4.59.0': + '@rollup/rollup-win32-x64-gnu@4.60.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.59.0': + '@rollup/rollup-win32-x64-msvc@4.60.0': optional: true - '@secretlint/config-creator@11.3.1': + '@secretlint/config-creator@11.4.0': dependencies: - '@secretlint/types': 11.3.1 + '@secretlint/types': 11.4.0 - '@secretlint/config-loader@11.3.1': + '@secretlint/config-loader@11.4.0': dependencies: - '@secretlint/profiler': 11.3.1 - '@secretlint/resolver': 11.3.1 - '@secretlint/types': 11.3.1 + '@secretlint/profiler': 11.4.0 + '@secretlint/resolver': 11.4.0 + '@secretlint/types': 11.4.0 ajv: 8.18.0 debug: 4.4.3 rc-config-loader: 4.1.4 transitivePeerDependencies: - supports-color - '@secretlint/core@11.3.1': + '@secretlint/core@11.4.0': dependencies: - '@secretlint/profiler': 11.3.1 - '@secretlint/types': 11.3.1 + '@secretlint/profiler': 11.4.0 + '@secretlint/types': 11.4.0 debug: 4.4.3 structured-source: 4.0.0 transitivePeerDependencies: - supports-color - '@secretlint/formatter@11.3.1': + '@secretlint/formatter@11.4.0': dependencies: - '@secretlint/resolver': 11.3.1 - '@secretlint/types': 11.3.1 + '@secretlint/resolver': 11.4.0 + '@secretlint/types': 11.4.0 '@textlint/linter-formatter': 15.5.2 '@textlint/module-interop': 15.5.2 '@textlint/types': 15.5.2 @@ -3551,31 +5084,75 @@ snapshots: transitivePeerDependencies: - supports-color - '@secretlint/node@11.3.1': + '@secretlint/node@11.4.0': dependencies: - '@secretlint/config-loader': 11.3.1 - '@secretlint/core': 11.3.1 - '@secretlint/formatter': 11.3.1 - '@secretlint/profiler': 11.3.1 - '@secretlint/source-creator': 11.3.1 - '@secretlint/types': 11.3.1 + '@secretlint/config-loader': 11.4.0 + '@secretlint/core': 11.4.0 + '@secretlint/formatter': 11.4.0 + '@secretlint/profiler': 11.4.0 + '@secretlint/source-creator': 11.4.0 + '@secretlint/types': 11.4.0 debug: 4.4.3 p-map: 7.0.4 transitivePeerDependencies: - supports-color - '@secretlint/profiler@11.3.1': {} + '@secretlint/profiler@11.4.0': {} - '@secretlint/resolver@11.3.1': {} + '@secretlint/resolver@11.4.0': {} - '@secretlint/secretlint-rule-preset-recommend@11.3.1': {} + '@secretlint/secretlint-rule-preset-recommend@11.4.0': {} - '@secretlint/source-creator@11.3.1': + '@secretlint/source-creator@11.4.0': dependencies: - '@secretlint/types': 11.3.1 + '@secretlint/types': 11.4.0 istextorbinary: 9.5.0 - '@secretlint/types@11.3.1': {} + '@secretlint/types@11.4.0': {} + + '@shikijs/core@4.0.2': + dependencies: + '@shikijs/primitive': 4.0.2 + '@shikijs/types': 4.0.2 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.4 + hast-util-to-html: 9.0.5 + + '@shikijs/engine-javascript@4.0.2': + dependencies: + '@shikijs/types': 4.0.2 + '@shikijs/vscode-textmate': 10.0.2 + oniguruma-to-es: 4.3.5 + + '@shikijs/engine-oniguruma@4.0.2': + dependencies: + '@shikijs/types': 4.0.2 + '@shikijs/vscode-textmate': 10.0.2 + + '@shikijs/langs@4.0.2': + dependencies: + '@shikijs/types': 4.0.2 + + '@shikijs/primitive@4.0.2': + dependencies: + '@shikijs/types': 4.0.2 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.4 + + '@shikijs/themes@4.0.2': + dependencies: + '@shikijs/types': 4.0.2 + + '@shikijs/types@4.0.2': + dependencies: + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.4 + + '@shikijs/vscode-textmate@10.0.2': {} + + '@simple-libs/child-process-utils@1.0.2': + dependencies: + '@simple-libs/stream-utils': 1.2.0 '@simple-libs/stream-utils@1.2.0': {} @@ -3864,9 +5441,9 @@ snapshots: '@standard-schema/spec@1.1.0': {} - '@testcontainers/localstack@11.12.0': + '@testcontainers/localstack@11.13.0': dependencies: - testcontainers: 11.12.0 + testcontainers: 11.13.0 transitivePeerDependencies: - bare-abort-controller - bare-buffer @@ -3915,44 +5492,72 @@ snapshots: '@types/deep-eql': 4.0.2 assertion-error: 2.0.1 + '@types/debug@4.1.13': + dependencies: + '@types/ms': 2.1.0 + '@types/deep-eql@4.0.2': {} '@types/docker-modem@3.0.6': dependencies: - '@types/node': 25.3.3 + '@types/node': 25.5.0 '@types/ssh2': 1.15.5 '@types/dockerode@4.0.1': dependencies: '@types/docker-modem': 3.0.6 - '@types/node': 25.3.3 + '@types/node': 25.5.0 '@types/ssh2': 1.15.5 '@types/estree@1.0.8': {} + '@types/hast@3.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/mdast@4.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/ms@2.1.0': {} + + '@types/nlcst@2.0.3': + dependencies: + '@types/unist': 3.0.3 + '@types/node@18.19.130': dependencies: undici-types: 5.26.5 - '@types/node@25.3.3': + '@types/node@24.12.0': + dependencies: + undici-types: 7.16.0 + + '@types/node@25.5.0': dependencies: undici-types: 7.18.2 '@types/normalize-package-data@2.4.4': {} + '@types/sax@1.2.7': + dependencies: + '@types/node': 25.5.0 + '@types/ssh2-streams@0.1.13': dependencies: - '@types/node': 25.3.3 + '@types/node': 25.5.0 '@types/ssh2@0.5.52': dependencies: - '@types/node': 25.3.3 + '@types/node': 25.5.0 '@types/ssh2-streams': 0.1.13 '@types/ssh2@1.15.5': dependencies: '@types/node': 18.19.130 + '@types/unist@3.0.3': {} + '@typespec/ts-http-runtime@0.3.3': dependencies: http-proxy-agent: 7.0.2 @@ -3961,60 +5566,72 @@ snapshots: transitivePeerDependencies: - supports-color + '@typespec/ts-http-runtime@0.3.4': + dependencies: + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.6 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ungap/structured-clone@1.3.0': {} + '@vercel/ncc@0.38.4': {} - '@vitest/coverage-v8@4.0.18(vitest@4.0.18(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3))': + '@vitest/coverage-v8@4.1.2(vitest@4.1.2(@types/node@25.5.0)(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)))': dependencies: '@bcoe/v8-coverage': 1.0.2 - '@vitest/utils': 4.0.18 - ast-v8-to-istanbul: 0.3.12 + '@vitest/utils': 4.1.2 + ast-v8-to-istanbul: 1.0.0 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-reports: 3.2.0 magicast: 0.5.2 obug: 2.1.1 - std-env: 3.10.0 - tinyrainbow: 3.0.3 - vitest: 4.0.18(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) + std-env: 4.0.0 + tinyrainbow: 3.1.0 + vitest: 4.1.2(@types/node@25.5.0)(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)) - '@vitest/expect@4.0.18': + '@vitest/expect@4.1.2': dependencies: '@standard-schema/spec': 1.1.0 '@types/chai': 5.2.3 - '@vitest/spy': 4.0.18 - '@vitest/utils': 4.0.18 + '@vitest/spy': 4.1.2 + '@vitest/utils': 4.1.2 chai: 6.2.2 - tinyrainbow: 3.0.3 + tinyrainbow: 3.1.0 - '@vitest/mocker@4.0.18(vite@7.3.1(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3))': + '@vitest/mocker@4.1.2(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3))': dependencies: - '@vitest/spy': 4.0.18 + '@vitest/spy': 4.1.2 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 7.3.1(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) + vite: 7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) - '@vitest/pretty-format@4.0.18': + '@vitest/pretty-format@4.1.2': dependencies: - tinyrainbow: 3.0.3 + tinyrainbow: 3.1.0 - '@vitest/runner@4.0.18': + '@vitest/runner@4.1.2': dependencies: - '@vitest/utils': 4.0.18 + '@vitest/utils': 4.1.2 pathe: 2.0.3 - '@vitest/snapshot@4.0.18': + '@vitest/snapshot@4.1.2': dependencies: - '@vitest/pretty-format': 4.0.18 + '@vitest/pretty-format': 4.1.2 + '@vitest/utils': 4.1.2 magic-string: 0.30.21 pathe: 2.0.3 - '@vitest/spy@4.0.18': {} + '@vitest/spy@4.1.2': {} - '@vitest/utils@4.0.18': + '@vitest/utils@4.1.2': dependencies: - '@vitest/pretty-format': 4.0.18 - tinyrainbow: 3.0.3 + '@vitest/pretty-format': 4.1.2 + convert-source-map: 2.0.0 + tinyrainbow: 3.1.0 abort-controller@3.0.0: dependencies: @@ -4049,6 +5666,11 @@ snapshots: ansi-styles@6.2.3: {} + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.2 + archiver-utils@5.0.2: dependencies: glob: 10.5.0 @@ -4075,17 +5697,23 @@ snapshots: arg@4.1.3: {} + arg@5.0.2: {} + argparse@2.0.1: {} + aria-query@5.3.2: {} + array-ify@1.0.0: {} + array-iterate@2.0.1: {} + asn1@0.2.6: dependencies: safer-buffer: 2.1.2 assertion-error@2.0.1: {} - ast-v8-to-istanbul@0.3.12: + ast-v8-to-istanbul@1.0.0: dependencies: '@jridgewell/trace-mapping': 0.3.31 estree-walker: 3.0.3 @@ -4093,44 +5721,152 @@ snapshots: astral-regex@2.0.0: {} + astro@6.1.1(@azure/identity@4.13.1)(@azure/keyvault-secrets@4.10.0(@azure/core-client@1.10.1))(@types/node@25.5.0)(jiti@2.6.1)(rollup@4.60.0)(tsx@4.21.0)(typescript@6.0.2)(yaml@2.8.3): + dependencies: + '@astrojs/compiler': 3.0.1 + '@astrojs/internal-helpers': 0.8.0 + '@astrojs/markdown-remark': 7.1.0 + '@astrojs/telemetry': 3.3.0 + '@capsizecss/unpack': 4.0.0 + '@clack/prompts': 1.1.0 + '@oslojs/encoding': 1.1.0 + '@rollup/pluginutils': 5.3.0(rollup@4.60.0) + aria-query: 5.3.2 + axobject-query: 4.1.0 + ci-info: 4.4.0 + clsx: 2.1.1 + common-ancestor-path: 2.0.0 + cookie: 1.1.1 + devalue: 5.6.4 + diff: 8.0.4 + dlv: 1.1.3 + dset: 3.1.4 + es-module-lexer: 2.0.0 + esbuild: 0.27.4 + flattie: 1.1.1 + fontace: 0.4.1 + github-slugger: 2.0.0 + html-escaper: 3.0.3 + http-cache-semantics: 4.2.0 + js-yaml: 4.1.1 + magic-string: 0.30.21 + magicast: 0.5.2 + mrmime: 2.0.1 + neotraverse: 0.6.18 + obug: 2.1.1 + p-limit: 7.3.0 + p-queue: 9.1.0 + package-manager-detector: 1.6.0 + piccolore: 0.1.3 + picomatch: 4.0.4 + rehype: 13.0.2 + semver: 7.7.4 + shiki: 4.0.2 + smol-toml: 1.6.1 + svgo: 4.0.1 + tinyclip: 0.1.12 + tinyexec: 1.0.4 + tinyglobby: 0.2.15 + tsconfck: 3.1.6(typescript@6.0.2) + ultrahtml: 1.6.0 + unifont: 0.7.4 + unist-util-visit: 5.1.0 + unstorage: 1.17.5(@azure/identity@4.13.1)(@azure/keyvault-secrets@4.10.0(@azure/core-client@1.10.1)) + vfile: 6.0.3 + vite: 7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) + vitefu: 1.1.2(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)) + xxhash-wasm: 1.1.0 + yargs-parser: 22.0.0 + zod: 4.3.6 + optionalDependencies: + sharp: 0.34.5 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@deno/kv' + - '@netlify/blobs' + - '@planetscale/database' + - '@types/node' + - '@upstash/redis' + - '@vercel/blob' + - '@vercel/functions' + - '@vercel/kv' + - aws4fetch + - db0 + - idb-keyval + - ioredis + - jiti + - less + - lightningcss + - rollup + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - typescript + - uploadthing + - yaml + async-lock@1.4.1: {} async@3.2.6: {} + aws-cdk-lib@2.245.0(constructs@10.6.0): + dependencies: + '@aws-cdk/asset-awscli-v1': 2.2.263 + '@aws-cdk/asset-node-proxy-agent-v6': 2.1.1 + '@aws-cdk/cloud-assembly-schema': 53.9.0 + constructs: 10.6.0 + + aws-cdk@2.1114.1: {} + + axobject-query@4.1.0: {} + b4a@1.8.0: {} + bail@2.0.2: {} + + balanced-match@1.0.2: {} + balanced-match@4.0.4: {} bare-events@2.8.2: {} - bare-fs@4.5.5: + bare-fs@4.5.6: dependencies: bare-events: 2.8.2 bare-path: 3.0.0 - bare-stream: 2.8.0(bare-events@2.8.2) - bare-url: 2.3.2 + bare-stream: 2.11.0(bare-events@2.8.2) + bare-url: 2.4.0 fast-fifo: 1.3.2 transitivePeerDependencies: - bare-abort-controller - react-native-b4a - bare-os@3.7.0: {} + bare-os@3.8.2: {} bare-path@3.0.0: dependencies: - bare-os: 3.7.0 + bare-os: 3.8.2 - bare-stream@2.8.0(bare-events@2.8.2): + bare-stream@2.11.0(bare-events@2.8.2): dependencies: - streamx: 2.23.0 + streamx: 2.25.0 teex: 1.0.1 optionalDependencies: bare-events: 2.8.2 transitivePeerDependencies: - - bare-abort-controller - react-native-b4a - bare-url@2.3.2: + bare-url@2.4.0: dependencies: bare-path: 3.0.0 @@ -4150,10 +5886,16 @@ snapshots: inherits: 2.0.4 readable-stream: 3.6.2 + boolbase@1.0.0: {} + boundary@2.0.0: {} bowser@2.14.1: {} + brace-expansion@2.0.3: + dependencies: + balanced-match: 1.0.2 + brace-expansion@5.0.5: dependencies: balanced-match: 4.0.4 @@ -4187,6 +5929,8 @@ snapshots: callsites@3.1.0: {} + ccount@2.0.1: {} + chai@6.2.2: {} chalk@4.1.2: @@ -4196,22 +5940,42 @@ snapshots: chalk@5.6.2: {} + character-entities-html4@2.1.0: {} + + character-entities-legacy@3.0.0: {} + + character-entities@2.0.2: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.0.0 + chownr@1.1.4: {} + ci-info@4.4.0: {} + cliui@8.0.1: dependencies: string-width: 4.2.3 strip-ansi: 6.0.1 wrap-ansi: 7.0.0 + clsx@2.1.1: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 color-name@1.1.4: {} + comma-separated-tokens@2.0.3: {} + + commander@11.1.0: {} + commander@14.0.3: {} + common-ancestor-path@2.0.0: {} + compare-func@2.0.0: dependencies: array-ify: 1.0.0 @@ -4225,6 +5989,8 @@ snapshots: normalize-path: 3.0.0 readable-stream: 4.7.0 + constructs@10.6.0: {} + conventional-changelog-angular@8.3.0: dependencies: compare-func: 2.0.0 @@ -4238,28 +6004,34 @@ snapshots: '@simple-libs/stream-utils': 1.2.0 meow: 13.2.0 + convert-source-map@2.0.0: {} + + cookie-es@1.2.2: {} + + cookie@1.1.1: {} + core-util-is@1.0.3: {} - cosmiconfig-typescript-loader@6.2.0(@types/node@25.3.3)(cosmiconfig@9.0.1(typescript@5.9.3))(typescript@5.9.3): + cosmiconfig-typescript-loader@6.2.0(@types/node@25.5.0)(cosmiconfig@9.0.1(typescript@6.0.2))(typescript@6.0.2): dependencies: - '@types/node': 25.3.3 - cosmiconfig: 9.0.1(typescript@5.9.3) + '@types/node': 25.5.0 + cosmiconfig: 9.0.1(typescript@6.0.2) jiti: 2.6.1 - typescript: 5.9.3 + typescript: 6.0.2 - cosmiconfig@9.0.1(typescript@5.9.3): + cosmiconfig@9.0.1(typescript@6.0.2): dependencies: env-paths: 2.2.1 import-fresh: 3.3.1 js-yaml: 4.1.1 parse-json: 5.2.0 optionalDependencies: - typescript: 5.9.3 + typescript: 6.0.2 cpu-features@0.0.10: dependencies: buildcheck: 0.0.7 - nan: 2.25.0 + nan: 2.26.2 optional: true crc-32@1.2.2: {} @@ -4277,12 +6049,42 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - dargs@8.1.0: {} + crossws@0.3.5: + dependencies: + uncrypto: 0.1.3 + + css-select@5.2.2: + dependencies: + boolbase: 1.0.0 + css-what: 6.2.2 + domhandler: 5.0.3 + domutils: 3.2.2 + nth-check: 2.1.1 + + css-tree@2.2.1: + dependencies: + mdn-data: 2.0.28 + source-map-js: 1.2.1 + + css-tree@3.2.1: + dependencies: + mdn-data: 2.27.1 + source-map-js: 1.2.1 + + css-what@6.2.2: {} + + csso@5.0.5: + dependencies: + css-tree: 2.2.1 debug@4.4.3: dependencies: ms: 2.1.3 + decode-named-character-reference@1.3.0: + dependencies: + character-entities: 2.0.2 + default-browser-id@5.0.1: {} default-browser@5.5.0: @@ -4292,13 +6094,32 @@ snapshots: define-lazy-prop@3.0.0: {} + defu@6.1.4: {} + + dequal@2.0.3: {} + + destr@2.0.5: {} + + detect-libc@2.1.2: + optional: true + + devalue@5.6.4: {} + + devlop@1.1.0: + dependencies: + dequal: 2.0.3 + diff@4.0.4: {} - docker-compose@1.3.1: + diff@8.0.4: {} + + dlv@1.1.3: {} + + docker-compose@1.3.3: dependencies: yaml: 2.8.3 - docker-modem@5.0.6: + docker-modem@5.0.7: dependencies: debug: 4.4.3 readable-stream: 3.6.2 @@ -4307,24 +6128,44 @@ snapshots: transitivePeerDependencies: - supports-color - dockerode@4.0.9: + dockerode@4.0.10: dependencies: '@balena/dockerignore': 1.0.2 '@grpc/grpc-js': 1.14.3 '@grpc/proto-loader': 0.7.15 - docker-modem: 5.0.6 + docker-modem: 5.0.7 protobufjs: 7.5.4 tar-fs: 2.1.4 uuid: 10.0.0 transitivePeerDependencies: - supports-color + dom-serializer@2.0.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + entities: 4.5.0 + + domelementtype@2.3.0: {} + + domhandler@5.0.3: + dependencies: + domelementtype: 2.3.0 + + domutils@3.2.2: + dependencies: + dom-serializer: 2.0.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + dot-prop@5.3.0: dependencies: is-obj: 2.0.0 dotenv@17.3.1: {} + dset@3.1.4: {} + eastasianwidth@0.2.0: {} ecdsa-sig-formatter@1.0.11: @@ -4343,6 +6184,10 @@ snapshots: dependencies: once: 1.4.0 + entities@4.5.0: {} + + entities@6.0.1: {} + env-paths@2.2.1: {} environment@1.1.0: {} @@ -4351,7 +6196,7 @@ snapshots: dependencies: is-arrayish: 0.2.1 - es-module-lexer@1.7.0: {} + es-module-lexer@2.0.0: {} esbuild@0.27.3: optionalDependencies: @@ -4382,14 +6227,49 @@ snapshots: '@esbuild/win32-ia32': 0.27.3 '@esbuild/win32-x64': 0.27.3 + esbuild@0.27.4: + optionalDependencies: + '@esbuild/aix-ppc64': 0.27.4 + '@esbuild/android-arm': 0.27.4 + '@esbuild/android-arm64': 0.27.4 + '@esbuild/android-x64': 0.27.4 + '@esbuild/darwin-arm64': 0.27.4 + '@esbuild/darwin-x64': 0.27.4 + '@esbuild/freebsd-arm64': 0.27.4 + '@esbuild/freebsd-x64': 0.27.4 + '@esbuild/linux-arm': 0.27.4 + '@esbuild/linux-arm64': 0.27.4 + '@esbuild/linux-ia32': 0.27.4 + '@esbuild/linux-loong64': 0.27.4 + '@esbuild/linux-mips64el': 0.27.4 + '@esbuild/linux-ppc64': 0.27.4 + '@esbuild/linux-riscv64': 0.27.4 + '@esbuild/linux-s390x': 0.27.4 + '@esbuild/linux-x64': 0.27.4 + '@esbuild/netbsd-arm64': 0.27.4 + '@esbuild/netbsd-x64': 0.27.4 + '@esbuild/openbsd-arm64': 0.27.4 + '@esbuild/openbsd-x64': 0.27.4 + '@esbuild/openharmony-arm64': 0.27.4 + '@esbuild/sunos-x64': 0.27.4 + '@esbuild/win32-arm64': 0.27.4 + '@esbuild/win32-ia32': 0.27.4 + '@esbuild/win32-x64': 0.27.4 + escalade@3.2.0: {} + escape-string-regexp@5.0.0: {} + + estree-walker@2.0.2: {} + estree-walker@3.0.3: dependencies: '@types/estree': 1.0.8 event-target-shim@5.0.1: {} + eventemitter3@5.0.4: {} + events-universal@1.0.1: dependencies: bare-events: 2.8.2 @@ -4400,6 +6280,8 @@ snapshots: expect-type@1.3.0: {} + extend@3.0.2: {} + fast-deep-equal@3.1.3: {} fast-fifo@1.3.2: {} @@ -4422,7 +6304,7 @@ snapshots: dependencies: fast-xml-builder: 1.1.4 path-expression-matcher: 1.2.0 - strnum: 2.2.0 + strnum: 2.2.2 fastq@1.20.1: dependencies: @@ -4436,6 +6318,16 @@ snapshots: dependencies: to-regex-range: 5.0.1 + flattie@1.1.1: {} + + fontace@0.4.1: + dependencies: + fontkitten: 1.0.3 + + fontkitten@1.0.3: + dependencies: + tiny-inflate: 1.0.3 + foreground-child@3.3.1: dependencies: cross-spawn: 7.0.6 @@ -4448,17 +6340,21 @@ snapshots: get-caller-file@2.0.5: {} - get-port@7.1.0: {} + get-port@7.2.0: {} get-tsconfig@4.13.7: dependencies: resolve-pkg-maps: 1.0.0 - git-raw-commits@4.0.0: + git-raw-commits@5.0.1(conventional-commits-parser@6.3.0): dependencies: - dargs: 8.1.0 - meow: 12.1.1 - split2: 4.2.0 + '@conventional-changelog/git-client': 2.6.0(conventional-commits-parser@6.3.0) + meow: 13.2.0 + transitivePeerDependencies: + - conventional-commits-filter + - conventional-commits-parser + + github-slugger@2.0.0: {} glob-parent@5.1.2: dependencies: @@ -4468,7 +6364,7 @@ snapshots: dependencies: foreground-child: 3.3.1 jackspeak: 3.4.3 - minimatch: 10.2.4 + minimatch: 9.0.9 minipass: 7.1.3 package-json-from-dist: 1.0.1 path-scurry: 1.11.1 @@ -4494,14 +6390,119 @@ snapshots: graceful-fs@4.2.11: {} + h3@1.15.10: + dependencies: + cookie-es: 1.2.2 + crossws: 0.3.5 + defu: 6.1.4 + destr: 2.0.5 + iron-webcrypto: 1.2.1 + node-mock-http: 1.0.4 + radix3: 1.1.2 + ufo: 1.6.3 + uncrypto: 0.1.3 + has-flag@4.0.0: {} + hast-util-from-html@2.0.3: + dependencies: + '@types/hast': 3.0.4 + devlop: 1.1.0 + hast-util-from-parse5: 8.0.3 + parse5: 7.3.0 + vfile: 6.0.3 + vfile-message: 4.0.3 + + hast-util-from-parse5@8.0.3: + dependencies: + '@types/hast': 3.0.4 + '@types/unist': 3.0.3 + devlop: 1.1.0 + hastscript: 9.0.1 + property-information: 7.1.0 + vfile: 6.0.3 + vfile-location: 5.0.3 + web-namespaces: 2.0.1 + + hast-util-is-element@3.0.0: + dependencies: + '@types/hast': 3.0.4 + + hast-util-parse-selector@4.0.0: + dependencies: + '@types/hast': 3.0.4 + + hast-util-raw@9.1.0: + dependencies: + '@types/hast': 3.0.4 + '@types/unist': 3.0.3 + '@ungap/structured-clone': 1.3.0 + hast-util-from-parse5: 8.0.3 + hast-util-to-parse5: 8.0.1 + html-void-elements: 3.0.0 + mdast-util-to-hast: 13.2.1 + parse5: 7.3.0 + unist-util-position: 5.0.0 + unist-util-visit: 5.1.0 + vfile: 6.0.3 + web-namespaces: 2.0.1 + zwitch: 2.0.4 + + hast-util-to-html@9.0.5: + dependencies: + '@types/hast': 3.0.4 + '@types/unist': 3.0.3 + ccount: 2.0.1 + comma-separated-tokens: 2.0.3 + hast-util-whitespace: 3.0.0 + html-void-elements: 3.0.0 + mdast-util-to-hast: 13.2.1 + property-information: 7.1.0 + space-separated-tokens: 2.0.2 + stringify-entities: 4.0.4 + zwitch: 2.0.4 + + hast-util-to-parse5@8.0.1: + dependencies: + '@types/hast': 3.0.4 + comma-separated-tokens: 2.0.3 + devlop: 1.1.0 + property-information: 7.1.0 + space-separated-tokens: 2.0.2 + web-namespaces: 2.0.1 + zwitch: 2.0.4 + + hast-util-to-text@4.0.2: + dependencies: + '@types/hast': 3.0.4 + '@types/unist': 3.0.3 + hast-util-is-element: 3.0.0 + unist-util-find-after: 5.0.0 + + hast-util-whitespace@3.0.0: + dependencies: + '@types/hast': 3.0.4 + + hastscript@9.0.1: + dependencies: + '@types/hast': 3.0.4 + comma-separated-tokens: 2.0.3 + hast-util-parse-selector: 4.0.0 + property-information: 7.1.0 + space-separated-tokens: 2.0.2 + hosted-git-info@7.0.2: dependencies: lru-cache: 10.4.3 html-escaper@2.0.2: {} + html-escaper@3.0.3: {} + + html-void-elements@3.0.0: {} + + http-cache-semantics@4.2.0: {} + http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.4 @@ -4533,14 +6534,16 @@ snapshots: ini@4.1.1: {} - inversify@7.11.0(reflect-metadata@0.2.2): + inversify@8.1.0(reflect-metadata@0.2.2): dependencies: - '@inversifyjs/common': 1.5.2 - '@inversifyjs/container': 1.15.0(reflect-metadata@0.2.2) - '@inversifyjs/core': 9.2.0(reflect-metadata@0.2.2) + '@inversifyjs/common': 2.0.1 + '@inversifyjs/container': 2.0.1(reflect-metadata@0.2.2) + '@inversifyjs/core': 10.0.1(reflect-metadata@0.2.2) transitivePeerDependencies: - reflect-metadata + iron-webcrypto@1.2.1: {} + is-arrayish@0.2.1: {} is-docker@3.0.0: {} @@ -4719,10 +6722,14 @@ snapshots: long@5.3.2: {} + longest-streak@3.1.0: {} + lru-cache@10.4.3: {} lru-cache@11.2.6: {} + lru-cache@11.2.7: {} + magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -4739,12 +6746,327 @@ snapshots: make-error@1.3.6: {} - meow@12.1.1: {} + markdown-table@3.0.4: {} + + mdast-util-definitions@6.0.0: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + unist-util-visit: 5.1.0 + + mdast-util-find-and-replace@3.0.2: + dependencies: + '@types/mdast': 4.0.4 + escape-string-regexp: 5.0.0 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + mdast-util-from-markdown@2.0.3: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + mdast-util-to-string: 4.0.0 + micromark: 4.0.2 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-decode-string: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + unist-util-stringify-position: 4.0.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-autolink-literal@2.0.1: + dependencies: + '@types/mdast': 4.0.4 + ccount: 2.0.1 + devlop: 1.1.0 + mdast-util-find-and-replace: 3.0.2 + micromark-util-character: 2.1.1 + + mdast-util-gfm-footnote@2.1.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + micromark-util-normalize-identifier: 2.0.1 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-strikethrough@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-table@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + markdown-table: 3.0.4 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-task-list-item@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm@3.1.0: + dependencies: + mdast-util-from-markdown: 2.0.3 + mdast-util-gfm-autolink-literal: 2.0.1 + mdast-util-gfm-footnote: 2.1.0 + mdast-util-gfm-strikethrough: 2.0.0 + mdast-util-gfm-table: 2.0.0 + mdast-util-gfm-task-list-item: 2.0.0 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-phrasing@4.1.0: + dependencies: + '@types/mdast': 4.0.4 + unist-util-is: 6.0.1 + + mdast-util-to-hast@13.2.1: + dependencies: + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + '@ungap/structured-clone': 1.3.0 + devlop: 1.1.0 + micromark-util-sanitize-uri: 2.0.1 + trim-lines: 3.0.1 + unist-util-position: 5.0.0 + unist-util-visit: 5.1.0 + vfile: 6.0.3 + + mdast-util-to-markdown@2.1.2: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + longest-streak: 3.1.0 + mdast-util-phrasing: 4.1.0 + mdast-util-to-string: 4.0.0 + micromark-util-classify-character: 2.0.1 + micromark-util-decode-string: 2.0.1 + unist-util-visit: 5.1.0 + zwitch: 2.0.4 + + mdast-util-to-string@4.0.0: + dependencies: + '@types/mdast': 4.0.4 + + mdn-data@2.0.28: {} + + mdn-data@2.27.1: {} meow@13.2.0: {} merge2@1.4.1: {} + micromark-core-commonmark@2.0.3: + dependencies: + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + micromark-factory-destination: 2.0.1 + micromark-factory-label: 2.0.1 + micromark-factory-space: 2.0.1 + micromark-factory-title: 2.0.1 + micromark-factory-whitespace: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-chunked: 2.0.1 + micromark-util-classify-character: 2.0.1 + micromark-util-html-tag-name: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-subtokenize: 2.1.0 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-autolink-literal@2.1.0: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-footnote@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-core-commonmark: 2.0.3 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-strikethrough@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.1 + micromark-util-classify-character: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-table@2.1.1: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-tagfilter@2.0.0: + dependencies: + micromark-util-types: 2.0.2 + + micromark-extension-gfm-task-list-item@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm@3.0.0: + dependencies: + micromark-extension-gfm-autolink-literal: 2.1.0 + micromark-extension-gfm-footnote: 2.1.0 + micromark-extension-gfm-strikethrough: 2.1.0 + micromark-extension-gfm-table: 2.1.1 + micromark-extension-gfm-tagfilter: 2.0.0 + micromark-extension-gfm-task-list-item: 2.1.0 + micromark-util-combine-extensions: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-destination@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-label@2.0.1: + dependencies: + devlop: 1.1.0 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-space@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-types: 2.0.2 + + micromark-factory-title@2.0.1: + dependencies: + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-whitespace@2.0.1: + dependencies: + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-character@2.1.1: + dependencies: + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-chunked@2.0.1: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-classify-character@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-combine-extensions@2.0.1: + dependencies: + micromark-util-chunked: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-decode-numeric-character-reference@2.0.2: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-decode-string@2.0.1: + dependencies: + decode-named-character-reference: 1.3.0 + micromark-util-character: 2.1.1 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-symbol: 2.0.1 + + micromark-util-encode@2.0.1: {} + + micromark-util-html-tag-name@2.0.1: {} + + micromark-util-normalize-identifier@2.0.1: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-resolve-all@2.0.1: + dependencies: + micromark-util-types: 2.0.2 + + micromark-util-sanitize-uri@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-encode: 2.0.1 + micromark-util-symbol: 2.0.1 + + micromark-util-subtokenize@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-symbol@2.0.1: {} + + micromark-util-types@2.0.2: {} + + micromark@4.0.2: + dependencies: + '@types/debug': 4.1.13 + debug: 4.4.3 + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + micromark-core-commonmark: 2.0.3 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-chunked: 2.0.1 + micromark-util-combine-extensions: 2.0.1 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-encode: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-subtokenize: 2.1.0 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + transitivePeerDependencies: + - supports-color + micromatch@4.0.8: dependencies: braces: 3.0.3 @@ -4754,6 +7076,14 @@ snapshots: dependencies: brace-expansion: 5.0.5 + minimatch@5.1.9: + dependencies: + brace-expansion: 2.0.3 + + minimatch@9.0.9: + dependencies: + brace-expansion: 2.0.3 + minimist@1.2.8: {} minipass@7.1.3: {} @@ -4762,13 +7092,25 @@ snapshots: mkdirp@3.0.1: {} + mrmime@2.0.1: {} + ms@2.1.3: {} - nan@2.25.0: + nan@2.26.2: optional: true nanoid@3.3.11: {} + neotraverse@0.6.18: {} + + nlcst-to-string@4.0.0: + dependencies: + '@types/nlcst': 2.0.3 + + node-fetch-native@1.6.7: {} + + node-mock-http@1.0.4: {} + normalize-package-data@6.0.2: dependencies: hosted-git-info: 7.0.2 @@ -4777,12 +7119,32 @@ snapshots: normalize-path@3.0.0: {} + nth-check@2.1.1: + dependencies: + boolbase: 1.0.0 + obug@2.1.1: {} + ofetch@1.5.1: + dependencies: + destr: 2.0.5 + node-fetch-native: 1.6.7 + ufo: 1.6.3 + + ohash@2.0.11: {} + once@1.4.0: dependencies: wrappy: 1.0.2 + oniguruma-parser@0.12.1: {} + + oniguruma-to-es@4.3.5: + dependencies: + oniguruma-parser: 0.12.1 + regex: 6.1.0 + regex-recursion: 6.0.2 + open@10.2.0: dependencies: default-browser: 5.5.0 @@ -4790,10 +7152,23 @@ snapshots: is-inside-container: 1.0.0 wsl-utils: 0.1.0 + p-limit@7.3.0: + dependencies: + yocto-queue: 1.2.2 + p-map@7.0.4: {} + p-queue@9.1.0: + dependencies: + eventemitter3: 5.0.4 + p-timeout: 7.0.1 + + p-timeout@7.0.1: {} + package-json-from-dist@1.0.1: {} + package-manager-detector@1.6.0: {} + parent-module@1.0.1: dependencies: callsites: 3.1.0 @@ -4811,6 +7186,19 @@ snapshots: index-to-position: 1.2.0 type-fest: 4.41.0 + parse-latin@7.0.0: + dependencies: + '@types/nlcst': 2.0.3 + '@types/unist': 3.0.3 + nlcst-to-string: 4.0.0 + unist-util-modify-children: 4.0.0 + unist-util-visit-children: 3.0.0 + vfile: 6.0.3 + + parse5@7.3.0: + dependencies: + entities: 6.0.1 + path-expression-matcher@1.2.0: {} path-key@3.1.1: {} @@ -4829,6 +7217,8 @@ snapshots: pathe@2.0.3: {} + piccolore@0.1.3: {} + picocolors@1.1.1: {} picomatch@2.3.2: {} @@ -4839,12 +7229,14 @@ snapshots: pluralize@8.0.0: {} - postcss@8.5.6: + postcss@8.5.8: dependencies: nanoid: 3.3.11 picocolors: 1.1.1 source-map-js: 1.2.1 + prismjs@1.30.0: {} + process-nextick-args@2.0.1: {} process@0.11.10: {} @@ -4862,6 +7254,8 @@ snapshots: transitivePeerDependencies: - supports-color + property-information@7.1.0: {} + protobufjs@7.5.4: dependencies: '@protobufjs/aspromise': 1.1.2 @@ -4874,7 +7268,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 25.3.3 + '@types/node': 25.5.0 long: 5.3.2 pump@3.0.4: @@ -4884,6 +7278,8 @@ snapshots: queue-microtask@1.2.3: {} + radix3@1.1.2: {} + rc-config-loader@4.1.4: dependencies: debug: 4.4.3 @@ -4927,10 +7323,88 @@ snapshots: readdir-glob@1.1.3: dependencies: - minimatch: 10.2.4 + minimatch: 5.1.9 + + readdirp@5.0.0: {} reflect-metadata@0.2.2: {} + regex-recursion@6.0.2: + dependencies: + regex-utilities: 2.3.0 + + regex-utilities@2.3.0: {} + + regex@6.1.0: + dependencies: + regex-utilities: 2.3.0 + + rehype-parse@9.0.1: + dependencies: + '@types/hast': 3.0.4 + hast-util-from-html: 2.0.3 + unified: 11.0.5 + + rehype-raw@7.0.0: + dependencies: + '@types/hast': 3.0.4 + hast-util-raw: 9.1.0 + vfile: 6.0.3 + + rehype-stringify@10.0.1: + dependencies: + '@types/hast': 3.0.4 + hast-util-to-html: 9.0.5 + unified: 11.0.5 + + rehype@13.0.2: + dependencies: + '@types/hast': 3.0.4 + rehype-parse: 9.0.1 + rehype-stringify: 10.0.1 + unified: 11.0.5 + + remark-gfm@4.0.1: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-gfm: 3.1.0 + micromark-extension-gfm: 3.0.0 + remark-parse: 11.0.0 + remark-stringify: 11.0.0 + unified: 11.0.5 + transitivePeerDependencies: + - supports-color + + remark-parse@11.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-from-markdown: 2.0.3 + micromark-util-types: 2.0.2 + unified: 11.0.5 + transitivePeerDependencies: + - supports-color + + remark-rehype@11.1.2: + dependencies: + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + mdast-util-to-hast: 13.2.1 + unified: 11.0.5 + vfile: 6.0.3 + + remark-smartypants@3.0.2: + dependencies: + retext: 9.0.0 + retext-smartypants: 6.2.0 + unified: 11.0.5 + unist-util-visit: 5.1.0 + + remark-stringify@11.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-to-markdown: 2.1.2 + unified: 11.0.5 + require-directory@2.1.1: {} require-from-string@2.0.2: {} @@ -4941,39 +7415,64 @@ snapshots: resolve-pkg-maps@1.0.0: {} + retext-latin@4.0.0: + dependencies: + '@types/nlcst': 2.0.3 + parse-latin: 7.0.0 + unified: 11.0.5 + + retext-smartypants@6.2.0: + dependencies: + '@types/nlcst': 2.0.3 + nlcst-to-string: 4.0.0 + unist-util-visit: 5.1.0 + + retext-stringify@4.0.0: + dependencies: + '@types/nlcst': 2.0.3 + nlcst-to-string: 4.0.0 + unified: 11.0.5 + + retext@9.0.0: + dependencies: + '@types/nlcst': 2.0.3 + retext-latin: 4.0.0 + retext-stringify: 4.0.0 + unified: 11.0.5 + retry@0.12.0: {} reusify@1.1.0: {} - rollup@4.59.0: + rollup@4.60.0: dependencies: '@types/estree': 1.0.8 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.59.0 - '@rollup/rollup-android-arm64': 4.59.0 - '@rollup/rollup-darwin-arm64': 4.59.0 - '@rollup/rollup-darwin-x64': 4.59.0 - '@rollup/rollup-freebsd-arm64': 4.59.0 - '@rollup/rollup-freebsd-x64': 4.59.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.59.0 - '@rollup/rollup-linux-arm-musleabihf': 4.59.0 - '@rollup/rollup-linux-arm64-gnu': 4.59.0 - '@rollup/rollup-linux-arm64-musl': 4.59.0 - '@rollup/rollup-linux-loong64-gnu': 4.59.0 - '@rollup/rollup-linux-loong64-musl': 4.59.0 - '@rollup/rollup-linux-ppc64-gnu': 4.59.0 - '@rollup/rollup-linux-ppc64-musl': 4.59.0 - '@rollup/rollup-linux-riscv64-gnu': 4.59.0 - '@rollup/rollup-linux-riscv64-musl': 4.59.0 - '@rollup/rollup-linux-s390x-gnu': 4.59.0 - '@rollup/rollup-linux-x64-gnu': 4.59.0 - '@rollup/rollup-linux-x64-musl': 4.59.0 - '@rollup/rollup-openbsd-x64': 4.59.0 - '@rollup/rollup-openharmony-arm64': 4.59.0 - '@rollup/rollup-win32-arm64-msvc': 4.59.0 - '@rollup/rollup-win32-ia32-msvc': 4.59.0 - '@rollup/rollup-win32-x64-gnu': 4.59.0 - '@rollup/rollup-win32-x64-msvc': 4.59.0 + '@rollup/rollup-android-arm-eabi': 4.60.0 + '@rollup/rollup-android-arm64': 4.60.0 + '@rollup/rollup-darwin-arm64': 4.60.0 + '@rollup/rollup-darwin-x64': 4.60.0 + '@rollup/rollup-freebsd-arm64': 4.60.0 + '@rollup/rollup-freebsd-x64': 4.60.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.60.0 + '@rollup/rollup-linux-arm-musleabihf': 4.60.0 + '@rollup/rollup-linux-arm64-gnu': 4.60.0 + '@rollup/rollup-linux-arm64-musl': 4.60.0 + '@rollup/rollup-linux-loong64-gnu': 4.60.0 + '@rollup/rollup-linux-loong64-musl': 4.60.0 + '@rollup/rollup-linux-ppc64-gnu': 4.60.0 + '@rollup/rollup-linux-ppc64-musl': 4.60.0 + '@rollup/rollup-linux-riscv64-gnu': 4.60.0 + '@rollup/rollup-linux-riscv64-musl': 4.60.0 + '@rollup/rollup-linux-s390x-gnu': 4.60.0 + '@rollup/rollup-linux-x64-gnu': 4.60.0 + '@rollup/rollup-linux-x64-musl': 4.60.0 + '@rollup/rollup-openbsd-x64': 4.60.0 + '@rollup/rollup-openharmony-arm64': 4.60.0 + '@rollup/rollup-win32-arm64-msvc': 4.60.0 + '@rollup/rollup-win32-ia32-msvc': 4.60.0 + '@rollup/rollup-win32-x64-gnu': 4.60.0 + '@rollup/rollup-win32-x64-msvc': 4.60.0 fsevents: 2.3.3 run-applescript@7.1.0: {} @@ -4988,13 +7487,15 @@ snapshots: safer-buffer@2.1.2: {} - secretlint@11.3.1: + sax@1.6.0: {} + + secretlint@11.4.0: dependencies: - '@secretlint/config-creator': 11.3.1 - '@secretlint/formatter': 11.3.1 - '@secretlint/node': 11.3.1 - '@secretlint/profiler': 11.3.1 - '@secretlint/resolver': 11.3.1 + '@secretlint/config-creator': 11.4.0 + '@secretlint/formatter': 11.4.0 + '@secretlint/node': 11.4.0 + '@secretlint/profiler': 11.4.0 + '@secretlint/resolver': 11.4.0 debug: 4.4.3 globby: 14.1.0 read-pkg: 9.0.1 @@ -5003,18 +7504,70 @@ snapshots: semver@7.7.4: {} + sharp@0.34.5: + dependencies: + '@img/colour': 1.1.0 + detect-libc: 2.1.2 + semver: 7.7.4 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.34.5 + '@img/sharp-darwin-x64': 0.34.5 + '@img/sharp-libvips-darwin-arm64': 1.2.4 + '@img/sharp-libvips-darwin-x64': 1.2.4 + '@img/sharp-libvips-linux-arm': 1.2.4 + '@img/sharp-libvips-linux-arm64': 1.2.4 + '@img/sharp-libvips-linux-ppc64': 1.2.4 + '@img/sharp-libvips-linux-riscv64': 1.2.4 + '@img/sharp-libvips-linux-s390x': 1.2.4 + '@img/sharp-libvips-linux-x64': 1.2.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + '@img/sharp-linux-arm': 0.34.5 + '@img/sharp-linux-arm64': 0.34.5 + '@img/sharp-linux-ppc64': 0.34.5 + '@img/sharp-linux-riscv64': 0.34.5 + '@img/sharp-linux-s390x': 0.34.5 + '@img/sharp-linux-x64': 0.34.5 + '@img/sharp-linuxmusl-arm64': 0.34.5 + '@img/sharp-linuxmusl-x64': 0.34.5 + '@img/sharp-wasm32': 0.34.5 + '@img/sharp-win32-arm64': 0.34.5 + '@img/sharp-win32-ia32': 0.34.5 + '@img/sharp-win32-x64': 0.34.5 + optional: true + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 shebang-regex@3.0.0: {} + shiki@4.0.2: + dependencies: + '@shikijs/core': 4.0.2 + '@shikijs/engine-javascript': 4.0.2 + '@shikijs/engine-oniguruma': 4.0.2 + '@shikijs/langs': 4.0.2 + '@shikijs/themes': 4.0.2 + '@shikijs/types': 4.0.2 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.4 + siginfo@2.0.0: {} signal-exit@3.0.7: {} signal-exit@4.1.0: {} + sisteransi@1.0.5: {} + + sitemap@9.0.1: + dependencies: + '@types/node': 24.12.0 + '@types/sax': 1.2.7 + arg: 5.0.2 + sax: 1.6.0 + slash@5.1.0: {} slice-ansi@4.0.0: @@ -5023,8 +7576,12 @@ snapshots: astral-regex: 2.0.0 is-fullwidth-code-point: 3.0.0 + smol-toml@1.6.1: {} + source-map-js@1.2.1: {} + space-separated-tokens@2.0.2: {} + spdx-correct@3.2.0: dependencies: spdx-expression-parse: 3.0.1 @@ -5041,8 +7598,6 @@ snapshots: split-ca@1.0.1: {} - split2@4.2.0: {} - ssh-remote-port-forward@1.0.4: dependencies: '@types/ssh2': 0.5.52 @@ -5054,13 +7609,15 @@ snapshots: bcrypt-pbkdf: 1.0.2 optionalDependencies: cpu-features: 0.0.10 - nan: 2.25.0 + nan: 2.26.2 stackback@0.0.2: {} - std-env@3.10.0: {} + std-env@4.0.0: {} + + stream-replace-string@2.0.0: {} - streamx@2.23.0: + streamx@2.25.0: dependencies: events-universal: 1.0.1 fast-fifo: 1.3.2 @@ -5089,6 +7646,11 @@ snapshots: dependencies: safe-buffer: 5.2.1 + stringify-entities@4.0.4: + dependencies: + character-entities-html4: 2.1.0 + character-entities-legacy: 3.0.0 + strip-ansi@6.0.1: dependencies: ansi-regex: 5.0.1 @@ -5097,7 +7659,7 @@ snapshots: dependencies: ansi-regex: 6.2.2 - strnum@2.2.0: {} + strnum@2.2.2: {} structured-source@4.0.0: dependencies: @@ -5112,6 +7674,16 @@ snapshots: has-flag: 4.0.0 supports-color: 7.2.0 + svgo@4.0.1: + dependencies: + commander: 11.1.0 + css-select: 5.2.2 + css-tree: 3.2.1 + css-what: 6.2.2 + csso: 5.0.5 + picocolors: 1.1.1 + sax: 1.6.0 + table@6.9.0: dependencies: ajv: 8.18.0 @@ -5127,12 +7699,12 @@ snapshots: pump: 3.0.4 tar-stream: 2.2.0 - tar-fs@3.1.1: + tar-fs@3.1.2: dependencies: pump: 3.0.4 tar-stream: 3.1.8 optionalDependencies: - bare-fs: 4.5.5 + bare-fs: 4.5.6 bare-path: 3.0.0 transitivePeerDependencies: - bare-abort-controller @@ -5150,9 +7722,9 @@ snapshots: tar-stream@3.1.8: dependencies: b4a: 1.8.0 - bare-fs: 4.5.5 + bare-fs: 4.5.6 fast-fifo: 1.3.2 - streamx: 2.23.0 + streamx: 2.25.0 transitivePeerDependencies: - bare-abort-controller - bare-buffer @@ -5160,7 +7732,7 @@ snapshots: teex@1.0.1: dependencies: - streamx: 2.23.0 + streamx: 2.25.0 transitivePeerDependencies: - bare-abort-controller - react-native-b4a @@ -5170,7 +7742,7 @@ snapshots: ansi-escapes: 7.3.0 supports-hyperlinks: 3.2.0 - testcontainers@11.12.0: + testcontainers@11.13.0: dependencies: '@balena/dockerignore': 1.0.2 '@types/dockerode': 4.0.1 @@ -5178,15 +7750,15 @@ snapshots: async-lock: 1.4.1 byline: 5.0.0 debug: 4.4.3 - docker-compose: 1.3.1 - dockerode: 4.0.9 - get-port: 7.1.0 + docker-compose: 1.3.3 + dockerode: 4.0.10 + get-port: 7.2.0 proper-lockfile: 4.1.2 properties-reader: 3.0.1 ssh-remote-port-forward: 1.0.4 - tar-fs: 3.1.1 + tar-fs: 3.1.2 tmp: 0.2.5 - undici: 7.24.1 + undici: 7.24.6 transitivePeerDependencies: - bare-abort-controller - bare-buffer @@ -5205,16 +7777,20 @@ snapshots: dependencies: editions: 6.22.0 + tiny-inflate@1.0.3: {} + tinybench@2.9.0: {} - tinyexec@1.0.2: {} + tinyclip@0.1.12: {} + + tinyexec@1.0.4: {} tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.4) picomatch: 4.0.4 - tinyrainbow@3.0.3: {} + tinyrainbow@3.1.0: {} tmp@0.2.5: {} @@ -5222,24 +7798,32 @@ snapshots: dependencies: is-number: 7.0.0 - ts-node@10.9.2(@types/node@25.3.3)(typescript@5.9.3): + trim-lines@3.0.1: {} + + trough@2.2.0: {} + + ts-node@10.9.2(@types/node@25.5.0)(typescript@6.0.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.12 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 25.3.3 + '@types/node': 25.5.0 acorn: 8.16.0 acorn-walk: 8.3.5 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.4 make-error: 1.3.6 - typescript: 5.9.3 + typescript: 6.0.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 + tsconfck@3.1.6(typescript@6.0.2): + optionalDependencies: + typescript: 6.0.2 + tslib@2.8.1: {} tsx@4.21.0: @@ -5253,18 +7837,98 @@ snapshots: type-fest@4.41.0: {} - typescript@5.9.3: {} + typescript@6.0.2: {} + + ufo@1.6.3: {} + + ultrahtml@1.6.0: {} + + uncrypto@0.1.3: {} undici-types@5.26.5: {} + undici-types@7.16.0: {} + undici-types@7.18.2: {} - undici@7.24.1: {} + undici@7.24.6: {} unicorn-magic@0.1.0: {} unicorn-magic@0.3.0: {} + unified@11.0.5: + dependencies: + '@types/unist': 3.0.3 + bail: 2.0.2 + devlop: 1.1.0 + extend: 3.0.2 + is-plain-obj: 4.1.0 + trough: 2.2.0 + vfile: 6.0.3 + + unifont@0.7.4: + dependencies: + css-tree: 3.2.1 + ofetch: 1.5.1 + ohash: 2.0.11 + + unist-util-find-after@5.0.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + + unist-util-is@6.0.1: + dependencies: + '@types/unist': 3.0.3 + + unist-util-modify-children@4.0.0: + dependencies: + '@types/unist': 3.0.3 + array-iterate: 2.0.1 + + unist-util-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-remove-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-visit: 5.1.0 + + unist-util-stringify-position@4.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-visit-children@3.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-visit-parents@6.0.2: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + + unist-util-visit@5.1.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + unstorage@1.17.5(@azure/identity@4.13.1)(@azure/keyvault-secrets@4.10.0(@azure/core-client@1.10.1)): + dependencies: + anymatch: 3.1.3 + chokidar: 5.0.0 + destr: 2.0.5 + h3: 1.15.10 + lru-cache: 11.2.7 + node-fetch-native: 1.6.7 + ofetch: 1.5.1 + ufo: 1.6.3 + optionalDependencies: + '@azure/identity': 4.13.1 + '@azure/keyvault-secrets': 4.10.0(@azure/core-client@1.10.1) + util-deprecate@1.0.2: {} uuid@10.0.0: {} @@ -5280,57 +7944,70 @@ snapshots: version-range@4.15.0: {} - vite@7.3.1(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3): + vfile-location@5.0.3: dependencies: - esbuild: 0.27.3 + '@types/unist': 3.0.3 + vfile: 6.0.3 + + vfile-message@4.0.3: + dependencies: + '@types/unist': 3.0.3 + unist-util-stringify-position: 4.0.0 + + vfile@6.0.3: + dependencies: + '@types/unist': 3.0.3 + vfile-message: 4.0.3 + + vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3): + dependencies: + esbuild: 0.27.4 fdir: 6.5.0(picomatch@4.0.4) picomatch: 4.0.4 - postcss: 8.5.6 - rollup: 4.59.0 + postcss: 8.5.8 + rollup: 4.60.0 tinyglobby: 0.2.15 optionalDependencies: - '@types/node': 25.3.3 + '@types/node': 25.5.0 fsevents: 2.3.3 jiti: 2.6.1 tsx: 4.21.0 yaml: 2.8.3 - vitest@4.0.18(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3): - dependencies: - '@vitest/expect': 4.0.18 - '@vitest/mocker': 4.0.18(vite@7.3.1(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)) - '@vitest/pretty-format': 4.0.18 - '@vitest/runner': 4.0.18 - '@vitest/snapshot': 4.0.18 - '@vitest/spy': 4.0.18 - '@vitest/utils': 4.0.18 - es-module-lexer: 1.7.0 + vitefu@1.1.2(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)): + optionalDependencies: + vite: 7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) + + vitest@4.1.2(@types/node@25.5.0)(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)): + dependencies: + '@vitest/expect': 4.1.2 + '@vitest/mocker': 4.1.2(vite@7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3)) + '@vitest/pretty-format': 4.1.2 + '@vitest/runner': 4.1.2 + '@vitest/snapshot': 4.1.2 + '@vitest/spy': 4.1.2 + '@vitest/utils': 4.1.2 + es-module-lexer: 2.0.0 expect-type: 1.3.0 magic-string: 0.30.21 obug: 2.1.1 pathe: 2.0.3 picomatch: 4.0.4 - std-env: 3.10.0 + std-env: 4.0.0 tinybench: 2.9.0 - tinyexec: 1.0.2 + tinyexec: 1.0.4 tinyglobby: 0.2.15 - tinyrainbow: 3.0.3 - vite: 7.3.1(@types/node@25.3.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) + tinyrainbow: 3.1.0 + vite: 7.3.1(@types/node@25.5.0)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.3) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 25.3.3 + '@types/node': 25.5.0 transitivePeerDependencies: - - jiti - - less - - lightningcss - msw - - sass - - sass-embedded - - stylus - - sugarss - - terser - - tsx - - yaml + + web-namespaces@2.0.1: {} + + which-pm-runs@1.1.0: {} which@2.0.2: dependencies: @@ -5359,12 +8036,16 @@ snapshots: dependencies: is-wsl: 3.1.1 + xxhash-wasm@1.1.0: {} + y18n@5.0.8: {} yaml@2.8.3: {} yargs-parser@21.1.1: {} + yargs-parser@22.0.0: {} + yargs@17.7.2: dependencies: cliui: 8.0.1 @@ -5377,8 +8058,14 @@ snapshots: yn@3.1.1: {} + yocto-queue@1.2.2: {} + zip-stream@6.0.1: dependencies: archiver-utils: 5.0.2 compress-commons: 6.0.2 readable-stream: 4.7.0 + + zod@4.3.6: {} + + zwitch@2.0.4: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 6382ee1f..d1227fd3 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,18 @@ packages: - "." + - "src/apps/website" + - "src/iac" + - "tests/iac" + +catalog: + '@biomejs/biome': ^2.4.9 + typescript: ^6.0.2 + ts-node: ^10.9.2 + '@types/node': ^25.5.0 + vitest: ^4.1.2 + '@vitest/coverage-v8': ^4.1.2 + aws-cdk-lib: ^2.245.0 + constructs: ^10.4.2 onlyBuiltDependencies: - cpu-features diff --git a/src/apps/website/astro.config.mjs b/src/apps/website/astro.config.mjs new file mode 100644 index 00000000..ae2d0dbb --- /dev/null +++ b/src/apps/website/astro.config.mjs @@ -0,0 +1,28 @@ +import { readFileSync } from 'node:fs'; +import sitemap from '@astrojs/sitemap'; +import { defineConfig } from 'astro/config'; + +const rootPkg = JSON.parse( + readFileSync(new URL('../../../package.json', import.meta.url), 'utf-8'), +); + +export default defineConfig({ + site: 'https://envilder.com', + output: 'static', + integrations: [sitemap()], + i18n: { + defaultLocale: 'en', + locales: ['en', 'ca', 'es'], + routing: { + prefixDefaultLocale: false, + }, + }, + vite: { + define: { + __APP_VERSION__: JSON.stringify(rootPkg.version), + }, + }, + build: { + assets: '_assets', + }, +}); diff --git a/src/apps/website/package.json b/src/apps/website/package.json new file mode 100644 index 00000000..2a9ec7de --- /dev/null +++ b/src/apps/website/package.json @@ -0,0 +1,23 @@ +{ + "name": "@envilder/website", + "type": "module", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro", + "format": "biome format", + "format:write": "biome format --write", + "lint": "biome check", + "lint:write": "biome check --write" + }, + "dependencies": { + "@astrojs/sitemap": "^3.3.1", + "astro": "^6.1.1" + }, + "devDependencies": { + "@biomejs/biome": "catalog:" + } +} diff --git a/src/apps/website/public/AWS.svg b/src/apps/website/public/AWS.svg new file mode 100644 index 00000000..39f9762a --- /dev/null +++ b/src/apps/website/public/AWS.svg @@ -0,0 +1,4 @@ +<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"> + <path fill="#252f3e" d="M36.379 53.64c0 1.56.168 2.825.465 3.75.336.926.758 1.938 1.347 3.032.207.336.293.672.293.969 0 .418-.254.84-.8 1.261l-2.653 1.77c-.379.25-.758.379-1.093.379-.422 0-.844-.211-1.266-.59a13.28 13.28 0 0 1-1.516-1.98 34.153 34.153 0 0 1-1.304-2.485c-3.282 3.875-7.41 5.813-12.38 5.813-3.535 0-6.355-1.012-8.421-3.032-2.063-2.023-3.114-4.718-3.114-8.086 0-3.578 1.262-6.484 3.833-8.671 2.566-2.192 5.976-3.286 10.316-3.286 1.43 0 2.902.125 4.46.336 1.56.211 3.161.547 4.845.926v-3.074c0-3.2-.676-5.43-1.98-6.734C26.061 32.633 23.788 32 20.546 32c-1.473 0-2.988.168-4.547.547a33.416 33.416 0 0 0-4.547 1.433c-.676.293-1.18.461-1.473.547-.296.082-.507.125-.675.125-.59 0-.883-.422-.883-1.304v-2.063c0-.676.082-1.18.293-1.476.21-.293.59-.586 1.18-.883 1.472-.758 3.242-1.39 5.304-1.895 2.063-.547 4.254-.8 6.57-.8 5.008 0 8.672 1.136 11.032 3.41 2.316 2.273 3.492 5.726 3.492 10.359v13.64Zm-17.094 6.403c1.387 0 2.82-.254 4.336-.758 1.516-.508 2.863-1.433 4-2.695.672-.8 1.18-1.684 1.43-2.695.254-1.012.422-2.23.422-3.665v-1.765a34.401 34.401 0 0 0-3.871-.719 31.816 31.816 0 0 0-3.961-.25c-2.82 0-4.883.547-6.274 1.684-1.387 1.136-2.062 2.734-2.062 4.84 0 1.98.504 3.453 1.558 4.464 1.012 1.051 2.485 1.559 4.422 1.559Zm33.809 4.547c-.758 0-1.262-.125-1.598-.422-.34-.254-.633-.84-.887-1.64L40.715 29.98c-.25-.843-.38-1.39-.38-1.687 0-.672.337-1.05 1.013-1.05h4.125c.8 0 1.347.124 1.644.421.336.25.59.84.84 1.64l7.074 27.876 6.57-27.875c.208-.84.462-1.39.797-1.64.34-.255.93-.423 1.688-.423h3.367c.8 0 1.348.125 1.684.422.336.25.633.84.8 1.64l6.653 28.212 7.285-28.211c.25-.84.547-1.39.84-1.64.336-.255.887-.423 1.644-.423h3.914c.676 0 1.055.336 1.055 1.051 0 .21-.043.422-.086.676-.043.254-.125.59-.293 1.05L80.801 62.57c-.254.84-.547 1.387-.887 1.64-.336.255-.883.423-1.598.423h-3.62c-.801 0-1.348-.13-1.684-.422-.34-.297-.633-.844-.801-1.684l-6.527-27.16-6.485 27.117c-.21.844-.46 1.391-.8 1.684-.337.297-.926.422-1.684.422Zm54.105 1.137c-2.187 0-4.379-.254-6.484-.758-2.106-.504-3.746-1.055-4.84-1.684-.676-.379-1.137-.8-1.305-1.18a2.919 2.919 0 0 1-.254-1.18v-2.148c0-.882.336-1.304.97-1.304.25 0 .503.043.757.129.25.082.629.25 1.05.418a23.102 23.102 0 0 0 4.634 1.476c1.683.336 3.324.504 5.011.504 2.653 0 4.715-.465 6.145-1.39 1.433-.926 2.191-2.274 2.191-4 0-1.18-.379-2.145-1.136-2.946-.758-.8-2.192-1.516-4.254-2.191l-6.106-1.895c-3.074-.969-5.348-2.398-6.734-4.293-1.39-1.855-2.106-3.918-2.106-6.105 0-1.77.38-3.328 1.137-4.676a10.829 10.829 0 0 1 3.031-3.453c1.262-.965 2.696-1.684 4.38-2.188 1.683-.504 3.452-.715 5.304-.715.926 0 1.894.043 2.82.168.969.125 1.852.293 2.738.461.84.211 1.641.422 2.399.676.758.254 1.348.504 1.77.758.59.336 1.011.672 1.261 1.05.254.34.379.802.379 1.391v1.98c0 .884-.336 1.348-.969 1.348-.336 0-.883-.171-1.597-.507-2.403-1.094-5.098-1.641-8.086-1.641-2.399 0-4.293.379-5.598 1.18-1.309.797-1.98 2.02-1.98 3.746 0 1.18.421 2.191 1.261 2.988.844.8 2.403 1.602 4.633 2.316l5.98 1.895c3.032.969 5.22 2.316 6.524 4.043 1.305 1.727 1.938 3.707 1.938 5.895 0 1.812-.38 3.453-1.094 4.882-.758 1.434-1.77 2.696-3.074 3.707-1.305 1.051-2.864 1.809-4.672 2.36-1.895.586-3.875.883-6.024.883Zm0 0"/> + <path fill="#f90" d="M118 73.348c-4.432.063-9.664 1.052-13.621 3.832-1.223.883-1.012 2.062.336 1.894 4.508-.547 14.44-1.726 16.21.547 1.77 2.23-1.976 11.62-3.663 15.79-.504 1.26.59 1.769 1.726.8 7.41-6.231 9.348-19.242 7.832-21.137-.757-.925-4.388-1.79-8.82-1.726zM1.63 75.859c-.927.116-1.347 1.236-.368 2.121 16.508 14.902 38.359 23.872 62.613 23.872 17.305 0 37.43-5.43 51.281-15.66 2.273-1.688.297-4.254-2.02-3.204-15.534 6.57-32.421 9.77-47.788 9.77-22.778 0-44.8-6.273-62.653-16.633-.39-.231-.755-.304-1.064-.266z"/> +</svg> \ No newline at end of file diff --git a/src/apps/website/public/Azure.svg b/src/apps/website/public/Azure.svg new file mode 100644 index 00000000..6c0d5a7a --- /dev/null +++ b/src/apps/website/public/Azure.svg @@ -0,0 +1 @@ +<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="azure-original-a" x1="60.919" y1="9.602" x2="18.667" y2="134.423" gradientUnits="userSpaceOnUse"><stop stop-color="#114A8B"/><stop offset="1" stop-color="#0669BC"/></linearGradient><linearGradient id="azure-original-b" x1="74.117" y1="67.772" x2="64.344" y2="71.076" gradientUnits="userSpaceOnUse"><stop stop-opacity=".3"/><stop offset=".071" stop-opacity=".2"/><stop offset=".321" stop-opacity=".1"/><stop offset=".623" stop-opacity=".05"/><stop offset="1" stop-opacity="0"/></linearGradient><linearGradient id="azure-original-c" x1="68.742" y1="5.961" x2="115.122" y2="129.525" gradientUnits="userSpaceOnUse"><stop stop-color="#3CCBF4"/><stop offset="1" stop-color="#2892DF"/></linearGradient></defs><path d="M46.09.002h40.685L44.541 125.137a6.485 6.485 0 01-6.146 4.413H6.733a6.482 6.482 0 01-5.262-2.699 6.474 6.474 0 01-.876-5.848L39.944 4.414A6.488 6.488 0 0146.09 0z" fill="url(#azure-original-a)" transform="translate(.587 4.468) scale(.91904)"/><path d="M97.28 81.607H37.987a2.743 2.743 0 00-1.874 4.751l38.1 35.562a5.991 5.991 0 004.087 1.61h33.574z" fill="#0078d4"/><path d="M46.09.002A6.434 6.434 0 0039.93 4.5L.644 120.897a6.469 6.469 0 006.106 8.653h32.48a6.942 6.942 0 005.328-4.531l7.834-23.089 27.985 26.101a6.618 6.618 0 004.165 1.519h36.396l-15.963-45.616-46.533.011L86.922.002z" fill="url(#azure-original-b)" transform="translate(.587 4.468) scale(.91904)"/><path d="M98.055 4.408A6.476 6.476 0 0091.917.002H46.575a6.478 6.478 0 016.137 4.406l39.35 116.594a6.476 6.476 0 01-6.137 8.55h45.344a6.48 6.48 0 006.136-8.55z" fill="url(#azure-original-c)" transform="translate(.587 4.468) scale(.91904)"/></svg> diff --git a/src/apps/website/public/GCP.svg b/src/apps/website/public/GCP.svg new file mode 100644 index 00000000..e9d755e8 --- /dev/null +++ b/src/apps/website/public/GCP.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#ea4535" d="M80.6 40.3h.4l-.2-.2 14-14v-.3c-11.8-10.4-28.1-14-43.2-9.5C36.5 20.8 24.9 32.8 20.7 48c.2-.1.5-.2.8-.2 5.2-3.4 11.4-5.4 17.9-5.4 2.2 0 4.3.2 6.4.6.1-.1.2-.1.3-.1 9-9.9 24.2-11.1 34.6-2.6h-.1z"/><path fill="#557ebf" d="M108.1 47.8c-2.3-8.5-7.1-16.2-13.8-22.1L80 39.9c6 4.9 9.5 12.3 9.3 20v2.5c16.9 0 16.9 25.2 0 25.2H63.9v20h-.1l.1.2h25.4c14.6.1 27.5-9.3 31.8-23.1 4.3-13.8-1-28.8-13-36.9z"/><path fill="#36a852" d="M39 107.9h26.3V87.7H39c-1.9 0-3.7-.4-5.4-1.1l-15.2 14.6v.2c6 4.3 13.2 6.6 20.7 6.6z"/><path fill="#f9bc15" d="M40.2 41.9c-14.9.1-28.1 9.3-32.9 22.8-4.8 13.6 0 28.5 11.8 37.3l15.6-14.9c-8.6-3.7-10.6-14.5-4-20.8 6.6-6.4 17.8-4.4 21.7 3.8L68 55.2C61.4 46.9 51.1 42 40.2 42.1z"/></svg> \ No newline at end of file diff --git a/src/apps/website/public/GitHubActions.svg b/src/apps/website/public/GitHubActions.svg new file mode 100644 index 00000000..2929e024 --- /dev/null +++ b/src/apps/website/public/GitHubActions.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#2088ff" d="M26.666 0C11.97 0 0 11.97 0 26.666c0 12.87 9.181 23.651 21.334 26.13v37.87c0 11.77 9.68 21.334 21.332 21.334h.195c1.302 9.023 9.1 16 18.473 16C71.612 128 80 119.612 80 109.334s-8.388-18.668-18.666-18.668c-9.372 0-17.17 6.977-18.473 16h-.195c-8.737 0-16-7.152-16-16V63.779a18.514 18.514 0 0 0 13.24 5.555h2.955c1.303 9.023 9.1 16 18.473 16 9.372 0 17.169-6.977 18.47-16h11.057c1.303 9.023 9.1 16 18.473 16 10.278 0 18.666-8.39 18.666-18.668C128 56.388 119.612 48 109.334 48c-9.373 0-17.171 6.977-18.473 16H79.805c-1.301-9.023-9.098-16-18.471-16s-17.171 6.977-18.473 16h-2.955c-6.433 0-11.793-4.589-12.988-10.672 14.58-.136 26.416-12.05 26.416-26.662C53.334 11.97 41.362 0 26.666 0zm0 5.334A21.292 21.292 0 0 1 48 26.666 21.294 21.294 0 0 1 26.666 48 21.292 21.292 0 0 1 5.334 26.666 21.29 21.29 0 0 1 26.666 5.334zm-5.215 7.541C18.67 12.889 16 15.123 16 18.166v17.043c0 4.043 4.709 6.663 8.145 4.533l13.634-8.455c3.257-2.02 3.274-7.002.032-9.045l-13.635-8.59a5.024 5.024 0 0 0-2.725-.777zm-.117 5.291 13.635 8.588-13.635 8.455V18.166zm40 35.168a13.29 13.29 0 0 1 13.332 13.332A13.293 13.293 0 0 1 61.334 80 13.294 13.294 0 0 1 48 66.666a13.293 13.293 0 0 1 13.334-13.332zm48 0a13.29 13.29 0 0 1 13.332 13.332A13.293 13.293 0 0 1 109.334 80 13.294 13.294 0 0 1 96 66.666a13.293 13.293 0 0 1 13.334-13.332zm-42.568 6.951a2.667 2.667 0 0 0-1.887.78l-6.3 6.294-2.093-2.084a2.667 2.667 0 0 0-3.771.006 2.667 2.667 0 0 0 .008 3.772l3.974 3.96a2.667 2.667 0 0 0 3.766-.001l8.185-8.174a2.667 2.667 0 0 0 .002-3.772 2.667 2.667 0 0 0-1.884-.78zm48 0a2.667 2.667 0 0 0-1.887.78l-6.3 6.294-2.093-2.084a2.667 2.667 0 0 0-3.771.006 2.667 2.667 0 0 0 .008 3.772l3.974 3.96a2.667 2.667 0 0 0 3.766-.001l8.185-8.174a2.667 2.667 0 0 0 .002-3.772 2.667 2.667 0 0 0-1.884-.78zM61.334 96a13.293 13.293 0 0 1 13.332 13.334 13.29 13.29 0 0 1-13.332 13.332A13.293 13.293 0 0 1 48 109.334 13.294 13.294 0 0 1 61.334 96zM56 105.334c-2.193 0-4 1.807-4 4 0 2.195 1.808 4 4 4s4-1.805 4-4c0-2.193-1.807-4-4-4zm10.666 0c-2.193 0-4 1.807-4 4 0 2.195 1.808 4 4 4s4-1.805 4-4c0-2.193-1.807-4-4-4zM56 108c.75 0 1.334.585 1.334 1.334 0 .753-.583 1.332-1.334 1.332-.75 0-1.334-.58-1.334-1.332 0-.75.585-1.334 1.334-1.334zm10.666 0c.75 0 1.334.585 1.334 1.334 0 .753-.583 1.332-1.334 1.332-.75 0-1.332-.58-1.332-1.332 0-.75.583-1.334 1.332-1.334z"/><path fill="#79b8ff" d="M109.334 90.666c-9.383 0-17.188 6.993-18.477 16.031a2.667 2.667 0 0 0-.265-.011l-2.7.09a2.667 2.667 0 0 0-2.578 2.751 2.667 2.667 0 0 0 2.752 2.578l2.7-.087a2.667 2.667 0 0 0 .097-.006C92.17 121.029 99.965 128 109.334 128c10.278 0 18.666-8.388 18.666-18.666s-8.388-18.668-18.666-18.668zm0 5.334a13.293 13.293 0 0 1 13.332 13.334 13.29 13.29 0 0 1-13.332 13.332A13.293 13.293 0 0 1 96 109.334 13.294 13.294 0 0 1 109.334 96z"/></svg> diff --git a/src/apps/website/public/NPM.svg b/src/apps/website/public/NPM.svg new file mode 100644 index 00000000..2ee0f35b --- /dev/null +++ b/src/apps/website/public/NPM.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#cb3837" d="M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z"/></svg> \ No newline at end of file diff --git a/src/apps/website/public/favicon.svg b/src/apps/website/public/favicon.svg new file mode 100644 index 00000000..fb6d3167 --- /dev/null +++ b/src/apps/website/public/favicon.svg @@ -0,0 +1,6 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"> + <!-- Pixel-art lock icon in muted sage --> + <rect x="10" y="14" width="12" height="12" fill="#8a9a6c"/> + <rect x="12" y="8" width="8" height="6" fill="none" stroke="#8a9a6c" stroke-width="2"/> + <rect x="15" y="18" width="2" height="4" fill="#111311"/> +</svg> diff --git a/src/apps/website/src/components/Changelog.astro b/src/apps/website/src/components/Changelog.astro new file mode 100644 index 00000000..3940f136 --- /dev/null +++ b/src/apps/website/src/components/Changelog.astro @@ -0,0 +1,151 @@ +--- +import { localizedPath, useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +const version = `v${__APP_VERSION__}`; +--- + +<section class="section" id="changelog"> + <div class="container"> + <div class="section-title"> + <h2>{t.changelog.title}<span>{t.changelog.titleAccent}</span></h2> + <p class="section-subtitle"> + {t.changelog.subtitle} + </p> + </div> + + <div class="changelog-card"> + <div class="release-header"> + <div class="release-info"> + <span class="badge badge-primary">{version}</span> + <h3>{t.changelog.releaseTitle}</h3> + </div> + <span class="release-date">{t.changelog.releaseDate}</span> + </div> + + <ul class="release-list"> + {t.changelog.highlights.map((h) => ( + <li class={h.icon === '⚠️' ? 'breaking' : ''}> + <span class="release-icon">{h.icon}</span> + <span>{h.text}</span> + </li> + ))} + </ul> + + <div class="release-footer"> + <a href={localizedPath(lang, '/changelog')} class="btn btn-outline"> + {t.changelog.fullChangelog} + </a> + <a + href="https://github.com/macalbert/envilder/releases" + class="release-link" + target="_blank" + rel="noopener noreferrer" + > + {t.changelog.viewReleases} + </a> + </div> + </div> + </div> +</section> + +<style> + .changelog-card { + max-width: 720px; + margin: 0 auto; + background: var(--color-surface); + border: 2px solid var(--color-border); + padding: var(--space-xl); + box-shadow: var(--pixel-shadow); + } + + .release-header { + display: flex; + align-items: center; + justify-content: space-between; + flex-wrap: wrap; + gap: var(--space-md); + margin-bottom: var(--space-lg); + padding-bottom: var(--space-lg); + border-bottom: 2px solid var(--color-border); + } + + .release-info { + display: flex; + align-items: center; + gap: var(--space-md); + } + + .release-info h3 { + font-size: 0.7rem; + color: var(--color-text); + } + + .release-date { + font-family: var(--font-mono); + font-size: 0.8rem; + color: var(--color-text-dim); + } + + .release-list { + list-style: none; + display: flex; + flex-direction: column; + gap: var(--space-md); + margin-bottom: var(--space-xl); + } + + .release-list li { + display: flex; + align-items: flex-start; + gap: var(--space-sm); + font-size: 0.9rem; + color: var(--color-text-muted); + line-height: 1.5; + } + + .release-list li.breaking { + color: var(--color-warning); + } + + .release-icon { + flex-shrink: 0; + filter: grayscale(100%) sepia(60%) saturate(400%) hue-rotate(50deg) brightness(0.9); + text-shadow: + 1px 0 0 rgba(139, 172, 15, 0.25), + 0 1px 0 rgba(139, 172, 15, 0.25); + } + + :global([data-theme="light"]) .release-icon { + filter: grayscale(100%) sepia(40%) saturate(100%) brightness(0.7) contrast(1.1); + text-shadow: + 1px 0 0 rgba(107, 104, 96, 0.2), + 0 1px 0 rgba(107, 104, 96, 0.2); + } + + .release-footer { + display: flex; + align-items: center; + justify-content: space-between; + flex-wrap: wrap; + gap: var(--space-md); + padding-top: var(--space-lg); + border-top: 2px solid var(--color-border); + } + + .release-link { + font-family: var(--font-mono); + font-size: 0.8rem; + color: var(--color-text-muted); + text-decoration: none; + } + + .release-link:hover { + color: var(--color-primary); + } +</style> diff --git a/src/apps/website/src/components/CodeBlock.astro b/src/apps/website/src/components/CodeBlock.astro new file mode 100644 index 00000000..3544a8f8 --- /dev/null +++ b/src/apps/website/src/components/CodeBlock.astro @@ -0,0 +1,68 @@ +--- +export interface Props { + lang?: string; + filename?: string; +} + +const { lang = 'json', filename } = Astro.props; +--- + +<div class="codeblock"> + {filename && ( + <div class="codeblock-header"> + <span class="codeblock-filename">{filename}</span> + <span class="codeblock-lang">{lang}</span> + </div> + )} + <pre class="codeblock-body"><code><slot /></code></pre> +</div> + +<style> + .codeblock { + background: var(--color-code-bg); + border: 2px solid var(--color-code-border, var(--color-border)); + overflow: hidden; + box-shadow: var(--pixel-shadow); + max-width: 100%; + color: var(--color-code-text, var(--color-text)); + } + + .codeblock-header { + background: var(--color-code-header); + padding: var(--space-sm) var(--space-md); + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: 2px solid var(--color-code-border, var(--color-border)); + } + + .codeblock-filename { + font-family: var(--font-mono); + font-size: 0.75rem; + color: var(--color-code-text-muted, var(--color-text-muted)); + } + + .codeblock-lang { + font-family: var(--font-pixel); + font-size: 0.5rem; + color: var(--color-code-text-dim, var(--color-text-dim)); + text-transform: uppercase; + } + + .codeblock-body { + padding: var(--space-lg); + font-family: var(--font-mono); + font-size: 0.82rem; + line-height: 1.8; + letter-spacing: -0.02em; + overflow-x: auto; + color: var(--color-code-text, var(--color-text)); + margin: 0; + white-space: pre; + } + + .codeblock-body code { + font: inherit; + color: inherit; + } +</style> diff --git a/src/apps/website/src/components/DemoVideo.astro b/src/apps/website/src/components/DemoVideo.astro new file mode 100644 index 00000000..d3a14aea --- /dev/null +++ b/src/apps/website/src/components/DemoVideo.astro @@ -0,0 +1,54 @@ +--- +import { useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section section-alt" id="demo"> + <div class="container"> + <div class="section-title"> + <h2>{t.demo.title}<span>{t.demo.titleAccent}</span></h2> + <p class="section-subtitle"> + {t.demo.subtitle} + </p> + </div> + + <div class="demo-wrapper"> + <div class="demo-frame"> + <img + src="https://github.com/user-attachments/assets/9f194143-117d-49f3-a6fb-f400040ea514" + alt={t.demo.cliDemo} + loading="lazy" + /> + </div> + </div> + </div> +</section> + +<style> + .demo-wrapper { + max-width: 800px; + margin: 0 auto; + } + + .demo-frame { + border: 2px solid var(--color-border); + background: var(--color-surface); + box-shadow: var(--pixel-shadow); + overflow: hidden; + aspect-ratio: 16 / 10; + } + + .demo-frame img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; + } +</style> diff --git a/src/apps/website/src/components/DocsContent.astro b/src/apps/website/src/components/DocsContent.astro new file mode 100644 index 00000000..ee8ec4cb --- /dev/null +++ b/src/apps/website/src/components/DocsContent.astro @@ -0,0 +1,998 @@ +--- +import { localizedPath, useTranslations } from '../i18n/utils'; +import CodeBlock from './CodeBlock.astro'; +import Footer from './Footer.astro'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<main class="docs-page"> + <div class="docs-layout"> + + <!-- Sidebar navigation --> + <aside class="docs-sidebar"> + <nav class="docs-nav"> + <p class="nav-section-title">{t.docs.sidebarGettingStarted}</p> + <ul> + <li><a href="#overview">{t.docs.overviewTitle}</a></li> + <li><a href="#requirements">{t.docs.sidebarRequirements}</a></li> + <li><a href="#installation">{t.docs.sidebarInstallation}</a></li> + <li><a href="#credentials">{t.docs.sidebarCredentials}</a></li> + <li><a href="#permissions">{t.docs.sidebarPermissions}</a></li> + </ul> + + <p class="nav-section-title">{t.docs.sidebarCli}</p> + <ul> + <li><a href="#mapping-file">{t.docs.sidebarMappingFile}</a></li> + <li><a href="#pull-command">{t.docs.sidebarPullCommand}</a></li> + <li><a href="#push-command">{t.docs.sidebarPushCommand}</a></li> + <li><a href="#push-single">{t.docs.sidebarPushSingle}</a></li> + </ul> + + <p class="nav-section-title">{t.docs.sidebarGha}</p> + <ul> + <li><a href="#gha-setup">{t.docs.sidebarGhaSetup}</a></li> + <li><a href="#gha-basic">{t.docs.sidebarGhaBasic}</a></li> + <li><a href="#gha-multi-env">{t.docs.sidebarGhaMultiEnv}</a></li> + <li><a href="#gha-azure">{t.docs.sidebarGhaAzure}</a></li> + <li><a href="#gha-inputs">{t.docs.sidebarGhaInputs}</a></li> + </ul> + + <p class="nav-section-title">{t.docs.sidebarReference}</p> + <ul> + <li><a href="#config-priority">{t.docs.sidebarConfigPriority}</a></li> + <li><a href="#azure-setup">{t.docs.sidebarAzureSetup}</a></li> + </ul> + </nav> + </aside> + + <!-- Main content --> + <div class="docs-content"> + <div class="docs-header"> + <a href={localizedPath(lang, '/')} class="back-link">{t.docs.backToHome}</a> + <h1><span class="accent">{t.docs.pageTitle}</span></h1> + <p class="docs-intro"> + {t.docs.intro} + </p> + </div> + + <!-- ───── GETTING STARTED ───── --> + + <section id="overview" class="docs-section"> + <h2>{t.docs.overviewTitle}</h2> + <p>{t.docs.overviewDesc}</p> + <div class="overview-cards"> + <div class="overview-card overview-problem"> + <span class="overview-icon">⚠️</span> + <p>{t.docs.overviewProblem}</p> + </div> + <div class="overview-card overview-solution"> + <span class="overview-icon">✅</span> + <p>{t.docs.overviewSolution}</p> + </div> + </div> + </section> + + <section id="requirements" class="docs-section"> + <h2>{t.docs.reqTitle}</h2> + <ul class="docs-list"> + <li><strong>{t.docs.reqNode}</strong> — <a href="https://nodejs.org/" target="_blank" rel="noopener noreferrer">{t.docs.reqDownload}</a></li> + <li><strong>{t.docs.reqAws}</strong> <em>({t.docs.reqAwsNote})</em> — <a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html" target="_blank" rel="noopener noreferrer">{t.docs.reqInstallGuide}</a></li> + <li><strong>{t.docs.reqAzure}</strong> <em>({t.docs.reqAzureNote})</em> — <a href="https://learn.microsoft.com/en-us/cli/azure/install-azure-cli" target="_blank" rel="noopener noreferrer">{t.docs.reqInstallGuide}</a></li> + </ul> + </section> + + <section id="installation" class="docs-section"> + <h2>{t.docs.installTitle}</h2> + <div class="install-options"> + <div class="install-option"> + <span class="install-label">pnpm</span> + <CodeBlock lang="bash">pnpm add -g envilder</CodeBlock> + </div> + <div class="install-option"> + <span class="install-label">npm</span> + <CodeBlock lang="bash">npm install -g envilder</CodeBlock> + </div> + <div class="install-option"> + <span class="install-label">npx</span> + <CodeBlock lang="bash">npx envilder --help</CodeBlock> + </div> + </div> + </section> + + <section id="credentials" class="docs-section"> + <h2>{t.docs.credTitle}</h2> + + <h3>{t.docs.credAwsTitle}</h3> + <p>{t.docs.credAwsDesc}</p> + <CodeBlock lang="bash">aws configure</CodeBlock> + <p>{t.docs.credAwsProfile}</p> + <CodeBlock lang="bash">{`aws configure --profile dev-account + +# Then pass it to envilder +envilder --map=param-map.json --envfile=.env --profile=dev-account`}</CodeBlock> + + <h3>{t.docs.credAzureTitle}</h3> + <p>{t.docs.credAzureDesc}</p> + <CodeBlock lang="bash">az login</CodeBlock> + <p>{t.docs.credAzureVault}</p> + </section> + + <section id="permissions" class="docs-section"> + <h2>{t.docs.permTitle}</h2> + + <h3>{t.docs.permAwsTitle}</h3> + <p>{t.docs.permAwsDesc}</p> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.permOperation}</th><th>{t.docs.permPermission}</th></tr> + </thead> + <tbody> + <tr><td>{t.docs.permPull}</td><td><code>ssm:GetParameter</code></td></tr> + <tr><td>{t.docs.permPush}</td><td><code>ssm:PutParameter</code></td></tr> + </tbody> + </table> + <p>{t.docs.permPolicyExample}</p> + <CodeBlock lang="json">{`{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Action": ["ssm:GetParameter", "ssm:PutParameter"], + "Resource": "arn:aws:ssm:us-east-1:123456789012:parameter/myapp/*" + }] +}`}</CodeBlock> + + <h3>{t.docs.permAzureTitle}</h3> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.permOperation}</th><th>{t.docs.permPermission}</th></tr> + </thead> + <tbody> + <tr><td>{t.docs.permPull}</td><td><strong>Get</strong></td></tr> + <tr><td>{t.docs.permPush}</td><td><strong>Set</strong></td></tr> + </tbody> + </table> + <p>{t.docs.permAzureRbac}</p> + <CodeBlock lang="bash">{`az role assignment create \\ + --role "Key Vault Secrets Officer" \\ + --assignee <YOUR_OBJECT_ID> \\ + --scope /subscriptions/<SUB>/resourceGroups/<RG>/providers/Microsoft.KeyVault/vaults/<VAULT>`}</CodeBlock> + <p class="note">{t.docs.permAzurePullNote}</p> + </section> + + <!-- ───── CLI ───── --> + + <section id="mapping-file" class="docs-section"> + <h2>{t.docs.mapTitle}</h2> + <p>{t.docs.mapIntro}</p> + + <div class="callout"> + <span class="callout-icon">📄</span> + <div> + <strong>{t.docs.mapCalloutStructure}</strong> {t.docs.mapCalloutKey} + {t.docs.mapCalloutValue} + </div> + </div> + + <h3>{t.docs.mapBasicTitle}</h3> + <p>{t.docs.mapBasicDesc}</p> + <CodeBlock lang="json" filename="param-map.json">{`{ + "API_KEY": "/myapp/prod/api-key", + "DB_PASSWORD": "/myapp/prod/db-password", + "SECRET_TOKEN": "/myapp/prod/secret-token" +}`}</CodeBlock> + <p>{t.docs.mapBasicGenerates}</p> + <CodeBlock lang="dotenv" filename=".env">{`API_KEY=<value from /myapp/prod/api-key> +DB_PASSWORD=<value from /myapp/prod/db-password> +SECRET_TOKEN=<value from /myapp/prod/secret-token>`}</CodeBlock> + + <h3>{t.docs.mapConfigTitle}</h3> + <p>{t.docs.mapConfigDesc}</p> + + <h4>{t.docs.mapConfigOptionsTitle}</h4> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.mapThKey}</th><th>{t.docs.mapThType}</th><th>{t.docs.mapThDefault}</th><th>{t.docs.mapThDescription}</th></tr> + </thead> + <tbody> + <tr> + <td><code>provider</code></td> + <td><code>"aws"</code> | <code>"azure"</code></td> + <td><code>"aws"</code></td> + <td>{t.docs.mapProviderDesc}</td> + </tr> + <tr> + <td><code>vaultUrl</code></td> + <td><code>string</code></td> + <td>—</td> + <td>{t.docs.mapVaultUrlDesc}</td> + </tr> + <tr> + <td><code>profile</code></td> + <td><code>string</code></td> + <td>—</td> + <td>{t.docs.mapProfileDesc}</td> + </tr> + </tbody> + </table> + + <h3>{t.docs.mapAwsProfileTitle}</h3> + <p>{t.docs.mapAwsProfileDesc}</p> + <CodeBlock lang="json" filename="param-map.json">{`{ + "$config": { + "provider": "aws", + "profile": "prod-account" + }, + "API_KEY": "/myapp/prod/api-key", + "DB_PASSWORD": "/myapp/prod/db-password" +}`}</CodeBlock> + <p>{t.docs.mapAwsProfileExplain}</p> + + <h3>{t.docs.mapAzureTitle}</h3> + <p>{t.docs.mapAzureDesc}</p> + <CodeBlock lang="json" filename="param-map.json">{`{ + "$config": { + "provider": "azure", + "vaultUrl": "https://my-vault.vault.azure.net" + }, + "API_KEY": "myapp-prod-api-key", + "DB_PASSWORD": "myapp-prod-db-password" +}`}</CodeBlock> + + <div class="callout callout-warning"> + <span class="callout-icon">⚠️</span> + <div> + <strong>{t.docs.mapAzureWarningTitle}</strong> {t.docs.mapAzureWarningDesc} + </div> + </div> + + <h3>{t.docs.mapDifferencesTitle}</h3> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.mapThEmpty}</th><th>{t.docs.mapThAwsSsm}</th><th>{t.docs.mapThAzureKv}</th></tr> + </thead> + <tbody> + <tr> + <td><strong>{t.docs.mapSecretPathFormat}</strong></td> + <td>{t.docs.mapAwsPathFormat}<br/><code>/myapp/prod/api-key</code></td> + <td>{t.docs.mapAzurePathFormat}<br/><code>myapp-prod-api-key</code></td> + </tr> + <tr> + <td><strong>{t.docs.mapRequiredConfig}</strong></td> + <td>{t.docs.mapAwsRequiredConfig}</td> + <td><code>{t.docs.mapAzureRequiredConfig}</code></td> + </tr> + <tr> + <td><strong>{t.docs.mapOptionalConfig}</strong></td> + <td><code>profile</code></td> + <td>—</td> + </tr> + <tr> + <td><strong>{t.docs.mapAuthentication}</strong></td> + <td>{t.docs.mapAwsAuth}</td> + <td>{t.docs.mapAzureAuth}</td> + </tr> + </tbody> + </table> + + <h3>{t.docs.mapMultiEnvTitle}</h3> + <p>{t.docs.mapMultiEnvDesc}</p> + <div class="multi-env-grid"> + <CodeBlock lang="json" filename="config/dev/param-map.json">{`{ + "$config": { + "provider": "aws", + "profile": "dev-account" + }, + "API_KEY": "/myapp/dev/api-key", + "DB_PASSWORD": "/myapp/dev/db-password" +}`}</CodeBlock> + <CodeBlock lang="json" filename="config/prod/param-map.json">{`{ + "$config": { + "provider": "aws", + "profile": "prod-account" + }, + "API_KEY": "/myapp/prod/api-key", + "DB_PASSWORD": "/myapp/prod/db-password" +}`}</CodeBlock> + </div> + <p>{t.docs.mapMultiEnvThenPull}</p> + <CodeBlock lang="bash">{`# Development +envilder --map=config/dev/param-map.json --envfile=.env.dev + +# Production +envilder --map=config/prod/param-map.json --envfile=.env.prod`}</CodeBlock> + + <h3>{t.docs.mapOverrideTitle}</h3> + <p>{t.docs.mapOverrideDesc}</p> + <CodeBlock lang="bash">{`# Uses $config from the map file as-is +envilder --map=param-map.json --envfile=.env + +# Overrides provider and vault URL, ignoring $config +envilder --provider=azure \\ + --vault-url=https://other-vault.vault.azure.net \\ + --map=param-map.json --envfile=.env + +# Overrides just the AWS profile +envilder --map=param-map.json --envfile=.env --profile=staging-account`}</CodeBlock> + + <p class="note">{t.docs.mapPriorityNote}</p> + </section> + + <section id="pull-command" class="docs-section"> + <h2>{t.docs.pullTitle}</h2> + <p>{t.docs.pullDesc}</p> + + <CodeBlock lang="bash">envilder --map=param-map.json --envfile=.env</CodeBlock> + + <h3>{t.docs.pullOptions}</h3> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.optionHeader}</th><th>{t.docs.mapThDescription}</th></tr> + </thead> + <tbody> + <tr><td><code>--map</code></td><td>{t.docs.pullOptMap}</td></tr> + <tr><td><code>--envfile</code></td><td>{t.docs.pullOptEnv}</td></tr> + <tr><td><code>--provider</code></td><td>{t.docs.pullOptProvider}</td></tr> + <tr><td><code>--vault-url</code></td><td>{t.docs.pullOptVault}</td></tr> + <tr><td><code>--profile</code></td><td>{t.docs.pullOptProfile}</td></tr> + </tbody> + </table> + + <h3>{t.docs.pullExamples}</h3> + <CodeBlock lang="bash">{`# Default (AWS SSM) +envilder --map=param-map.json --envfile=.env + +# With AWS profile +envilder --map=param-map.json --envfile=.env --profile=prod-account + +# Azure via $config in map file +envilder --map=azure-param-map.json --envfile=.env + +# Azure via CLI flags +envilder --provider=azure \\ + --vault-url=https://my-vault.vault.azure.net \\ + --map=param-map.json --envfile=.env`}</CodeBlock> + + <h3>{t.docs.pullOutputTitle}</h3> + <CodeBlock lang="dotenv" filename=".env">{`# Generated by Envilder +API_KEY=abc123 +DB_PASSWORD=secret456`}</CodeBlock> + </section> + + <section id="push-command" class="docs-section"> + <h2>{t.docs.pushTitle}</h2> + <p>{t.docs.pushDesc}</p> + + <CodeBlock lang="bash">envilder --push --envfile=.env --map=param-map.json</CodeBlock> + + <h3>{t.docs.pushOptions}</h3> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.optionHeader}</th><th>{t.docs.mapThDescription}</th></tr> + </thead> + <tbody> + <tr><td><code>--push</code></td><td>{t.docs.pushOptPush}</td></tr> + <tr><td><code>--envfile</code></td><td>{t.docs.pushOptEnv}</td></tr> + <tr><td><code>--map</code></td><td>{t.docs.pushOptMap}</td></tr> + <tr><td><code>--provider</code></td><td>{t.docs.pushOptProvider}</td></tr> + <tr><td><code>--vault-url</code></td><td>{t.docs.pushOptVault}</td></tr> + <tr><td><code>--profile</code></td><td>{t.docs.pushOptProfile}</td></tr> + </tbody> + </table> + + <h3>{t.docs.pushExamples}</h3> + <CodeBlock lang="bash">{`# Push to AWS SSM +envilder --push --envfile=.env --map=param-map.json + +# With AWS profile +envilder --push --envfile=.env.prod --map=param-map.json --profile=prod-account + +# Azure via $config in map file +envilder --push --envfile=.env --map=azure-param-map.json + +# Azure via CLI flags +envilder --push --provider=azure \\ + --vault-url=https://my-vault.vault.azure.net \\ + --envfile=.env --map=param-map.json`}</CodeBlock> + </section> + + <section id="push-single" class="docs-section"> + <h2>{t.docs.pushSingleTitle}</h2> + <p>{t.docs.pushSingleDesc}</p> + + <CodeBlock lang="bash">{`envilder --push --key=API_KEY --value=<SECRET> --secret-path=/myapp/api/key`}</CodeBlock> + + <h3>{t.docs.pushSingleOptions}</h3> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.optionHeader}</th><th>{t.docs.mapThDescription}</th></tr> + </thead> + <tbody> + <tr><td><code>--push</code></td><td>{t.docs.pushSingleOptPush}</td></tr> + <tr><td><code>--key</code></td><td>{t.docs.pushSingleOptKey}</td></tr> + <tr><td><code>--value</code></td><td>{t.docs.pushSingleOptValue}</td></tr> + <tr><td><code>--secret-path</code></td><td>{t.docs.pushSingleOptPath}</td></tr> + <tr><td><code>--provider</code></td><td>{t.docs.pushSingleOptProvider}</td></tr> + <tr><td><code>--vault-url</code></td><td>{t.docs.pushSingleOptVault}</td></tr> + <tr><td><code>--profile</code></td><td>{t.docs.pushSingleOptProfile}</td></tr> + </tbody> + </table> + </section> + + <!-- ───── GITHUB ACTION ───── --> + + <section id="gha-setup" class="docs-section"> + <h2>{t.docs.ghaSetupTitle}</h2> + <p>{t.docs.ghaSetupDesc}</p> + + <h3>{t.docs.ghaPrerequisites}</h3> + <ul class="docs-list"> + <li>{t.docs.ghaPrereqAws}</li> + <li>{t.docs.ghaPrereqAzure}</li> + <li>{t.docs.ghaPrereqMap}</li> + </ul> + + <p class="note">{t.docs.ghaPullOnly}</p> + </section> + + <section id="gha-basic" class="docs-section"> + <h2>{t.docs.ghaBasicTitle}</h2> + <CodeBlock lang="yaml" filename=".github/workflows/deploy.yml">{`name: Deploy Application + +on: + push: + branches: [main] + +permissions: + id-token: write + contents: read + +jobs: + deploy: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v6 + with: + role-to-assume: \${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: us-east-1 + + - name: Pull Secrets from AWS SSM + uses: macalbert/envilder/github-action@v0 + with: + map-file: config/param-map.json + env-file: .env + + - uses: actions/setup-node@v6 + with: + node-version: "20.x" + + - run: pnpm install --frozen-lockfile + - run: pnpm build + - run: pnpm deploy`}</CodeBlock> + </section> + + <section id="gha-multi-env" class="docs-section"> + <h2>{t.docs.ghaMultiEnvTitle}</h2> + <CodeBlock lang="yaml" filename=".github/workflows/deploy-env.yml">{`name: Deploy to Environment + +on: + workflow_dispatch: + inputs: + environment: + description: 'Target environment' + required: true + type: choice + options: [dev, staging, production] + +permissions: + id-token: write + contents: read + +jobs: + deploy: + runs-on: ubuntu-24.04 + environment: \${{ inputs.environment }} + steps: + - uses: actions/checkout@v5 + + - uses: aws-actions/configure-aws-credentials@v6 + with: + role-to-assume: \${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: us-east-1 + + - name: Pull \${{ inputs.environment }} secrets + uses: macalbert/envilder/github-action@v0 + with: + map-file: config/\${{ inputs.environment }}/param-map.json + env-file: .env + + - uses: actions/setup-node@v6 + with: + node-version: "20.x" + - run: pnpm install --frozen-lockfile + - run: pnpm build + - run: pnpm deploy`}</CodeBlock> + </section> + + <section id="gha-azure" class="docs-section"> + <h2>{t.docs.ghaAzureTitle}</h2> + <CodeBlock lang="yaml" filename=".github/workflows/deploy-azure.yml">{`name: Deploy with Azure Key Vault + +on: + push: + branches: [main] + +permissions: + id-token: write + contents: read + +jobs: + deploy: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + + - name: Azure Login + uses: azure/login@v2 + with: + client-id: \${{ secrets.AZURE_CLIENT_ID }} + tenant-id: \${{ secrets.AZURE_TENANT_ID }} + subscription-id: \${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: Pull Secrets from Azure Key Vault + uses: macalbert/envilder/github-action@v0 + with: + map-file: config/param-map.json + env-file: .env + provider: azure + vault-url: https://my-vault.vault.azure.net + + - uses: actions/setup-node@v6 + with: + node-version: "20.x" + - run: pnpm install --frozen-lockfile + - run: pnpm build + - run: pnpm deploy`}</CodeBlock> + </section> + + <section id="gha-inputs" class="docs-section"> + <h2>{t.docs.ghaInputsTitle}</h2> + + <h3>{t.docs.ghaInputsSubtitle}</h3> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.ghaThInput}</th><th>{t.docs.ghaThRequired}</th><th>{t.docs.mapThDefault}</th><th>{t.docs.mapThDescription}</th></tr> + </thead> + <tbody> + <tr><td><code>map-file</code></td><td>{t.docs.ghaYes}</td><td>—</td><td>{t.docs.ghaInputMap}</td></tr> + <tr><td><code>env-file</code></td><td>{t.docs.ghaYes}</td><td>—</td><td>{t.docs.ghaInputEnv}</td></tr> + <tr><td><code>provider</code></td><td>{t.docs.ghaNo}</td><td><code>aws</code></td><td>{t.docs.ghaInputProvider}</td></tr> + <tr><td><code>vault-url</code></td><td>{t.docs.ghaNo}</td><td>—</td><td>{t.docs.ghaInputVault}</td></tr> + </tbody> + </table> + + <h3>{t.docs.ghaOutputsSubtitle}</h3> + <table class="docs-table"> + <thead> + <tr><th>{t.docs.ghaThOutput}</th><th>{t.docs.mapThDescription}</th></tr> + </thead> + <tbody> + <tr><td><code>env-file-path</code></td><td>{t.docs.ghaOutputEnvPath}</td></tr> + </tbody> + </table> + </section> + + <!-- ───── REFERENCE ───── --> + + <section id="config-priority" class="docs-section"> + <h2>{t.docs.configPriorityTitle}</h2> + <p>{t.docs.configPriorityDesc}</p> + <div class="priority-stack"> + <div class="priority-item priority-1">1. {t.docs.configPriority1}</div> + <div class="priority-item priority-2">2. {t.docs.configPriority2}</div> + <div class="priority-item priority-3">3. {t.docs.configPriority3}</div> + </div> + <p>{t.docs.configPriorityExplain}</p> + </section> + + <section id="azure-setup" class="docs-section"> + <h2>{t.docs.azureSetupTitle}</h2> + <p>{t.docs.azureSetupCheck}</p> + <CodeBlock lang="bash">{`az keyvault show --name <VAULT_NAME> \\ + --query properties.enableRbacAuthorization`}</CodeBlock> + <ul class="docs-list"> + <li><code>true</code> → <strong>{t.docs.azureRbacTrue}</strong></li> + <li><code>false</code> / <code>null</code> → <strong>{t.docs.azureRbacFalse}</strong></li> + </ul> + + <h3>{t.docs.azureOptionA}</h3> + <CodeBlock lang="bash">{`az role assignment create \\ + --role "Key Vault Secrets Officer" \\ + --assignee <YOUR_OBJECT_ID> \\ + --scope /subscriptions/<SUB>/resourceGroups/<RG>/providers/Microsoft.KeyVault/vaults/<VAULT>`}</CodeBlock> + + <h3>{t.docs.azureOptionB}</h3> + <CodeBlock lang="bash">{`az keyvault set-policy \\ + --name <VAULT_NAME> \\ + --object-id <YOUR_OBJECT_ID> \\ + --secret-permissions get set list`}</CodeBlock> + <p class="note">{t.docs.azureAccessNote}</p> + </section> + + </div> + </div> +</main> +<Footer lang={lang} /> + +<style> + .docs-page { + padding-top: calc(var(--nav-height) + var(--space-xl)); + padding-bottom: var(--space-4xl); + } + + .docs-layout { + max-width: var(--max-width); + margin: 0 auto; + padding: 0 var(--space-lg); + display: grid; + grid-template-columns: 220px 1fr; + gap: var(--space-2xl); + } + + /* ── Sidebar ── */ + .docs-sidebar { + position: sticky; + top: calc(var(--nav-height) + var(--space-lg)); + height: fit-content; + max-height: calc(100vh - var(--nav-height) - var(--space-xl)); + overflow-y: auto; + padding-right: var(--space-md); + border-right: 1px solid var(--color-border); + } + + .docs-nav ul { + list-style: none; + margin-bottom: var(--space-lg); + } + + .nav-section-title { + font-family: var(--font-pixel); + font-size: 0.5rem; + color: var(--color-primary); + text-transform: uppercase; + letter-spacing: 0.08em; + margin-bottom: var(--space-sm); + margin-top: var(--space-lg); + } + + .nav-section-title:first-child { + margin-top: 0; + } + + .docs-nav a { + display: block; + font-family: var(--font-mono); + font-size: 0.78rem; + color: var(--color-text-muted); + padding: 3px 0; + border-left: 2px solid transparent; + padding-left: var(--space-sm); + transition: all var(--transition-fast); + } + + .docs-nav a:hover { + color: var(--color-text); + border-left-color: var(--color-primary); + } + + /* ── Content ── */ + .docs-content { + min-width: 0; + } + + .docs-header { + margin-bottom: var(--space-3xl); + } + + .back-link { + font-family: var(--font-mono); + font-size: 0.82rem; + color: var(--color-text-muted); + display: inline-block; + margin-bottom: var(--space-lg); + } + + .back-link:hover { + color: var(--color-primary); + } + + .accent { + color: var(--color-primary); + } + + .docs-intro { + font-size: 1rem; + color: var(--color-text-muted); + } + + /* ── Overview ── */ + .overview-cards { + display: grid; + grid-template-columns: 1fr; + gap: var(--space-md); + margin-top: var(--space-lg); + } + + @media (min-width: 640px) { + .overview-cards { + grid-template-columns: 1fr 1fr; + } + } + + .overview-card { + background: var(--color-surface); + border: 2px solid var(--color-border); + padding: var(--space-lg); + display: flex; + gap: var(--space-md); + align-items: flex-start; + } + + .overview-card p { + font-size: 0.88rem; + line-height: 1.6; + color: var(--color-text-muted); + margin: 0; + } + + .overview-icon { + flex-shrink: 0; + font-size: 1.2rem; + } + + .docs-section { + margin-bottom: var(--space-3xl); + padding-top: var(--space-lg); + border-top: 1px solid var(--color-border); + } + + .docs-section h2 { + font-size: 0.75rem; + margin-bottom: var(--space-lg); + } + + .docs-section h3 { + font-size: 0.6rem; + color: var(--color-text); + margin-top: var(--space-2xl); + margin-bottom: var(--space-md); + } + + .docs-section p { + font-size: 0.92rem; + color: var(--color-text-muted); + margin-bottom: var(--space-lg); + line-height: 1.7; + } + + /* Spacing for code blocks inside docs */ + .docs-section :global(.codeblock) { + margin-bottom: var(--space-lg); + } + + /* ── Lists ── */ + .docs-list { + list-style: none; + display: flex; + flex-direction: column; + gap: var(--space-sm); + margin-bottom: var(--space-xl); + } + + .docs-list li { + font-size: 0.92rem; + color: var(--color-text-muted); + line-height: 1.6; + } + + .docs-list li strong { + color: var(--color-text); + } + + .docs-list li a { + color: var(--color-primary); + } + + /* ── Tables ── */ + .docs-table { + width: 100%; + border-collapse: collapse; + margin-bottom: var(--space-xl); + font-size: 0.85rem; + } + + .docs-table th { + font-family: var(--font-pixel); + font-size: 0.5rem; + color: var(--color-primary); + text-align: left; + padding: var(--space-sm) var(--space-md); + border-bottom: 2px solid var(--color-border); + text-transform: uppercase; + letter-spacing: 0.05em; + } + + .docs-table td { + padding: var(--space-sm) var(--space-md); + border-bottom: 1px solid var(--color-border); + color: var(--color-text-muted); + vertical-align: top; + } + + .docs-table code { + font-size: 0.82rem; + background: var(--color-surface); + padding: 1px 5px; + border-radius: 3px; + } + + /* ── Install options ── */ + .install-options { + display: flex; + flex-direction: column; + gap: var(--space-md); + margin-bottom: var(--space-xl); + } + + .install-option { + display: flex; + align-items: center; + gap: var(--space-md); + } + + .install-label { + font-family: var(--font-mono); + font-size: 0.78rem; + color: var(--color-primary); + min-width: 50px; + font-weight: 600; + } + + .install-option :global(.codeblock) { + flex: 1; + margin-bottom: 0; + } + + /* ── Callouts ── */ + .callout { + display: flex; + gap: var(--space-md); + padding: var(--space-lg); + background: var(--color-surface); + border: 1px solid var(--color-border); + border-left: 3px solid var(--color-primary); + border-radius: 4px; + margin-bottom: var(--space-xl); + } + + .callout-warning { + border-left-color: var(--color-warning); + } + + .callout-icon { + font-size: 1.1rem; + flex-shrink: 0; + filter: grayscale(100%) sepia(60%) saturate(400%) hue-rotate(50deg) brightness(0.9); + text-shadow: + 1px 0 0 rgba(139, 172, 15, 0.25), + 0 1px 0 rgba(139, 172, 15, 0.25); + } + + :global([data-theme="light"]) .callout-icon { + filter: grayscale(100%) sepia(40%) saturate(100%) brightness(0.7) contrast(1.1); + text-shadow: + 1px 0 0 rgba(107, 104, 96, 0.2), + 0 1px 0 rgba(107, 104, 96, 0.2); + } + + .callout div { + font-size: 0.88rem; + color: var(--color-text-muted); + line-height: 1.6; + } + + .callout strong { + color: var(--color-text); + } + + /* ── Note ── */ + .docs-section p.note { + font-size: 0.85rem; + color: var(--color-text-muted); + font-style: italic; + padding-left: var(--space-md); + border-left: 2px solid var(--color-border); + } + + /* ── Multi-env grid ── */ + .multi-env-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: var(--space-md); + margin-bottom: var(--space-lg); + } + + .multi-env-grid :global(.codeblock) { + margin-bottom: 0; + } + + /* ── Priority stack ── */ + .priority-stack { + display: flex; + flex-direction: column; + gap: var(--space-sm); + margin-bottom: var(--space-xl); + } + + .priority-item { + font-family: var(--font-mono); + font-size: 0.85rem; + padding: var(--space-sm) var(--space-md); + border-radius: 4px; + border-left: 3px solid; + } + + .priority-1 { + background: rgba(138, 154, 108, 0.15); + border-left-color: var(--color-primary); + color: var(--color-primary); + } + + .priority-2 { + background: rgba(138, 154, 108, 0.08); + border-left-color: var(--color-text-muted); + color: var(--color-text-muted); + } + + .priority-3 { + background: rgba(138, 154, 108, 0.04); + border-left-color: var(--color-border); + color: var(--color-text-muted); + opacity: 0.7; + } + + /* ── Responsive ── */ + @media (max-width: 768px) { + .docs-layout { + grid-template-columns: 1fr; + } + + .docs-sidebar { + position: static; + max-height: none; + border-right: none; + border-bottom: 1px solid var(--color-border); + padding-right: 0; + padding-bottom: var(--space-lg); + margin-bottom: var(--space-lg); + } + + .docs-table { + display: block; + overflow-x: auto; + white-space: nowrap; + } + + .multi-env-grid { + grid-template-columns: 1fr; + } + } +</style> diff --git a/src/apps/website/src/components/FeaturesGrid.astro b/src/apps/website/src/components/FeaturesGrid.astro new file mode 100644 index 00000000..893b39bf --- /dev/null +++ b/src/apps/website/src/components/FeaturesGrid.astro @@ -0,0 +1,67 @@ +--- +import { useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section" id="features"> + <div class="container"> + <div class="section-title"> + <h2>{t.features.title}<span>{t.features.titleAccent}</span></h2> + <p class="section-subtitle"> + {t.features.subtitle} + </p> + </div> + + <div class="grid-4 features-grid"> + {t.features.features.map((f) => ( + <div class:list={['pixel-card', 'feature-card', { 'feature-coming-soon': f.badge }]}> + <span class="pixel-icon">{f.icon}</span> + <div class="feature-title-row"> + <h3>{f.title}</h3> + {f.badge && <span class="badge badge-small">{f.badge}</span>} + </div> + <p>{f.description}</p> + </div> + ))} + </div> + </div> +</section> + +<style> + .feature-card h3 { + margin-bottom: var(--space-sm); + color: var(--color-text); + } + + .feature-card p { + font-size: 0.85rem; + line-height: 1.6; + } + + .feature-card .pixel-icon { + font-size: 1.5rem; + } + + .feature-title-row { + display: flex; + align-items: center; + gap: var(--space-sm); + flex-wrap: wrap; + } + + .feature-coming-soon { + border-style: dashed; + opacity: 0.85; + } + + .badge-small { + font-size: 0.55rem; + padding: 2px 6px; + } +</style> diff --git a/src/apps/website/src/components/Footer.astro b/src/apps/website/src/components/Footer.astro new file mode 100644 index 00000000..95996ace --- /dev/null +++ b/src/apps/website/src/components/Footer.astro @@ -0,0 +1,306 @@ +--- +import { languages, localizedPath, useTranslations } from '../i18n/utils'; +import ThemeSwitcher from './ThemeSwitcher.astro'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +const version = `v${__APP_VERSION__}`; +const currentYear = new Date().getFullYear(); +const currentPath = Astro.url.pathname; +const nonDefaultLocales = Object.keys(languages).filter( + (code) => code !== 'en', +); +const localePrefixRegex = + nonDefaultLocales.length > 0 + ? new RegExp(`^/(${nonDefaultLocales.join('|')})(?=/|$)`) + : null; +const stripLocalePrefix = (path: string): string => { + if (!localePrefixRegex) { + return path || '/'; + } + const strippedPath = path.replace(localePrefixRegex, ''); + return strippedPath || '/'; +}; + +const links = { + project: [ + { + label: t.footer.linkGithub, + href: 'https://github.com/macalbert/envilder', + }, + { label: t.footer.linkNpm, href: 'https://www.npmjs.com/package/envilder' }, + { label: t.footer.linkChangelog, href: localizedPath(lang, '/changelog') }, + { + label: t.footer.linkRoadmap, + href: 'https://github.com/macalbert/envilder/blob/main/ROADMAP.md', + }, + ], + docs: [ + { + label: t.footer.linkGettingStarted, + href: localizedPath(lang, '/#get-started'), + }, + { + label: t.footer.linkPullCommand, + href: localizedPath(lang, '/docs#pull-command'), + }, + { + label: t.footer.linkPushCommand, + href: localizedPath(lang, '/docs#push-command'), + }, + { + label: t.footer.linkGithubAction, + href: localizedPath(lang, '/docs#gha-setup'), + }, + ], + community: [ + { + label: t.footer.linkIssues, + href: 'https://github.com/macalbert/envilder/issues', + }, + { + label: t.footer.linkDiscussions, + href: 'https://github.com/macalbert/envilder/discussions', + }, + { + label: t.footer.linkSecurity, + href: 'https://github.com/macalbert/envilder/blob/main/docs/SECURITY.md', + }, + { + label: t.footer.linkSponsor, + href: 'https://github.com/sponsors/macalbert', + }, + ], +}; +--- + +<footer class="footer"> + <div class="container"> + <div class="footer-grid"> + <div class="footer-brand"> + <a href={localizedPath(lang, '/')} class="footer-logo"> + <span class="logo-bracket">[</span> + <span class="logo-text">envilder</span> + <span class="logo-bracket">]</span> + </a> + <p class="footer-tagline"> + {t.footer.tagline} + </p> + <div class="footer-badges"> + <span class="badge">{t.footer.license}</span> + <span class="badge">{version}</span> + </div> + </div> + + <div class="footer-links-group"> + <h4>{t.footer.project}</h4> + <ul> + {links.project.map((l) => ( + <li><a href={l.href}>{l.label}</a></li> + ))} + </ul> + </div> + + <div class="footer-links-group"> + <h4>{t.footer.documentation}</h4> + <ul> + {links.docs.map((l) => ( + <li><a href={l.href}>{l.label}</a></li> + ))} + </ul> + </div> + + <div class="footer-links-group"> + <h4>{t.footer.community}</h4> + <ul> + {links.community.map((l) => ( + <li><a href={l.href}>{l.label}</a></li> + ))} + </ul> + </div> + </div> + + <div class="footer-bottom"> + <div class="footer-pixel-border"></div> + <div class="footer-bottom-row"> + <div class="footer-preferences"> + <div class="lang-switcher"> + {Object.entries(languages).map(([code, _label]) => ( + <a + href={code === 'en' ? stripLocalePrefix(currentPath) : `/${code}${stripLocalePrefix(currentPath)}`} + class:list={['lang-link', { active: code === lang }]} + > + {code.toUpperCase()} + </a> + ))} + </div> + <ThemeSwitcher lang={lang} /> + </div> + <p class="footer-copy"> + © {currentYear} <a href="https://github.com/macalbert">Marçal Albert Castellví</a>. + {t.footer.builtWith} + </p> + </div> + </div> + </div> +</footer> + +<style> + .footer { + padding: var(--space-3xl) 0 var(--space-xl); + border-top: 2px solid var(--color-border); + background: var(--color-bg-alt); + } + + .footer-grid { + display: grid; + grid-template-columns: 1fr; + gap: var(--space-2xl); + } + + @media (min-width: 768px) { + .footer-grid { + grid-template-columns: 2fr 1fr 1fr 1fr; + } + } + + .footer-logo { + font-family: var(--font-pixel); + font-size: 0.7rem; + color: var(--color-text); + text-decoration: none; + display: inline-flex; + gap: 2px; + margin-bottom: var(--space-md); + transform: scaleY(1.3); + } + + .footer-logo:hover { + color: var(--color-primary); + } + + .logo-bracket { + color: var(--color-primary); + } + + .footer-tagline { + font-size: 0.9rem; + color: var(--color-text-muted); + line-height: 1.6; + margin-bottom: var(--space-md); + } + + .footer-badges { + display: flex; + gap: var(--space-sm); + } + + .footer-links-group h4 { + font-family: var(--font-pixel); + font-size: 0.5rem; + color: var(--color-text-dim); + letter-spacing: 0.1em; + text-transform: uppercase; + margin-bottom: var(--space-md); + } + + .footer-links-group ul { + list-style: none; + display: flex; + flex-direction: column; + gap: var(--space-sm); + } + + .footer-links-group a { + font-family: var(--font-mono); + font-size: 0.82rem; + color: var(--color-text-muted); + text-decoration: none; + transition: color var(--transition-fast); + } + + .footer-links-group a:hover { + color: var(--color-primary); + } + + .footer-bottom { + margin-top: var(--space-2xl); + } + + .footer-pixel-border { + height: 2px; + background: repeating-linear-gradient( + 90deg, + var(--color-border) 0px, + var(--color-border) 8px, + transparent 8px, + transparent 12px + ); + margin-bottom: var(--space-lg); + } + + .footer-copy { + font-size: 0.82rem; + color: var(--color-text-dim); + text-align: center; + } + + .footer-copy a { + color: var(--color-text-muted); + } + + .footer-copy a:hover { + color: var(--color-primary); + } + + .footer-bottom-row { + display: flex; + flex-direction: column; + gap: var(--space-md); + align-items: flex-start; + } + + @media (min-width: 768px) { + .footer-bottom-row { + flex-direction: row; + align-items: center; + justify-content: space-between; + } + } + + .footer-preferences { + display: flex; + align-items: center; + gap: var(--space-sm); + } + + .lang-switcher { + display: flex; + gap: 2px; + background: var(--color-surface); + border: 1px solid var(--color-border); + padding: 2px; + } + + .lang-link { + font-family: var(--font-mono); + font-size: 0.7rem; + color: var(--color-text-dim); + padding: 2px 6px; + text-decoration: none; + transition: all var(--transition-fast); + } + + .lang-link:hover { + color: var(--color-text); + } + + .lang-link.active { + background: var(--color-primary); + color: var(--color-btn-text); + } +</style> diff --git a/src/apps/website/src/components/GetStarted.astro b/src/apps/website/src/components/GetStarted.astro new file mode 100644 index 00000000..b55df135 --- /dev/null +++ b/src/apps/website/src/components/GetStarted.astro @@ -0,0 +1,228 @@ +--- +import { useTranslations } from '../i18n/utils'; +import TerminalMockup from './TerminalMockup.astro'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section" id="get-started"> + <div class="container"> + <div class="section-title"> + <h2>{t.getStarted.title}<span>{t.getStarted.titleAccent}</span></h2> + <p class="section-subtitle"> + {t.getStarted.subtitle} + </p> + </div> + + <div class="getstarted-grid"> + <div class="getstarted-steps"> + <div class="gs-step"> + <h3>{t.getStarted.prerequisites}</h3> + <ul> + <li><strong>{t.getStarted.prereqNode}</strong></li> + <li>{t.getStarted.prereqAws} <em>({t.getStarted.prereqAwsNote})</em></li> + <li>{t.getStarted.prereqAzure} <em>({t.getStarted.prereqAzureNote})</em></li> + <li>{t.getStarted.prereqIam} <code>ssm:GetParameter</code> / <code>ssm:PutParameter</code></li> + </ul> + </div> + + <div class="gs-step"> + <h3>{t.getStarted.install}</h3> + <div class="install-options"> + <div class="install-option"> + <span class="install-label">pnpm</span> + <code class="install-code">pnpm add -g envilder</code> + </div> + <div class="install-option"> + <span class="install-label">npm</span> + <code class="install-code">npm install -g envilder</code> + </div> + <div class="install-option"> + <span class="install-label">npx</span> + <code class="install-code">npx envilder --help</code> + </div> + </div> + </div> + + <div class="gs-step"> + <h3>{t.getStarted.quickStart}</h3> + <ol class="quick-steps"> + <li>{t.getStarted.step1}</li> + <li>{t.getStarted.step2}</li> + <li>{t.getStarted.step3}</li> + </ol> + </div> + </div> + + <div class="getstarted-terminal"> + <TerminalMockup title={t.getStarted.terminalTitle}> + <span class="line"> + <span class="comment">{t.getStarted.commentInstall}</span> + </span> + <span class="line"> + <span class="prompt">$</span> + <span class="command"> npm install -g envilder</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="comment">{t.getStarted.commentCreate}</span> + </span> + <span class="line"> + <span class="prompt">$</span> + <span class="command"> echo </span> + <span class="output">{`'{"API_KEY": "/app/api-key"}' `}</span> + <span class="command"> > param-map.json</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="comment">{t.getStarted.commentPull}</span> + </span> + <span class="line"> + <span class="prompt">$</span> + <span class="command"> envilder</span> + <span class="flag"> --map</span> + <span class="command">=param-map.json</span> + <span class="flag"> --envfile</span> + <span class="command">=.env</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="highlight">✔</span> + <span class="output">{t.getStarted.doneMessage}</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="comment">{t.getStarted.commentPush}</span> + </span> + <span class="line"> + <span class="prompt">$</span> + <span class="command"> envilder</span> + <span class="flag"> --push</span> + <span class="flag"> --key</span> + <span class="command">=API_KEY</span> + <span class="flag"> --value</span> + <span class="command">=sk_live_abc123</span> + <span class="flag"> --secret-path</span> + <span class="command">=/app/api-key</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="highlight">✔</span> + <span class="output">{t.getStarted.pushSuccess}</span> + </span> + </TerminalMockup> + </div> + </div> + </div> +</section> + +<style> + .getstarted-grid { + display: grid; + grid-template-columns: 1fr; + gap: var(--space-2xl); + align-items: start; + } + + @media (min-width: 1024px) { + .getstarted-grid { + grid-template-columns: 1fr 1fr; + } + } + + .getstarted-steps { + display: flex; + flex-direction: column; + gap: var(--space-xl); + } + + .gs-step h3 { + font-size: 0.7rem; + margin-bottom: var(--space-md); + color: var(--color-primary); + } + + .gs-step ul, + .gs-step ol { + list-style: none; + display: flex; + flex-direction: column; + gap: var(--space-sm); + } + + .gs-step ul li, + .gs-step ol li { + font-size: 0.9rem; + color: var(--color-text-muted); + padding-left: var(--space-md); + position: relative; + } + + .gs-step ul li::before { + content: '›'; + position: absolute; + left: 0; + color: var(--color-primary); + font-weight: bold; + } + + .quick-steps { + counter-reset: step; + } + + .quick-steps li { + counter-increment: step; + } + + .quick-steps li::before { + content: counter(step) '.'; + font-family: var(--font-pixel); + font-size: 0.55rem; + color: var(--color-primary); + } + + .gs-step strong { + color: var(--color-text); + } + + .gs-step em { + color: var(--color-text-dim); + font-style: normal; + } + + .install-options { + display: flex; + flex-direction: column; + gap: var(--space-sm); + } + + .install-option { + display: flex; + align-items: center; + gap: var(--space-md); + background: var(--color-surface); + border: 1px solid var(--color-border); + padding: var(--space-sm) var(--space-md); + } + + .install-label { + font-family: var(--font-pixel); + font-size: 0.5rem; + color: var(--color-text-dim); + min-width: 40px; + } + + .install-code { + font-family: var(--font-mono); + font-size: 0.82rem; + background: transparent; + border: none; + padding: 0; + color: var(--color-text); + } +</style> diff --git a/src/apps/website/src/components/GitHubAction.astro b/src/apps/website/src/components/GitHubAction.astro new file mode 100644 index 00000000..2e7819e0 --- /dev/null +++ b/src/apps/website/src/components/GitHubAction.astro @@ -0,0 +1,182 @@ +--- +import { useTranslations } from '../i18n/utils'; +import CodeBlock from './CodeBlock.astro'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section section-alt" id="github-action"> + <div class="container"> + <div class="section-title"> + <h2><span>{t.gha.title}</span></h2> + <p class="section-subtitle"> + {t.gha.subtitle} + </p> + </div> + + <div class="gha-grid"> + <div class="gha-block"> + <h3>{t.gha.awsSsm}</h3> + <CodeBlock lang="yaml" filename=".github/workflows/deploy.yml"> +{`- name: 🪙 Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v6 + with: + role-to-assume: \${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: us-east-1 + +- name: 🔐 Pull Secrets from AWS SSM + uses: macalbert/envilder/github-action@v0 + with: + map-file: param-map.json + env-file: .env`} + </CodeBlock> + </div> + + <div class="gha-block"> + <h3>{t.gha.azureKeyVault}</h3> + <CodeBlock lang="yaml" filename=".github/workflows/deploy.yml"> +{`- name: 🔑 Azure Login + uses: azure/login@v2 + with: + client-id: \${{ secrets.AZURE_CLIENT_ID }} + tenant-id: \${{ secrets.AZURE_TENANT_ID }} + subscription-id: \${{ secrets.AZURE_SUBSCRIPTION_ID }} + +- name: 🔐 Pull Secrets from Azure Key Vault + uses: macalbert/envilder/github-action@v0 + with: + map-file: param-map.json + env-file: .env + provider: azure + vault-url: \${{ secrets.AZURE_KEY_VAULT_URL }}`} + </CodeBlock> + </div> + </div> + + <div class="gha-inputs"> + <h3>{t.gha.actionInputs}</h3> + <div class="inputs-table-wrap"> + <table class="inputs-table"> + <thead> + <tr> + <th>{t.gha.thInput}</th> + <th>{t.gha.thRequired}</th> + <th>{t.gha.thDescription}</th> + </tr> + </thead> + <tbody> + <tr> + <td><code>map-file</code></td> + <td><span class="badge badge-primary">{t.gha.yes}</span></td> + <td>{t.gha.inputMapDesc}</td> + </tr> + <tr> + <td><code>env-file</code></td> + <td><span class="badge badge-primary">{t.gha.yes}</span></td> + <td>{t.gha.inputEnvDesc}</td> + </tr> + <tr> + <td><code>provider</code></td> + <td>{t.gha.no}</td> + <td>{t.gha.inputProviderDesc}</td> + </tr> + <tr> + <td><code>vault-url</code></td> + <td>{t.gha.no}</td> + <td>{t.gha.inputVaultDesc}</td> + </tr> + </tbody> + </table> + </div> + + <p class="gha-output"> + <strong>{t.gha.output}</strong> <code>env-file-path</code> — {t.gha.outputDesc} + </p> + </div> + </div> +</section> + +<style> + .gha-grid { + display: grid; + grid-template-columns: 1fr; + gap: var(--space-xl); + } + + @media (min-width: 1024px) { + .gha-grid { + grid-template-columns: repeat(2, 1fr); + } + } + + .gha-block h3 { + margin-bottom: var(--space-md); + font-size: 0.7rem; + color: var(--color-text); + } + + .gha-block { + min-width: 0; + overflow: hidden; + } + + .gha-inputs { + margin-top: var(--space-2xl); + } + + .gha-inputs h3 { + font-size: 0.7rem; + margin-bottom: var(--space-lg); + text-align: center; + } + + .inputs-table-wrap { + overflow-x: auto; + } + + .inputs-table { + width: 100%; + border-collapse: collapse; + font-size: 0.85rem; + } + + .inputs-table th, + .inputs-table td { + padding: var(--space-sm) var(--space-md); + text-align: left; + border: 1px solid var(--color-border); + } + + .inputs-table th { + background: var(--color-surface); + font-family: var(--font-mono); + font-size: 0.78rem; + color: var(--color-text-muted); + font-weight: 500; + } + + .inputs-table td { + font-family: var(--font-body); + color: var(--color-text-muted); + } + + .inputs-table code { + font-size: 0.8rem; + } + + .gha-output { + margin-top: var(--space-lg); + text-align: center; + font-family: var(--font-mono); + font-size: 0.82rem; + } + + .gha-output strong { + color: var(--color-text); + } +</style> diff --git a/src/apps/website/src/components/Hero.astro b/src/apps/website/src/components/Hero.astro new file mode 100644 index 00000000..e58c3620 --- /dev/null +++ b/src/apps/website/src/components/Hero.astro @@ -0,0 +1,212 @@ +--- +import { useTranslations } from '../i18n/utils'; +import TerminalMockup from './TerminalMockup.astro'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +const version = `v${__APP_VERSION__}`; +--- + +<section class="hero scanlines" id="hero"> + <div class="container hero-container"> + <div class="hero-content"> + <div class="hero-badges"> + <span class="badge badge-primary">{version}</span> + <span class="badge">{t.hero.openSource}</span> + </div> + + <h1 class="hero-title"> + {t.hero.title1}<br /> + {t.hero.title2}<br /> + <span class="hero-accent">{t.hero.titleAccent}</span> + </h1> + + <p class="hero-description"> + {t.hero.description}{' '} + <strong>{t.hero.descAws}</strong>{t.hero.descComma}{' '} + <strong>{t.hero.descAzure}</strong>{' '}{t.hero.descOr}{' '} + <strong>{t.hero.descGcp}</strong> + {' '}{t.hero.descSuffix} + </p> + + <div class="hero-actions"> + <a href="#get-started" class="btn btn-primary"> + {t.hero.getStarted} + </a> + <a + href="https://github.com/macalbert/envilder" + class="btn btn-outline" + target="_blank" + rel="noopener noreferrer" + > + {t.hero.viewOnGithub} + </a> + </div> + + <div class="hero-install"> + <code class="install-cmd"> + <span class="prompt">$</span> npm install -g envilder + </code> + </div> + </div> + + <div class="hero-terminal"> + <TerminalMockup title="envilder"> + <span class="line"> + <span class="comment">{t.hero.terminalComment1}</span> + </span> + <span class="line"> + <span class="prompt">$</span> + <span class="command"> cat </span> + <span class="flag">param-map.json</span> + </span> + <span class="line"> + <span class="output">{'{'}</span> + </span> + <span class="line"> + <span class="output"> "DB_PASSWORD": "/app/prod/db-pass",</span> + </span> + <span class="line"> + <span class="output"> "API_KEY": "/app/prod/api-key"</span> + </span> + <span class="line"> + <span class="output">{'}'}</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="comment">{t.hero.terminalComment2}</span> + </span> + <span class="line"> + <span class="prompt">$</span> + <span class="command"> envilder</span> + <span class="flag"> --map</span> + <span class="command">=param-map.json</span> + <span class="flag"> --envfile</span> + <span class="command">=.env</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="highlight">✔</span> + <span class="output">{t.hero.terminalFetched1}</span> + </span> + <span class="line"> + <span class="highlight">✔</span> + <span class="output">{t.hero.terminalFetched2}</span> + </span> + <span class="line"> + <span class="highlight">✔</span> + <span class="output">{t.hero.terminalWritten}</span> + </span> + <span class="line"> </span> + <span class="line"> + <span class="prompt">$</span> + <span class="cursor"></span> + </span> + </TerminalMockup> + </div> + </div> + + <div class="hero-gradient"></div> +</section> + +<style> + .hero { + padding-top: calc(var(--nav-height) + var(--space-4xl)); + padding-bottom: var(--space-4xl); + position: relative; + overflow: hidden; + } + + .hero-gradient { + position: absolute; + top: 0; + left: 50%; + transform: translateX(-50%); + width: 800px; + height: 600px; + background: radial-gradient( + ellipse at center, + rgba(138, 154, 108, 0.08) 0%, + transparent 70% + ); + pointer-events: none; + z-index: 0; + } + + .hero-container { + display: grid; + grid-template-columns: 1fr; + gap: var(--space-3xl); + align-items: center; + position: relative; + z-index: 2; + } + + .hero-content { + display: flex; + flex-direction: column; + gap: var(--space-lg); + } + + .hero-badges { + display: flex; + gap: var(--space-sm); + flex-wrap: wrap; + } + + .hero-title { + font-size: clamp(1.2rem, 4vw, 1.8rem); + line-height: 1.5; + } + + .hero-accent { + color: var(--color-primary); + } + + .hero-description { + font-size: 1.1rem; + line-height: 1.8; + max-width: 520px; + } + + .hero-description strong { + color: var(--color-secondary); + } + + .hero-actions { + display: flex; + gap: var(--space-md); + flex-wrap: wrap; + } + + .hero-install { + margin-top: var(--space-sm); + } + + .install-cmd { + font-family: var(--font-mono); + font-size: 0.85rem; + background: var(--color-code-bg); + border: 1px solid var(--color-border); + padding: var(--space-sm) var(--space-md); + display: inline-block; + } + + .install-cmd .prompt { + color: var(--color-success); + } + + .hero-terminal { + width: 100%; + } + + @media (min-width: 1024px) { + .hero-container { + grid-template-columns: 1fr 1fr; + } + } +</style> diff --git a/src/apps/website/src/components/HowItWorks.astro b/src/apps/website/src/components/HowItWorks.astro new file mode 100644 index 00000000..d3befe48 --- /dev/null +++ b/src/apps/website/src/components/HowItWorks.astro @@ -0,0 +1,190 @@ +--- +import { useTranslations } from '../i18n/utils'; +import CodeBlock from './CodeBlock.astro'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section section-alt" id="how-it-works"> + <div class="container"> + <div class="section-title"> + <h2>{t.howItWorks.title}<span>{t.howItWorks.titleAccent}</span></h2> + <p class="section-subtitle"> + {t.howItWorks.subtitle} + </p> + </div> + + <div class="steps"> + <div class="step"> + <div class="step-number"> + <span>01</span> + </div> + <div class="step-content"> + <h3>{t.howItWorks.steps[0].title}</h3> + <p> + {t.howItWorks.steps[0].description} + </p> + <CodeBlock lang="json" filename="param-map.json"> +{`{ + "DB_PASSWORD": "/my-app/prod/db-password", + "API_KEY": "/my-app/prod/api-key", + "SECRET_TOKEN": "/my-app/prod/secret-token" +}`} + </CodeBlock> + </div> + </div> + + <div class="step-connector"> + <span class="connector-line"></span> + <span class="connector-arrow">▼</span> + <span class="connector-line"></span> + </div> + + <div class="step"> + <div class="step-number"> + <span>02</span> + </div> + <div class="step-content"> + <h3>{t.howItWorks.steps[1].title}</h3> + <p> + {t.howItWorks.steps[1].description} + </p> + <CodeBlock lang="bash" filename="terminal"> +{`$ envilder --map=param-map.json --envfile=.env + +${t.howItWorks.terminalFetched1} +${t.howItWorks.terminalFetched2} +${t.howItWorks.terminalFetched3} +${t.howItWorks.terminalWritten}`} + </CodeBlock> + </div> + </div> + + <div class="step-connector"> + <span class="connector-line"></span> + <span class="connector-arrow">▼</span> + <span class="connector-line"></span> + </div> + + <div class="step"> + <div class="step-number"> + <span>03</span> + </div> + <div class="step-content"> + <h3>{t.howItWorks.steps[2].title}</h3> + <p> + {t.howItWorks.steps[2].description} + </p> + <CodeBlock lang="bash" filename=".env"> +{`DB_PASSWORD=my-super-secret-password +API_KEY=sk_live_abc123def456 +SECRET_TOKEN=tok_prod_xyz789`} + </CodeBlock> + </div> + </div> + </div> + </div> +</section> + +<style> + .steps { + display: flex; + flex-direction: column; + align-items: center; + gap: 0; + max-width: 720px; + margin: 0 auto; + } + + .step { + display: flex; + gap: var(--space-xl); + width: 100%; + align-items: flex-start; + min-width: 0; + } + + .step-number { + flex-shrink: 0; + width: 48px; + height: 48px; + display: flex; + align-items: center; + justify-content: center; + background: var(--color-primary); + border: 2px solid var(--color-primary); + box-shadow: var(--pixel-shadow-primary); + } + + .step-number span { + font-family: var(--font-pixel); + font-size: 0.65rem; + color: var(--color-btn-text); + } + + .step-content { + flex: 1; + min-width: 0; + display: flex; + flex-direction: column; + gap: var(--space-md); + } + + .step-content h3 { + color: var(--color-text); + font-size: 0.75rem; + } + + .step-content p { + font-size: 0.95rem; + line-height: 1.7; + } + + .step-connector { + display: flex; + flex-direction: column; + align-items: center; + padding: var(--space-md) 0; + margin-left: 23px; + width: 2px; + } + + .connector-line { + width: 2px; + height: 16px; + background: var(--color-border); + } + + .connector-arrow { + font-family: var(--font-pixel); + font-size: 0.5rem; + color: var(--color-primary); + padding: var(--space-xs) 0; + } + + @media (max-width: 640px) { + .step { + flex-direction: column; + gap: var(--space-md); + overflow: hidden; + } + + .step-connector { + margin-left: 0; + flex-direction: row; + width: auto; + gap: var(--space-sm); + padding: var(--space-sm) 0; + } + + .connector-line { + width: 16px; + height: 2px; + } + } +</style> diff --git a/src/apps/website/src/components/Navbar.astro b/src/apps/website/src/components/Navbar.astro new file mode 100644 index 00000000..6920cf27 --- /dev/null +++ b/src/apps/website/src/components/Navbar.astro @@ -0,0 +1,256 @@ +--- +import { localizedPath, useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); + +const navLinks = [ + { label: t.nav.features, href: localizedPath(lang, '/#features') }, + { label: t.nav.howItWorks, href: localizedPath(lang, '/#how-it-works') }, + { label: t.nav.providers, href: localizedPath(lang, '/#providers') }, + { label: t.nav.githubAction, href: localizedPath(lang, '/#github-action') }, + { label: t.nav.changelog, href: localizedPath(lang, '/changelog') }, + { label: t.nav.docs, href: localizedPath(lang, '/docs') }, +]; +--- + +<nav class="navbar" id="top"> + <div class="container nav-container"> + <a href={localizedPath(lang, '/')} class="nav-logo"> + <span class="logo-bracket">[</span> + <span class="logo-text">envilder</span> + <span class="logo-bracket">]</span> + </a> + + <div class="nav-menu" id="navMenu"> + <ul class="nav-links"> + {navLinks.map((link) => ( + <li> + <a href={link.href} class="nav-link">{link.label}</a> + </li> + ))} + </ul> + + <div class="nav-actions"> + <a + href="https://github.com/macalbert/envilder" + class="nav-github" + target="_blank" + rel="noopener noreferrer" + aria-label="GitHub" + > + <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"> + <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/> + </svg> + </a> + <a + href="https://github.com/sponsors/macalbert" + class="nav-sponsor" + target="_blank" + rel="noopener noreferrer" + aria-label="Sponsor" + > + <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"> + <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/> + </svg> + </a> + <a href={localizedPath(lang, '/#get-started')} class="btn btn-primary btn-sm">{t.nav.getStarted}</a> + </div> + </div> + + <button class="nav-toggle" aria-label="Toggle menu" aria-expanded="false" id="navToggle"> + <span></span> + <span></span> + <span></span> + </button> + </div> +</nav> + +<style> + .navbar { + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 100; + background: var(--color-nav-bg); + backdrop-filter: blur(12px); + border-bottom: 2px solid var(--color-border); + height: var(--nav-height); + } + + .nav-container { + display: flex; + align-items: center; + height: 100%; + gap: var(--space-xl); + } + + .nav-logo { + font-family: var(--font-pixel); + font-size: 0.75rem; + color: var(--color-text); + text-decoration: none; + display: flex; + align-items: center; + gap: 2px; + flex-shrink: 0; + transform: scaleY(1.3); + } + + .nav-logo:hover { + color: var(--color-primary); + } + + .logo-bracket { + color: var(--color-primary); + } + + .logo-text { + color: var(--color-text); + } + + .nav-logo:hover .logo-text { + color: var(--color-primary); + } + + .nav-links { + display: none; + list-style: none; + gap: var(--space-lg); + flex: 1; + } + + .nav-link { + font-family: var(--font-mono); + font-size: 0.8rem; + color: var(--color-text-muted); + text-decoration: none; + transition: color var(--transition-fast); + } + + .nav-link:hover { + color: var(--color-primary); + } + + .nav-actions { + display: none; + align-items: center; + gap: var(--space-md); + flex-shrink: 0; + } + + /* ── Mobile menu (open state) ── */ + .nav-open .nav-menu { + display: flex; + flex-direction: column; + gap: var(--space-lg); + position: absolute; + top: var(--nav-height); + left: 0; + right: 0; + background: var(--color-nav-mobile); + padding: var(--space-lg); + border-bottom: 2px solid var(--color-border); + z-index: 99; + } + + .nav-open .nav-links { + display: flex; + flex-direction: column; + } + + .nav-open .nav-actions { + display: flex; + } + + .nav-github { + color: var(--color-text-muted); + transition: color var(--transition-fast); + display: flex; + align-items: center; + } + + .nav-github:hover { + color: var(--color-primary); + } + + .btn-sm { + font-size: 0.55rem; + padding: var(--space-sm) var(--space-md); + } + + .nav-sponsor { + color: var(--color-text-dim); + transition: color var(--transition-fast); + display: flex; + align-items: center; + } + + .nav-sponsor:hover { + color: var(--color-sponsor); + } + + .nav-toggle { + display: flex; + flex-direction: column; + gap: 4px; + background: none; + border: none; + cursor: pointer; + padding: var(--space-sm); + margin-left: auto; + } + + .nav-toggle span { + display: block; + width: 20px; + height: 2px; + background: var(--color-text); + transition: all var(--transition-fast); + } + + @media (min-width: 900px) { + .nav-menu { + display: flex; + align-items: center; + flex: 1; + gap: var(--space-xl); + } + + .nav-links { + display: flex; + } + + .nav-actions { + display: flex; + } + + .nav-toggle { + display: none; + } + } +</style> + +<script> + const toggle = document.getElementById('navToggle'); + const navbar = document.querySelector('.navbar') as HTMLElement; + if (toggle && navbar) { + toggle.addEventListener('click', () => { + const isOpen = navbar.classList.toggle('nav-open'); + toggle.setAttribute('aria-expanded', String(isOpen)); + }); + + // Close mobile menu when a nav link is clicked + navbar.querySelectorAll('.nav-link').forEach((link) => { + link.addEventListener('click', () => { + navbar.classList.remove('nav-open'); + toggle.setAttribute('aria-expanded', 'false'); + }); + }); + } +</script> diff --git a/src/apps/website/src/components/ProblemSolution.astro b/src/apps/website/src/components/ProblemSolution.astro new file mode 100644 index 00000000..9790d694 --- /dev/null +++ b/src/apps/website/src/components/ProblemSolution.astro @@ -0,0 +1,103 @@ +--- +import { useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section" id="why"> + <div class="container"> + <div class="section-title"> + <h2>{t.problemSolution.title}<span>{t.problemSolution.titleAccent}</span>{t.problemSolution.titleSuffix}</h2> + <p class="section-subtitle"> + {t.problemSolution.subtitle} + </p> + </div> + + <div class="grid-3 problems-grid"> + {t.problemSolution.problems.map((p) => ( + <div class="pixel-card problem-card"> + <span class="pixel-icon">{p.icon}</span> + <h3>{p.title}</h3> + <p>{p.description}</p> + </div> + ))} + </div> + + <div class="arrow-divider"> + <span class="arrow-text">{t.problemSolution.arrowText}</span> + </div> + + <div class="grid-3 solutions-grid"> + {t.problemSolution.solutions.map((s) => ( + <div class="pixel-card solution-card"> + <span class="pixel-icon">{s.icon}</span> + <h3>{s.title}</h3> + <p>{s.description}</p> + </div> + ))} + </div> + </div> +</section> + +<style> + .problem-card { + border-color: var(--color-error); + } + + .problem-card::before { + border-color: var(--color-error); + } + + .problem-card:hover { + border-color: var(--color-error); + box-shadow: 4px 4px 0 rgba(160, 80, 80, 0.35); + } + + .problem-card:hover::before { + border-color: var(--color-error); + } + + .solution-card { + border-color: var(--color-success); + } + + .solution-card::before { + border-color: var(--color-success); + } + + .solution-card:hover { + border-color: var(--color-success); + box-shadow: 4px 4px 0 rgba(138, 154, 108, 0.4); + } + + .solution-card:hover::before { + border-color: var(--color-success); + } + + .pixel-card h3 { + margin-bottom: var(--space-sm); + color: var(--color-text); + } + + .pixel-card p { + font-size: 0.9rem; + line-height: 1.6; + } + + .arrow-divider { + text-align: center; + padding: var(--space-2xl) 0; + } + + .arrow-text { + font-family: var(--font-pixel); + font-size: 0.6rem; + color: var(--color-primary); + letter-spacing: 0.1em; + } +</style> diff --git a/src/apps/website/src/components/Providers.astro b/src/apps/website/src/components/Providers.astro new file mode 100644 index 00000000..83f806af --- /dev/null +++ b/src/apps/website/src/components/Providers.astro @@ -0,0 +1,222 @@ +--- +import { useTranslations } from '../i18n/utils'; +import CodeBlock from './CodeBlock.astro'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section" id="providers"> + <div class="container"> + <div class="section-title"> + <h2>{t.providers.title}<span>{t.providers.titleAccent}</span></h2> + <p class="section-subtitle"> + {t.providers.subtitle} + </p> + </div> + + <div class="providers-grid"> + <div class="provider-block"> + <div class="provider-header"> + <img class="pixel-icon provider-logo" src="/AWS.svg" alt="AWS" width="36" height="36" loading="lazy" /> + <div> + <h3>{t.providers.awsTitle}</h3> + </div> + </div> + + <CodeBlock lang="json" filename="param-map.json"> +{`{ + "$config": { + "provider": "aws", + "profile": "prod-account" + }, + "DB_PASSWORD": "/my-app/prod/db-password", + "API_KEY": "/my-app/prod/api-key" +}`} + </CodeBlock> + + <div class="provider-cmd"> + <code> + <span class="prompt">$</span> envilder --map=param-map.json --envfile=.env + </code> + </div> + + <ul class="provider-features"> + {t.providers.awsFeatures.map((f) => ( + <li>✔ {f}</li> + ))} + </ul> + </div> + + <div class="provider-block"> + <div class="provider-header"> + <img class="pixel-icon provider-logo" src="/Azure.svg" alt="Azure" width="36" height="36" loading="lazy" /> + <div> + <h3>{t.providers.azureTitle}</h3> + </div> + </div> + + <CodeBlock lang="json" filename="param-map.json"> +{`{ + "$config": { + "provider": "azure", + "vaultUrl": "https://my-vault.vault.azure.net" + }, + "DB_PASSWORD": "my-app-prod-db-password", + "API_KEY": "my-app-prod-api-key" +}`} + </CodeBlock> + + <div class="provider-cmd"> + <code> + <span class="prompt">$</span> envilder --provider=azure --vault-url=https://my-vault.vault.azure.net --map=param-map.json --envfile=.env + </code> + </div> + + <ul class="provider-features"> + {t.providers.azureFeatures.map((f) => ( + <li>✔ {f}</li> + ))} + </ul> + </div> + + <div class="provider-block provider-coming-soon"> + <div class="provider-header"> + <img class="pixel-icon provider-logo" src="/GCP.svg" alt="GCP" width="36" height="36" loading="lazy" /> + <div> + <h3>{t.providers.gcpTitle}</h3> + <span class="badge">{t.providers.gcpBadge}</span> + </div> + </div> + + <CodeBlock lang="json" filename="param-map.json"> +{`{ + "$config": { + "provider": "gcp", + "projectId": "my-project-id" + }, + "DB_PASSWORD": "my-app-prod-db-password", + "API_KEY": "my-app-prod-api-key" +}`} + </CodeBlock> + + <div class="provider-cmd"> + <code> + <span class="prompt">$</span> envilder --provider=gcp --map=param-map.json --envfile=.env + </code> + </div> + + <ul class="provider-features"> + {t.providers.gcpFeatures.map((f) => ( + <li>✔ {f}</li> + ))} + </ul> + </div> + </div> + + </div> +</section> + +<style> + .providers-grid { + display: grid; + grid-template-columns: 1fr; + gap: var(--space-xl); + max-width: 1100px; + margin: 0 auto; + justify-items: center; + } + + .provider-block { + background: var(--color-surface); + border: 2px solid var(--color-border); + padding: var(--space-xl); + display: flex; + flex-direction: column; + gap: var(--space-lg); + width: 100%; + max-width: 520px; + min-width: 0; + overflow: hidden; + } + + .provider-coming-soon { + border-style: dashed; + opacity: 0.85; + } + + @media (min-width: 768px) { + .providers-grid { + grid-template-columns: repeat(2, 1fr); + } + + .provider-block { + max-width: none; + } + } + + @media (min-width: 1024px) { + .providers-grid { + grid-template-columns: repeat(3, 1fr); + } + } + + .provider-header { + display: flex; + align-items: center; + gap: var(--space-md); + } + + .provider-header .pixel-icon { + font-size: 2rem; + margin-bottom: 0; + } + + .provider-header h3 { + color: var(--color-text); + font-size: 0.7rem; + } + + .provider-cmd { + background: var(--color-code-bg); + border: 1px solid var(--color-border); + padding: var(--space-sm) var(--space-md); + overflow-x: auto; + } + + .provider-cmd code { + font-family: var(--font-mono); + font-size: 0.78rem; + background: transparent; + border: none; + padding: 0; + white-space: nowrap; + color: var(--color-text); + } + + .provider-cmd .prompt { + color: var(--color-success); + } + + .provider-features { + list-style: none; + display: flex; + flex-direction: column; + gap: var(--space-sm); + } + + .provider-features li { + font-family: var(--font-mono); + font-size: 0.8rem; + color: var(--color-text-muted); + } + + .provider-features code { + font-size: 0.78rem; + } + +</style> diff --git a/src/apps/website/src/components/Roadmap.astro b/src/apps/website/src/components/Roadmap.astro new file mode 100644 index 00000000..4062f10c --- /dev/null +++ b/src/apps/website/src/components/Roadmap.astro @@ -0,0 +1,159 @@ +--- +import { useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="section section-alt" id="roadmap"> + <div class="container"> + <div class="section-title"> + <h2>{t.roadmap.title}<span>{t.roadmap.titleAccent}</span></h2> + <p class="section-subtitle"> + {t.roadmap.subtitle} + </p> + </div> + + <div class="roadmap-timeline"> + {t.roadmap.items.map((item, i) => { + const next = t.roadmap.items[i + 1]; + const lineActive = item.status === 'done' && next?.status === 'done'; + return ( + <div class={`roadmap-item roadmap-${item.status}${lineActive ? ' roadmap-line-active' : ''}`}> + <div class="roadmap-marker"> + <span class="roadmap-dot"></span> + </div> + <div class="roadmap-content"> + <div class="roadmap-header"> + <span class="roadmap-label">{item.label}</span> + <h3>{item.title}</h3> + {item.status === 'next' && ( + <span class="badge badge-primary">{t.roadmap.upNext}</span> + )} + </div> + <p>{item.description}</p> + </div> + </div> + ); + })} + </div> + </div> +</section> + +<style> + .roadmap-timeline { + max-width: 640px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: 0; + position: relative; + } + + .roadmap-item { + display: flex; + gap: var(--space-lg); + padding: var(--space-md) 0; + position: relative; + } + + .roadmap-marker { + display: flex; + flex-direction: column; + align-items: center; + flex-shrink: 0; + width: 24px; + position: relative; + } + + .roadmap-dot { + width: 12px; + height: 12px; + border: 2px solid var(--color-border); + background: var(--color-bg); + position: relative; + z-index: 2; + } + + .roadmap-done .roadmap-dot { + background: var(--color-success); + border-color: var(--color-success); + } + + .roadmap-next .roadmap-dot { + background: var(--color-primary); + border-color: var(--color-primary); + box-shadow: 0 0 8px rgba(138, 154, 108, 0.5); + } + + .roadmap-planned .roadmap-dot { + background: var(--color-surface); + border-color: var(--color-border); + } + + .roadmap-item:not(:last-child) .roadmap-marker::after { + content: ''; + position: absolute; + top: 12px; + left: 50%; + transform: translateX(-50%); + width: 2px; + height: calc(100% + var(--space-md)); + background: var(--color-border); + z-index: 1; + } + + .roadmap-line-active:not(:last-child) .roadmap-marker::after { + background: var(--color-success); + } + + .roadmap-content { + flex: 1; + padding-bottom: var(--space-md); + } + + .roadmap-header { + display: flex; + align-items: center; + gap: var(--space-sm); + flex-wrap: wrap; + margin-bottom: var(--space-xs); + } + + .roadmap-label { + font-size: 1rem; + filter: grayscale(100%) sepia(60%) saturate(400%) hue-rotate(50deg) brightness(0.9); + text-shadow: + 1px 0 0 rgba(139, 172, 15, 0.25), + 0 1px 0 rgba(139, 172, 15, 0.25); + } + + :global([data-theme="light"]) .roadmap-label { + filter: grayscale(100%) sepia(40%) saturate(100%) brightness(0.7) contrast(1.1); + text-shadow: + 1px 0 0 rgba(107, 104, 96, 0.2), + 0 1px 0 rgba(107, 104, 96, 0.2); + } + + .roadmap-header h3 { + font-size: 0.65rem; + color: var(--color-text); + } + + .roadmap-content p { + font-size: 0.85rem; + line-height: 1.5; + } + + .roadmap-planned .roadmap-header h3 { + color: var(--color-text-dim); + } + + .roadmap-planned p { + color: var(--color-text-dim); + } +</style> diff --git a/src/apps/website/src/components/TerminalMockup.astro b/src/apps/website/src/components/TerminalMockup.astro new file mode 100644 index 00000000..8ad0442c --- /dev/null +++ b/src/apps/website/src/components/TerminalMockup.astro @@ -0,0 +1,122 @@ +--- +export interface Props { + title?: string; +} + +const { title = 'bash' } = Astro.props; +--- + +<div class="terminal"> + <div class="terminal-header"> + <div class="terminal-dots"> + <span class="dot dot-red"></span> + <span class="dot dot-yellow"></span> + <span class="dot dot-green"></span> + </div> + <span class="terminal-title">{title}</span> + <div class="terminal-spacer"></div> + </div> + <div class="terminal-body"> + <slot /> + </div> +</div> + +<style> + .terminal { + background: var(--color-code-bg); + border: 2px solid var(--color-code-border, var(--color-border)); + overflow: hidden; + box-shadow: var(--pixel-shadow); + width: 100%; + color: var(--color-code-text, var(--color-text)); + } + + .terminal-header { + background: var(--color-code-header); + padding: var(--space-sm) var(--space-md); + display: flex; + align-items: center; + gap: var(--space-sm); + border-bottom: 2px solid var(--color-code-border, var(--color-border)); + } + + .terminal-dots { + display: flex; + gap: 6px; + } + + .dot { + width: 10px; + height: 10px; + border-radius: 0; + } + + .dot-red { background: var(--color-error); } + .dot-yellow { background: var(--color-warning); } + .dot-green { background: var(--color-success); } + + .terminal-title { + font-family: var(--font-mono); + font-size: 0.75rem; + color: var(--color-code-text-dim, var(--color-text-dim)); + } + + .terminal-spacer { + flex: 1; + } + + .terminal-body { + padding: var(--space-lg); + font-family: var(--font-mono); + font-size: 0.85rem; + line-height: 1.8; + overflow-x: auto; + } + + .terminal-body :global(.line) { + display: block; + } + + .terminal-body :global(.prompt) { + color: var(--color-success); + } + + .terminal-body :global(.command) { + color: var(--color-code-text, var(--color-text)); + } + + .terminal-body :global(.flag) { + color: var(--color-secondary); + } + + .terminal-body :global(.output) { + color: var(--color-code-text-muted, var(--color-text-muted)); + } + + .terminal-body :global(.comment) { + color: var(--color-code-text-dim, var(--color-text-dim)); + } + + .terminal-body :global(.highlight) { + color: var(--color-primary); + } + + .terminal-body :global(.cursor) { + display: inline-block; + width: 8px; + height: 1.1em; + background: var(--color-primary); + vertical-align: text-bottom; + animation: blink 1s step-end infinite; + } + + @keyframes blink { + 50% { opacity: 0; } + } + + @media (prefers-reduced-motion: reduce) { + .terminal-body :global(.cursor) { + animation: none; + } + } +</style> diff --git a/src/apps/website/src/components/ThemeSwitcher.astro b/src/apps/website/src/components/ThemeSwitcher.astro new file mode 100644 index 00000000..9626a1f5 --- /dev/null +++ b/src/apps/website/src/components/ThemeSwitcher.astro @@ -0,0 +1,112 @@ +--- +import { useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<div class="theme-switcher" role="radiogroup" aria-label="Theme"> + <button + class="theme-btn" + data-theme-value="retro" + title={t.theme.retro} + aria-label={t.theme.retro} + role="radio" + aria-checked="false" + > + <svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"> + <circle cx="8" cy="8" r="6" stroke="currentColor" stroke-width="2" fill="none"/> + <circle cx="8" cy="8" r="3" fill="currentColor"/> + </svg> + </button> + <button + class="theme-btn" + data-theme-value="light" + title={t.theme.light} + aria-label={t.theme.light} + role="radio" + aria-checked="false" + > + <svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"> + <circle cx="8" cy="8" r="4" fill="currentColor"/> + <line x1="8" y1="1" x2="8" y2="3" stroke="currentColor" stroke-width="1.5"/> + <line x1="8" y1="13" x2="8" y2="15" stroke="currentColor" stroke-width="1.5"/> + <line x1="1" y1="8" x2="3" y2="8" stroke="currentColor" stroke-width="1.5"/> + <line x1="13" y1="8" x2="15" y2="8" stroke="currentColor" stroke-width="1.5"/> + </svg> + </button> +</div> + +<style> + .theme-switcher { + display: flex; + gap: 2px; + background: var(--color-surface); + border: 1px solid var(--color-border); + padding: 2px; + } + + .theme-btn { + display: flex; + align-items: center; + justify-content: center; + padding: 3px 5px; + background: none; + border: none; + color: var(--color-text-dim); + cursor: pointer; + transition: all var(--transition-fast); + } + + .theme-btn:hover { + color: var(--color-text); + } + + .theme-btn.active { + background: var(--color-primary); + color: var(--color-btn-text); + } +</style> + +<script> + function initThemeSwitcher() { + const buttons = document.querySelectorAll<HTMLButtonElement>( + '.theme-btn[data-theme-value]', + ); + const stored = localStorage.getItem('envilder-theme'); + + function applyTheme(theme: string) { + document.documentElement.setAttribute('data-theme', theme); + localStorage.setItem('envilder-theme', theme); + buttons.forEach((btn) => { + const isActive = btn.dataset.themeValue === theme; + btn.classList.toggle('active', isActive); + btn.setAttribute('aria-checked', String(isActive)); + }); + } + + // set initial active state from current data-theme + const current = + stored || + document.documentElement.getAttribute('data-theme') || + 'retro'; + applyTheme(current); + + buttons.forEach((btn) => { + btn.addEventListener('click', () => { + const theme = btn.dataset.themeValue; + if (theme) applyTheme(theme); + }); + }); + } + + // Run on initial load + initThemeSwitcher(); + + // Re-run after Astro client-side navigation + document.addEventListener('astro:after-swap', initThemeSwitcher); +</script> diff --git a/src/apps/website/src/components/TrustBadges.astro b/src/apps/website/src/components/TrustBadges.astro new file mode 100644 index 00000000..00e455a0 --- /dev/null +++ b/src/apps/website/src/components/TrustBadges.astro @@ -0,0 +1,105 @@ +--- +import { useTranslations } from '../i18n/utils'; + +interface Props { + lang?: string; +} + +const { lang = 'en' } = Astro.props; +const t = useTranslations(lang); +--- + +<section class="trust section-alt"> + <div class="container"> + <div class="trust-grid"> + + <div class="trust-item"> + <img class="trust-logo" src="/AWS.svg" alt="AWS" width="24" height="24" loading="lazy" /> + <span class="trust-name">AWS SSM</span> + </div> + + <span class="trust-sep" aria-hidden="true">·</span> + + <div class="trust-item"> + <img class="trust-logo" src="/Azure.svg" alt="Azure" width="24" height="24" loading="lazy" /> + <span class="trust-name">Azure Key Vault</span> + </div> + + <span class="trust-sep" aria-hidden="true">·</span> + + <div class="trust-item"> + <img class="trust-logo" src="/GitHubActions.svg" alt="GitHub Actions" width="24" height="24" loading="lazy" /> + <span class="trust-name">GitHub Actions</span> + </div> + + <span class="trust-sep" aria-hidden="true">·</span> + + <div class="trust-item"> + <img class="trust-logo" src="/NPM.svg" alt="npm" width="24" height="24" loading="lazy" /> + <span class="trust-name">npm</span> + </div> + + </div> + </div> +</section> + +<style> + .trust { + padding: var(--space-xl) 0; + border-top: 2px solid var(--color-border); + border-bottom: 2px solid var(--color-border); + } + + .trust-grid { + display: flex; + justify-content: center; + align-items: center; + flex-wrap: wrap; + gap: var(--space-lg); + } + + .trust-sep { + color: var(--color-border-light); + font-size: 1.2rem; + line-height: 1; + user-select: none; + } + + .trust-item { + display: flex; + align-items: center; + gap: var(--space-xs); + } + + .trust-logo { + width: 24px; + height: 24px; + opacity: 0.7; + transition: opacity 0.2s ease; + filter: grayscale(100%) sepia(60%) saturate(400%) hue-rotate(50deg) brightness(0.9); + } + + .trust-item:hover .trust-logo { + opacity: 1; + } + + :global([data-theme="light"]) .trust-logo { + filter: grayscale(100%) sepia(40%) saturate(100%) brightness(0.7) contrast(1.1); + } + + .trust-name { + font-family: var(--font-mono); + font-size: 0.8rem; + color: var(--color-text-muted); + } + + @media (max-width: 640px) { + .trust-sep { + display: none; + } + + .trust-grid { + gap: var(--space-md) var(--space-xl); + } + } +</style> diff --git a/src/apps/website/src/env.d.ts b/src/apps/website/src/env.d.ts new file mode 100644 index 00000000..41fad5b5 --- /dev/null +++ b/src/apps/website/src/env.d.ts @@ -0,0 +1 @@ +declare const __APP_VERSION__: string; diff --git a/src/apps/website/src/i18n/ca.ts b/src/apps/website/src/i18n/ca.ts new file mode 100644 index 00000000..8b5dbf23 --- /dev/null +++ b/src/apps/website/src/i18n/ca.ts @@ -0,0 +1,620 @@ +import { releaseMetadata } from './releaseMetadata'; +import type { Translations } from './types'; + +export const ca: Translations = { + homeMeta: { + title: 'Envilder — Centralitza els teus secrets. Una comanda.', + description: + "Una eina CLI i GitHub Action que centralitza de forma segura les variables d'entorn des d'AWS SSM, Azure Key Vault o GCP Secret Manager com a font de veritat única.", + }, + nav: { + features: 'Funcionalitats', + howItWorks: 'Com funciona', + providers: 'Proveïdors', + githubAction: 'GitHub Action', + changelog: 'Canvis', + docs: 'Docs', + getStarted: 'Comença', + }, + theme: { + retro: 'Retro', + light: 'Clar', + }, + hero: { + openSource: 'Codi obert · MIT', + title1: 'Els teus secrets.', + title2: 'Una comanda.', + titleAccent: 'Cada entorn.', + description: + "Una eina CLI i GitHub Action que centralitza de forma segura les teves variables d'entorn des de", + descAws: 'AWS SSM', + descAzure: 'Azure Key Vault', + descGcp: 'GCP Secret Manager', + descOr: 'o', + descComma: ',', + descSuffix: + 'com a font de veritat única. Adéu a copiar i enganxar secrets.', + getStarted: '▶ Comença', + viewOnGithub: '★ Veure a GitHub', + terminalComment1: '# 1. Defineix el mapeig', + terminalComment2: '# 2. Descarrega secrets → genera .env', + terminalFetched1: ' Obtingut DB_PASSWORD → ···pass', + terminalFetched2: ' Obtingut API_KEY → ···key', + terminalWritten: " Fitxer d'entorn escrit a .env", + }, + trust: { + label: 'COMPATIBLE AMB', + }, + problemSolution: { + title: 'El ', + titleAccent: 'problema', + titleSuffix: ' amb fitxers .env', + subtitle: + "Gestionar secrets manualment no escala. És insegur, propens a errors i crea fricció per a tot l'equip.", + problems: [ + { + icon: '💀', + title: 'Desincronització entre entorns', + description: + 'Dev, staging i prod tenen secrets diferents. Els desplegaments fallen. Ningú sap quin .env és el correcte.', + }, + { + icon: '📨', + title: 'Secrets compartits per Slack/email', + description: + 'Claus API enviades en text pla per xat. Sense traçabilitat. Sense rotació. Un incident de seguretat esperant a passar.', + }, + { + icon: '🐌', + title: 'Onboarding i rotacions lentes', + description: + "Un nou membre s'uneix a l'equip? Copia i enganxa un .env de la màquina d'algú. Algú rota? Espera que tothom actualitzi manualment.", + }, + ], + arrowText: '▼ envilder ho soluciona ▼', + solutions: [ + { + icon: '🛡️', + title: 'Font de veritat al núvol', + description: + 'Tots els secrets viuen a AWS SSM o Azure Key Vault. IAM/RBAC controla qui pot llegir què. Cada accés queda registrat.', + }, + { + icon: '⚡', + title: 'Una comanda, sempre sincronitzat', + description: + 'Executa envilder i el teu .env es regenera des de la font de veritat. Idempotent. Instantani. Sense marge per al desfasament.', + }, + { + icon: '🤖', + title: 'Automatitzat en CI/CD', + description: + 'Utilitza la GitHub Action per obtenir secrets en el moment del desplegament. Sense secrets als repos. Sense passos manuals als pipelines.', + }, + ], + }, + howItWorks: { + title: 'Com ', + titleAccent: 'funciona', + subtitle: 'Tres passos. De secrets dispersos a una única font de veritat.', + steps: [ + { + title: 'Crea un fitxer de mapeig', + description: + "Mapeja els noms de les teves variables d'entorn a les seves rutes de secrets a AWS SSM o Azure Key Vault.", + }, + { + title: 'Executa una comanda', + description: + 'Envilder obté cada secret del teu proveïdor al núvol i els escriu en un fitxer .env local. Idempotent i instantani.', + }, + { + title: 'El teu .env està llest', + description: + "Un fitxer d'entorn net i actualitzat — generat des de la font de veritat. Utilitza'l localment o injecta'l en CI/CD amb la GitHub Action.", + }, + ], + terminalFetched1: '✔ Obtingut DB_PASSWORD → ···word', + terminalFetched2: '✔ Obtingut API_KEY → ···key', + terminalFetched3: '✔ Obtingut SECRET_TOKEN → ···oken', + terminalWritten: "✔ Fitxer d'entorn escrit a .env", + }, + features: { + title: 'Fet per a ', + titleAccent: 'equips reals', + subtitle: + "Tot el que necessites per gestionar secrets d'entorn de forma segura i a escala.", + features: [ + { + icon: '☁️', + title: 'Multi-Proveïdor', + description: + 'AWS SSM, Azure Key Vault i GCP Secret Manager (pròximament). Tria amb --provider o $config al fitxer de mapeig.', + }, + { + icon: '🔄', + title: 'Sincronització bidireccional', + description: + "Obté secrets a fitxers .env o puja valors .env al teu proveïdor al núvol. Suport complet d'anada i tornada.", + }, + { + icon: '⚙️', + title: 'GitHub Action', + description: + 'Action per als teus workflows CI/CD. Obté secrets en el moment del desplegament sense intervenció manual.', + }, + { + icon: '🔒', + title: 'Accés IAM i RBAC', + description: + "Aprofita el control d'accés natiu del núvol. Les polítiques IAM d'AWS o RBAC d'Azure defineixen qui llegeix què, per entorn.", + }, + { + icon: '📊', + title: 'Totalment auditable', + description: + 'Cada lectura i escriptura queda registrada a AWS CloudTrail o Azure Monitor. Traçabilitat completa de qui ha accedit a què i quan.', + }, + { + icon: '🔁', + title: 'Sincronització idempotent', + description: + "Només s'actualitza el que hi ha al teu mapeig. Res més es toca. Executa'l deu vegades — mateix resultat, zero efectes secundaris.", + }, + { + icon: '🧱', + title: 'Zero infraestructura', + description: + 'Construït sobre serveis natius del núvol. Sense Lambdas, sense servidors, sense infraestructura extra per gestionar o pagar.', + }, + { + icon: '👤', + title: 'Suport de perfils AWS', + description: + 'Configuració multi-compte? Utilitza --profile per canviar entre perfils AWS CLI. Perfecte per a entorns multi-etapa.', + }, + { + icon: '🚀', + title: 'Mode Exec', + description: + 'Injecta secrets directament en un procés fill sense escriure a disc. Zero fitxers .env, zero risc de fuites.', + badge: 'Pròximament', + }, + ], + }, + demo: { + title: "Mira'l en ", + titleAccent: 'acció', + subtitle: + 'Mira com Envilder simplifica la gestió de secrets en menys de 2 minuts.', + cliDemo: 'Demo CLI — Obtenir Secrets', + ghaWorkflow: 'Workflow de GitHub Action', + comingSoon: 'Properament', + }, + providers: { + title: 'El teu núvol. ', + titleAccent: 'La teva elecció.', + subtitle: + 'Envilder funciona amb AWS SSM Parameter Store, Azure Key Vault i GCP Secret Manager (pròximament). Configura en línia o amb flags CLI.', + awsTitle: 'AWS SSM Parameter Store', + awsDefault: 'Proveïdor per defecte', + awsFeatures: [ + 'Suport de GetParameter amb WithDecryption', + 'Suport de perfil AWS per a multi-compte', + "Control d'accés basat en polítiques IAM", + "Registre d'auditoria CloudTrail", + ], + azureTitle: 'Azure Key Vault', + azureBadge: 'Nou a v0.8', + azureFeatures: [ + 'Auto-normalitza noms de secrets (barres → guions)', + 'Autenticació DefaultAzureCredential', + "Control d'accés Azure RBAC", + "Registre d'auditoria Azure Monitor", + ], + gcpTitle: 'GCP Secret Manager', + gcpBadge: 'Pròximament', + gcpFeatures: [ + 'Integració amb Google Cloud Secret Manager', + 'Application Default Credentials (ADC)', + "Control d'accés basat en IAM", + 'Cloud Audit Logs', + ], + configPriorityTitle: 'Prioritat de configuració', + priorityHigh: 'Flags CLI / Inputs GHA', + priorityMid: '$config al fitxer de mapeig', + priorityLow: 'Per defecte (AWS)', + }, + gha: { + title: 'GitHub Action', + subtitle: + 'Obté secrets en el moment del desplegament. Afegeix-lo a qualsevol workflow en minuts.', + awsSsm: '☁️ AWS SSM', + azureKeyVault: '🔑 Azure Key Vault', + actionInputs: "Inputs de l'Action", + thInput: 'Input', + thRequired: 'Requerit', + thDefault: 'Per defecte', + thDescription: 'Descripció', + inputMapDesc: + "Ruta al fitxer JSON que mapeja variables d'entorn a rutes de secrets", + inputEnvDesc: 'Ruta al fitxer .env a generar', + inputProviderDesc: 'Proveïdor al núvol: aws o azure (per defecte: aws)', + inputVaultDesc: "URL d'Azure Key Vault", + output: 'Output:', + outputDesc: 'Ruta al fitxer .env generat', + yes: 'Sí', + no: 'No', + }, + changelog: { + title: 'Què hi ha de ', + titleAccent: 'nou', + subtitle: + "Novetats de l'última versió. El suport multi-proveïdor ja és aquí.", + releaseTitle: 'Suport Multi-Proveïdor', + releaseDate: new Date( + `${releaseMetadata.releaseDate}T00:00:00`, + ).toLocaleDateString('ca-ES', { + year: 'numeric', + month: 'long', + day: 'numeric', + }), + highlights: [ + { + icon: '✨', + text: 'Secció $config als fitxers de mapeig — declara proveïdor i detalls de connexió en línia', + }, + { + icon: '✨', + text: "Suport d'Azure Key Vault — paritat completa amb AWS SSM", + }, + { icon: '✨', text: 'Flags CLI --vault-url i --provider' }, + { + icon: '✨', + text: 'Normalització automàtica de noms de secrets per Azure (barres → guions)', + }, + { + icon: '⚠️', + text: "Canvi incompatible: --ssm-path reanomenat a --secret-path (l'antic flag encara funciona com a àlies obsolet)", + }, + ], + fullChangelog: '📋 Historial complet', + viewReleases: 'Veure totes les versions a GitHub →', + }, + roadmap: { + title: 'Què ve ', + titleAccent: 'ara', + subtitle: 'Envilder es desenvolupa activament. Aquí és cap on anem.', + upNext: 'Pròximament', + items: [ + { + status: 'done', + label: '✅', + title: 'Descarregar secrets a .env', + description: + "Mapeja noms de variables d'entorn a rutes de secrets al núvol via JSON i genera fitxers .env automàticament", + }, + { + status: 'done', + label: '✅', + title: 'Mode push (--push)', + description: + 'Puja valors .env o secrets individuals al proveïdor al núvol', + }, + { + status: 'done', + label: '✅', + title: 'GitHub Action', + description: 'Utilitza Envilder en workflows CI/CD de forma nativa', + }, + { + status: 'done', + label: '✅', + title: 'Multi-proveïdor (AWS + Azure)', + description: "Suport d'AWS SSM Parameter Store i Azure Key Vault", + }, + { + status: 'done', + label: '📖', + title: 'Web de documentació', + description: + 'Web de docs dedicada amb guies, exemples i referència API', + }, + { + status: 'next', + label: '⚡', + title: 'Mode exec (--exec)', + description: 'Injecta secrets en un procés fill sense escriure a disc', + }, + { + status: 'planned', + label: '☁️', + title: 'GCP Secret Manager', + description: 'Tercer proveïdor cloud — completa el trident multi-núvol', + }, + { + status: 'planned', + label: '🔐', + title: 'AWS Secrets Manager', + description: 'Suport de secrets JSON junt amb SSM Parameter Store', + }, + { + status: 'planned', + label: '✔️', + title: 'Mode check/sync (--check)', + description: + 'Valida secrets al núvol vs .env local — falla CI si estan desincronitzats', + }, + ], + }, + getStarted: { + title: 'Comença ', + titleAccent: 'ara', + subtitle: "En funcionament en menys d'un minut.", + prerequisites: 'Prerequisits', + prereqNode: 'Node.js v20+', + prereqAws: 'AWS CLI configurat', + prereqAzure: 'Azure CLI configurat', + prereqIam: 'Permisos IAM:', + prereqAwsNote: 'per AWS SSM', + prereqAzureNote: 'per Azure Key Vault', + install: 'Instal·lar', + quickStart: 'Inici ràpid', + step1: + "Crea un param-map.json que mapegi variables d'entorn a rutes de secrets", + step2: 'Executa envilder --map=param-map.json --envfile=.env', + step3: 'El teu fitxer .env està llest ✔', + terminalTitle: 'Inici ràpid', + commentInstall: '# Instal·lar globalment', + commentCreate: '# Crear fitxer de mapeig', + commentPull: '# Obtenir secrets', + commentPush: '# Pujar un secret', + doneMessage: ' Fet! Fitxer .env generat.', + pushSuccess: ' Secret pujat correctament.', + }, + footer: { + tagline: + "Centralitza de forma segura les teves variables d'entorn des d'AWS SSM, Azure Key Vault o GCP Secret Manager.", + project: 'Projecte', + documentation: 'Documentació', + community: 'Comunitat', + linkGithub: 'GitHub', + linkNpm: 'npm', + linkChangelog: 'Canvis', + linkRoadmap: 'Full de ruta', + linkGettingStarted: 'Comença', + linkPullCommand: 'Comanda Pull', + linkPushCommand: 'Comanda Push', + linkGithubAction: 'GitHub Action', + linkIssues: 'Incidències', + linkDiscussions: 'Discussions', + linkSecurity: 'Seguretat', + linkSponsor: 'Patrocina', + license: 'Llicència MIT', + copyright: 'Fet amb Astro. Codi obert a GitHub.', + builtWith: 'Fet amb Astro. Codi obert a GitHub.', + }, + changelogPage: { + title: 'Historial de canvis — Envilder', + backToHome: "← Tornar a l'inici", + fullChangelog: 'Historial de ', + changelogAccent: 'canvis', + intro: 'Historial complet de versions. Vegeu també', + githubReleases: 'Versions a GitHub', + versions: 'Versions', + backToTop: 'Tornar a dalt', + }, + docs: { + title: 'Documentació — Envilder', + backToHome: "← Tornar a l'inici", + pageTitle: 'Documentació', + intro: 'Tot el que necessites per començar amb Envilder.', + sidebarGettingStarted: 'Primers passos', + sidebarRequirements: 'Requisits', + sidebarInstallation: 'Instal·lació', + sidebarCredentials: 'Credencials del núvol', + sidebarPermissions: 'Permisos IAM', + sidebarCli: 'CLI', + sidebarMappingFile: 'Fitxer de mapeig', + sidebarPullCommand: 'Comanda pull', + sidebarPushCommand: 'Comanda push', + sidebarPushSingle: 'Push individual', + sidebarGha: 'GitHub Action', + sidebarGhaSetup: 'Configuració', + sidebarGhaBasic: 'Exemple bàsic', + sidebarGhaMultiEnv: 'Multi-entorn', + sidebarGhaAzure: 'Exemple Azure', + sidebarGhaInputs: 'Inputs i outputs', + sidebarReference: 'Referència', + sidebarConfigPriority: 'Prioritat de config', + sidebarAzureSetup: 'Configuració Azure', + overviewTitle: 'Què és Envilder?', + overviewDesc: + "Envilder és una eina CLI i GitHub Action que descarrega variables d'entorn d'un magatzem de secrets al núvol (AWS SSM Parameter Store o Azure Key Vault) i les escriu en un fitxer .env local — o les puja de tornada. Definiu un simple mapeig JSON entre noms de variables i rutes de secrets, i Envilder fa la resta.", + overviewProblem: + 'Sense Envilder, els equips copien secrets a mà, els guarden en fitxers .env en text pla al repositori, o mantenen scripts de shell fràgils per cada entorn. Això porta a credencials filtrades, configuracions inconsistents i incorporacions lentes.', + overviewSolution: + "Amb Envilder, un fitxer param-map.json és la font única de veritat. Els secrets no surten del magatzem fins al moment d'execució, cada entorn utilitza el mateix mapeig, i un nou desenvolupador està operatiu amb una sola comanda.", + reqTitle: 'Requisits', + reqNode: 'Node.js v20+', + reqAws: 'AWS CLI', + reqAzure: 'Azure CLI', + reqAwsNote: 'per AWS SSM', + reqAzureNote: 'per Azure Key Vault', + reqDownload: 'Descarregar', + reqInstallGuide: "Guia d'instal·lació", + installTitle: 'Instal·lació', + credTitle: 'Credencials del núvol', + credAwsTitle: 'AWS (per defecte)', + credAwsDesc: + 'Envilder utilitza les teves credencials AWS CLI. Configura el perfil per defecte:', + credAwsProfile: 'O utilitza un perfil amb nom:', + credAzureTitle: 'Azure Key Vault', + credAzureDesc: + 'Envilder utilitza Azure Default Credentials. Inicia sessió amb:', + credAzureVault: + "Proporciona l'URL del vault via $config al fitxer de mapeig o el flag --vault-url.", + permTitle: 'Permisos IAM', + permAwsTitle: 'AWS', + permAwsDesc: 'El teu usuari o rol IAM necessita:', + permOperation: 'Operació', + permPermission: 'Permís', + permPull: 'Pull', + permPush: 'Push', + permPolicyExample: 'Exemple de política IAM:', + permAzureTitle: 'Azure', + permAzureRbac: 'Recomanat — assigna Key Vault Secrets Officer via RBAC:', + permAzurePullNote: + 'Per accés només de lectura, Key Vault Secrets User és suficient.', + mapTitle: 'Fitxer de mapeig', + mapIntro: + "El fitxer de mapeig (param-map.json) és el nucli d'Envilder. És un fitxer JSON que mapeja noms de variables d'entorn (claus) a rutes de secrets (valors) al teu proveïdor al núvol.", + mapCalloutStructure: 'Estructura:', + mapCalloutKey: + "Cada clau es converteix en un nom de variable d'entorn al teu fitxer .env.", + mapCalloutValue: + 'Cada valor és la ruta on viu el secret al teu proveïdor al núvol.', + mapBasicTitle: 'Format bàsic (AWS SSM — per defecte)', + mapBasicDesc: + 'Quan no hi ha secció $config, Envilder utilitza AWS SSM Parameter Store per defecte. Els valors han de ser rutes de paràmetres SSM vàlides (normalment començant amb /):', + mapBasicGenerates: 'Això genera:', + mapConfigTitle: 'La secció $config', + mapConfigDesc: + 'Afegeix una clau $config al teu fitxer de mapeig per declarar quin proveïdor al núvol utilitzar i la seva configuració. Envilder llegeix $config per la configuració i tracta totes les altres claus com a mapeigs de secrets.', + mapConfigOptionsTitle: 'Opcions de $config', + mapThKey: 'Clau', + mapThType: 'Tipus', + mapThDefault: 'Per defecte', + mapThDescription: 'Descripció', + mapProviderDesc: 'Proveïdor al núvol a utilitzar', + mapVaultUrlDesc: + 'URL d\'Azure Key Vault (requerit quan el proveïdor és "azure")', + mapProfileDesc: + 'Perfil AWS CLI per a configuracions multi-compte (només AWS)', + mapAwsProfileTitle: 'AWS SSM amb perfil', + mapAwsProfileDesc: + 'Per utilitzar un perfil AWS CLI específic (útil per a configuracions multi-compte), afegeix profile a $config:', + mapAwsProfileExplain: + 'Això indica a Envilder que utilitzi el perfil prod-account del teu fitxer ~/.aws/credentials en lloc del perfil per defecte.', + mapAzureTitle: 'Azure Key Vault', + mapAzureDesc: + 'Per Azure Key Vault, estableix provider a "azure" i proporciona el vaultUrl:', + mapAzureWarningTitle: 'Convenció de noms Azure:', + mapAzureWarningDesc: + 'Els noms de secrets de Key Vault només permeten caràcters alfanumèrics i guions. Envilder normalitza automàticament els noms — barres i guions baixos es converteixen en guions (p. ex., /myapp/db/password → myapp-db-password).', + mapDifferencesTitle: 'Diferències clau per proveïdor', + mapThEmpty: '', + mapThAwsSsm: 'AWS SSM', + mapThAzureKv: 'Azure Key Vault', + mapSecretPathFormat: 'Format de ruta de secret', + mapAwsPathFormat: 'Rutes de paràmetres amb barres', + mapAzurePathFormat: 'Noms amb guions', + mapRequiredConfig: '$config requerit', + mapAwsRequiredConfig: 'Cap (AWS és per defecte)', + mapAzureRequiredConfig: 'provider + vaultUrl', + mapOptionalConfig: '$config opcional', + mapAuthentication: 'Autenticació', + mapAwsAuth: 'Credencials AWS CLI', + mapAzureAuth: 'Azure Default Credentials', + mapMultiEnvTitle: 'Múltiples entorns', + mapMultiEnvDesc: + "Un patró comú és tenir un fitxer de mapeig per entorn. L'estructura és la mateixa, només canvien les rutes dels secrets:", + mapMultiEnvThenPull: 'Després obté el correcte:', + mapOverrideTitle: 'Sobreescriure $config amb flags CLI', + mapOverrideDesc: + "Els flags CLI sempre tenen prioritat sobre els valors de $config. Això et permet establir valors per defecte al fitxer i sobreescriure'ls per invocació:", + mapOverrideComment1: '# Utilitza $config del fitxer de mapeig tal qual', + mapOverrideComment2: + '# Sobreescriu proveïdor i URL del vault, ignorant $config', + mapOverrideComment3: '# Sobreescriu només el perfil AWS', + mapPriorityNote: + 'Ordre de prioritat: flags CLI / inputs GHA → $config al fitxer de mapeig → per defecte (AWS).', + pullTitle: 'Comanda pull', + pullDesc: + 'Descarrega secrets del teu proveïdor al núvol i genera un fitxer .env local.', + pullOptions: 'Opcions', + pullExamples: 'Exemples', + pullOutput: 'Sortida', + optionHeader: 'Opció', + pullOptMap: 'Ruta al fitxer JSON de mapeig', + pullOptEnv: 'Ruta on escriure el .env', + pullOptProvider: 'aws (per defecte) o azure', + pullOptVault: "URL d'Azure Key Vault", + pullOptProfile: 'Perfil AWS CLI a utilitzar', + pullCommentDefault: '# Per defecte (AWS SSM)', + pullCommentProfile: '# Amb perfil AWS', + pullCommentAzureConfig: '# Azure via $config al fitxer de mapeig', + pullCommentAzureFlags: '# Azure via flags CLI', + pullOutputTitle: 'Sortida', + pushTitle: 'Comanda push', + pushDesc: + "Puja variables d'entorn d'un fitxer .env local al teu proveïdor al núvol utilitzant un fitxer de mapeig.", + pushOptions: 'Opcions', + pushExamples: 'Exemples', + pushOptPush: 'Activa el mode push (requerit)', + pushOptEnv: 'Ruta al teu fitxer .env local', + pushOptMap: 'Ruta al JSON de mapeig de paràmetres', + pushOptProvider: 'aws (per defecte) o azure', + pushOptVault: "URL d'Azure Key Vault", + pushOptProfile: 'Perfil AWS CLI (només AWS)', + pushCommentAws: '# Pujar a AWS SSM', + pushCommentProfile: '# Amb perfil AWS', + pushCommentAzureConfig: '# Azure via $config al fitxer de mapeig', + pushCommentAzureFlags: '# Azure via flags CLI', + pushSingleTitle: 'Pujar variable individual', + pushSingleDesc: + "Puja una variable d'entorn individual directament sense cap fitxer.", + pushSingleOptions: 'Opcions', + pushSingleOptPush: 'Activa el mode push (requerit)', + pushSingleOptKey: "Nom de la variable d'entorn", + pushSingleOptValue: 'Valor a emmagatzemar', + pushSingleOptPath: 'Ruta completa del secret al teu proveïdor al núvol', + pushSingleOptProvider: 'aws (per defecte) o azure', + pushSingleOptVault: "URL d'Azure Key Vault", + pushSingleOptProfile: 'Perfil AWS CLI (només AWS)', + ghaSetupTitle: 'Configuració de GitHub Action', + ghaSetupDesc: + "La GitHub Action d'Envilder obté secrets d'AWS SSM o Azure Key Vault en fitxers .env durant el teu workflow CI/CD. No cal compilar — l'action està pre-construïda i llesta per utilitzar des de GitHub Marketplace.", + ghaPrerequisites: 'Prerequisits', + ghaPrereqAws: + 'AWS: Configura credencials amb aws-actions/configure-aws-credentials', + ghaPrereqAzure: 'Azure: Configura credencials amb azure/login', + ghaPrereqMap: 'Un param-map.json al teu repositori', + ghaPullOnly: 'La GitHub Action només suporta el mode pull (sense push).', + ghaBasicTitle: 'Exemple bàsic de workflow', + ghaMultiEnvTitle: 'Workflow multi-entorn', + ghaAzureTitle: "Workflow d'Azure Key Vault", + ghaInputsTitle: "Inputs i outputs de l'Action", + ghaInputsSubtitle: 'Inputs', + ghaOutputsSubtitle: 'Outputs', + ghaInputRequired: 'Requerit', + ghaInputDefault: 'Per defecte', + ghaInputDesc: 'Descripció', + ghaOutputEnvPath: 'Ruta al fitxer .env generat', + ghaThInput: 'Input', + ghaThRequired: 'Requerit', + ghaThOutput: 'Output', + ghaYes: 'Sí', + ghaNo: 'No', + ghaInputMap: 'Ruta al fitxer JSON de mapeig', + ghaInputEnv: 'Ruta al fitxer .env a generar', + ghaInputProvider: 'aws o azure', + ghaInputVault: "URL d'Azure Key Vault", + configPriorityTitle: 'Prioritat de configuració', + configPriorityDesc: + 'Quan hi ha múltiples fonts de configuració, Envilder les resol en aquest ordre (el més alt guanya):', + configPriority1: 'Flags CLI / inputs GHA', + configPriority2: '$config al fitxer de mapeig', + configPriority3: 'Per defecte (AWS)', + configPriorityExplain: + 'Això vol dir que --provider=azure a la CLI sobreescriurà "provider": "aws" a $config.', + azureSetupTitle: "Configuració d'Azure Key Vault", + azureSetupCheck: "Comprova quin model d'accés utilitza el teu vault:", + azureRbacTrue: 'true → Azure RBAC (recomanat)', + azureRbacFalse: 'false / null → Vault Access Policy (clàssic)', + azureOptionA: 'Opció A — Azure RBAC (recomanat)', + azureOptionB: 'Opció B — Vault Access Policy', + azureAccessNote: + 'Per accés només de lectura, get list és suficient. Afegeix set per push.', + }, +}; diff --git a/src/apps/website/src/i18n/en.ts b/src/apps/website/src/i18n/en.ts new file mode 100644 index 00000000..38b2e2ca --- /dev/null +++ b/src/apps/website/src/i18n/en.ts @@ -0,0 +1,612 @@ +import { releaseMetadata } from './releaseMetadata'; +import type { Translations } from './types'; + +export const en: Translations = { + homeMeta: { + title: 'Envilder — Centralize your secrets. One command.', + description: + 'A CLI tool and GitHub Action that securely centralizes environment variables from AWS SSM, Azure Key Vault, or GCP Secret Manager as a single source of truth.', + }, + nav: { + features: 'Features', + howItWorks: 'How it works', + providers: 'Providers', + githubAction: 'GitHub Action', + changelog: 'Changelog', + docs: 'Docs', + getStarted: 'Get Started', + }, + theme: { + retro: 'Retro', + light: 'Light', + }, + hero: { + openSource: 'Open Source · MIT', + title1: 'Your secrets.', + title2: 'One command.', + titleAccent: 'Every environment.', + description: + 'A CLI tool and GitHub Action that securely centralizes your environment variables from', + descAws: 'AWS SSM', + descAzure: 'Azure Key Vault', + descGcp: 'GCP Secret Manager', + descOr: 'or', + descComma: ',', + descSuffix: 'as a single source of truth. No more copy-pasting secrets.', + getStarted: '▶ Get Started', + viewOnGithub: '★ View on GitHub', + terminalComment1: '# 1. Define your mapping', + terminalComment2: '# 2. Pull secrets → generate .env', + terminalFetched1: ' Fetched DB_PASSWORD → ···pass', + terminalFetched2: ' Fetched API_KEY → ···key', + terminalWritten: ' Environment file written to .env', + }, + trust: { + label: 'WORKS WITH', + }, + problemSolution: { + title: 'The ', + titleAccent: 'problem', + titleSuffix: ' with .env files', + subtitle: + "Managing secrets manually doesn't scale. It's insecure, error-prone, and creates friction for your entire team.", + problems: [ + { + icon: '💀', + title: 'Desync between environments', + description: + 'Dev, staging, and prod have different secrets. Deployments fail. Nobody knows which .env is correct.', + }, + { + icon: '📨', + title: 'Secrets shared via Slack/email', + description: + 'API keys sent in plain text over chat. No audit trail. No rotation. A security incident waiting to happen.', + }, + { + icon: '🐌', + title: 'Slow onboarding & rotations', + description: + "New team member joins? Copy-paste a .env from somebody's machine. Someone rotates? Hope everyone updates manually.", + }, + ], + arrowText: '▼ envilder fixes this ▼', + solutions: [ + { + icon: '🛡️', + title: 'Cloud-native source of truth', + description: + 'All secrets live in AWS SSM or Azure Key Vault. IAM/RBAC controls who can read what. Every access is logged.', + }, + { + icon: '⚡', + title: 'One command, always in sync', + description: + 'Run envilder and your .env is regenerated from the source of truth. Idempotent. Instant. No room for drift.', + }, + { + icon: '🤖', + title: 'Automated in CI/CD', + description: + 'Use the GitHub Action to pull secrets at deploy time. No secrets stored in repos. No manual steps in pipelines.', + }, + ], + }, + howItWorks: { + title: 'How it ', + titleAccent: 'works', + subtitle: + 'Three steps. From scattered secrets to a single source of truth.', + steps: [ + { + title: 'Create a mapping file', + description: + 'Map your environment variable names to their secret paths in AWS SSM or Azure Key Vault.', + }, + { + title: 'Run one command', + description: + 'Envilder pulls each secret from your cloud provider and writes them to a local .env file. Idempotent and instant.', + }, + { + title: 'Your .env is ready', + description: + 'A clean, up-to-date environment file — generated from the source of truth. Use it locally or inject it in CI/CD with the GitHub Action.', + }, + ], + terminalFetched1: '✔ Fetched DB_PASSWORD → ···word', + terminalFetched2: '✔ Fetched API_KEY → ···key', + terminalFetched3: '✔ Fetched SECRET_TOKEN → ···oken', + terminalWritten: '✔ Environment file written to .env', + }, + features: { + title: 'Built for ', + titleAccent: 'real teams', + subtitle: + 'Everything you need to manage environment secrets securely and at scale.', + features: [ + { + icon: '☁️', + title: 'Multi-Provider', + description: + 'AWS SSM, Azure Key Vault, and GCP Secret Manager (coming soon). Choose with --provider or $config in your map file.', + }, + { + icon: '🔄', + title: 'Bidirectional Sync', + description: + 'Pull secrets to .env files or push .env values back to your cloud provider. Full round-trip support.', + }, + { + icon: '⚙️', + title: 'GitHub Action', + description: + 'Drop-in Action for your CI/CD workflows. Pull secrets at deploy time with zero manual intervention.', + }, + { + icon: '🔒', + title: 'IAM & RBAC Access', + description: + 'Leverage native cloud access control. AWS IAM policies or Azure RBAC define who reads what, per environment.', + }, + { + icon: '📊', + title: 'Fully Auditable', + description: + 'Every read and write is logged in AWS CloudTrail or Azure Monitor. Complete trace of who accessed what and when.', + }, + { + icon: '🔁', + title: 'Idempotent Sync', + description: + "Only what's in your mapping gets updated. Nothing else is touched. Run it ten times — same result, zero side effects.", + }, + { + icon: '🧱', + title: 'Zero Infrastructure', + description: + 'Built on native cloud services. No Lambdas, no servers, no extra infrastructure to manage or pay for.', + }, + { + icon: '👤', + title: 'AWS Profile Support', + description: + 'Multi-account setups? Use --profile to switch between AWS CLI profiles. Perfect for multi-stage environments.', + }, + { + icon: '🚀', + title: 'Exec Mode', + description: + 'Inject secrets directly into a child process without writing to disk. Zero .env files, zero risk of leaks.', + badge: 'Coming soon', + }, + ], + }, + demo: { + title: 'See it in ', + titleAccent: 'action', + subtitle: + 'Watch how Envilder simplifies secret management in under 2 minutes.', + cliDemo: 'CLI Demo — Pull Secrets', + ghaWorkflow: 'GitHub Action Workflow', + comingSoon: 'Coming soon', + }, + providers: { + title: 'Your cloud. ', + titleAccent: 'Your choice.', + subtitle: + 'Envilder works with AWS SSM Parameter Store, Azure Key Vault, and GCP Secret Manager (coming soon). Configure inline or via CLI flags.', + awsTitle: 'AWS SSM Parameter Store', + awsDefault: 'Default provider', + awsFeatures: [ + 'Supports GetParameter with WithDecryption', + 'AWS Profile support for multi-account', + 'IAM policy-based access control', + 'CloudTrail audit logging', + ], + azureTitle: 'Azure Key Vault', + azureBadge: 'New in v0.8', + azureFeatures: [ + 'Auto-normalizes secret names (slashes → hyphens)', + 'DefaultAzureCredential authentication', + 'Azure RBAC access control', + 'Azure Monitor audit logging', + ], + gcpTitle: 'GCP Secret Manager', + gcpBadge: 'Coming soon', + gcpFeatures: [ + 'Google Cloud Secret Manager integration', + 'Application Default Credentials (ADC)', + 'IAM-based access control', + 'Cloud Audit Logs', + ], + configPriorityTitle: 'Configuration priority', + priorityHigh: 'CLI flags / GHA inputs', + priorityMid: '$config in map file', + priorityLow: 'Defaults (AWS)', + }, + gha: { + title: 'GitHub Action', + subtitle: + 'Pull secrets at deploy time. Drop it into any workflow in minutes.', + awsSsm: '☁️ AWS SSM', + azureKeyVault: '🔑 Azure Key Vault', + actionInputs: 'Action inputs', + thInput: 'Input', + thRequired: 'Required', + thDefault: 'Default', + thDescription: 'Description', + inputMapDesc: 'Path to JSON file mapping env vars to secret paths', + inputEnvDesc: 'Path to .env file to generate', + inputProviderDesc: 'Cloud provider: aws or azure (default: aws)', + inputVaultDesc: 'Azure Key Vault URL', + output: 'Output:', + outputDesc: 'Path to the generated .env file', + yes: 'Yes', + no: 'No', + }, + changelog: { + title: "What's ", + titleAccent: 'new', + subtitle: 'Latest release highlights. Multi-provider support is here.', + releaseTitle: 'Multi-Provider Support', + releaseDate: new Date( + `${releaseMetadata.releaseDate}T00:00:00`, + ).toLocaleDateString('en-US', { + year: 'numeric', + month: 'long', + day: 'numeric', + }), + highlights: [ + { + icon: '✨', + text: '$config section in map files — declare provider and connection details inline', + }, + { + icon: '✨', + text: 'Azure Key Vault support — full parity with AWS SSM', + }, + { icon: '✨', text: '--vault-url and --provider CLI flags' }, + { + icon: '✨', + text: 'Automatic secret name normalization for Azure (slashes → hyphens)', + }, + { + icon: '⚠️', + text: 'Breaking: --ssm-path renamed to --secret-path (old flag still works as deprecated alias)', + }, + ], + fullChangelog: '📋 Full Changelog', + viewReleases: 'View all releases on GitHub →', + }, + roadmap: { + title: "What's ", + titleAccent: 'next', + subtitle: "Envilder is actively developed. Here's where we're headed.", + upNext: 'Up next', + items: [ + { + status: 'done', + label: '✅', + title: 'Pull secrets to .env', + description: + 'Map env var names to cloud secret paths via JSON and generate .env files automatically', + }, + { + status: 'done', + label: '✅', + title: 'Push mode (--push)', + description: 'Upload .env values or single secrets to cloud provider', + }, + { + status: 'done', + label: '✅', + title: 'GitHub Action', + description: 'Use Envilder in CI/CD workflows natively', + }, + { + status: 'done', + label: '✅', + title: 'Multi-provider (AWS + Azure)', + description: 'AWS SSM Parameter Store and Azure Key Vault support', + }, + { + status: 'done', + label: '📖', + title: 'Documentation website', + description: 'Dedicated docs site with guides, examples, API reference', + }, + { + status: 'next', + label: '⚡', + title: 'Exec mode (--exec)', + description: + 'Inject secrets into child process without writing to disk', + }, + { + status: 'planned', + label: '☁️', + title: 'GCP Secret Manager', + description: 'Third cloud provider — completes the multi-cloud trident', + }, + { + status: 'planned', + label: '🔐', + title: 'AWS Secrets Manager', + description: + 'Support JSON-structured secrets alongside SSM Parameter Store', + }, + { + status: 'planned', + label: '✔️', + title: 'Check/sync mode (--check)', + description: + 'Validate cloud secrets vs local .env — fail CI if out-of-sync', + }, + ], + }, + getStarted: { + title: 'Get ', + titleAccent: 'started', + subtitle: 'Up and running in under a minute.', + prerequisites: 'Prerequisites', + prereqNode: 'Node.js v20+', + prereqAws: 'AWS CLI configured', + prereqAzure: 'Azure CLI configured', + prereqIam: 'IAM permissions:', + prereqAwsNote: 'for AWS SSM', + prereqAzureNote: 'for Azure Key Vault', + install: 'Install', + quickStart: 'Quick start', + step1: 'Create a param-map.json mapping env vars to secret paths', + step2: 'Run envilder --map=param-map.json --envfile=.env', + step3: 'Your .env file is ready ✔', + terminalTitle: 'Quick start', + commentInstall: '# Install globally', + commentCreate: '# Create mapping file', + commentPull: '# Pull secrets', + commentPush: '# Push a secret', + doneMessage: ' Done! .env file generated.', + pushSuccess: ' Secret pushed successfully.', + }, + footer: { + tagline: + 'Securely centralize your environment variables from AWS SSM, Azure Key Vault, or GCP Secret Manager.', + project: 'Project', + documentation: 'Documentation', + community: 'Community', + linkGithub: 'GitHub', + linkNpm: 'npm', + linkChangelog: 'Changelog', + linkRoadmap: 'Roadmap', + linkGettingStarted: 'Getting Started', + linkPullCommand: 'Pull Command', + linkPushCommand: 'Push Command', + linkGithubAction: 'GitHub Action', + linkIssues: 'Issues', + linkDiscussions: 'Discussions', + linkSecurity: 'Security', + linkSponsor: 'Sponsor', + license: 'MIT License', + copyright: 'Built with Astro. Open source on GitHub.', + builtWith: 'Built with Astro. Open source on GitHub.', + }, + changelogPage: { + title: 'Changelog — Envilder', + backToHome: '← Back to home', + fullChangelog: 'Full ', + changelogAccent: 'Changelog', + intro: 'Complete release history. See also', + githubReleases: 'GitHub Releases', + versions: 'Versions', + backToTop: 'Back to top', + }, + docs: { + title: 'Documentation — Envilder', + backToHome: '← Back to home', + pageTitle: 'Documentation', + intro: 'Everything you need to get started with Envilder.', + sidebarGettingStarted: 'Getting started', + sidebarRequirements: 'Requirements', + sidebarInstallation: 'Installation', + sidebarCredentials: 'Cloud credentials', + sidebarPermissions: 'IAM permissions', + sidebarCli: 'CLI', + sidebarMappingFile: 'Mapping file', + sidebarPullCommand: 'Pull command', + sidebarPushCommand: 'Push command', + sidebarPushSingle: 'Push single', + sidebarGha: 'GitHub Action', + sidebarGhaSetup: 'Setup', + sidebarGhaBasic: 'Basic example', + sidebarGhaMultiEnv: 'Multi-environment', + sidebarGhaAzure: 'Azure example', + sidebarGhaInputs: 'Inputs & outputs', + sidebarReference: 'Reference', + sidebarConfigPriority: 'Config priority', + sidebarAzureSetup: 'Azure setup', + overviewTitle: 'What is Envilder?', + overviewDesc: + 'Envilder is a CLI tool and GitHub Action that pulls environment variables from a cloud vault (AWS SSM Parameter Store or Azure Key Vault) and writes them to a local .env file — or pushes them back. You define a simple JSON mapping between variable names and secret paths, and Envilder does the rest.', + overviewProblem: + 'Without Envilder, teams copy secrets by hand, store them in plaintext .env files committed to repos, or maintain fragile shell scripts per environment. This leads to leaked credentials, inconsistent configurations, and slow onboarding.', + overviewSolution: + 'With Envilder, one param-map.json file is the single source of truth. Secrets never leave the vault until runtime, every environment uses the same mapping, and a new developer is up and running in one command.', + reqTitle: 'Requirements', + reqNode: 'Node.js v20+', + reqAws: 'AWS CLI', + reqAzure: 'Azure CLI', + reqAwsNote: 'for AWS SSM', + reqAzureNote: 'for Azure Key Vault', + reqDownload: 'Download', + reqInstallGuide: 'Install guide', + installTitle: 'Installation', + credTitle: 'Cloud credentials', + credAwsTitle: 'AWS (default)', + credAwsDesc: + 'Envilder uses your AWS CLI credentials. Set up the default profile:', + credAwsProfile: 'Or use a named profile:', + credAzureTitle: 'Azure Key Vault', + credAzureDesc: 'Envilder uses Azure Default Credentials. Log in with:', + credAzureVault: + 'Provide the vault URL via $config in your map file or the --vault-url flag.', + permTitle: 'IAM permissions', + permAwsTitle: 'AWS', + permAwsDesc: 'Your IAM user or role needs:', + permOperation: 'Operation', + permPermission: 'Permission', + permPull: 'Pull', + permPush: 'Push', + permPolicyExample: 'Example IAM policy:', + permAzureTitle: 'Azure', + permAzureRbac: 'Recommended — assign Key Vault Secrets Officer via RBAC:', + permAzurePullNote: + 'For pull-only access, Key Vault Secrets User is sufficient.', + mapTitle: 'Mapping file', + mapIntro: + "The mapping file (param-map.json) is the core of Envilder. It's a JSON file that maps environment variable names (keys) to secret paths (values) in your cloud provider.", + mapCalloutStructure: 'Structure:', + mapCalloutKey: 'Each key becomes an env var name in your .env file.', + mapCalloutValue: + 'Each value is the path where the secret lives in your cloud provider.', + mapBasicTitle: 'Basic format (AWS SSM — default)', + mapBasicDesc: + 'When no $config section is present, Envilder defaults to AWS SSM Parameter Store. Values must be valid SSM parameter paths (typically starting with /):', + mapBasicGenerates: 'This generates:', + mapConfigTitle: 'The $config section', + mapConfigDesc: + 'Add a $config key to your mapping file to declare which cloud provider to use and its settings. Envilder reads $config for configuration, and treats all other keys as secret mappings.', + mapConfigOptionsTitle: '$config options', + mapThKey: 'Key', + mapThType: 'Type', + mapThDefault: 'Default', + mapThDescription: 'Description', + mapProviderDesc: 'Cloud provider to use', + mapVaultUrlDesc: 'Azure Key Vault URL (required when provider is "azure")', + mapProfileDesc: 'AWS CLI profile for multi-account setups (AWS only)', + mapAwsProfileTitle: 'AWS SSM with profile', + mapAwsProfileDesc: + 'To use a specific AWS CLI profile (useful for multi-account setups), add profile to $config:', + mapAwsProfileExplain: + 'This tells Envilder to use the prod-account profile from your ~/.aws/credentials file instead of the default profile.', + mapAzureTitle: 'Azure Key Vault', + mapAzureDesc: + 'For Azure Key Vault, set provider to "azure" and provide the vaultUrl:', + mapAzureWarningTitle: 'Azure naming convention:', + mapAzureWarningDesc: + 'Key Vault secret names only allow alphanumeric characters and hyphens. Envilder automatically normalizes names — slashes and underscores become hyphens (e.g., /myapp/db/password → myapp-db-password).', + mapDifferencesTitle: 'Key differences by provider', + mapThEmpty: '', + mapThAwsSsm: 'AWS SSM', + mapThAzureKv: 'Azure Key Vault', + mapSecretPathFormat: 'Secret path format', + mapAwsPathFormat: 'Parameter paths with slashes', + mapAzurePathFormat: 'Hyphenated names', + mapRequiredConfig: 'Required $config', + mapAwsRequiredConfig: 'None (AWS is the default)', + mapAzureRequiredConfig: 'provider + vaultUrl', + mapOptionalConfig: 'Optional $config', + mapAuthentication: 'Authentication', + mapAwsAuth: 'AWS CLI credentials', + mapAzureAuth: 'Azure Default Credentials', + mapMultiEnvTitle: 'Multiple environments', + mapMultiEnvDesc: + 'A common pattern is having one mapping file per environment. The structure is the same, only the secret paths change:', + mapMultiEnvThenPull: 'Then pull the right one:', + mapOverrideTitle: 'Overriding $config with CLI flags', + mapOverrideDesc: + 'CLI flags always take priority over $config values. This lets you set defaults in the file and override per invocation:', + mapOverrideComment1: '# Uses $config from the map file as-is', + mapOverrideComment2: '# Overrides provider and vault URL, ignoring $config', + mapOverrideComment3: '# Overrides just the AWS profile', + mapPriorityNote: + 'Priority order: CLI flags / GHA inputs → $config in map file → defaults (AWS).', + pullTitle: 'Pull command', + pullDesc: + 'Download secrets from your cloud provider and generate a local .env file.', + pullOptions: 'Options', + pullExamples: 'Examples', + pullOutput: 'Output', + optionHeader: 'Option', + pullOptMap: 'Path to JSON mapping file', + pullOptEnv: 'Path to write .env', + pullOptProvider: 'aws (default) or azure', + pullOptVault: 'Azure Key Vault URL', + pullOptProfile: 'AWS CLI profile to use', + pullCommentDefault: '# Default (AWS SSM)', + pullCommentProfile: '# With AWS profile', + pullCommentAzureConfig: '# Azure via $config in map file', + pullCommentAzureFlags: '# Azure via CLI flags', + pullOutputTitle: 'Output', + pushTitle: 'Push command', + pushDesc: + 'Upload environment variables from a local .env file to your cloud provider using a mapping file.', + pushOptions: 'Options', + pushExamples: 'Examples', + pushOptPush: 'Enable push mode (required)', + pushOptEnv: 'Path to your local .env file', + pushOptMap: 'Path to parameter mapping JSON', + pushOptProvider: 'aws (default) or azure', + pushOptVault: 'Azure Key Vault URL', + pushOptProfile: 'AWS CLI profile (AWS only)', + pushCommentAws: '# Push to AWS SSM', + pushCommentProfile: '# With AWS profile', + pushCommentAzureConfig: '# Azure via $config in map file', + pushCommentAzureFlags: '# Azure via CLI flags', + pushSingleTitle: 'Push single variable', + pushSingleDesc: + 'Push a single environment variable directly without any files.', + pushSingleOptions: 'Options', + pushSingleOptPush: 'Enable push mode (required)', + pushSingleOptKey: 'Environment variable name', + pushSingleOptValue: 'Value to store', + pushSingleOptPath: 'Full secret path in your cloud provider', + pushSingleOptProvider: 'aws (default) or azure', + pushSingleOptVault: 'Azure Key Vault URL', + pushSingleOptProfile: 'AWS CLI profile (AWS only)', + ghaSetupTitle: 'GitHub Action setup', + ghaSetupDesc: + 'The Envilder GitHub Action pulls secrets from AWS SSM or Azure Key Vault into .env files during your CI/CD workflow. No build step needed — the action is pre-built and ready to use from GitHub Marketplace.', + ghaPrerequisites: 'Prerequisites', + ghaPrereqAws: + 'AWS: Configure credentials with aws-actions/configure-aws-credentials', + ghaPrereqAzure: 'Azure: Configure credentials with azure/login', + ghaPrereqMap: 'A param-map.json committed to your repository', + ghaPullOnly: 'The GitHub Action only supports pull mode (no push).', + ghaBasicTitle: 'Basic workflow example', + ghaMultiEnvTitle: 'Multi-environment workflow', + ghaAzureTitle: 'Azure Key Vault workflow', + ghaInputsTitle: 'Action inputs & outputs', + ghaInputsSubtitle: 'Inputs', + ghaOutputsSubtitle: 'Outputs', + ghaInputRequired: 'Required', + ghaInputDefault: 'Default', + ghaInputDesc: 'Description', + ghaOutputEnvPath: 'Path to the generated .env file', + ghaThInput: 'Input', + ghaThRequired: 'Required', + ghaThOutput: 'Output', + ghaYes: 'Yes', + ghaNo: 'No', + ghaInputMap: 'Path to JSON mapping file', + ghaInputEnv: 'Path to the .env file to generate', + ghaInputProvider: 'aws or azure', + ghaInputVault: 'Azure Key Vault URL', + configPriorityTitle: 'Configuration priority', + configPriorityDesc: + 'When multiple configuration sources are present, Envilder resolves them in this order (highest wins):', + configPriority1: 'CLI flags / GHA inputs', + configPriority2: '$config in map file', + configPriority3: 'Defaults (AWS)', + configPriorityExplain: + 'This means --provider=azure on the CLI will override "provider": "aws" in $config.', + azureSetupTitle: 'Azure Key Vault setup', + azureSetupCheck: 'Check which access model your vault uses:', + azureRbacTrue: 'true → Azure RBAC (recommended)', + azureRbacFalse: 'false / null → Vault Access Policy (classic)', + azureOptionA: 'Option A — Azure RBAC (recommended)', + azureOptionB: 'Option B — Vault Access Policy', + azureAccessNote: + 'For pull-only access, get list is enough. Add set for push.', + }, +}; diff --git a/src/apps/website/src/i18n/es.ts b/src/apps/website/src/i18n/es.ts new file mode 100644 index 00000000..2393442e --- /dev/null +++ b/src/apps/website/src/i18n/es.ts @@ -0,0 +1,619 @@ +import { releaseMetadata } from './releaseMetadata'; +import type { Translations } from './types'; + +export const es: Translations = { + homeMeta: { + title: 'Envilder — Centraliza tus secretos. Un comando.', + description: + 'Una herramienta CLI y GitHub Action que centraliza de forma segura las variables de entorno desde AWS SSM, Azure Key Vault o GCP Secret Manager como fuente única de verdad.', + }, + nav: { + features: 'Funcionalidades', + howItWorks: 'Cómo funciona', + providers: 'Proveedores', + githubAction: 'GitHub Action', + changelog: 'Cambios', + docs: 'Docs', + getStarted: 'Empezar', + }, + theme: { + retro: 'Retro', + light: 'Claro', + }, + hero: { + openSource: 'Código abierto · MIT', + title1: 'Tus secretos.', + title2: 'Un comando.', + titleAccent: 'Cada entorno.', + description: + 'Una herramienta CLI y GitHub Action que centraliza de forma segura tus variables de entorno desde', + descAws: 'AWS SSM', + descAzure: 'Azure Key Vault', + descGcp: 'GCP Secret Manager', + descOr: 'o', + descComma: ',', + descSuffix: + 'como fuente única de verdad. Se acabó copiar y pegar secretos.', + getStarted: '▶ Empezar', + viewOnGithub: '★ Ver en GitHub', + terminalComment1: '# 1. Define tu mapeo', + terminalComment2: '# 2. Descarga secretos → genera .env', + terminalFetched1: ' Obtenido DB_PASSWORD → ···pass', + terminalFetched2: ' Obtenido API_KEY → ···key', + terminalWritten: ' Archivo de entorno escrito en .env', + }, + trust: { + label: 'COMPATIBLE CON', + }, + problemSolution: { + title: 'El ', + titleAccent: 'problema', + titleSuffix: ' con archivos .env', + subtitle: + 'Gestionar secretos manualmente no escala. Es inseguro, propenso a errores y crea fricción para todo el equipo.', + problems: [ + { + icon: '💀', + title: 'Desincronización entre entornos', + description: + 'Dev, staging y prod tienen secretos diferentes. Los despliegues fallan. Nadie sabe qué .env es el correcto.', + }, + { + icon: '📨', + title: 'Secretos compartidos por Slack/email', + description: + 'Claves API enviadas en texto plano por chat. Sin trazabilidad. Sin rotación. Un incidente de seguridad esperando a ocurrir.', + }, + { + icon: '🐌', + title: 'Onboarding y rotaciones lentas', + description: + '¿Un nuevo miembro se une al equipo? Copia y pega un .env de la máquina de alguien. ¿Alguien rota? Espera que todos actualicen manualmente.', + }, + ], + arrowText: '▼ envilder lo soluciona ▼', + solutions: [ + { + icon: '🛡️', + title: 'Fuente de verdad en la nube', + description: + 'Todos los secretos viven en AWS SSM o Azure Key Vault. IAM/RBAC controla quién puede leer qué. Cada acceso queda registrado.', + }, + { + icon: '⚡', + title: 'Un comando, siempre sincronizado', + description: + 'Ejecuta envilder y tu .env se regenera desde la fuente de verdad. Idempotente. Instantáneo. Sin margen para el desfase.', + }, + { + icon: '🤖', + title: 'Automatizado en CI/CD', + description: + 'Usa la GitHub Action para obtener secretos en el momento del despliegue. Sin secretos en los repos. Sin pasos manuales en los pipelines.', + }, + ], + }, + howItWorks: { + title: 'Cómo ', + titleAccent: 'funciona', + subtitle: 'Tres pasos. De secretos dispersos a una única fuente de verdad.', + steps: [ + { + title: 'Crea un archivo de mapeo', + description: + 'Mapea los nombres de tus variables de entorno a sus rutas de secretos en AWS SSM o Azure Key Vault.', + }, + { + title: 'Ejecuta un comando', + description: + 'Envilder obtiene cada secreto de tu proveedor en la nube y los escribe en un archivo .env local. Idempotente e instantáneo.', + }, + { + title: 'Tu .env está listo', + description: + 'Un archivo de entorno limpio y actualizado — generado desde la fuente de verdad. Úsalo localmente o inyéctalo en CI/CD con la GitHub Action.', + }, + ], + terminalFetched1: '✔ Obtenido DB_PASSWORD → ···word', + terminalFetched2: '✔ Obtenido API_KEY → ···key', + terminalFetched3: '✔ Obtenido SECRET_TOKEN → ···oken', + terminalWritten: '✔ Archivo de entorno escrito en .env', + }, + features: { + title: 'Hecho para ', + titleAccent: 'equipos reales', + subtitle: + 'Todo lo que necesitas para gestionar secretos de entorno de forma segura y a escala.', + features: [ + { + icon: '☁️', + title: 'Multi-Proveedor', + description: + 'AWS SSM, Azure Key Vault y GCP Secret Manager (próximamente). Elige con --provider o $config en tu archivo de mapeo.', + }, + { + icon: '🔄', + title: 'Sincronización bidireccional', + description: + 'Obtén secretos en archivos .env o sube valores .env a tu proveedor en la nube. Soporte completo de ida y vuelta.', + }, + { + icon: '⚙️', + title: 'GitHub Action', + description: + 'Action para tus workflows CI/CD. Obtén secretos en el momento del despliegue sin intervención manual.', + }, + { + icon: '🔒', + title: 'Acceso IAM y RBAC', + description: + 'Aprovecha el control de acceso nativo de la nube. Las políticas IAM de AWS o RBAC de Azure definen quién lee qué, por entorno.', + }, + { + icon: '📊', + title: 'Totalmente auditable', + description: + 'Cada lectura y escritura queda registrada en AWS CloudTrail o Azure Monitor. Trazabilidad completa de quién accedió a qué y cuándo.', + }, + { + icon: '🔁', + title: 'Sincronización idempotente', + description: + 'Solo se actualiza lo que hay en tu mapeo. Nada más se toca. Ejecútalo diez veces — mismo resultado, cero efectos secundarios.', + }, + { + icon: '🧱', + title: 'Cero infraestructura', + description: + 'Construido sobre servicios nativos de la nube. Sin Lambdas, sin servidores, sin infraestructura extra que gestionar o pagar.', + }, + { + icon: '👤', + title: 'Soporte de perfiles AWS', + description: + '¿Configuración multi-cuenta? Usa --profile para cambiar entre perfiles AWS CLI. Perfecto para entornos multi-etapa.', + }, + { + icon: '🚀', + title: 'Modo Exec', + description: + 'Inyecta secretos directamente en un proceso hijo sin escribir a disco. Cero archivos .env, cero riesgo de fugas.', + badge: 'Próximamente', + }, + ], + }, + demo: { + title: 'Míralo en ', + titleAccent: 'acción', + subtitle: + 'Mira cómo Envilder simplifica la gestión de secretos en menos de 2 minutos.', + cliDemo: 'Demo CLI — Obtener Secretos', + ghaWorkflow: 'Workflow de GitHub Action', + comingSoon: 'Próximamente', + }, + providers: { + title: 'Tu nube. ', + titleAccent: 'Tu elección.', + subtitle: + 'Envilder funciona con AWS SSM Parameter Store, Azure Key Vault y GCP Secret Manager (próximamente). Configura en línea o con flags CLI.', + awsTitle: 'AWS SSM Parameter Store', + awsDefault: 'Proveedor por defecto', + awsFeatures: [ + 'Soporte de GetParameter con WithDecryption', + 'Soporte de perfil AWS para multi-cuenta', + 'Control de acceso basado en políticas IAM', + 'Registro de auditoría CloudTrail', + ], + azureTitle: 'Azure Key Vault', + azureBadge: 'Nuevo en v0.8', + azureFeatures: [ + 'Auto-normaliza nombres de secretos (barras → guiones)', + 'Autenticación DefaultAzureCredential', + 'Control de acceso Azure RBAC', + 'Registro de auditoría Azure Monitor', + ], + gcpTitle: 'GCP Secret Manager', + gcpBadge: 'Próximamente', + gcpFeatures: [ + 'Integración con Google Cloud Secret Manager', + 'Application Default Credentials (ADC)', + 'Control de acceso basado en IAM', + 'Cloud Audit Logs', + ], + configPriorityTitle: 'Prioridad de configuración', + priorityHigh: 'Flags CLI / Inputs GHA', + priorityMid: '$config en archivo de mapeo', + priorityLow: 'Por defecto (AWS)', + }, + gha: { + title: 'GitHub Action', + subtitle: + 'Obtén secretos en el momento del despliegue. Añádelo a cualquier workflow en minutos.', + awsSsm: '☁️ AWS SSM', + azureKeyVault: '🔑 Azure Key Vault', + actionInputs: 'Inputs de la Action', + thInput: 'Input', + thRequired: 'Requerido', + thDefault: 'Por defecto', + thDescription: 'Descripción', + inputMapDesc: + 'Ruta al archivo JSON que mapea variables de entorno a rutas de secretos', + inputEnvDesc: 'Ruta al archivo .env a generar', + inputProviderDesc: 'Proveedor en la nube: aws o azure (por defecto: aws)', + inputVaultDesc: 'URL de Azure Key Vault', + output: 'Output:', + outputDesc: 'Ruta al archivo .env generado', + yes: 'Sí', + no: 'No', + }, + changelog: { + title: 'Qué hay de ', + titleAccent: 'nuevo', + subtitle: + 'Novedades de la última versión. El soporte multi-proveedor ya está aquí.', + releaseTitle: 'Soporte Multi-Proveedor', + releaseDate: new Date( + `${releaseMetadata.releaseDate}T00:00:00`, + ).toLocaleDateString('es-ES', { + year: 'numeric', + month: 'long', + day: 'numeric', + }), + highlights: [ + { + icon: '✨', + text: 'Sección $config en archivos de mapeo — declara proveedor y detalles de conexión en línea', + }, + { + icon: '✨', + text: 'Soporte de Azure Key Vault — paridad completa con AWS SSM', + }, + { icon: '✨', text: 'Flags CLI --vault-url y --provider' }, + { + icon: '✨', + text: 'Normalización automática de nombres de secretos para Azure (barras → guiones)', + }, + { + icon: '⚠️', + text: 'Cambio incompatible: --ssm-path renombrado a --secret-path (el antiguo flag sigue funcionando como alias obsoleto)', + }, + ], + fullChangelog: '📋 Historial completo', + viewReleases: 'Ver todas las versiones en GitHub →', + }, + roadmap: { + title: 'Qué viene ', + titleAccent: 'ahora', + subtitle: 'Envilder se desarrolla activamente. Aquí es adónde vamos.', + upNext: 'Próximamente', + items: [ + { + status: 'done', + label: '✅', + title: 'Descargar secretos a .env', + description: + 'Mapea nombres de variables de entorno a rutas de secretos en la nube vía JSON y genera archivos .env automáticamente', + }, + { + status: 'done', + label: '✅', + title: 'Modo push (--push)', + description: + 'Sube valores .env o secretos individuales al proveedor en la nube', + }, + { + status: 'done', + label: '✅', + title: 'GitHub Action', + description: 'Usa Envilder en workflows CI/CD de forma nativa', + }, + { + status: 'done', + label: '✅', + title: 'Multi-proveedor (AWS + Azure)', + description: 'Soporte de AWS SSM Parameter Store y Azure Key Vault', + }, + { + status: 'done', + label: '📖', + title: 'Web de documentación', + description: + 'Web de docs dedicada con guías, ejemplos y referencia API', + }, + { + status: 'next', + label: '⚡', + title: 'Modo exec (--exec)', + description: 'Inyecta secretos en un proceso hijo sin escribir a disco', + }, + { + status: 'planned', + label: '☁️', + title: 'GCP Secret Manager', + description: 'Tercer proveedor cloud — completa el tridente multi-nube', + }, + { + status: 'planned', + label: '🔐', + title: 'AWS Secrets Manager', + description: 'Soporte de secretos JSON junto a SSM Parameter Store', + }, + { + status: 'planned', + label: '✔️', + title: 'Modo check/sync (--check)', + description: + 'Valida secretos en la nube vs .env local — falla CI si están desincronizados', + }, + ], + }, + getStarted: { + title: 'Empieza ', + titleAccent: 'ahora', + subtitle: 'En funcionamiento en menos de un minuto.', + prerequisites: 'Prerrequisitos', + prereqNode: 'Node.js v20+', + prereqAws: 'AWS CLI configurado', + prereqAzure: 'Azure CLI configurado', + prereqIam: 'Permisos IAM:', + prereqAwsNote: 'para AWS SSM', + prereqAzureNote: 'para Azure Key Vault', + install: 'Instalar', + quickStart: 'Inicio rápido', + step1: + 'Crea un param-map.json que mapee variables de entorno a rutas de secretos', + step2: 'Ejecuta envilder --map=param-map.json --envfile=.env', + step3: 'Tu archivo .env está listo ✔', + terminalTitle: 'Inicio rápido', + commentInstall: '# Instalar globalmente', + commentCreate: '# Crear archivo de mapeo', + commentPull: '# Obtener secretos', + commentPush: '# Subir un secreto', + doneMessage: ' ¡Hecho! Archivo .env generado.', + pushSuccess: ' Secreto subido correctamente.', + }, + footer: { + tagline: + 'Centraliza de forma segura tus variables de entorno desde AWS SSM, Azure Key Vault o GCP Secret Manager.', + project: 'Proyecto', + documentation: 'Documentación', + community: 'Comunidad', + linkGithub: 'GitHub', + linkNpm: 'npm', + linkChangelog: 'Cambios', + linkRoadmap: 'Hoja de ruta', + linkGettingStarted: 'Empezar', + linkPullCommand: 'Comando Pull', + linkPushCommand: 'Comando Push', + linkGithubAction: 'GitHub Action', + linkIssues: 'Incidencias', + linkDiscussions: 'Discusiones', + linkSecurity: 'Seguridad', + linkSponsor: 'Patrocinar', + license: 'Licencia MIT', + copyright: 'Hecho con Astro. Código abierto en GitHub.', + builtWith: 'Hecho con Astro. Código abierto en GitHub.', + }, + changelogPage: { + title: 'Historial de cambios — Envilder', + backToHome: '← Volver al inicio', + fullChangelog: 'Historial de ', + changelogAccent: 'cambios', + intro: 'Historial completo de versiones. Ver también', + githubReleases: 'Versiones en GitHub', + versions: 'Versiones', + backToTop: 'Volver arriba', + }, + docs: { + title: 'Documentación — Envilder', + backToHome: '← Volver al inicio', + pageTitle: 'Documentación', + intro: 'Todo lo que necesitas para empezar con Envilder.', + sidebarGettingStarted: 'Primeros pasos', + sidebarRequirements: 'Requisitos', + sidebarInstallation: 'Instalación', + sidebarCredentials: 'Credenciales de nube', + sidebarPermissions: 'Permisos IAM', + sidebarCli: 'CLI', + sidebarMappingFile: 'Archivo de mapeo', + sidebarPullCommand: 'Comando pull', + sidebarPushCommand: 'Comando push', + sidebarPushSingle: 'Push individual', + sidebarGha: 'GitHub Action', + sidebarGhaSetup: 'Configuración', + sidebarGhaBasic: 'Ejemplo básico', + sidebarGhaMultiEnv: 'Multi-entorno', + sidebarGhaAzure: 'Ejemplo Azure', + sidebarGhaInputs: 'Inputs y outputs', + sidebarReference: 'Referencia', + sidebarConfigPriority: 'Prioridad de config', + sidebarAzureSetup: 'Configuración Azure', + overviewTitle: '¿Qué es Envilder?', + overviewDesc: + 'Envilder es una herramienta CLI y GitHub Action que descarga variables de entorno de un almacén de secretos en la nube (AWS SSM Parameter Store o Azure Key Vault) y las escribe en un archivo .env local — o las sube de vuelta. Defines un simple mapeo JSON entre nombres de variables y rutas de secretos, y Envilder hace el resto.', + overviewProblem: + 'Sin Envilder, los equipos copian secretos a mano, los guardan en archivos .env en texto plano en el repositorio, o mantienen scripts de shell frágiles por cada entorno. Esto lleva a credenciales filtradas, configuraciones inconsistentes e incorporaciones lentas.', + overviewSolution: + 'Con Envilder, un archivo param-map.json es la fuente única de verdad. Los secretos no salen del almacén hasta el momento de ejecución, cada entorno usa el mismo mapeo, y un nuevo desarrollador está operativo con un solo comando.', + reqTitle: 'Requisitos', + reqNode: 'Node.js v20+', + reqAws: 'AWS CLI', + reqAzure: 'Azure CLI', + reqAwsNote: 'para AWS SSM', + reqAzureNote: 'para Azure Key Vault', + reqDownload: 'Descargar', + reqInstallGuide: 'Guía de instalación', + installTitle: 'Instalación', + credTitle: 'Credenciales de nube', + credAwsTitle: 'AWS (por defecto)', + credAwsDesc: + 'Envilder usa tus credenciales AWS CLI. Configura el perfil por defecto:', + credAwsProfile: 'O usa un perfil con nombre:', + credAzureTitle: 'Azure Key Vault', + credAzureDesc: 'Envilder usa Azure Default Credentials. Inicia sesión con:', + credAzureVault: + 'Proporciona la URL del vault vía $config en tu archivo de mapeo o el flag --vault-url.', + permTitle: 'Permisos IAM', + permAwsTitle: 'AWS', + permAwsDesc: 'Tu usuario o rol IAM necesita:', + permOperation: 'Operación', + permPermission: 'Permiso', + permPull: 'Pull', + permPush: 'Push', + permPolicyExample: 'Ejemplo de política IAM:', + permAzureTitle: 'Azure', + permAzureRbac: 'Recomendado — asigna Key Vault Secrets Officer vía RBAC:', + permAzurePullNote: + 'Para acceso solo de lectura, Key Vault Secrets User es suficiente.', + mapTitle: 'Archivo de mapeo', + mapIntro: + 'El archivo de mapeo (param-map.json) es el núcleo de Envilder. Es un archivo JSON que mapea nombres de variables de entorno (claves) a rutas de secretos (valores) en tu proveedor en la nube.', + mapCalloutStructure: 'Estructura:', + mapCalloutKey: + 'Cada clave se convierte en un nombre de variable de entorno en tu archivo .env.', + mapCalloutValue: + 'Cada valor es la ruta donde vive el secreto en tu proveedor en la nube.', + mapBasicTitle: 'Formato básico (AWS SSM — por defecto)', + mapBasicDesc: + 'Cuando no hay sección $config, Envilder usa AWS SSM Parameter Store por defecto. Los valores deben ser rutas de parámetros SSM válidas (normalmente comenzando con /):', + mapBasicGenerates: 'Esto genera:', + mapConfigTitle: 'La sección $config', + mapConfigDesc: + 'Añade una clave $config a tu archivo de mapeo para declarar qué proveedor en la nube usar y su configuración. Envilder lee $config para la configuración y trata todas las demás claves como mapeos de secretos.', + mapConfigOptionsTitle: 'Opciones de $config', + mapThKey: 'Clave', + mapThType: 'Tipo', + mapThDefault: 'Por defecto', + mapThDescription: 'Descripción', + mapProviderDesc: 'Proveedor en la nube a usar', + mapVaultUrlDesc: + 'URL de Azure Key Vault (requerido cuando el proveedor es "azure")', + mapProfileDesc: + 'Perfil AWS CLI para configuraciones multi-cuenta (solo AWS)', + mapAwsProfileTitle: 'AWS SSM con perfil', + mapAwsProfileDesc: + 'Para usar un perfil AWS CLI específico (útil para configuraciones multi-cuenta), añade profile a $config:', + mapAwsProfileExplain: + 'Esto indica a Envilder que use el perfil prod-account de tu archivo ~/.aws/credentials en lugar del perfil por defecto.', + mapAzureTitle: 'Azure Key Vault', + mapAzureDesc: + 'Para Azure Key Vault, establece provider a "azure" y proporciona el vaultUrl:', + mapAzureWarningTitle: 'Convención de nombres Azure:', + mapAzureWarningDesc: + 'Los nombres de secretos de Key Vault solo permiten caracteres alfanuméricos y guiones. Envilder normaliza automáticamente los nombres — barras y guiones bajos se convierten en guiones (ej., /myapp/db/password → myapp-db-password).', + mapDifferencesTitle: 'Diferencias clave por proveedor', + mapThEmpty: '', + mapThAwsSsm: 'AWS SSM', + mapThAzureKv: 'Azure Key Vault', + mapSecretPathFormat: 'Formato de ruta de secreto', + mapAwsPathFormat: 'Rutas de parámetros con barras', + mapAzurePathFormat: 'Nombres con guiones', + mapRequiredConfig: '$config requerido', + mapAwsRequiredConfig: 'Ninguno (AWS es por defecto)', + mapAzureRequiredConfig: 'provider + vaultUrl', + mapOptionalConfig: '$config opcional', + mapAuthentication: 'Autenticación', + mapAwsAuth: 'Credenciales AWS CLI', + mapAzureAuth: 'Azure Default Credentials', + mapMultiEnvTitle: 'Múltiples entornos', + mapMultiEnvDesc: + 'Un patrón común es tener un archivo de mapeo por entorno. La estructura es la misma, solo cambian las rutas de los secretos:', + mapMultiEnvThenPull: 'Luego obtén el correcto:', + mapOverrideTitle: 'Sobreescribir $config con flags CLI', + mapOverrideDesc: + 'Los flags CLI siempre tienen prioridad sobre los valores de $config. Esto te permite establecer valores por defecto en el archivo y sobreescribirlos por invocación:', + mapOverrideComment1: '# Usa $config del archivo de mapeo tal cual', + mapOverrideComment2: + '# Sobreescribe proveedor y URL del vault, ignorando $config', + mapOverrideComment3: '# Sobreescribe solo el perfil AWS', + mapPriorityNote: + 'Orden de prioridad: flags CLI / inputs GHA → $config en archivo de mapeo → por defecto (AWS).', + pullTitle: 'Comando pull', + pullDesc: + 'Descarga secretos de tu proveedor en la nube y genera un archivo .env local.', + pullOptions: 'Opciones', + pullExamples: 'Ejemplos', + pullOutput: 'Salida', + optionHeader: 'Opción', + pullOptMap: 'Ruta al archivo JSON de mapeo', + pullOptEnv: 'Ruta donde escribir el .env', + pullOptProvider: 'aws (por defecto) o azure', + pullOptVault: 'URL de Azure Key Vault', + pullOptProfile: 'Perfil AWS CLI a usar', + pullCommentDefault: '# Por defecto (AWS SSM)', + pullCommentProfile: '# Con perfil AWS', + pullCommentAzureConfig: '# Azure vía $config en archivo de mapeo', + pullCommentAzureFlags: '# Azure vía flags CLI', + pullOutputTitle: 'Salida', + pushTitle: 'Comando push', + pushDesc: + 'Sube variables de entorno de un archivo .env local a tu proveedor en la nube usando un archivo de mapeo.', + pushOptions: 'Opciones', + pushExamples: 'Ejemplos', + pushOptPush: 'Activa el modo push (requerido)', + pushOptEnv: 'Ruta a tu archivo .env local', + pushOptMap: 'Ruta al JSON de mapeo de parámetros', + pushOptProvider: 'aws (por defecto) o azure', + pushOptVault: 'URL de Azure Key Vault', + pushOptProfile: 'Perfil AWS CLI (solo AWS)', + pushCommentAws: '# Subir a AWS SSM', + pushCommentProfile: '# Con perfil AWS', + pushCommentAzureConfig: '# Azure vía $config en archivo de mapeo', + pushCommentAzureFlags: '# Azure vía flags CLI', + pushSingleTitle: 'Subir variable individual', + pushSingleDesc: + 'Sube una variable de entorno individual directamente sin ningún archivo.', + pushSingleOptions: 'Opciones', + pushSingleOptPush: 'Activa el modo push (requerido)', + pushSingleOptKey: 'Nombre de la variable de entorno', + pushSingleOptValue: 'Valor a almacenar', + pushSingleOptPath: 'Ruta completa del secreto en tu proveedor en la nube', + pushSingleOptProvider: 'aws (por defecto) o azure', + pushSingleOptVault: 'URL de Azure Key Vault', + pushSingleOptProfile: 'Perfil AWS CLI (solo AWS)', + ghaSetupTitle: 'Configuración de GitHub Action', + ghaSetupDesc: + 'La GitHub Action de Envilder obtiene secretos de AWS SSM o Azure Key Vault en archivos .env durante tu workflow CI/CD. No hace falta compilar — la action está pre-construida y lista para usar desde GitHub Marketplace.', + ghaPrerequisites: 'Prerrequisitos', + ghaPrereqAws: + 'AWS: Configura credenciales con aws-actions/configure-aws-credentials', + ghaPrereqAzure: 'Azure: Configura credenciales con azure/login', + ghaPrereqMap: 'Un param-map.json en tu repositorio', + ghaPullOnly: 'La GitHub Action solo soporta el modo pull (sin push).', + ghaBasicTitle: 'Ejemplo básico de workflow', + ghaMultiEnvTitle: 'Workflow multi-entorno', + ghaAzureTitle: 'Workflow de Azure Key Vault', + ghaInputsTitle: 'Inputs y outputs de la Action', + ghaInputsSubtitle: 'Inputs', + ghaOutputsSubtitle: 'Outputs', + ghaInputRequired: 'Requerido', + ghaInputDefault: 'Por defecto', + ghaInputDesc: 'Descripción', + ghaOutputEnvPath: 'Ruta al archivo .env generado', + ghaThInput: 'Input', + ghaThRequired: 'Requerido', + ghaThOutput: 'Output', + ghaYes: 'Sí', + ghaNo: 'No', + ghaInputMap: 'Ruta al archivo JSON de mapeo', + ghaInputEnv: 'Ruta al archivo .env a generar', + ghaInputProvider: 'aws o azure', + ghaInputVault: 'URL de Azure Key Vault', + configPriorityTitle: 'Prioridad de configuración', + configPriorityDesc: + 'Cuando hay múltiples fuentes de configuración, Envilder las resuelve en este orden (el más alto gana):', + configPriority1: 'Flags CLI / inputs GHA', + configPriority2: '$config en el archivo de mapeo', + configPriority3: 'Por defecto (AWS)', + configPriorityExplain: + 'Esto significa que --provider=azure en la CLI sobreescribirá "provider": "aws" en $config.', + azureSetupTitle: 'Configuración de Azure Key Vault', + azureSetupCheck: 'Comprueba qué modelo de acceso usa tu vault:', + azureRbacTrue: 'true → Azure RBAC (recomendado)', + azureRbacFalse: 'false / null → Vault Access Policy (clásico)', + azureOptionA: 'Opción A — Azure RBAC (recomendado)', + azureOptionB: 'Opción B — Vault Access Policy', + azureAccessNote: + 'Para acceso solo de lectura, get list es suficiente. Añade set para push.', + }, +}; diff --git a/src/apps/website/src/i18n/releaseMetadata.ts b/src/apps/website/src/i18n/releaseMetadata.ts new file mode 100644 index 00000000..8d1275b5 --- /dev/null +++ b/src/apps/website/src/i18n/releaseMetadata.ts @@ -0,0 +1,12 @@ +/** + * Single source of truth for release-specific facts displayed on the website. + * Update this file when publishing a new version so all locale files stay in sync. + */ +export const releaseMetadata = { + /** Latest featured release version label */ + releaseVersion: __APP_VERSION__, + /** ISO date of the featured release */ + releaseDate: '2026-03-22', + /** Number of non-translatable highlight icons */ + highlightIcons: ['✨', '✨', '✨', '✨', '⚠️'] as const, +}; diff --git a/src/apps/website/src/i18n/types.ts b/src/apps/website/src/i18n/types.ts new file mode 100644 index 00000000..00d8f53b --- /dev/null +++ b/src/apps/website/src/i18n/types.ts @@ -0,0 +1,443 @@ +export interface NavLinks { + features: string; + howItWorks: string; + providers: string; + githubAction: string; + changelog: string; + docs: string; + getStarted: string; +} + +export interface ThemeTranslations { + retro: string; + light: string; +} + +export interface HeroTranslations { + openSource: string; + title1: string; + title2: string; + titleAccent: string; + description: string; + descAws: string; + descAzure: string; + descGcp: string; + descOr: string; + descComma: string; + descSuffix: string; + getStarted: string; + viewOnGithub: string; + terminalComment1: string; + terminalComment2: string; + terminalFetched1: string; + terminalFetched2: string; + terminalWritten: string; +} + +export interface TrustTranslations { + label: string; +} + +export interface ProblemItem { + icon: string; + title: string; + description: string; +} + +export interface ProblemSolutionTranslations { + title: string; + titleAccent: string; + titleSuffix: string; + subtitle: string; + problems: ProblemItem[]; + arrowText: string; + solutions: ProblemItem[]; +} + +export interface StepItem { + title: string; + description: string; +} + +export interface HowItWorksTranslations { + title: string; + titleAccent: string; + subtitle: string; + steps: StepItem[]; + terminalFetched1: string; + terminalFetched2: string; + terminalFetched3: string; + terminalWritten: string; +} + +export interface FeatureItem { + icon: string; + title: string; + description: string; + badge?: string; +} + +export interface FeaturesTranslations { + title: string; + titleAccent: string; + subtitle: string; + features: FeatureItem[]; +} + +export interface DemoTranslations { + title: string; + titleAccent: string; + subtitle: string; + cliDemo: string; + ghaWorkflow: string; + comingSoon: string; +} + +export interface ProvidersTranslations { + title: string; + titleAccent: string; + subtitle: string; + awsTitle: string; + awsDefault: string; + awsFeatures: string[]; + azureTitle: string; + azureBadge: string; + azureFeatures: string[]; + gcpTitle: string; + gcpBadge: string; + gcpFeatures: string[]; + configPriorityTitle: string; + priorityHigh: string; + priorityMid: string; + priorityLow: string; +} + +export interface GhaTranslations { + title: string; + subtitle: string; + awsSsm: string; + azureKeyVault: string; + actionInputs: string; + thInput: string; + thRequired: string; + thDefault: string; + thDescription: string; + inputMapDesc: string; + inputEnvDesc: string; + inputProviderDesc: string; + inputVaultDesc: string; + output: string; + outputDesc: string; + yes: string; + no: string; +} + +export interface ChangelogHighlight { + icon: string; + text: string; +} + +export interface ChangelogTranslations { + title: string; + titleAccent: string; + subtitle: string; + releaseTitle: string; + releaseDate: string; + highlights: ChangelogHighlight[]; + fullChangelog: string; + viewReleases: string; +} + +export interface RoadmapItem { + status: string; + label: string; + title: string; + description: string; +} + +export interface RoadmapTranslations { + title: string; + titleAccent: string; + subtitle: string; + upNext: string; + items: RoadmapItem[]; +} + +export interface GetStartedTranslations { + title: string; + titleAccent: string; + subtitle: string; + prerequisites: string; + prereqNode: string; + prereqAws: string; + prereqAzure: string; + prereqIam: string; + prereqAwsNote: string; + prereqAzureNote: string; + install: string; + quickStart: string; + step1: string; + step2: string; + step3: string; + terminalTitle: string; + commentInstall: string; + commentCreate: string; + commentPull: string; + commentPush: string; + doneMessage: string; + pushSuccess: string; +} + +export interface FooterTranslations { + tagline: string; + project: string; + documentation: string; + community: string; + linkGithub: string; + linkNpm: string; + linkChangelog: string; + linkRoadmap: string; + linkGettingStarted: string; + linkPullCommand: string; + linkPushCommand: string; + linkGithubAction: string; + linkIssues: string; + linkDiscussions: string; + linkSecurity: string; + linkSponsor: string; + license: string; + copyright: string; + builtWith: string; +} + +export interface ChangelogPageTranslations { + title: string; + backToHome: string; + fullChangelog: string; + changelogAccent: string; + intro: string; + githubReleases: string; + versions: string; + backToTop: string; +} + +export interface DocsTranslations { + title: string; + backToHome: string; + pageTitle: string; + intro: string; + // Sidebar + sidebarGettingStarted: string; + sidebarRequirements: string; + sidebarInstallation: string; + sidebarCredentials: string; + sidebarPermissions: string; + sidebarCli: string; + sidebarMappingFile: string; + sidebarPullCommand: string; + sidebarPushCommand: string; + sidebarPushSingle: string; + sidebarGha: string; + sidebarGhaSetup: string; + sidebarGhaBasic: string; + sidebarGhaMultiEnv: string; + sidebarGhaAzure: string; + sidebarGhaInputs: string; + sidebarReference: string; + sidebarConfigPriority: string; + sidebarAzureSetup: string; + // Overview + overviewTitle: string; + overviewDesc: string; + overviewProblem: string; + overviewSolution: string; + // Requirements + reqTitle: string; + reqNode: string; + reqAws: string; + reqAzure: string; + reqAwsNote: string; + reqAzureNote: string; + reqDownload: string; + reqInstallGuide: string; + // Installation + installTitle: string; + // Credentials + credTitle: string; + credAwsTitle: string; + credAwsDesc: string; + credAwsProfile: string; + credAzureTitle: string; + credAzureDesc: string; + credAzureVault: string; + // Permissions + permTitle: string; + permAwsTitle: string; + permAwsDesc: string; + permOperation: string; + permPermission: string; + permPull: string; + permPush: string; + permPolicyExample: string; + permAzureTitle: string; + permAzureRbac: string; + permAzurePullNote: string; + // Mapping file + mapTitle: string; + mapIntro: string; + mapCalloutStructure: string; + mapCalloutKey: string; + mapCalloutValue: string; + mapBasicTitle: string; + mapBasicDesc: string; + mapBasicGenerates: string; + mapConfigTitle: string; + mapConfigDesc: string; + mapConfigOptionsTitle: string; + mapThKey: string; + mapThType: string; + mapThDefault: string; + mapThDescription: string; + mapProviderDesc: string; + mapVaultUrlDesc: string; + mapProfileDesc: string; + mapAwsProfileTitle: string; + mapAwsProfileDesc: string; + mapAwsProfileExplain: string; + mapAzureTitle: string; + mapAzureDesc: string; + mapAzureWarningTitle: string; + mapAzureWarningDesc: string; + mapDifferencesTitle: string; + mapThEmpty: string; + mapThAwsSsm: string; + mapThAzureKv: string; + mapSecretPathFormat: string; + mapAwsPathFormat: string; + mapAzurePathFormat: string; + mapRequiredConfig: string; + mapAwsRequiredConfig: string; + mapAzureRequiredConfig: string; + mapOptionalConfig: string; + mapAuthentication: string; + mapAwsAuth: string; + mapAzureAuth: string; + mapMultiEnvTitle: string; + mapMultiEnvDesc: string; + mapMultiEnvThenPull: string; + mapOverrideTitle: string; + mapOverrideDesc: string; + mapOverrideComment1: string; + mapOverrideComment2: string; + mapOverrideComment3: string; + mapPriorityNote: string; + // Pull command + pullTitle: string; + pullDesc: string; + pullOptions: string; + pullExamples: string; + pullOutput: string; + optionHeader: string; + pullOptMap: string; + pullOptEnv: string; + pullOptProvider: string; + pullOptVault: string; + pullOptProfile: string; + pullCommentDefault: string; + pullCommentProfile: string; + pullCommentAzureConfig: string; + pullCommentAzureFlags: string; + pullOutputTitle: string; + // Push command + pushTitle: string; + pushDesc: string; + pushOptions: string; + pushExamples: string; + pushOptPush: string; + pushOptEnv: string; + pushOptMap: string; + pushOptProvider: string; + pushOptVault: string; + pushOptProfile: string; + pushCommentAws: string; + pushCommentProfile: string; + pushCommentAzureConfig: string; + pushCommentAzureFlags: string; + // Push single + pushSingleTitle: string; + pushSingleDesc: string; + pushSingleOptions: string; + pushSingleOptPush: string; + pushSingleOptKey: string; + pushSingleOptValue: string; + pushSingleOptPath: string; + pushSingleOptProvider: string; + pushSingleOptVault: string; + pushSingleOptProfile: string; + // GHA + ghaSetupTitle: string; + ghaSetupDesc: string; + ghaPrerequisites: string; + ghaPrereqAws: string; + ghaPrereqAzure: string; + ghaPrereqMap: string; + ghaPullOnly: string; + ghaBasicTitle: string; + ghaMultiEnvTitle: string; + ghaAzureTitle: string; + ghaInputsTitle: string; + ghaInputsSubtitle: string; + ghaOutputsSubtitle: string; + ghaInputRequired: string; + ghaInputDefault: string; + ghaInputDesc: string; + ghaThInput: string; + ghaThRequired: string; + ghaThOutput: string; + ghaYes: string; + ghaNo: string; + ghaInputMap: string; + ghaInputEnv: string; + ghaInputProvider: string; + ghaInputVault: string; + ghaOutputEnvPath: string; + // Reference + configPriorityTitle: string; + configPriorityDesc: string; + configPriority1: string; + configPriority2: string; + configPriority3: string; + configPriorityExplain: string; + azureSetupTitle: string; + azureSetupCheck: string; + azureRbacTrue: string; + azureRbacFalse: string; + azureOptionA: string; + azureOptionB: string; + azureAccessNote: string; +} + +export interface HomeMetaTranslations { + title: string; + description: string; +} + +export interface Translations { + homeMeta: HomeMetaTranslations; + nav: NavLinks; + theme: ThemeTranslations; + hero: HeroTranslations; + trust: TrustTranslations; + problemSolution: ProblemSolutionTranslations; + howItWorks: HowItWorksTranslations; + features: FeaturesTranslations; + demo: DemoTranslations; + providers: ProvidersTranslations; + gha: GhaTranslations; + changelog: ChangelogTranslations; + roadmap: RoadmapTranslations; + getStarted: GetStartedTranslations; + footer: FooterTranslations; + changelogPage: ChangelogPageTranslations; + docs: DocsTranslations; +} diff --git a/src/apps/website/src/i18n/utils.ts b/src/apps/website/src/i18n/utils.ts new file mode 100644 index 00000000..6b2aae0c --- /dev/null +++ b/src/apps/website/src/i18n/utils.ts @@ -0,0 +1,30 @@ +import { ca } from './ca'; +import { en } from './en'; +import { es } from './es'; +import type { Translations } from './types'; + +const translations: Record<string, Translations> = { en, ca, es }; + +export const languages = { + en: 'English', + ca: 'Català', + es: 'Español', +}; + +export const defaultLang = 'en'; + +export type Lang = keyof typeof languages; + +function normalizeLang(lang: string): Lang { + return Object.hasOwn(languages, lang) ? (lang as Lang) : defaultLang; +} + +export function useTranslations(lang: string) { + return translations[normalizeLang(lang)]; +} + +export function localizedPath(lang: string, path: string) { + const normalized = normalizeLang(lang); + if (normalized === defaultLang) return path; + return `/${normalized}${path}`; +} diff --git a/src/apps/website/src/layouts/BaseLayout.astro b/src/apps/website/src/layouts/BaseLayout.astro new file mode 100644 index 00000000..bb039599 --- /dev/null +++ b/src/apps/website/src/layouts/BaseLayout.astro @@ -0,0 +1,70 @@ +--- +export interface Props { + title?: string; + description?: string; + lang?: string; +} + +const { + title = 'Envilder — Centralize your secrets. One command.', + description = 'A CLI tool and GitHub Action that securely centralizes environment variables from AWS SSM Parameter Store or Azure Key Vault as a single source of truth.', + lang = 'en', +} = Astro.props; + +const canonicalUrl = new URL(Astro.url.pathname, Astro.site).href; +--- + +<!doctype html> +<html lang={lang}> + <head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <meta name="description" content={description} /> + <meta name="author" content="Marçal Albert Castellví" /> + <meta name="generator" content={Astro.generator} /> + + <!-- OG --> + <meta property="og:type" content="website" /> + <meta property="og:title" content={title} /> + <meta property="og:description" content={description} /> + <meta property="og:url" content={canonicalUrl} /> + <meta property="og:site_name" content="Envilder" /> + + <!-- Twitter --> + <meta name="twitter:card" content="summary_large_image" /> + <meta name="twitter:title" content={title} /> + <meta name="twitter:description" content={description} /> + + <title>{title} + + + + + + + + + + + + + + + + + diff --git a/src/apps/website/src/pages/ca/changelog.astro b/src/apps/website/src/pages/ca/changelog.astro new file mode 100644 index 00000000..fd2d331f --- /dev/null +++ b/src/apps/website/src/pages/ca/changelog.astro @@ -0,0 +1,342 @@ +--- +import { readFile } from 'node:fs/promises'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import Footer from '../../components/Footer.astro'; +import Navbar from '../../components/Navbar.astro'; +import { localizedPath, useTranslations } from '../../i18n/utils'; +import BaseLayout from '../../layouts/BaseLayout.astro'; +import { changelogToHtml, extractVersions } from '../../utils/markdown'; + +const lang = 'ca'; +const t = useTranslations(lang); + +const __dirname = dirname(fileURLToPath(import.meta.url)); +const changelogPath = resolve(__dirname, '../../../../../../docs/CHANGELOG.md'); +let changelogContent = ''; +try { + changelogContent = await readFile(changelogPath, 'utf-8'); +} catch { + changelogContent = + '# Changelog\n\nChangelog file not found. See [GitHub Releases](https://github.com/macalbert/envilder/releases).'; +} + +const changelogHtml = changelogToHtml(changelogContent); +const versions = extractVersions(changelogContent); +--- + + + +
+
+ + + +
+
+ {t.changelogPage.backToHome} +

{t.changelogPage.fullChangelog}{t.changelogPage.changelogAccent}

+

+ {t.changelogPage.intro} + + {t.changelogPage.githubReleases} + . +

+
+
+
+ +
+
+ +